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 |
| 687 | SWAPFS_CMT |
| 688 | DEBUGFS_CMT |
| 689 | IMAGER_CMT |
| 690 | RESIZER_CMT |
| 691 | E2FSCK_TYPE |
| 692 | FSCK_PROG |
| 693 | FSCK_MAN |
| 694 | E2INITRD_PROG |
| 695 | E2INITRD_MAN |
| 696 | DEVMAPPER_REQ |
| 697 | DEVMAPPER_PC_LIBS |
| 698 | DEVMAPPER_LIBS |
| 699 | STATIC_DEVMAPPER_LIBS |
| 700 | GETTEXT_PACKAGE |
| 701 | PACKAGE |
| 702 | VERSION |
| 703 | SET_MAKE |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | MKINSTALLDIRS |
| 708 | USE_NLS |
| 709 | MSGFMT |
| 710 | GMSGFMT |
| 711 | XGETTEXT |
| 712 | MSGMERGE |
| 713 | RANLIB |
| 714 | ALLOCA |
| 715 | GLIBC21 |
| 716 | HAVE_POSIX_PRINTF |
| 717 | HAVE_ASPRINTF |
| 718 | HAVE_SNPRINTF |
| 719 | HAVE_WPRINTF |
| 720 | LIBICONV |
| 721 | LTLIBICONV |
| 722 | INTLBISON |
| 723 | BUILD_INCLUDED_LIBINTL |
| 724 | USE_INCLUDED_LIBINTL |
| 725 | CATOBJEXT |
| 726 | DATADIRNAME |
| 727 | INSTOBJEXT |
| 728 | GENCAT |
| 729 | INTLOBJS |
| 730 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 731 | INTLLIBS |
| 732 | LIBINTL |
| 733 | LTLIBINTL |
| 734 | POSUB |
| 735 | BINARY_TYPE |
| 736 | LN |
| 737 | LN_S |
| 738 | MV |
| 739 | CP |
| 740 | RM |
| 741 | CHMOD |
| 742 | AWK |
| 743 | SED |
| 744 | PERL |
| 745 | LDCONFIG |
| 746 | AR |
| 747 | STRIP |
| 748 | BUILD_CC |
| 749 | SIZEOF_SHORT |
| 750 | SIZEOF_INT |
| 751 | SIZEOF_LONG |
| 752 | SIZEOF_LONG_LONG |
| 753 | SOCKET_LIB |
| 754 | DLOPEN_LIB |
| 755 | UNI_DIFF_OPTS |
| 756 | LINUX_CMT |
| 757 | CYGWIN_CMT |
| 758 | UNIX_CMT |
| 759 | root_prefix |
| 760 | root_bindir |
| 761 | root_sbindir |
| 762 | root_libdir |
| 763 | root_sysconfdir |
| 764 | LDFLAG_STATIC |
| 765 | SS_DIR |
| 766 | ET_DIR |
| 767 | DO_TEST_SUITE |
| 768 | INTL_FLAGS |
| 769 | BUILD_CFLAGS |
| 770 | BUILD_LDFLAGS |
| 771 | LIBOBJS |
| 772 | LTLIBOBJS' |
| 773 | ac_subst_files='MCONFIG |
| 774 | MAKEFILE_ELF |
| 775 | MAKEFILE_BSDLIB |
| 776 | MAKEFILE_PROFILE |
| 777 | MAKEFILE_CHECKER |
| 778 | MAKEFILE_LIBRARY |
| 779 | ASM_TYPES_HEADER' |
| 780 | ac_precious_vars='build_alias |
| 781 | host_alias |
| 782 | target_alias |
| 783 | CC |
| 784 | CFLAGS |
| 785 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 786 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 787 | CPPFLAGS |
| 788 | CPP' |
| 789 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 790 | |
| 791 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 792 | ac_init_help= |
| 793 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 794 | # The variables have the same names as the options, with |
| 795 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 796 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 797 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 798 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 799 | no_recursion= |
| 800 | prefix=NONE |
| 801 | program_prefix=NONE |
| 802 | program_suffix=NONE |
| 803 | program_transform_name=s,x,x, |
| 804 | silent= |
| 805 | site= |
| 806 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 807 | verbose= |
| 808 | x_includes=NONE |
| 809 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 810 | |
| 811 | # Installation directory options. |
| 812 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 813 | # and all the variables that are supposed to be based on exec_prefix |
| 814 | # by default will actually change. |
| 815 | # 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] | 816 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 817 | bindir='${exec_prefix}/bin' |
| 818 | sbindir='${exec_prefix}/sbin' |
| 819 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 820 | datarootdir='${prefix}/share' |
| 821 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 822 | sysconfdir='${prefix}/etc' |
| 823 | sharedstatedir='${prefix}/com' |
| 824 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 825 | includedir='${prefix}/include' |
| 826 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 827 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 828 | infodir='${datarootdir}/info' |
| 829 | htmldir='${docdir}' |
| 830 | dvidir='${docdir}' |
| 831 | pdfdir='${docdir}' |
| 832 | psdir='${docdir}' |
| 833 | libdir='${exec_prefix}/lib' |
| 834 | localedir='${datarootdir}/locale' |
| 835 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 836 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 837 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 838 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | for ac_option |
| 840 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | # If the previous option needs an argument, assign it. |
| 842 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 843 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 844 | ac_prev= |
| 845 | continue |
| 846 | fi |
| 847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 848 | case $ac_option in |
| 849 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 850 | *) ac_optarg=yes ;; |
| 851 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 852 | |
| 853 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 855 | case $ac_dashdash$ac_option in |
| 856 | --) |
| 857 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 858 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 859 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 860 | ac_prev=bindir ;; |
| 861 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 862 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | |
| 864 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 865 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 866 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 867 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 868 | |
| 869 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 870 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 871 | ac_prev=cache_file ;; |
| 872 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 873 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 874 | cache_file=$ac_optarg ;; |
| 875 | |
| 876 | --config-cache | -C) |
| 877 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 879 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 880 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 881 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 882 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 884 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 885 | | --dataroo | --dataro | --datar) |
| 886 | ac_prev=datarootdir ;; |
| 887 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 888 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 889 | datarootdir=$ac_optarg ;; |
| 890 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 891 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 892 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 894 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 895 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 896 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 897 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 898 | eval enable_$ac_feature=no ;; |
| 899 | |
| 900 | -docdir | --docdir | --docdi | --doc | --do) |
| 901 | ac_prev=docdir ;; |
| 902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 903 | docdir=$ac_optarg ;; |
| 904 | |
| 905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 906 | ac_prev=dvidir ;; |
| 907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 908 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | |
| 910 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 911 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 912 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 913 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 914 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 915 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 916 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 917 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 918 | |
| 919 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 920 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 921 | | --exec | --exe | --ex) |
| 922 | ac_prev=exec_prefix ;; |
| 923 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 924 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 925 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 926 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | |
| 928 | -gas | --gas | --ga | --g) |
| 929 | # Obsolete; use --with-gas. |
| 930 | with_gas=yes ;; |
| 931 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 932 | -help | --help | --hel | --he | -h) |
| 933 | ac_init_help=long ;; |
| 934 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 935 | ac_init_help=recursive ;; |
| 936 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 937 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 938 | |
| 939 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 940 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 941 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 942 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 944 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 945 | ac_prev=htmldir ;; |
| 946 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 947 | | --ht=*) |
| 948 | htmldir=$ac_optarg ;; |
| 949 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 950 | -includedir | --includedir | --includedi | --included | --include \ |
| 951 | | --includ | --inclu | --incl | --inc) |
| 952 | ac_prev=includedir ;; |
| 953 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 954 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 955 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 956 | |
| 957 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 958 | ac_prev=infodir ;; |
| 959 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 960 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 961 | |
| 962 | -libdir | --libdir | --libdi | --libd) |
| 963 | ac_prev=libdir ;; |
| 964 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 965 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 966 | |
| 967 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 968 | | --libexe | --libex | --libe) |
| 969 | ac_prev=libexecdir ;; |
| 970 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 971 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 972 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 974 | -localedir | --localedir | --localedi | --localed | --locale) |
| 975 | ac_prev=localedir ;; |
| 976 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 977 | localedir=$ac_optarg ;; |
| 978 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 979 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 980 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 981 | ac_prev=localstatedir ;; |
| 982 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 983 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 984 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 985 | |
| 986 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 987 | ac_prev=mandir ;; |
| 988 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 989 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 990 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 991 | -nfp | --nfp | --nf) |
| 992 | # Obsolete; use --without-fp. |
| 993 | with_fp=no ;; |
| 994 | |
| 995 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 996 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 997 | no_create=yes ;; |
| 998 | |
| 999 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1000 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1001 | no_recursion=yes ;; |
| 1002 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1003 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1004 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1005 | | --oldin | --oldi | --old | --ol | --o) |
| 1006 | ac_prev=oldincludedir ;; |
| 1007 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1008 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1009 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1010 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1011 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1012 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1013 | ac_prev=prefix ;; |
| 1014 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1015 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | |
| 1017 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1018 | | --program-pre | --program-pr | --program-p) |
| 1019 | ac_prev=program_prefix ;; |
| 1020 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1021 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1022 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1023 | |
| 1024 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1025 | | --program-suf | --program-su | --program-s) |
| 1026 | ac_prev=program_suffix ;; |
| 1027 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1028 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1029 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1030 | |
| 1031 | -program-transform-name | --program-transform-name \ |
| 1032 | | --program-transform-nam | --program-transform-na \ |
| 1033 | | --program-transform-n | --program-transform- \ |
| 1034 | | --program-transform | --program-transfor \ |
| 1035 | | --program-transfo | --program-transf \ |
| 1036 | | --program-trans | --program-tran \ |
| 1037 | | --progr-tra | --program-tr | --program-t) |
| 1038 | ac_prev=program_transform_name ;; |
| 1039 | -program-transform-name=* | --program-transform-name=* \ |
| 1040 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1041 | | --program-transform-n=* | --program-transform-=* \ |
| 1042 | | --program-transform=* | --program-transfor=* \ |
| 1043 | | --program-transfo=* | --program-transf=* \ |
| 1044 | | --program-trans=* | --program-tran=* \ |
| 1045 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1046 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1048 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1049 | ac_prev=pdfdir ;; |
| 1050 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1051 | pdfdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1054 | ac_prev=psdir ;; |
| 1055 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1056 | psdir=$ac_optarg ;; |
| 1057 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1059 | | -silent | --silent | --silen | --sile | --sil) |
| 1060 | silent=yes ;; |
| 1061 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1062 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1063 | ac_prev=sbindir ;; |
| 1064 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1065 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1067 | |
| 1068 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1069 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1070 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1071 | | --sha | --sh) |
| 1072 | ac_prev=sharedstatedir ;; |
| 1073 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1074 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1075 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1076 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1077 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1078 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1079 | -site | --site | --sit) |
| 1080 | ac_prev=site ;; |
| 1081 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1082 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1083 | |
| 1084 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1085 | ac_prev=srcdir ;; |
| 1086 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1088 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1089 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1090 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1091 | ac_prev=sysconfdir ;; |
| 1092 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1093 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1095 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1096 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1099 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1100 | |
| 1101 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1102 | verbose=yes ;; |
| 1103 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1104 | -version | --version | --versio | --versi | --vers | -V) |
| 1105 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1106 | |
| 1107 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1109 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1110 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1111 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1112 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1113 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1114 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1115 | |
| 1116 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1118 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1119 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1121 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1122 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1123 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1124 | |
| 1125 | --x) |
| 1126 | # Obsolete; use --with-x. |
| 1127 | with_x=yes ;; |
| 1128 | |
| 1129 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1130 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1131 | ac_prev=x_includes ;; |
| 1132 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1133 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1134 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1135 | |
| 1136 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1137 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1138 | ac_prev=x_libraries ;; |
| 1139 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1140 | | --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] | 1141 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1143 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1144 | Try \`$0 --help' for more information." >&2 |
| 1145 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | ;; |
| 1147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | *=*) |
| 1149 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1150 | # Reject names that are not valid shell variable names. |
| 1151 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1152 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1153 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1154 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1155 | export $ac_envvar ;; |
| 1156 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1157 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1158 | # FIXME: should be removed in autoconf 3.0. |
| 1159 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1160 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1161 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1162 | : ${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] | 1163 | ;; |
| 1164 | |
| 1165 | esac |
| 1166 | done |
| 1167 | |
| 1168 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1169 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1170 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1171 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1172 | fi |
| 1173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1174 | # Be sure to have absolute directory names. |
| 1175 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1176 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1177 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1178 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1180 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1181 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1182 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1183 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1184 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1185 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1186 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1187 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1189 | # There might be people who depend on the old broken behavior: `$host' |
| 1190 | # used to hold the argument of --host etc. |
| 1191 | # FIXME: To remove some day. |
| 1192 | build=$build_alias |
| 1193 | host=$host_alias |
| 1194 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1195 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1196 | # FIXME: To remove some day. |
| 1197 | if test "x$host_alias" != x; then |
| 1198 | if test "x$build_alias" = x; then |
| 1199 | cross_compiling=maybe |
| 1200 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1201 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1202 | elif test "x$build_alias" != "x$host_alias"; then |
| 1203 | cross_compiling=yes |
| 1204 | fi |
| 1205 | fi |
| 1206 | |
| 1207 | ac_tool_prefix= |
| 1208 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1209 | |
| 1210 | test "$silent" = yes && exec 6>/dev/null |
| 1211 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1213 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1214 | ac_ls_di=`ls -di .` && |
| 1215 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1216 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
| 1218 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1219 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1220 | { (exit 1); exit 1; }; } |
| 1221 | |
| 1222 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1223 | # Find the source files, if location was not specified. |
| 1224 | if test -z "$srcdir"; then |
| 1225 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1226 | # Try the directory containing this script, then the parent directory. |
| 1227 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1228 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1229 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1230 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1231 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1234 | s//\1/ |
| 1235 | q |
| 1236 | } |
| 1237 | /^X\(\/\/\)[^/].*/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)$/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\).*/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1251 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | srcdir=.. |
| 1253 | fi |
| 1254 | else |
| 1255 | ac_srcdir_defaulted=no |
| 1256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1257 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1258 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1259 | { 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] | 1260 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1261 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1262 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1263 | ac_abs_confdir=`( |
| 1264 | 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] | 1265 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | pwd)` |
| 1267 | # When building in place, set srcdir=. |
| 1268 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1269 | srcdir=. |
| 1270 | fi |
| 1271 | # Remove unnecessary trailing slashes from srcdir. |
| 1272 | # Double slashes in file names in object file debugging info |
| 1273 | # mess up M-x gdb in Emacs. |
| 1274 | case $srcdir in |
| 1275 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1276 | esac |
| 1277 | for ac_var in $ac_precious_vars; do |
| 1278 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1279 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1280 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1282 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1284 | # |
| 1285 | # Report the --help message. |
| 1286 | # |
| 1287 | if test "$ac_init_help" = "long"; then |
| 1288 | # Omit some internal or obsolete options to make the list less imposing. |
| 1289 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1290 | cat <<_ACEOF |
| 1291 | \`configure' configures this package to adapt to many kinds of systems. |
| 1292 | |
| 1293 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1294 | |
| 1295 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1296 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1297 | |
| 1298 | Defaults for the options are specified in brackets. |
| 1299 | |
| 1300 | Configuration: |
| 1301 | -h, --help display this help and exit |
| 1302 | --help=short display options specific to this package |
| 1303 | --help=recursive display the short help of all the included packages |
| 1304 | -V, --version display version information and exit |
| 1305 | -q, --quiet, --silent do not print \`checking...' messages |
| 1306 | --cache-file=FILE cache test results in FILE [disabled] |
| 1307 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1308 | -n, --no-create do not create output files |
| 1309 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1310 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1311 | Installation directories: |
| 1312 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1313 | [$ac_default_prefix] |
| 1314 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1315 | [PREFIX] |
| 1316 | |
| 1317 | By default, \`make install' will install all the files in |
| 1318 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1319 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1320 | for instance \`--prefix=\$HOME'. |
| 1321 | |
| 1322 | For better control, use the options below. |
| 1323 | |
| 1324 | Fine tuning of the installation directories: |
| 1325 | --bindir=DIR user executables [EPREFIX/bin] |
| 1326 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1327 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1328 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1329 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1330 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1331 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1332 | --includedir=DIR C header files [PREFIX/include] |
| 1333 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1334 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1335 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1336 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1337 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1338 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1339 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1340 | --htmldir=DIR html documentation [DOCDIR] |
| 1341 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1342 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1343 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1344 | _ACEOF |
| 1345 | |
| 1346 | cat <<\_ACEOF |
| 1347 | |
| 1348 | System types: |
| 1349 | --build=BUILD configure for building on BUILD [guessed] |
| 1350 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1351 | _ACEOF |
| 1352 | fi |
| 1353 | |
| 1354 | if test -n "$ac_init_help"; then |
| 1355 | |
| 1356 | cat <<\_ACEOF |
| 1357 | |
| 1358 | Optional Features: |
| 1359 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1360 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1361 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1362 | --enable-compression enable EXPERIMENTAL compression support |
| 1363 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1364 | --enable-elf-shlibs select ELF shared libraries |
| 1365 | --enable-bsd-shlibs select BSD shared libraries |
| 1366 | --enable-profile build profiling libraries |
| 1367 | --enable-checker build checker libraries |
| 1368 | --enable-jbd-debug enable journal debugging |
| 1369 | --enable-blkid-debug enable blkid debugging |
| 1370 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1371 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1372 | --disable-debugfs disable support of debugfs program |
| 1373 | --disable-imager disable support of e2image program |
| 1374 | --disable-resizer disable support of e2resize program |
| 1375 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1376 | --enable-fsck build fsck wrapper program |
| 1377 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1378 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1379 | --disable-nls do not use Native Language Support |
| 1380 | --disable-rpath do not hardcode runtime library paths |
| 1381 | |
| 1382 | Optional Packages: |
| 1383 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1384 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1385 | --with-diet-libc Use diet libc |
| 1386 | --with-cc=COMPILER select compiler to use |
| 1387 | --with-linker=LINKER select linker to use |
| 1388 | --with-ccopts=CCOPTS select compiler command line options |
| 1389 | --with-ldopts=LDOPTS select linker command line options |
| 1390 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1391 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1392 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1393 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1394 | --with-included-gettext use the GNU gettext library included here |
| 1395 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1396 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1397 | |
| 1398 | Some influential environment variables: |
| 1399 | CC C compiler command |
| 1400 | CFLAGS C compiler flags |
| 1401 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1402 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1403 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1404 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1405 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1406 | CPP C preprocessor |
| 1407 | |
| 1408 | Use these variables to override the choices made by `configure' or to help |
| 1409 | it to find libraries and programs with nonstandard names/locations. |
| 1410 | |
| 1411 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1412 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1413 | fi |
| 1414 | |
| 1415 | if test "$ac_init_help" = "recursive"; then |
| 1416 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1417 | 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] | 1418 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1419 | ac_builddir=. |
| 1420 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1421 | case "$ac_dir" in |
| 1422 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1423 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1424 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1425 | # A ".." for each directory in $ac_dir_suffix. |
| 1426 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1427 | case $ac_top_builddir_sub in |
| 1428 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1429 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1430 | esac ;; |
| 1431 | esac |
| 1432 | ac_abs_top_builddir=$ac_pwd |
| 1433 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1434 | # for backward compatibility: |
| 1435 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1436 | |
| 1437 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1438 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1440 | ac_top_srcdir=$ac_top_builddir_sub |
| 1441 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1442 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1443 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1444 | ac_top_srcdir=$srcdir |
| 1445 | ac_abs_top_srcdir=$srcdir ;; |
| 1446 | *) # Relative name. |
| 1447 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1448 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1449 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1450 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1451 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1452 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1453 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1454 | # Check for guested configure. |
| 1455 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1456 | echo && |
| 1457 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1458 | elif test -f "$ac_srcdir/configure"; then |
| 1459 | echo && |
| 1460 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1461 | else |
| 1462 | 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] | 1463 | fi || ac_status=$? |
| 1464 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1465 | done |
| 1466 | fi |
| 1467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1468 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | if $ac_init_version; then |
| 1470 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1471 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1472 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1473 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1474 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1475 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | This configure script is free software; the Free Software Foundation |
| 1477 | gives unlimited permission to copy, distribute and modify it. |
| 1478 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1479 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1480 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1481 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1482 | This file contains any messages produced by compilers while |
| 1483 | running configure, to aid debugging if configure makes a mistake. |
| 1484 | |
| 1485 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1486 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1487 | |
| 1488 | $ $0 $@ |
| 1489 | |
| 1490 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1491 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | { |
| 1493 | cat <<_ASUNAME |
| 1494 | ## --------- ## |
| 1495 | ## Platform. ## |
| 1496 | ## --------- ## |
| 1497 | |
| 1498 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1499 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1500 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1501 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1502 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1503 | |
| 1504 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1505 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1506 | |
| 1507 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1508 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1509 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1510 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1511 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1512 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1513 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1514 | |
| 1515 | _ASUNAME |
| 1516 | |
| 1517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1518 | for as_dir in $PATH |
| 1519 | do |
| 1520 | IFS=$as_save_IFS |
| 1521 | test -z "$as_dir" && as_dir=. |
| 1522 | echo "PATH: $as_dir" |
| 1523 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1524 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1525 | |
| 1526 | } >&5 |
| 1527 | |
| 1528 | cat >&5 <<_ACEOF |
| 1529 | |
| 1530 | |
| 1531 | ## ----------- ## |
| 1532 | ## Core tests. ## |
| 1533 | ## ----------- ## |
| 1534 | |
| 1535 | _ACEOF |
| 1536 | |
| 1537 | |
| 1538 | # Keep a trace of the command line. |
| 1539 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1540 | # Strip out --silent because we don't want to record it for future runs. |
| 1541 | # Also quote any args containing shell meta-characters. |
| 1542 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1543 | ac_configure_args= |
| 1544 | ac_configure_args0= |
| 1545 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | ac_must_keep_next=false |
| 1547 | for ac_pass in 1 2 |
| 1548 | do |
| 1549 | for ac_arg |
| 1550 | do |
| 1551 | case $ac_arg in |
| 1552 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1553 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1554 | | -silent | --silent | --silen | --sile | --sil) |
| 1555 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1556 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1557 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1558 | esac |
| 1559 | case $ac_pass in |
| 1560 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1561 | 2) |
| 1562 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1563 | if test $ac_must_keep_next = true; then |
| 1564 | ac_must_keep_next=false # Got value, back to normal. |
| 1565 | else |
| 1566 | case $ac_arg in |
| 1567 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1568 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1569 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1570 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1571 | case "$ac_configure_args0 " in |
| 1572 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1573 | esac |
| 1574 | ;; |
| 1575 | -* ) ac_must_keep_next=true ;; |
| 1576 | esac |
| 1577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1578 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1579 | ;; |
| 1580 | esac |
| 1581 | done |
| 1582 | done |
| 1583 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1584 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1585 | |
| 1586 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1587 | # config.log. We remove comments because anyway the quotes in there |
| 1588 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1589 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1590 | # 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] | 1591 | trap 'exit_status=$? |
| 1592 | # Save into config.log some information that might help in debugging. |
| 1593 | { |
| 1594 | echo |
| 1595 | |
| 1596 | cat <<\_ASBOX |
| 1597 | ## ---------------- ## |
| 1598 | ## Cache variables. ## |
| 1599 | ## ---------------- ## |
| 1600 | _ASBOX |
| 1601 | echo |
| 1602 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1603 | ( |
| 1604 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1605 | eval ac_val=\$$ac_var |
| 1606 | case $ac_val in #( |
| 1607 | *${as_nl}*) |
| 1608 | case $ac_var in #( |
| 1609 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1610 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1611 | esac |
| 1612 | case $ac_var in #( |
| 1613 | _ | IFS | as_nl) ;; #( |
| 1614 | *) $as_unset $ac_var ;; |
| 1615 | esac ;; |
| 1616 | esac |
| 1617 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1618 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1619 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1620 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1621 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1622 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1623 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1624 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1625 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1626 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1627 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1628 | esac | |
| 1629 | sort |
| 1630 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1631 | echo |
| 1632 | |
| 1633 | cat <<\_ASBOX |
| 1634 | ## ----------------- ## |
| 1635 | ## Output variables. ## |
| 1636 | ## ----------------- ## |
| 1637 | _ASBOX |
| 1638 | echo |
| 1639 | for ac_var in $ac_subst_vars |
| 1640 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1641 | eval ac_val=\$$ac_var |
| 1642 | case $ac_val in |
| 1643 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1644 | esac |
| 1645 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1646 | done | sort |
| 1647 | echo |
| 1648 | |
| 1649 | if test -n "$ac_subst_files"; then |
| 1650 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1651 | ## ------------------- ## |
| 1652 | ## File substitutions. ## |
| 1653 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1654 | _ASBOX |
| 1655 | echo |
| 1656 | for ac_var in $ac_subst_files |
| 1657 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1658 | eval ac_val=\$$ac_var |
| 1659 | case $ac_val in |
| 1660 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1661 | esac |
| 1662 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1663 | done | sort |
| 1664 | echo |
| 1665 | fi |
| 1666 | |
| 1667 | if test -s confdefs.h; then |
| 1668 | cat <<\_ASBOX |
| 1669 | ## ----------- ## |
| 1670 | ## confdefs.h. ## |
| 1671 | ## ----------- ## |
| 1672 | _ASBOX |
| 1673 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1674 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1675 | echo |
| 1676 | fi |
| 1677 | test "$ac_signal" != 0 && |
| 1678 | echo "$as_me: caught signal $ac_signal" |
| 1679 | echo "$as_me: exit $exit_status" |
| 1680 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1681 | rm -f core *.core core.conftest.* && |
| 1682 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1683 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1684 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1685 | for ac_signal in 1 2 13 15; do |
| 1686 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1687 | done |
| 1688 | ac_signal=0 |
| 1689 | |
| 1690 | # 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] | 1691 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1692 | |
| 1693 | # Predefined preprocessor variables. |
| 1694 | |
| 1695 | cat >>confdefs.h <<_ACEOF |
| 1696 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1697 | _ACEOF |
| 1698 | |
| 1699 | |
| 1700 | cat >>confdefs.h <<_ACEOF |
| 1701 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1702 | _ACEOF |
| 1703 | |
| 1704 | |
| 1705 | cat >>confdefs.h <<_ACEOF |
| 1706 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1707 | _ACEOF |
| 1708 | |
| 1709 | |
| 1710 | cat >>confdefs.h <<_ACEOF |
| 1711 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1712 | _ACEOF |
| 1713 | |
| 1714 | |
| 1715 | cat >>confdefs.h <<_ACEOF |
| 1716 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1717 | _ACEOF |
| 1718 | |
| 1719 | |
| 1720 | # 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] | 1721 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1722 | if test -n "$CONFIG_SITE"; then |
| 1723 | set x "$CONFIG_SITE" |
| 1724 | elif test "x$prefix" != xNONE; then |
| 1725 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1726 | else |
| 1727 | set x "$ac_default_prefix/share/config.site" \ |
| 1728 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1729 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1730 | shift |
| 1731 | for ac_site_file |
| 1732 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1733 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1734 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1735 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1736 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1737 | . "$ac_site_file" |
| 1738 | fi |
| 1739 | done |
| 1740 | |
| 1741 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1742 | # Some versions of bash will fail to source /dev/null (special |
| 1743 | # files actually), so we avoid doing that. |
| 1744 | if test -f "$cache_file"; then |
| 1745 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1746 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1747 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1748 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1749 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1750 | esac |
| 1751 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1752 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1753 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1754 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1755 | >$cache_file |
| 1756 | fi |
| 1757 | |
| 1758 | # Check that the precious variables saved in the cache have kept the same |
| 1759 | # value. |
| 1760 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1761 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1762 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1763 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1764 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1765 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1766 | case $ac_old_set,$ac_new_set in |
| 1767 | set,) |
| 1768 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1769 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1770 | ac_cache_corrupted=: ;; |
| 1771 | ,set) |
| 1772 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1773 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1774 | ac_cache_corrupted=: ;; |
| 1775 | ,);; |
| 1776 | *) |
| 1777 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1778 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1779 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1780 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1781 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1782 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1783 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1784 | ac_cache_corrupted=: |
| 1785 | fi;; |
| 1786 | esac |
| 1787 | # Pass precious variables to config.status. |
| 1788 | if test "$ac_new_set" = set; then |
| 1789 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1790 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1791 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1792 | esac |
| 1793 | case " $ac_configure_args " in |
| 1794 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1795 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1796 | esac |
| 1797 | fi |
| 1798 | done |
| 1799 | if $ac_cache_corrupted; then |
| 1800 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1801 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1802 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1803 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1804 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1805 | fi |
| 1806 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1823 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1824 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1828 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1829 | |
| 1830 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1831 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1832 | for ac_dir in config "$srcdir"/config; do |
| 1833 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1834 | ac_aux_dir=$ac_dir |
| 1835 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1836 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1837 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1838 | ac_aux_dir=$ac_dir |
| 1839 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1840 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1841 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1842 | ac_aux_dir=$ac_dir |
| 1843 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1844 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1845 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1846 | done |
| 1847 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1848 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1849 | 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] | 1850 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1851 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1852 | |
| 1853 | # These three variables are undocumented and unsupported, |
| 1854 | # and are intended to be withdrawn in a future Autoconf release. |
| 1855 | # They can cause serious problems if a builder's source tree is in a directory |
| 1856 | # whose full name contains unusual characters. |
| 1857 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1858 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1859 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1860 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1861 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1862 | MCONFIG=./MCONFIG |
| 1863 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1864 | BINARY_TYPE=bin |
| 1865 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1866 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1867 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1868 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1869 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1870 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1871 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1872 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1873 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1874 | E2FSPROGS_YEAR=$YEAR |
| 1875 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1876 | E2FSPROGS_YEAR=19$YEAR |
| 1877 | else |
| 1878 | E2FSPROGS_YEAR=20$YEAR |
| 1879 | fi |
| 1880 | |
| 1881 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1882 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1883 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1884 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1885 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1886 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1887 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1888 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1889 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1890 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1891 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1892 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1893 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1894 | *) echo "Unknown month $MONTH??" ;; |
| 1895 | esac |
| 1896 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1897 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1898 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
| 1899 | pre_vers=`echo $base_ver 0.01 - p | dc` |
| 1900 | |
| 1901 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1902 | |
| 1903 | case $E2FSPROGS_VERSION in |
| 1904 | *-WIP|pre-*) |
| 1905 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1906 | ;; |
| 1907 | *) |
| 1908 | E2FSPROGS_PKGVER="$base_ver" |
| 1909 | ;; |
| 1910 | esac |
| 1911 | |
| 1912 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1913 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1914 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1915 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1916 | |
| 1917 | |
| 1918 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1919 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1920 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1921 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1922 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1923 | 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] | 1924 | { (exit 1); exit 1; }; } |
| 1925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1926 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1927 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1928 | if test "${ac_cv_build+set}" = set; then |
| 1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1930 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1931 | ac_build_alias=$build_alias |
| 1932 | test "x$ac_build_alias" = x && |
| 1933 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1934 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1935 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1936 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1937 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1938 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1939 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1940 | 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] | 1941 | { (exit 1); exit 1; }; } |
| 1942 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1943 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1944 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1945 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1946 | case $ac_cv_build in |
| 1947 | *-*-*) ;; |
| 1948 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1949 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1950 | { (exit 1); exit 1; }; };; |
| 1951 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1952 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1953 | ac_save_IFS=$IFS; IFS='-' |
| 1954 | set x $ac_cv_build |
| 1955 | shift |
| 1956 | build_cpu=$1 |
| 1957 | build_vendor=$2 |
| 1958 | shift; shift |
| 1959 | # Remember, the first character of IFS is used to create $*, |
| 1960 | # except with old shells: |
| 1961 | build_os=$* |
| 1962 | IFS=$ac_save_IFS |
| 1963 | 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] | 1964 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1966 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1967 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1968 | if test "${ac_cv_host+set}" = set; then |
| 1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1970 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1971 | if test "x$host_alias" = x; then |
| 1972 | ac_cv_host=$ac_cv_build |
| 1973 | else |
| 1974 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1975 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1976 | 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] | 1977 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1978 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1979 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1980 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1981 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1982 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1983 | case $ac_cv_host in |
| 1984 | *-*-*) ;; |
| 1985 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1986 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1987 | { (exit 1); exit 1; }; };; |
| 1988 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1989 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1990 | ac_save_IFS=$IFS; IFS='-' |
| 1991 | set x $ac_cv_host |
| 1992 | shift |
| 1993 | host_cpu=$1 |
| 1994 | host_vendor=$2 |
| 1995 | shift; shift |
| 1996 | # Remember, the first character of IFS is used to create $*, |
| 1997 | # except with old shells: |
| 1998 | host_os=$* |
| 1999 | IFS=$ac_save_IFS |
| 2000 | 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] | 2001 | |
| 2002 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2004 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2005 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2006 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2007 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2008 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2009 | fi |
| 2010 | |
| 2011 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2012 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2013 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2014 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2015 | CC=$withval |
| 2016 | else |
| 2017 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2018 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2019 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2020 | fi |
| 2021 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2023 | ac_ext=c |
| 2024 | ac_cpp='$CPP $CPPFLAGS' |
| 2025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2028 | if test -n "$ac_tool_prefix"; then |
| 2029 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2030 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2033 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2035 | else |
| 2036 | if test -n "$CC"; then |
| 2037 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2038 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2040 | for as_dir in $PATH |
| 2041 | do |
| 2042 | IFS=$as_save_IFS |
| 2043 | test -z "$as_dir" && as_dir=. |
| 2044 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2046 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2048 | break 2 |
| 2049 | fi |
| 2050 | done |
| 2051 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2052 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2053 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2054 | fi |
| 2055 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2056 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2057 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2058 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2059 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2060 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2062 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2063 | fi |
| 2064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2065 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2066 | fi |
| 2067 | if test -z "$ac_cv_prog_CC"; then |
| 2068 | ac_ct_CC=$CC |
| 2069 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2070 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2073 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2075 | else |
| 2076 | if test -n "$ac_ct_CC"; then |
| 2077 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2078 | else |
| 2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2080 | for as_dir in $PATH |
| 2081 | do |
| 2082 | IFS=$as_save_IFS |
| 2083 | test -z "$as_dir" && as_dir=. |
| 2084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2086 | ac_cv_prog_ac_ct_CC="gcc" |
| 2087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2088 | break 2 |
| 2089 | fi |
| 2090 | done |
| 2091 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2092 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2093 | |
| 2094 | fi |
| 2095 | fi |
| 2096 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2097 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2098 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2099 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2100 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2102 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2103 | fi |
| 2104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2105 | if test "x$ac_ct_CC" = x; then |
| 2106 | CC="" |
| 2107 | else |
| 2108 | case $cross_compiling:$ac_tool_warned in |
| 2109 | yes:) |
| 2110 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2111 | whose name does not start with the host triplet. If you think this |
| 2112 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2113 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2114 | whose name does not start with the host triplet. If you think this |
| 2115 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2116 | ac_tool_warned=yes ;; |
| 2117 | esac |
| 2118 | CC=$ac_ct_CC |
| 2119 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2120 | else |
| 2121 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2122 | fi |
| 2123 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2124 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2125 | if test -n "$ac_tool_prefix"; then |
| 2126 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2127 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2130 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2132 | else |
| 2133 | if test -n "$CC"; then |
| 2134 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2135 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2137 | for as_dir in $PATH |
| 2138 | do |
| 2139 | IFS=$as_save_IFS |
| 2140 | test -z "$as_dir" && as_dir=. |
| 2141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2143 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2145 | break 2 |
| 2146 | fi |
| 2147 | done |
| 2148 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2149 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2150 | |
| 2151 | fi |
| 2152 | fi |
| 2153 | CC=$ac_cv_prog_CC |
| 2154 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2155 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2156 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2157 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2159 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2160 | fi |
| 2161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2162 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2163 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2164 | fi |
| 2165 | if test -z "$CC"; then |
| 2166 | # Extract the first word of "cc", so it can be a program name with args. |
| 2167 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2170 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
| 2173 | if test -n "$CC"; then |
| 2174 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2175 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2176 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2178 | for as_dir in $PATH |
| 2179 | do |
| 2180 | IFS=$as_save_IFS |
| 2181 | test -z "$as_dir" && as_dir=. |
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2185 | ac_prog_rejected=yes |
| 2186 | continue |
| 2187 | fi |
| 2188 | ac_cv_prog_CC="cc" |
| 2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2190 | break 2 |
| 2191 | fi |
| 2192 | done |
| 2193 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2194 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2195 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2196 | if test $ac_prog_rejected = yes; then |
| 2197 | # We found a bogon in the path, so make sure we never use it. |
| 2198 | set dummy $ac_cv_prog_CC |
| 2199 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2200 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2201 | # We chose a different compiler from the bogus one. |
| 2202 | # However, it has the same basename, so the bogon will be chosen |
| 2203 | # first if we set CC to just the basename; use the full file name. |
| 2204 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2205 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2206 | fi |
| 2207 | fi |
| 2208 | fi |
| 2209 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2210 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2211 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2213 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2214 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2216 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2217 | fi |
| 2218 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2219 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2220 | fi |
| 2221 | if test -z "$CC"; then |
| 2222 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2223 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2224 | do |
| 2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2229 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2231 | else |
| 2232 | if test -n "$CC"; then |
| 2233 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2234 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2236 | for as_dir in $PATH |
| 2237 | do |
| 2238 | IFS=$as_save_IFS |
| 2239 | test -z "$as_dir" && as_dir=. |
| 2240 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2244 | break 2 |
| 2245 | fi |
| 2246 | done |
| 2247 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2248 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2249 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2250 | fi |
| 2251 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2252 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2255 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2258 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2259 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2260 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2262 | test -n "$CC" && break |
| 2263 | done |
| 2264 | fi |
| 2265 | if test -z "$CC"; then |
| 2266 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2267 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2268 | do |
| 2269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2270 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2273 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2275 | else |
| 2276 | if test -n "$ac_ct_CC"; then |
| 2277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2278 | else |
| 2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2280 | for as_dir in $PATH |
| 2281 | do |
| 2282 | IFS=$as_save_IFS |
| 2283 | test -z "$as_dir" && as_dir=. |
| 2284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2286 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2288 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2289 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2290 | done |
| 2291 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2292 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | |
| 2294 | fi |
| 2295 | fi |
| 2296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2297 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2298 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2299 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2300 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2302 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2303 | fi |
| 2304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2306 | test -n "$ac_ct_CC" && break |
| 2307 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2309 | if test "x$ac_ct_CC" = x; then |
| 2310 | CC="" |
| 2311 | else |
| 2312 | case $cross_compiling:$ac_tool_warned in |
| 2313 | yes:) |
| 2314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2315 | whose name does not start with the host triplet. If you think this |
| 2316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2318 | whose name does not start with the host triplet. If you think this |
| 2319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2320 | ac_tool_warned=yes ;; |
| 2321 | esac |
| 2322 | CC=$ac_ct_CC |
| 2323 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2324 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2325 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2326 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2327 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2329 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2330 | See \`config.log' for more details." >&5 |
| 2331 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2332 | See \`config.log' for more details." >&2;} |
| 2333 | { (exit 1); exit 1; }; } |
| 2334 | |
| 2335 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2337 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2338 | { (ac_try="$ac_compiler --version >&5" |
| 2339 | case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2344 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2348 | { (ac_try="$ac_compiler -v >&5" |
| 2349 | case "(($ac_try" in |
| 2350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2351 | *) ac_try_echo=$ac_try;; |
| 2352 | esac |
| 2353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2354 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2357 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2358 | { (ac_try="$ac_compiler -V >&5" |
| 2359 | case "(($ac_try" in |
| 2360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2361 | *) ac_try_echo=$ac_try;; |
| 2362 | esac |
| 2363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2364 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2365 | ac_status=$? |
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2367 | (exit $ac_status); } |
| 2368 | |
| 2369 | cat >conftest.$ac_ext <<_ACEOF |
| 2370 | /* confdefs.h. */ |
| 2371 | _ACEOF |
| 2372 | cat confdefs.h >>conftest.$ac_ext |
| 2373 | cat >>conftest.$ac_ext <<_ACEOF |
| 2374 | /* end confdefs.h. */ |
| 2375 | |
| 2376 | int |
| 2377 | main () |
| 2378 | { |
| 2379 | |
| 2380 | ; |
| 2381 | return 0; |
| 2382 | } |
| 2383 | _ACEOF |
| 2384 | ac_clean_files_save=$ac_clean_files |
| 2385 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2386 | # Try to create an executable without -o first, disregard a.out. |
| 2387 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2388 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2389 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2390 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2391 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2392 | # |
| 2393 | # List of possible output files, starting from the most likely. |
| 2394 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2395 | # only as a last resort. b.out is created by i960 compilers. |
| 2396 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2397 | # |
| 2398 | # The IRIX 6 linker writes into existing files which may not be |
| 2399 | # executable, retaining their permissions. Remove them first so a |
| 2400 | # subsequent execution test works. |
| 2401 | ac_rmfiles= |
| 2402 | for ac_file in $ac_files |
| 2403 | do |
| 2404 | case $ac_file in |
| 2405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2406 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2407 | esac |
| 2408 | done |
| 2409 | rm -f $ac_rmfiles |
| 2410 | |
| 2411 | if { (ac_try="$ac_link_default" |
| 2412 | case "(($ac_try" in |
| 2413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2414 | *) ac_try_echo=$ac_try;; |
| 2415 | esac |
| 2416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2417 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2418 | ac_status=$? |
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2420 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2421 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2422 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2423 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2424 | # so that the user can short-circuit this test for compilers unknown to |
| 2425 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2426 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2427 | do |
| 2428 | test -f "$ac_file" || continue |
| 2429 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2431 | ;; |
| 2432 | [ab].out ) |
| 2433 | # We found the default executable, but exeext='' is most |
| 2434 | # certainly right. |
| 2435 | break;; |
| 2436 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2438 | then :; else |
| 2439 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2440 | fi |
| 2441 | # We set ac_cv_exeext here because the later test for it is not |
| 2442 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2443 | # argument, so we may need to know it at that point already. |
| 2444 | # Even if this section looks crufty: it has the advantage of |
| 2445 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | break;; |
| 2447 | * ) |
| 2448 | break;; |
| 2449 | esac |
| 2450 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2451 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2454 | ac_file='' |
| 2455 | fi |
| 2456 | |
| 2457 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2458 | echo "${ECHO_T}$ac_file" >&6; } |
| 2459 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | echo "$as_me: failed program was:" >&5 |
| 2461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2462 | |
| 2463 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2464 | See \`config.log' for more details." >&5 |
| 2465 | echo "$as_me: error: C compiler cannot create executables |
| 2466 | See \`config.log' for more details." >&2;} |
| 2467 | { (exit 77); exit 77; }; } |
| 2468 | fi |
| 2469 | |
| 2470 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2471 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2472 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2473 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2475 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2476 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2477 | # If not cross compiling, check that we can run a simple program. |
| 2478 | if test "$cross_compiling" != yes; then |
| 2479 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2480 | { (case "(($ac_try" in |
| 2481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2482 | *) ac_try_echo=$ac_try;; |
| 2483 | esac |
| 2484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2485 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | ac_status=$? |
| 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2488 | (exit $ac_status); }; }; then |
| 2489 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | if test "$cross_compiling" = maybe; then |
| 2492 | cross_compiling=yes |
| 2493 | else |
| 2494 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2495 | If you meant to cross compile, use \`--host'. |
| 2496 | See \`config.log' for more details." >&5 |
| 2497 | echo "$as_me: error: cannot run C compiled programs. |
| 2498 | If you meant to cross compile, use \`--host'. |
| 2499 | See \`config.log' for more details." >&2;} |
| 2500 | { (exit 1); exit 1; }; } |
| 2501 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2502 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2503 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2505 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2506 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2507 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2508 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2509 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2511 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2512 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2513 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2514 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2516 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2517 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2518 | if { (ac_try="$ac_link" |
| 2519 | case "(($ac_try" in |
| 2520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2521 | *) ac_try_echo=$ac_try;; |
| 2522 | esac |
| 2523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2524 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | ac_status=$? |
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2527 | (exit $ac_status); }; then |
| 2528 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2529 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2530 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2531 | # `rm'. |
| 2532 | for ac_file in conftest.exe conftest conftest.*; do |
| 2533 | test -f "$ac_file" || continue |
| 2534 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2535 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2536 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2537 | break;; |
| 2538 | * ) break;; |
| 2539 | esac |
| 2540 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2542 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2543 | See \`config.log' for more details." >&5 |
| 2544 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2545 | See \`config.log' for more details." >&2;} |
| 2546 | { (exit 1); exit 1; }; } |
| 2547 | fi |
| 2548 | |
| 2549 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2551 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | |
| 2553 | rm -f conftest.$ac_ext |
| 2554 | EXEEXT=$ac_cv_exeext |
| 2555 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2557 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2558 | if test "${ac_cv_objext+set}" = set; then |
| 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2560 | else |
| 2561 | cat >conftest.$ac_ext <<_ACEOF |
| 2562 | /* confdefs.h. */ |
| 2563 | _ACEOF |
| 2564 | cat confdefs.h >>conftest.$ac_ext |
| 2565 | cat >>conftest.$ac_ext <<_ACEOF |
| 2566 | /* end confdefs.h. */ |
| 2567 | |
| 2568 | int |
| 2569 | main () |
| 2570 | { |
| 2571 | |
| 2572 | ; |
| 2573 | return 0; |
| 2574 | } |
| 2575 | _ACEOF |
| 2576 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2577 | if { (ac_try="$ac_compile" |
| 2578 | case "(($ac_try" in |
| 2579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2580 | *) ac_try_echo=$ac_try;; |
| 2581 | esac |
| 2582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2583 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2584 | ac_status=$? |
| 2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2586 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2587 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2588 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2589 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2592 | break;; |
| 2593 | esac |
| 2594 | done |
| 2595 | else |
| 2596 | echo "$as_me: failed program was:" >&5 |
| 2597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2598 | |
| 2599 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2600 | See \`config.log' for more details." >&5 |
| 2601 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2602 | See \`config.log' for more details." >&2;} |
| 2603 | { (exit 1); exit 1; }; } |
| 2604 | fi |
| 2605 | |
| 2606 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2609 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2610 | OBJEXT=$ac_cv_objext |
| 2611 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2613 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2614 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2616 | else |
| 2617 | cat >conftest.$ac_ext <<_ACEOF |
| 2618 | /* confdefs.h. */ |
| 2619 | _ACEOF |
| 2620 | cat confdefs.h >>conftest.$ac_ext |
| 2621 | cat >>conftest.$ac_ext <<_ACEOF |
| 2622 | /* end confdefs.h. */ |
| 2623 | |
| 2624 | int |
| 2625 | main () |
| 2626 | { |
| 2627 | #ifndef __GNUC__ |
| 2628 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2629 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2630 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2636 | if { (ac_try="$ac_compile" |
| 2637 | case "(($ac_try" in |
| 2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2639 | *) ac_try_echo=$ac_try;; |
| 2640 | esac |
| 2641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2642 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2643 | ac_status=$? |
| 2644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2645 | rm -f conftest.er1 |
| 2646 | cat conftest.err >&5 |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2648 | (exit $ac_status); } && { |
| 2649 | test -z "$ac_c_werror_flag" || |
| 2650 | test ! -s conftest.err |
| 2651 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2652 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2653 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2654 | echo "$as_me: failed program was:" >&5 |
| 2655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2657 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2658 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2659 | |
| 2660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2661 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2665 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2666 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2667 | ac_test_CFLAGS=${CFLAGS+set} |
| 2668 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2669 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2670 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2671 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2673 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2674 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2675 | ac_c_werror_flag=yes |
| 2676 | ac_cv_prog_cc_g=no |
| 2677 | CFLAGS="-g" |
| 2678 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2679 | /* confdefs.h. */ |
| 2680 | _ACEOF |
| 2681 | cat confdefs.h >>conftest.$ac_ext |
| 2682 | cat >>conftest.$ac_ext <<_ACEOF |
| 2683 | /* end confdefs.h. */ |
| 2684 | |
| 2685 | int |
| 2686 | main () |
| 2687 | { |
| 2688 | |
| 2689 | ; |
| 2690 | return 0; |
| 2691 | } |
| 2692 | _ACEOF |
| 2693 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2694 | if { (ac_try="$ac_compile" |
| 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
| 2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2700 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2701 | ac_status=$? |
| 2702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2703 | rm -f conftest.er1 |
| 2704 | cat conftest.err >&5 |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2706 | (exit $ac_status); } && { |
| 2707 | test -z "$ac_c_werror_flag" || |
| 2708 | test ! -s conftest.err |
| 2709 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2710 | ac_cv_prog_cc_g=yes |
| 2711 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2712 | echo "$as_me: failed program was:" >&5 |
| 2713 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2714 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2715 | CFLAGS="" |
| 2716 | cat >conftest.$ac_ext <<_ACEOF |
| 2717 | /* confdefs.h. */ |
| 2718 | _ACEOF |
| 2719 | cat confdefs.h >>conftest.$ac_ext |
| 2720 | cat >>conftest.$ac_ext <<_ACEOF |
| 2721 | /* end confdefs.h. */ |
| 2722 | |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | |
| 2727 | ; |
| 2728 | return 0; |
| 2729 | } |
| 2730 | _ACEOF |
| 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (ac_try="$ac_compile" |
| 2733 | case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_compile") 2>conftest.er1 |
| 2739 | ac_status=$? |
| 2740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2741 | rm -f conftest.er1 |
| 2742 | cat conftest.err >&5 |
| 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2744 | (exit $ac_status); } && { |
| 2745 | test -z "$ac_c_werror_flag" || |
| 2746 | test ! -s conftest.err |
| 2747 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2748 | : |
| 2749 | else |
| 2750 | echo "$as_me: failed program was:" >&5 |
| 2751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2752 | |
| 2753 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2754 | CFLAGS="-g" |
| 2755 | cat >conftest.$ac_ext <<_ACEOF |
| 2756 | /* confdefs.h. */ |
| 2757 | _ACEOF |
| 2758 | cat confdefs.h >>conftest.$ac_ext |
| 2759 | cat >>conftest.$ac_ext <<_ACEOF |
| 2760 | /* end confdefs.h. */ |
| 2761 | |
| 2762 | int |
| 2763 | main () |
| 2764 | { |
| 2765 | |
| 2766 | ; |
| 2767 | return 0; |
| 2768 | } |
| 2769 | _ACEOF |
| 2770 | rm -f conftest.$ac_objext |
| 2771 | if { (ac_try="$ac_compile" |
| 2772 | case "(($ac_try" in |
| 2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2774 | *) ac_try_echo=$ac_try;; |
| 2775 | esac |
| 2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2777 | (eval "$ac_compile") 2>conftest.er1 |
| 2778 | ac_status=$? |
| 2779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2780 | rm -f conftest.er1 |
| 2781 | cat conftest.err >&5 |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2783 | (exit $ac_status); } && { |
| 2784 | test -z "$ac_c_werror_flag" || |
| 2785 | test ! -s conftest.err |
| 2786 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2787 | ac_cv_prog_cc_g=yes |
| 2788 | else |
| 2789 | echo "$as_me: failed program was:" >&5 |
| 2790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2791 | |
| 2792 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2793 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2794 | |
| 2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | |
| 2798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2799 | fi |
| 2800 | |
| 2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2802 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2803 | fi |
| 2804 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2805 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2806 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2807 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2808 | elif test $ac_cv_prog_cc_g = yes; then |
| 2809 | if test "$GCC" = yes; then |
| 2810 | CFLAGS="-g -O2" |
| 2811 | else |
| 2812 | CFLAGS="-g" |
| 2813 | fi |
| 2814 | else |
| 2815 | if test "$GCC" = yes; then |
| 2816 | CFLAGS="-O2" |
| 2817 | else |
| 2818 | CFLAGS= |
| 2819 | fi |
| 2820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2821 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2822 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2823 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2825 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2826 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2827 | ac_save_CC=$CC |
| 2828 | cat >conftest.$ac_ext <<_ACEOF |
| 2829 | /* confdefs.h. */ |
| 2830 | _ACEOF |
| 2831 | cat confdefs.h >>conftest.$ac_ext |
| 2832 | cat >>conftest.$ac_ext <<_ACEOF |
| 2833 | /* end confdefs.h. */ |
| 2834 | #include <stdarg.h> |
| 2835 | #include <stdio.h> |
| 2836 | #include <sys/types.h> |
| 2837 | #include <sys/stat.h> |
| 2838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2839 | struct buf { int x; }; |
| 2840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2841 | static char *e (p, i) |
| 2842 | char **p; |
| 2843 | int i; |
| 2844 | { |
| 2845 | return p[i]; |
| 2846 | } |
| 2847 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2848 | { |
| 2849 | char *s; |
| 2850 | va_list v; |
| 2851 | va_start (v,p); |
| 2852 | s = g (p, va_arg (v,int)); |
| 2853 | va_end (v); |
| 2854 | return s; |
| 2855 | } |
| 2856 | |
| 2857 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2858 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2859 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2860 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2861 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2862 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2863 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2867 | inside strings and character constants. */ |
| 2868 | #define FOO(x) 'x' |
| 2869 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | int test (int i, double x); |
| 2872 | struct s1 {int (*f) (int a);}; |
| 2873 | struct s2 {int (*f) (double a);}; |
| 2874 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2875 | int argc; |
| 2876 | char **argv; |
| 2877 | int |
| 2878 | main () |
| 2879 | { |
| 2880 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2881 | ; |
| 2882 | return 0; |
| 2883 | } |
| 2884 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2885 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2886 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2887 | do |
| 2888 | CC="$ac_save_CC $ac_arg" |
| 2889 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2890 | if { (ac_try="$ac_compile" |
| 2891 | case "(($ac_try" in |
| 2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2893 | *) ac_try_echo=$ac_try;; |
| 2894 | esac |
| 2895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2896 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2897 | ac_status=$? |
| 2898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2899 | rm -f conftest.er1 |
| 2900 | cat conftest.err >&5 |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2902 | (exit $ac_status); } && { |
| 2903 | test -z "$ac_c_werror_flag" || |
| 2904 | test ! -s conftest.err |
| 2905 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2906 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2907 | else |
| 2908 | echo "$as_me: failed program was:" >&5 |
| 2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2911 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2912 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | |
| 2914 | rm -f core conftest.err conftest.$ac_objext |
| 2915 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2916 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2917 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | CC=$ac_save_CC |
| 2919 | |
| 2920 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2921 | # AC_CACHE_VAL |
| 2922 | case "x$ac_cv_prog_cc_c89" in |
| 2923 | x) |
| 2924 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2925 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2926 | xno) |
| 2927 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2928 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2929 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2930 | CC="$CC $ac_cv_prog_cc_c89" |
| 2931 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2932 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | esac |
| 2934 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | ac_ext=c |
| 2937 | ac_cpp='$CPP $CPPFLAGS' |
| 2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2942 | ac_ext=c |
| 2943 | ac_cpp='$CPP $CPPFLAGS' |
| 2944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2947 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2948 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2949 | # On Suns, sometimes $CPP names a directory. |
| 2950 | if test -n "$CPP" && test -d "$CPP"; then |
| 2951 | CPP= |
| 2952 | fi |
| 2953 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | # Double quotes because CPP needs to be expanded |
| 2958 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2959 | do |
| 2960 | ac_preproc_ok=false |
| 2961 | for ac_c_preproc_warn_flag in '' yes |
| 2962 | do |
| 2963 | # Use a header file that comes with gcc, so configuring glibc |
| 2964 | # with a fresh cross-compiler works. |
| 2965 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2966 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2967 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2968 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2969 | cat >conftest.$ac_ext <<_ACEOF |
| 2970 | /* confdefs.h. */ |
| 2971 | _ACEOF |
| 2972 | cat confdefs.h >>conftest.$ac_ext |
| 2973 | cat >>conftest.$ac_ext <<_ACEOF |
| 2974 | /* end confdefs.h. */ |
| 2975 | #ifdef __STDC__ |
| 2976 | # include <limits.h> |
| 2977 | #else |
| 2978 | # include <assert.h> |
| 2979 | #endif |
| 2980 | Syntax error |
| 2981 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2982 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2983 | case "(($ac_try" in |
| 2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2985 | *) ac_try_echo=$ac_try;; |
| 2986 | esac |
| 2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2989 | ac_status=$? |
| 2990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2991 | rm -f conftest.er1 |
| 2992 | cat conftest.err >&5 |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2994 | (exit $ac_status); } >/dev/null && { |
| 2995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2996 | test ! -s conftest.err |
| 2997 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2998 | : |
| 2999 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3000 | echo "$as_me: failed program was:" >&5 |
| 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3002 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | # Broken: fails on valid input. |
| 3004 | continue |
| 3005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | rm -f conftest.err conftest.$ac_ext |
| 3008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3009 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | # can be detected and how. |
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
| 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
| 3016 | /* end confdefs.h. */ |
| 3017 | #include <ac_nonexistent.h> |
| 3018 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3020 | case "(($ac_try" in |
| 3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3022 | *) ac_try_echo=$ac_try;; |
| 3023 | esac |
| 3024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3026 | ac_status=$? |
| 3027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3028 | rm -f conftest.er1 |
| 3029 | cat conftest.err >&5 |
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3031 | (exit $ac_status); } >/dev/null && { |
| 3032 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3033 | test ! -s conftest.err |
| 3034 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | # Broken: success on invalid input. |
| 3036 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3037 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | echo "$as_me: failed program was:" >&5 |
| 3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3040 | |
| 3041 | # Passes both tests. |
| 3042 | ac_preproc_ok=: |
| 3043 | break |
| 3044 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3046 | rm -f conftest.err conftest.$ac_ext |
| 3047 | |
| 3048 | done |
| 3049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3050 | rm -f conftest.err conftest.$ac_ext |
| 3051 | if $ac_preproc_ok; then |
| 3052 | break |
| 3053 | fi |
| 3054 | |
| 3055 | done |
| 3056 | ac_cv_prog_CPP=$CPP |
| 3057 | |
| 3058 | fi |
| 3059 | CPP=$ac_cv_prog_CPP |
| 3060 | else |
| 3061 | ac_cv_prog_CPP=$CPP |
| 3062 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3063 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3064 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | ac_preproc_ok=false |
| 3066 | for ac_c_preproc_warn_flag in '' yes |
| 3067 | do |
| 3068 | # Use a header file that comes with gcc, so configuring glibc |
| 3069 | # with a fresh cross-compiler works. |
| 3070 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3071 | # <limits.h> exists even on freestanding compilers. |
| 3072 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3073 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3074 | cat >conftest.$ac_ext <<_ACEOF |
| 3075 | /* confdefs.h. */ |
| 3076 | _ACEOF |
| 3077 | cat confdefs.h >>conftest.$ac_ext |
| 3078 | cat >>conftest.$ac_ext <<_ACEOF |
| 3079 | /* end confdefs.h. */ |
| 3080 | #ifdef __STDC__ |
| 3081 | # include <limits.h> |
| 3082 | #else |
| 3083 | # include <assert.h> |
| 3084 | #endif |
| 3085 | Syntax error |
| 3086 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3087 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
| 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3093 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3094 | ac_status=$? |
| 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3099 | (exit $ac_status); } >/dev/null && { |
| 3100 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3101 | test ! -s conftest.err |
| 3102 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | : |
| 3104 | else |
| 3105 | echo "$as_me: failed program was:" >&5 |
| 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | # Broken: fails on valid input. |
| 3109 | continue |
| 3110 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3111 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3112 | rm -f conftest.err conftest.$ac_ext |
| 3113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3114 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3115 | # can be detected and how. |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | #include <ac_nonexistent.h> |
| 3123 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3124 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3125 | case "(($ac_try" in |
| 3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3127 | *) ac_try_echo=$ac_try;; |
| 3128 | esac |
| 3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3136 | (exit $ac_status); } >/dev/null && { |
| 3137 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3138 | test ! -s conftest.err |
| 3139 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3140 | # Broken: success on invalid input. |
| 3141 | continue |
| 3142 | else |
| 3143 | echo "$as_me: failed program was:" >&5 |
| 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3145 | |
| 3146 | # Passes both tests. |
| 3147 | ac_preproc_ok=: |
| 3148 | break |
| 3149 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3150 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | rm -f conftest.err conftest.$ac_ext |
| 3152 | |
| 3153 | done |
| 3154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | if $ac_preproc_ok; then |
| 3157 | : |
| 3158 | else |
| 3159 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3160 | See \`config.log' for more details." >&5 |
| 3161 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3162 | See \`config.log' for more details." >&2;} |
| 3163 | { (exit 1); exit 1; }; } |
| 3164 | fi |
| 3165 | |
| 3166 | ac_ext=c |
| 3167 | ac_cpp='$CPP $CPPFLAGS' |
| 3168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3171 | |
| 3172 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3173 | # Check whether --with-linker was given. |
| 3174 | if test "${with_linker+set}" = set; then |
| 3175 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3176 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3177 | LD=$withval |
| 3178 | else |
| 3179 | if test -z "$LD" ; then LD=$CC; fi |
| 3180 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3181 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3182 | fi |
| 3183 | export LD |
| 3184 | |
| 3185 | |
| 3186 | # Check whether --with-ccopts was given. |
| 3187 | if test "${with_ccopts+set}" = set; then |
| 3188 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3189 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3190 | CFLAGS=$withval |
| 3191 | fi |
| 3192 | |
| 3193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3194 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3195 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3196 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3198 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3199 | # Extract the first word of "grep ggrep" to use in msg output |
| 3200 | if test -z "$GREP"; then |
| 3201 | set dummy grep ggrep; ac_prog_name=$2 |
| 3202 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3204 | else |
| 3205 | ac_path_GREP_found=false |
| 3206 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3208 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3209 | do |
| 3210 | IFS=$as_save_IFS |
| 3211 | test -z "$as_dir" && as_dir=. |
| 3212 | for ac_prog in grep ggrep; do |
| 3213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3214 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3215 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3216 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3217 | # Check for GNU $ac_path_GREP |
| 3218 | case `"$ac_path_GREP" --version 2>&1` in |
| 3219 | *GNU*) |
| 3220 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3221 | *) |
| 3222 | ac_count=0 |
| 3223 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3224 | while : |
| 3225 | do |
| 3226 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3227 | mv "conftest.tmp" "conftest.in" |
| 3228 | cp "conftest.in" "conftest.nl" |
| 3229 | echo 'GREP' >> "conftest.nl" |
| 3230 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3231 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3232 | ac_count=`expr $ac_count + 1` |
| 3233 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3234 | # Best one so far, save it but keep looking for a better one |
| 3235 | ac_cv_path_GREP="$ac_path_GREP" |
| 3236 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3237 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3238 | # 10*(2^10) chars as input seems more than enough |
| 3239 | test $ac_count -gt 10 && break |
| 3240 | done |
| 3241 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3242 | esac |
| 3243 | |
| 3244 | |
| 3245 | $ac_path_GREP_found && break 3 |
| 3246 | done |
| 3247 | done |
| 3248 | |
| 3249 | done |
| 3250 | IFS=$as_save_IFS |
| 3251 | |
| 3252 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3253 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3254 | |
| 3255 | GREP="$ac_cv_path_GREP" |
| 3256 | if test -z "$GREP"; then |
| 3257 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3258 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3259 | { (exit 1); exit 1; }; } |
| 3260 | fi |
| 3261 | |
| 3262 | else |
| 3263 | ac_cv_path_GREP=$GREP |
| 3264 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3265 | |
| 3266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3267 | fi |
| 3268 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3269 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3270 | GREP="$ac_cv_path_GREP" |
| 3271 | |
| 3272 | |
| 3273 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3274 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3275 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3277 | else |
| 3278 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3279 | then ac_cv_path_EGREP="$GREP -E" |
| 3280 | else |
| 3281 | # Extract the first word of "egrep" to use in msg output |
| 3282 | if test -z "$EGREP"; then |
| 3283 | set dummy egrep; ac_prog_name=$2 |
| 3284 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3286 | else |
| 3287 | ac_path_EGREP_found=false |
| 3288 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3290 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3291 | do |
| 3292 | IFS=$as_save_IFS |
| 3293 | test -z "$as_dir" && as_dir=. |
| 3294 | for ac_prog in egrep; do |
| 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3296 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3297 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3298 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3299 | # Check for GNU $ac_path_EGREP |
| 3300 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3301 | *GNU*) |
| 3302 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3303 | *) |
| 3304 | ac_count=0 |
| 3305 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3306 | while : |
| 3307 | do |
| 3308 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3309 | mv "conftest.tmp" "conftest.in" |
| 3310 | cp "conftest.in" "conftest.nl" |
| 3311 | echo 'EGREP' >> "conftest.nl" |
| 3312 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3314 | ac_count=`expr $ac_count + 1` |
| 3315 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3316 | # Best one so far, save it but keep looking for a better one |
| 3317 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3318 | ac_path_EGREP_max=$ac_count |
| 3319 | fi |
| 3320 | # 10*(2^10) chars as input seems more than enough |
| 3321 | test $ac_count -gt 10 && break |
| 3322 | done |
| 3323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3324 | esac |
| 3325 | |
| 3326 | |
| 3327 | $ac_path_EGREP_found && break 3 |
| 3328 | done |
| 3329 | done |
| 3330 | |
| 3331 | done |
| 3332 | IFS=$as_save_IFS |
| 3333 | |
| 3334 | |
| 3335 | fi |
| 3336 | |
| 3337 | EGREP="$ac_cv_path_EGREP" |
| 3338 | if test -z "$EGREP"; then |
| 3339 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3340 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3341 | { (exit 1); exit 1; }; } |
| 3342 | fi |
| 3343 | |
| 3344 | else |
| 3345 | ac_cv_path_EGREP=$EGREP |
| 3346 | fi |
| 3347 | |
| 3348 | |
| 3349 | fi |
| 3350 | fi |
| 3351 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3352 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3353 | EGREP="$ac_cv_path_EGREP" |
| 3354 | |
| 3355 | |
| 3356 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3357 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3358 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3360 | else |
| 3361 | cat >conftest.$ac_ext <<_ACEOF |
| 3362 | /* confdefs.h. */ |
| 3363 | _ACEOF |
| 3364 | cat confdefs.h >>conftest.$ac_ext |
| 3365 | cat >>conftest.$ac_ext <<_ACEOF |
| 3366 | /* end confdefs.h. */ |
| 3367 | #include <stdlib.h> |
| 3368 | #include <stdarg.h> |
| 3369 | #include <string.h> |
| 3370 | #include <float.h> |
| 3371 | |
| 3372 | int |
| 3373 | main () |
| 3374 | { |
| 3375 | |
| 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3381 | if { (ac_try="$ac_compile" |
| 3382 | case "(($ac_try" in |
| 3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3384 | *) ac_try_echo=$ac_try;; |
| 3385 | esac |
| 3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3387 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3388 | ac_status=$? |
| 3389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3390 | rm -f conftest.er1 |
| 3391 | cat conftest.err >&5 |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3393 | (exit $ac_status); } && { |
| 3394 | test -z "$ac_c_werror_flag" || |
| 3395 | test ! -s conftest.err |
| 3396 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3397 | ac_cv_header_stdc=yes |
| 3398 | else |
| 3399 | echo "$as_me: failed program was:" >&5 |
| 3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3401 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3402 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3403 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3404 | |
| 3405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3406 | |
| 3407 | if test $ac_cv_header_stdc = yes; then |
| 3408 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3409 | cat >conftest.$ac_ext <<_ACEOF |
| 3410 | /* confdefs.h. */ |
| 3411 | _ACEOF |
| 3412 | cat confdefs.h >>conftest.$ac_ext |
| 3413 | cat >>conftest.$ac_ext <<_ACEOF |
| 3414 | /* end confdefs.h. */ |
| 3415 | #include <string.h> |
| 3416 | |
| 3417 | _ACEOF |
| 3418 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3419 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3420 | : |
| 3421 | else |
| 3422 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3423 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3424 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3425 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3426 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | |
| 3428 | if test $ac_cv_header_stdc = yes; then |
| 3429 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3430 | cat >conftest.$ac_ext <<_ACEOF |
| 3431 | /* confdefs.h. */ |
| 3432 | _ACEOF |
| 3433 | cat confdefs.h >>conftest.$ac_ext |
| 3434 | cat >>conftest.$ac_ext <<_ACEOF |
| 3435 | /* end confdefs.h. */ |
| 3436 | #include <stdlib.h> |
| 3437 | |
| 3438 | _ACEOF |
| 3439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3440 | $EGREP "free" >/dev/null 2>&1; then |
| 3441 | : |
| 3442 | else |
| 3443 | ac_cv_header_stdc=no |
| 3444 | fi |
| 3445 | rm -f conftest* |
| 3446 | |
| 3447 | fi |
| 3448 | |
| 3449 | if test $ac_cv_header_stdc = yes; then |
| 3450 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3451 | if test "$cross_compiling" = yes; then |
| 3452 | : |
| 3453 | else |
| 3454 | cat >conftest.$ac_ext <<_ACEOF |
| 3455 | /* confdefs.h. */ |
| 3456 | _ACEOF |
| 3457 | cat confdefs.h >>conftest.$ac_ext |
| 3458 | cat >>conftest.$ac_ext <<_ACEOF |
| 3459 | /* end confdefs.h. */ |
| 3460 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3461 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3462 | #if ((' ' & 0x0FF) == 0x020) |
| 3463 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3464 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3465 | #else |
| 3466 | # define ISLOWER(c) \ |
| 3467 | (('a' <= (c) && (c) <= 'i') \ |
| 3468 | || ('j' <= (c) && (c) <= 'r') \ |
| 3469 | || ('s' <= (c) && (c) <= 'z')) |
| 3470 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3471 | #endif |
| 3472 | |
| 3473 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3474 | int |
| 3475 | main () |
| 3476 | { |
| 3477 | int i; |
| 3478 | for (i = 0; i < 256; i++) |
| 3479 | if (XOR (islower (i), ISLOWER (i)) |
| 3480 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3481 | return 2; |
| 3482 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3483 | } |
| 3484 | _ACEOF |
| 3485 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3486 | if { (ac_try="$ac_link" |
| 3487 | case "(($ac_try" in |
| 3488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3489 | *) ac_try_echo=$ac_try;; |
| 3490 | esac |
| 3491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3492 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3493 | ac_status=$? |
| 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3495 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3496 | { (case "(($ac_try" in |
| 3497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3498 | *) ac_try_echo=$ac_try;; |
| 3499 | esac |
| 3500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3501 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3502 | ac_status=$? |
| 3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3504 | (exit $ac_status); }; }; then |
| 3505 | : |
| 3506 | else |
| 3507 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3508 | echo "$as_me: failed program was:" >&5 |
| 3509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3510 | |
| 3511 | ( exit $ac_status ) |
| 3512 | ac_cv_header_stdc=no |
| 3513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3515 | fi |
| 3516 | |
| 3517 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3518 | fi |
| 3519 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3520 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3521 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3522 | if test $ac_cv_header_stdc = yes; then |
| 3523 | |
| 3524 | cat >>confdefs.h <<\_ACEOF |
| 3525 | #define STDC_HEADERS 1 |
| 3526 | _ACEOF |
| 3527 | |
| 3528 | fi |
| 3529 | |
| 3530 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3531 | |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3541 | inttypes.h stdint.h unistd.h |
| 3542 | do |
| 3543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3544 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3548 | else |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | $ac_includes_default |
| 3556 | |
| 3557 | #include <$ac_header> |
| 3558 | _ACEOF |
| 3559 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3560 | if { (ac_try="$ac_compile" |
| 3561 | case "(($ac_try" in |
| 3562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3563 | *) ac_try_echo=$ac_try;; |
| 3564 | esac |
| 3565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3566 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3567 | ac_status=$? |
| 3568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3569 | rm -f conftest.er1 |
| 3570 | cat conftest.err >&5 |
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3572 | (exit $ac_status); } && { |
| 3573 | test -z "$ac_c_werror_flag" || |
| 3574 | test ! -s conftest.err |
| 3575 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3576 | eval "$as_ac_Header=yes" |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3581 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3583 | |
| 3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3588 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3590 | cat >>confdefs.h <<_ACEOF |
| 3591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3592 | _ACEOF |
| 3593 | |
| 3594 | fi |
| 3595 | |
| 3596 | done |
| 3597 | |
| 3598 | |
| 3599 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3600 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3601 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3604 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3605 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3606 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3607 | else |
| 3608 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3609 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3610 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3611 | cat >conftest.$ac_ext <<_ACEOF |
| 3612 | /* confdefs.h. */ |
| 3613 | _ACEOF |
| 3614 | cat confdefs.h >>conftest.$ac_ext |
| 3615 | cat >>conftest.$ac_ext <<_ACEOF |
| 3616 | /* end confdefs.h. */ |
| 3617 | $ac_includes_default |
| 3618 | #include <linux/fs.h> |
| 3619 | _ACEOF |
| 3620 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3621 | if { (ac_try="$ac_compile" |
| 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
| 3626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3627 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3628 | ac_status=$? |
| 3629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3630 | rm -f conftest.er1 |
| 3631 | cat conftest.err >&5 |
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3633 | (exit $ac_status); } && { |
| 3634 | test -z "$ac_c_werror_flag" || |
| 3635 | test ! -s conftest.err |
| 3636 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3637 | ac_header_compiler=yes |
| 3638 | else |
| 3639 | echo "$as_me: failed program was:" >&5 |
| 3640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3642 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3644 | |
| 3645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3646 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3647 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3648 | |
| 3649 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3650 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3651 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | cat >conftest.$ac_ext <<_ACEOF |
| 3653 | /* confdefs.h. */ |
| 3654 | _ACEOF |
| 3655 | cat confdefs.h >>conftest.$ac_ext |
| 3656 | cat >>conftest.$ac_ext <<_ACEOF |
| 3657 | /* end confdefs.h. */ |
| 3658 | #include <linux/fs.h> |
| 3659 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3661 | case "(($ac_try" in |
| 3662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3663 | *) ac_try_echo=$ac_try;; |
| 3664 | esac |
| 3665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3667 | ac_status=$? |
| 3668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3669 | rm -f conftest.er1 |
| 3670 | cat conftest.err >&5 |
| 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3672 | (exit $ac_status); } >/dev/null && { |
| 3673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3674 | test ! -s conftest.err |
| 3675 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3676 | ac_header_preproc=yes |
| 3677 | else |
| 3678 | echo "$as_me: failed program was:" >&5 |
| 3679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3680 | |
| 3681 | ac_header_preproc=no |
| 3682 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3683 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3684 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3685 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3686 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3687 | |
| 3688 | # So? What about this header? |
| 3689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3690 | yes:no: ) |
| 3691 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3692 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3693 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3694 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3695 | ac_header_preproc=yes |
| 3696 | ;; |
| 3697 | no:yes:* ) |
| 3698 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3699 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3700 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3701 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3702 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3703 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3704 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3705 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3706 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3707 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3708 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3709 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3711 | ;; |
| 3712 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3713 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3714 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3715 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3717 | else |
| 3718 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3720 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3721 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3722 | |
| 3723 | fi |
| 3724 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3725 | linux_headers=yes |
| 3726 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3727 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3728 | fi |
| 3729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3730 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3731 | if test "$linux_headers" != yes; then |
| 3732 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3733 | fi |
| 3734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3735 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3736 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3737 | if test "$GCC" = yes |
| 3738 | then |
| 3739 | case "$host_cpu" in |
| 3740 | alpha) addcflags="-mieee" ;; |
| 3741 | esac |
| 3742 | fi |
| 3743 | if test "x$addcflags" != x |
| 3744 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3745 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3746 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3747 | CFLAGS="$addcflags $CFLAGS" |
| 3748 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3749 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3750 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3751 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3752 | LIB_EXT=.a |
| 3753 | STATIC_LIB_EXT=.a |
| 3754 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3755 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3756 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3757 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3758 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3759 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3760 | LDFLAGS=$withval |
| 3761 | else |
| 3762 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3763 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3765 | |
| 3766 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3767 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3768 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3769 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3770 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3771 | fi |
| 3772 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3773 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3774 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3775 | then |
| 3776 | MAINTAINER_CMT=# |
| 3777 | echo "Disabling maintainer mode" |
| 3778 | else |
| 3779 | MAINTAINER_CMT= |
| 3780 | echo "Enabling maintainer mode" |
| 3781 | fi |
| 3782 | |
| 3783 | else |
| 3784 | MAINTAINER_CMT=# |
| 3785 | echo "Disabling maintainer mode by default" |
| 3786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3787 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3789 | |
| 3790 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3791 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3792 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3793 | then |
| 3794 | echo "Disabling compression support" |
| 3795 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3796 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3797 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3798 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3799 | |
| 3800 | echo "Enabling compression support" |
| 3801 | echo "WARNING: Compression support is experimental" |
| 3802 | fi |
| 3803 | |
| 3804 | else |
| 3805 | echo "Disabling compression support by default" |
| 3806 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3807 | fi |
| 3808 | |
| 3809 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3810 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3811 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3812 | then |
| 3813 | HTREE_CMT=# |
| 3814 | echo "Disabling htree directory support" |
| 3815 | else |
| 3816 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3817 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3818 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3819 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3820 | |
| 3821 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3822 | fi |
| 3823 | |
| 3824 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3825 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3826 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3827 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3828 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3829 | |
| 3830 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3831 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3832 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3833 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3834 | |
| 3835 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3836 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3837 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3838 | then |
| 3839 | ELF_CMT=# |
| 3840 | MAKEFILE_ELF=/dev/null |
| 3841 | echo "Disabling ELF shared libraries" |
| 3842 | else |
| 3843 | ELF_CMT= |
| 3844 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3845 | case "$host_os" in |
| 3846 | solaris2.*) |
| 3847 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3848 | ;; |
| 3849 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3850 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3851 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3852 | echo "Enabling ELF shared libraries" |
| 3853 | fi |
| 3854 | |
| 3855 | else |
| 3856 | MAKEFILE_ELF=/dev/null |
| 3857 | ELF_CMT=# |
| 3858 | echo "Disabling ELF shared libraries by default" |
| 3859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3860 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3861 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3863 | |
| 3864 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3865 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3866 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3867 | then |
| 3868 | BSDLIB_CMT=# |
| 3869 | MAKEFILE_BSDLIB=/dev/null |
| 3870 | echo "Disabling BSD shared libraries" |
| 3871 | else |
| 3872 | BSDLIB_CMT= |
| 3873 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3874 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3875 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3876 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3877 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3878 | LIB_EXT=.dylib |
| 3879 | ;; |
| 3880 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3881 | echo "Enabling BSD shared libraries" |
| 3882 | fi |
| 3883 | |
| 3884 | else |
| 3885 | MAKEFILE_BSDLIB=/dev/null |
| 3886 | BSDLIB_CMT=# |
| 3887 | echo "Disabling BSD shared libraries by default" |
| 3888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3889 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3890 | |
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 | |
| 3893 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3894 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3895 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3896 | then |
| 3897 | PROFILE_CMT=# |
| 3898 | MAKEFILE_PROFILE=/dev/null |
| 3899 | echo "Disabling profiling libraries" |
| 3900 | else |
| 3901 | PROFILE_CMT= |
| 3902 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3903 | PROFILED_LIB_EXT=_p.a |
| 3904 | echo "Building profiling libraries" |
| 3905 | fi |
| 3906 | |
| 3907 | else |
| 3908 | PROFILE_CMT=# |
| 3909 | MAKEFILE_PROFILE=/dev/null |
| 3910 | echo "Disabling profiling libraries by default" |
| 3911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3912 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3913 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3915 | |
| 3916 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3917 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3918 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3919 | then |
| 3920 | CHECKER_CMT=# |
| 3921 | MAKEFILE_CHECKER=/dev/null |
| 3922 | echo "Disabling checker libraries" |
| 3923 | else |
| 3924 | CHECKER_CMT= |
| 3925 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3926 | echo "Building checker libraries" |
| 3927 | fi |
| 3928 | |
| 3929 | else |
| 3930 | CHECKER_CMT=# |
| 3931 | MAKEFILE_CHECKER=/dev/null |
| 3932 | echo "Disabling checker libraries by default" |
| 3933 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3934 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3940 | |
| 3941 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3942 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3943 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3944 | then |
| 3945 | echo "Disabling journal debugging" |
| 3946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3947 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3948 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3949 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3950 | |
| 3951 | echo "Enabling journal debugging" |
| 3952 | fi |
| 3953 | |
| 3954 | else |
| 3955 | echo "Disabling journal debugging by default" |
| 3956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3957 | fi |
| 3958 | |
| 3959 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3960 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3961 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3962 | then |
| 3963 | echo "Disabling blkid debugging" |
| 3964 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3965 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3966 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3967 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3968 | |
| 3969 | echo "Enabling blkid debugging" |
| 3970 | fi |
| 3971 | |
| 3972 | else |
| 3973 | echo "Disabling blkid debugging by default" |
| 3974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3975 | fi |
| 3976 | |
| 3977 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3978 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3979 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3980 | then |
| 3981 | echo "Disabling testio debugging" |
| 3982 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3983 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3984 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3985 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3986 | |
| 3987 | echo "Enabling testio debugging" |
| 3988 | fi |
| 3989 | |
| 3990 | else |
| 3991 | echo "Disabling testio debugging by default" |
| 3992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3993 | fi |
| 3994 | |
| 3995 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3996 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3997 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3998 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 3999 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4000 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4001 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4002 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4003 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4004 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4005 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4006 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4007 | echo "Enabling swapfs support" |
| 4008 | fi |
| 4009 | |
| 4010 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4011 | SWAPFS_CMT= |
| 4012 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4013 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4014 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4015 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4016 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4017 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4018 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4020 | |
| 4021 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4022 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4023 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4024 | then |
| 4025 | echo "Disabling debugfs support" |
| 4026 | DEBUGFS_CMT="#" |
| 4027 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4028 | DEBUGFS_CMT= |
| 4029 | echo "Enabling debugfs support" |
| 4030 | fi |
| 4031 | |
| 4032 | else |
| 4033 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4034 | DEBUGFS_CMT= |
| 4035 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4036 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4038 | |
| 4039 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4040 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4041 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4042 | then |
| 4043 | echo "Disabling e2image support" |
| 4044 | IMAGER_CMT="#" |
| 4045 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4046 | IMAGER_CMT= |
| 4047 | echo "Enabling e2image support" |
| 4048 | fi |
| 4049 | |
| 4050 | else |
| 4051 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4052 | IMAGER_CMT= |
| 4053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4054 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4055 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4056 | |
| 4057 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4058 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4059 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4060 | then |
| 4061 | echo "Disabling e2resize support" |
| 4062 | RESIZER_CMT="#" |
| 4063 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4064 | RESIZER_CMT= |
| 4065 | echo "Enabling e2resize support" |
| 4066 | fi |
| 4067 | |
| 4068 | else |
| 4069 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4070 | RESIZER_CMT= |
| 4071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4072 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4073 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4074 | |
| 4075 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4076 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4077 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4078 | then |
| 4079 | E2FSCK_TYPE=static |
| 4080 | echo "Building e2fsck statically" |
| 4081 | else |
| 4082 | E2FSCK_TYPE=shared |
| 4083 | echo "Building e2fsck dynamically" |
| 4084 | fi |
| 4085 | |
| 4086 | else |
| 4087 | E2FSCK_TYPE=static |
| 4088 | echo "Building e2fsck statically by default" |
| 4089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4090 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4091 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4092 | |
| 4093 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4094 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4095 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4096 | then |
| 4097 | FSCK_PROG='' FSCK_MAN='' |
| 4098 | echo "Not building fsck wrapper" |
| 4099 | else |
| 4100 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4101 | echo "Building fsck wrapper" |
| 4102 | fi |
| 4103 | |
| 4104 | else |
| 4105 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4106 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4107 | FSCK_PROG='' FSCK_MAN='' |
| 4108 | echo "Not building fsck wrapper by default" |
| 4109 | ;; |
| 4110 | *) |
| 4111 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4112 | echo "Building fsck wrapper by default" |
| 4113 | esac |
| 4114 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4115 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4116 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4118 | |
| 4119 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4120 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4121 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4122 | then |
| 4123 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4124 | echo "Not building e2initrd helper" |
| 4125 | else |
| 4126 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4127 | echo "Building e2initrd helper" |
| 4128 | fi |
| 4129 | |
| 4130 | else |
| 4131 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4132 | echo "Building e2initrd helper by default" |
| 4133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4134 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4135 | |
| 4136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4137 | |
| 4138 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4139 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4140 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4141 | then |
| 4142 | echo "Disabling device-mapper support" |
| 4143 | DEVMAPPER_REQ='' |
| 4144 | DEVMAPPER_LIBS='' |
| 4145 | STATIC_DEVMAPPER_LIBS='' |
| 4146 | else |
| 4147 | cat >>confdefs.h <<\_ACEOF |
| 4148 | #define HAVE_DEVMAPPER 1 |
| 4149 | _ACEOF |
| 4150 | |
| 4151 | echo "Enabling device-mapper support" |
| 4152 | |
| 4153 | DEVMAPPER_REQ='libselinux libsepol' |
| 4154 | DEVMAPPER_PC_LIBS='-ldevmapper' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4155 | DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' |
| 4156 | STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread' |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4157 | |
| 4158 | fi |
| 4159 | |
| 4160 | else |
| 4161 | echo "Disabling device-mapper support by default" |
| 4162 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4163 | fi |
| 4164 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4169 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4170 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4171 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4172 | PACKAGE=e2fsprogs |
| 4173 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4174 | VERSION=0.14.1 |
| 4175 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4176 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4177 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4179 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4180 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4181 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4182 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4187 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4188 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4189 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4190 | 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] | 4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4192 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4193 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4194 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4195 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4196 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4197 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4198 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4199 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4200 | *@@@%%%=?*=@@@%%%*) |
| 4201 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4202 | *) |
| 4203 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4204 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4205 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4206 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4207 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4208 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4209 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4210 | SET_MAKE= |
| 4211 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4213 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4214 | SET_MAKE="MAKE=${MAKE-make}" |
| 4215 | fi |
| 4216 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4217 | # Find a good install program. We prefer a C program (faster), |
| 4218 | # so one script is as good as another. But avoid the broken or |
| 4219 | # incompatible versions: |
| 4220 | # SysV /etc/install, /usr/sbin/install |
| 4221 | # SunOS /usr/etc/install |
| 4222 | # IRIX /sbin/install |
| 4223 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4224 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4225 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4226 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4227 | # 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] | 4228 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4229 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4230 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4231 | 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] | 4232 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4233 | if test "${ac_cv_path_install+set}" = set; then |
| 4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4237 | for as_dir in $PATH |
| 4238 | do |
| 4239 | IFS=$as_save_IFS |
| 4240 | test -z "$as_dir" && as_dir=. |
| 4241 | # Account for people who put trailing slashes in PATH elements. |
| 4242 | case $as_dir/ in |
| 4243 | ./ | .// | /cC/* | \ |
| 4244 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4245 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4246 | /usr/ucb/* ) ;; |
| 4247 | *) |
| 4248 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4249 | # Don't use installbsd from OSF since it installs stuff as root |
| 4250 | # by default. |
| 4251 | for ac_prog in ginstall scoinst install; do |
| 4252 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4253 | 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] | 4254 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4255 | 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] | 4256 | # AIX install. It has an incompatible calling convention. |
| 4257 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4258 | elif test $ac_prog = install && |
| 4259 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4260 | # program-specific install script used by HP pwplus--don't use. |
| 4261 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4263 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4264 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4265 | fi |
| 4266 | fi |
| 4267 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4268 | done |
| 4269 | ;; |
| 4270 | esac |
| 4271 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4272 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4273 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4274 | |
| 4275 | fi |
| 4276 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4277 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4278 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4279 | # As a last resort, use the slow shell script. Don't cache a |
| 4280 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4281 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4282 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4284 | fi |
| 4285 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4286 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4287 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4288 | |
| 4289 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4290 | # It thinks the first close brace ends the variable substitution. |
| 4291 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4292 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4293 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4294 | |
| 4295 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4296 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4297 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4298 | MKINSTALLDIRS= |
| 4299 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4300 | case "$ac_aux_dir" in |
| 4301 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4302 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4303 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4304 | fi |
| 4305 | if test -z "$MKINSTALLDIRS"; then |
| 4306 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4307 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4309 | |
| 4310 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4311 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4312 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4313 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4314 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4315 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4316 | else |
| 4317 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4318 | fi |
| 4319 | |
| 4320 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4321 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | # Prepare PATH_SEPARATOR. |
| 4329 | # The user is always right. |
| 4330 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4331 | echo "#! /bin/sh" >conf$$.sh |
| 4332 | echo "exit 0" >>conf$$.sh |
| 4333 | chmod +x conf$$.sh |
| 4334 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4335 | PATH_SEPARATOR=';' |
| 4336 | else |
| 4337 | PATH_SEPARATOR=: |
| 4338 | fi |
| 4339 | rm -f conf$$.sh |
| 4340 | fi |
| 4341 | |
| 4342 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4343 | # as systems may use methods other than mode bits to determine executability. |
| 4344 | cat >conf$$.file <<_ASEOF |
| 4345 | #! /bin/sh |
| 4346 | exit 0 |
| 4347 | _ASEOF |
| 4348 | chmod +x conf$$.file |
| 4349 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4350 | ac_executable_p="test -x" |
| 4351 | else |
| 4352 | ac_executable_p="test -f" |
| 4353 | fi |
| 4354 | rm -f conf$$.file |
| 4355 | |
| 4356 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4357 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4358 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4360 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4362 | else |
| 4363 | case "$MSGFMT" in |
| 4364 | [\\/]* | ?:[\\/]*) |
| 4365 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4366 | ;; |
| 4367 | *) |
| 4368 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4369 | for ac_dir in $PATH; do |
| 4370 | IFS="$ac_save_IFS" |
| 4371 | test -z "$ac_dir" && ac_dir=. |
| 4372 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4373 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4374 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4375 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4376 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4377 | break 2 |
| 4378 | fi |
| 4379 | fi |
| 4380 | done |
| 4381 | done |
| 4382 | IFS="$ac_save_IFS" |
| 4383 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4384 | ;; |
| 4385 | esac |
| 4386 | fi |
| 4387 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4388 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4389 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4390 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4391 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4393 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4394 | fi |
| 4395 | |
| 4396 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4397 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4400 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4402 | else |
| 4403 | case $GMSGFMT in |
| 4404 | [\\/]* | ?:[\\/]*) |
| 4405 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4406 | ;; |
| 4407 | *) |
| 4408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4409 | for as_dir in $PATH |
| 4410 | do |
| 4411 | IFS=$as_save_IFS |
| 4412 | test -z "$as_dir" && as_dir=. |
| 4413 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4414 | 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] | 4415 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4417 | break 2 |
| 4418 | fi |
| 4419 | done |
| 4420 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4421 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4422 | |
| 4423 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4424 | ;; |
| 4425 | esac |
| 4426 | fi |
| 4427 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4428 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4429 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4430 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4431 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4432 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4433 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4434 | fi |
| 4435 | |
| 4436 | |
| 4437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4438 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4439 | # Prepare PATH_SEPARATOR. |
| 4440 | # The user is always right. |
| 4441 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4442 | echo "#! /bin/sh" >conf$$.sh |
| 4443 | echo "exit 0" >>conf$$.sh |
| 4444 | chmod +x conf$$.sh |
| 4445 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4446 | PATH_SEPARATOR=';' |
| 4447 | else |
| 4448 | PATH_SEPARATOR=: |
| 4449 | fi |
| 4450 | rm -f conf$$.sh |
| 4451 | fi |
| 4452 | |
| 4453 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4454 | # as systems may use methods other than mode bits to determine executability. |
| 4455 | cat >conf$$.file <<_ASEOF |
| 4456 | #! /bin/sh |
| 4457 | exit 0 |
| 4458 | _ASEOF |
| 4459 | chmod +x conf$$.file |
| 4460 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4461 | ac_executable_p="test -x" |
| 4462 | else |
| 4463 | ac_executable_p="test -f" |
| 4464 | fi |
| 4465 | rm -f conf$$.file |
| 4466 | |
| 4467 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4468 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4471 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4473 | else |
| 4474 | case "$XGETTEXT" in |
| 4475 | [\\/]* | ?:[\\/]*) |
| 4476 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4477 | ;; |
| 4478 | *) |
| 4479 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4480 | for ac_dir in $PATH; do |
| 4481 | IFS="$ac_save_IFS" |
| 4482 | test -z "$ac_dir" && ac_dir=. |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4484 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4485 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4486 | (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 |
| 4487 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4488 | break 2 |
| 4489 | fi |
| 4490 | fi |
| 4491 | done |
| 4492 | done |
| 4493 | IFS="$ac_save_IFS" |
| 4494 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4495 | ;; |
| 4496 | esac |
| 4497 | fi |
| 4498 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4499 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4500 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4501 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4502 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4504 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4505 | fi |
| 4506 | |
| 4507 | rm -f messages.po |
| 4508 | |
| 4509 | |
| 4510 | # Prepare PATH_SEPARATOR. |
| 4511 | # The user is always right. |
| 4512 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4513 | echo "#! /bin/sh" >conf$$.sh |
| 4514 | echo "exit 0" >>conf$$.sh |
| 4515 | chmod +x conf$$.sh |
| 4516 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4517 | PATH_SEPARATOR=';' |
| 4518 | else |
| 4519 | PATH_SEPARATOR=: |
| 4520 | fi |
| 4521 | rm -f conf$$.sh |
| 4522 | fi |
| 4523 | |
| 4524 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4525 | # as systems may use methods other than mode bits to determine executability. |
| 4526 | cat >conf$$.file <<_ASEOF |
| 4527 | #! /bin/sh |
| 4528 | exit 0 |
| 4529 | _ASEOF |
| 4530 | chmod +x conf$$.file |
| 4531 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4532 | ac_executable_p="test -x" |
| 4533 | else |
| 4534 | ac_executable_p="test -f" |
| 4535 | fi |
| 4536 | rm -f conf$$.file |
| 4537 | |
| 4538 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4539 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4540 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4542 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4544 | else |
| 4545 | case "$MSGMERGE" in |
| 4546 | [\\/]* | ?:[\\/]*) |
| 4547 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4548 | ;; |
| 4549 | *) |
| 4550 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4551 | for ac_dir in $PATH; do |
| 4552 | IFS="$ac_save_IFS" |
| 4553 | test -z "$ac_dir" && ac_dir=. |
| 4554 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4555 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4556 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4557 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4558 | break 2 |
| 4559 | fi |
| 4560 | fi |
| 4561 | done |
| 4562 | done |
| 4563 | IFS="$ac_save_IFS" |
| 4564 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4565 | ;; |
| 4566 | esac |
| 4567 | fi |
| 4568 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4569 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4570 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4571 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4572 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4574 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4575 | fi |
| 4576 | |
| 4577 | |
| 4578 | if test "$GMSGFMT" != ":"; then |
| 4579 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4580 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4581 | : ; |
| 4582 | else |
| 4583 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4584 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4585 | 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] | 4586 | GMSGFMT=":" |
| 4587 | fi |
| 4588 | fi |
| 4589 | |
| 4590 | if test "$XGETTEXT" != ":"; then |
| 4591 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4592 | (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 |
| 4593 | : ; |
| 4594 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4595 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4596 | 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] | 4597 | XGETTEXT=":" |
| 4598 | fi |
| 4599 | rm -f messages.po |
| 4600 | fi |
| 4601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4602 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4603 | |
| 4604 | |
| 4605 | if test -n "$ac_tool_prefix"; then |
| 4606 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4607 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4610 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4612 | else |
| 4613 | if test -n "$RANLIB"; then |
| 4614 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4615 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4617 | for as_dir in $PATH |
| 4618 | do |
| 4619 | IFS=$as_save_IFS |
| 4620 | test -z "$as_dir" && as_dir=. |
| 4621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4622 | 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] | 4623 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4625 | break 2 |
| 4626 | fi |
| 4627 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4628 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4629 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4630 | |
| 4631 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4632 | fi |
| 4633 | RANLIB=$ac_cv_prog_RANLIB |
| 4634 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4635 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4636 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4637 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4638 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4639 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4640 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4642 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4643 | fi |
| 4644 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4645 | ac_ct_RANLIB=$RANLIB |
| 4646 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4647 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4648 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4650 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4652 | else |
| 4653 | if test -n "$ac_ct_RANLIB"; then |
| 4654 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4655 | else |
| 4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4657 | for as_dir in $PATH |
| 4658 | do |
| 4659 | IFS=$as_save_IFS |
| 4660 | test -z "$as_dir" && as_dir=. |
| 4661 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4662 | 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] | 4663 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4665 | break 2 |
| 4666 | fi |
| 4667 | done |
| 4668 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4669 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4670 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4671 | fi |
| 4672 | fi |
| 4673 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4674 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4676 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4677 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4678 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4679 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4680 | fi |
| 4681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4682 | if test "x$ac_ct_RANLIB" = x; then |
| 4683 | RANLIB=":" |
| 4684 | else |
| 4685 | case $cross_compiling:$ac_tool_warned in |
| 4686 | yes:) |
| 4687 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4688 | whose name does not start with the host triplet. If you think this |
| 4689 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4690 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4691 | whose name does not start with the host triplet. If you think this |
| 4692 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4693 | ac_tool_warned=yes ;; |
| 4694 | esac |
| 4695 | RANLIB=$ac_ct_RANLIB |
| 4696 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4697 | else |
| 4698 | RANLIB="$ac_cv_prog_RANLIB" |
| 4699 | fi |
| 4700 | |
| 4701 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4702 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4703 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4704 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4706 | else |
| 4707 | ac_check_lib_save_LIBS=$LIBS |
| 4708 | LIBS="-lcposix $LIBS" |
| 4709 | cat >conftest.$ac_ext <<_ACEOF |
| 4710 | /* confdefs.h. */ |
| 4711 | _ACEOF |
| 4712 | cat confdefs.h >>conftest.$ac_ext |
| 4713 | cat >>conftest.$ac_ext <<_ACEOF |
| 4714 | /* end confdefs.h. */ |
| 4715 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4716 | /* Override any GCC internal prototype to avoid an error. |
| 4717 | Use char because int might match the return type of a GCC |
| 4718 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4719 | #ifdef __cplusplus |
| 4720 | extern "C" |
| 4721 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4722 | char strerror (); |
| 4723 | int |
| 4724 | main () |
| 4725 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4726 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4727 | ; |
| 4728 | return 0; |
| 4729 | } |
| 4730 | _ACEOF |
| 4731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4732 | if { (ac_try="$ac_link" |
| 4733 | case "(($ac_try" in |
| 4734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4735 | *) ac_try_echo=$ac_try;; |
| 4736 | esac |
| 4737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4738 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4739 | ac_status=$? |
| 4740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4741 | rm -f conftest.er1 |
| 4742 | cat conftest.err >&5 |
| 4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4744 | (exit $ac_status); } && { |
| 4745 | test -z "$ac_c_werror_flag" || |
| 4746 | test ! -s conftest.err |
| 4747 | } && test -s conftest$ac_exeext && |
| 4748 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4749 | ac_cv_lib_cposix_strerror=yes |
| 4750 | else |
| 4751 | echo "$as_me: failed program was:" >&5 |
| 4752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4753 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4754 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4755 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4756 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4757 | 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] | 4758 | conftest$ac_exeext conftest.$ac_ext |
| 4759 | LIBS=$ac_check_lib_save_LIBS |
| 4760 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4761 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4762 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4763 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4764 | LIBS="$LIBS -lcposix" |
| 4765 | fi |
| 4766 | |
| 4767 | |
| 4768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4769 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4770 | 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] | 4771 | if test "${ac_cv_c_const+set}" = set; then |
| 4772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4773 | else |
| 4774 | cat >conftest.$ac_ext <<_ACEOF |
| 4775 | /* confdefs.h. */ |
| 4776 | _ACEOF |
| 4777 | cat confdefs.h >>conftest.$ac_ext |
| 4778 | cat >>conftest.$ac_ext <<_ACEOF |
| 4779 | /* end confdefs.h. */ |
| 4780 | |
| 4781 | int |
| 4782 | main () |
| 4783 | { |
| 4784 | /* FIXME: Include the comments suggested by Paul. */ |
| 4785 | #ifndef __cplusplus |
| 4786 | /* Ultrix mips cc rejects this. */ |
| 4787 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4788 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4789 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4790 | char const *const *pcpcc; |
| 4791 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4792 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4793 | struct point {int x, y;}; |
| 4794 | static struct point const zero = {0,0}; |
| 4795 | /* AIX XL C 1.02.0.0 rejects this. |
| 4796 | It does not let you subtract one const X* pointer from another in |
| 4797 | an arm of an if-expression whose if-part is not a constant |
| 4798 | expression */ |
| 4799 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4800 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4801 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4802 | ++pcpcc; |
| 4803 | ppc = (char**) pcpcc; |
| 4804 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4805 | { /* SCO 3.2v4 cc rejects this. */ |
| 4806 | char *t; |
| 4807 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4808 | |
| 4809 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4810 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4811 | } |
| 4812 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4813 | int x[] = {25, 17}; |
| 4814 | const int *foo = &x[0]; |
| 4815 | ++foo; |
| 4816 | } |
| 4817 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4818 | typedef const int *iptr; |
| 4819 | iptr p = 0; |
| 4820 | ++p; |
| 4821 | } |
| 4822 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4823 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4824 | struct s { int j; const int *ap[3]; }; |
| 4825 | struct s *b; b->j = 5; |
| 4826 | } |
| 4827 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4828 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4829 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4830 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4831 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4832 | #endif |
| 4833 | |
| 4834 | ; |
| 4835 | return 0; |
| 4836 | } |
| 4837 | _ACEOF |
| 4838 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4839 | if { (ac_try="$ac_compile" |
| 4840 | case "(($ac_try" in |
| 4841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4842 | *) ac_try_echo=$ac_try;; |
| 4843 | esac |
| 4844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4845 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4846 | ac_status=$? |
| 4847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4848 | rm -f conftest.er1 |
| 4849 | cat conftest.err >&5 |
| 4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4851 | (exit $ac_status); } && { |
| 4852 | test -z "$ac_c_werror_flag" || |
| 4853 | test ! -s conftest.err |
| 4854 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4855 | ac_cv_c_const=yes |
| 4856 | else |
| 4857 | echo "$as_me: failed program was:" >&5 |
| 4858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4860 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4862 | |
| 4863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4864 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4865 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4866 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4867 | if test $ac_cv_c_const = no; then |
| 4868 | |
| 4869 | cat >>confdefs.h <<\_ACEOF |
| 4870 | #define const |
| 4871 | _ACEOF |
| 4872 | |
| 4873 | fi |
| 4874 | |
| 4875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4876 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 4877 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4878 | if test "${bh_cv_c_signed+set}" = set; then |
| 4879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4880 | else |
| 4881 | cat >conftest.$ac_ext <<_ACEOF |
| 4882 | /* confdefs.h. */ |
| 4883 | _ACEOF |
| 4884 | cat confdefs.h >>conftest.$ac_ext |
| 4885 | cat >>conftest.$ac_ext <<_ACEOF |
| 4886 | /* end confdefs.h. */ |
| 4887 | |
| 4888 | int |
| 4889 | main () |
| 4890 | { |
| 4891 | signed char x; |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
| 4896 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4897 | if { (ac_try="$ac_compile" |
| 4898 | case "(($ac_try" in |
| 4899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4900 | *) ac_try_echo=$ac_try;; |
| 4901 | esac |
| 4902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4903 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4904 | ac_status=$? |
| 4905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4906 | rm -f conftest.er1 |
| 4907 | cat conftest.err >&5 |
| 4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4909 | (exit $ac_status); } && { |
| 4910 | test -z "$ac_c_werror_flag" || |
| 4911 | test ! -s conftest.err |
| 4912 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4913 | bh_cv_c_signed=yes |
| 4914 | else |
| 4915 | echo "$as_me: failed program was:" >&5 |
| 4916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4918 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4920 | |
| 4921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4922 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4923 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 4924 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4925 | if test $bh_cv_c_signed = no; then |
| 4926 | |
| 4927 | cat >>confdefs.h <<\_ACEOF |
| 4928 | #define signed |
| 4929 | _ACEOF |
| 4930 | |
| 4931 | fi |
| 4932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4933 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 4934 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4935 | if test "${ac_cv_c_inline+set}" = set; then |
| 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4937 | else |
| 4938 | ac_cv_c_inline=no |
| 4939 | for ac_kw in inline __inline__ __inline; do |
| 4940 | cat >conftest.$ac_ext <<_ACEOF |
| 4941 | /* confdefs.h. */ |
| 4942 | _ACEOF |
| 4943 | cat confdefs.h >>conftest.$ac_ext |
| 4944 | cat >>conftest.$ac_ext <<_ACEOF |
| 4945 | /* end confdefs.h. */ |
| 4946 | #ifndef __cplusplus |
| 4947 | typedef int foo_t; |
| 4948 | static $ac_kw foo_t static_foo () {return 0; } |
| 4949 | $ac_kw foo_t foo () {return 0; } |
| 4950 | #endif |
| 4951 | |
| 4952 | _ACEOF |
| 4953 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4954 | if { (ac_try="$ac_compile" |
| 4955 | case "(($ac_try" in |
| 4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4957 | *) ac_try_echo=$ac_try;; |
| 4958 | esac |
| 4959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4960 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4961 | ac_status=$? |
| 4962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4963 | rm -f conftest.er1 |
| 4964 | cat conftest.err >&5 |
| 4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4966 | (exit $ac_status); } && { |
| 4967 | test -z "$ac_c_werror_flag" || |
| 4968 | test ! -s conftest.err |
| 4969 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4970 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4971 | else |
| 4972 | echo "$as_me: failed program was:" >&5 |
| 4973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4975 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4976 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4977 | |
| 4978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4979 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4980 | done |
| 4981 | |
| 4982 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4983 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4984 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4985 | |
| 4986 | |
| 4987 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4988 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4989 | *) |
| 4990 | case $ac_cv_c_inline in |
| 4991 | no) ac_val=;; |
| 4992 | *) ac_val=$ac_cv_c_inline;; |
| 4993 | esac |
| 4994 | cat >>confdefs.h <<_ACEOF |
| 4995 | #ifndef __cplusplus |
| 4996 | #define inline $ac_val |
| 4997 | #endif |
| 4998 | _ACEOF |
| 4999 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5000 | esac |
| 5001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5002 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5003 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5004 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5007 | cat >conftest.$ac_ext <<_ACEOF |
| 5008 | /* confdefs.h. */ |
| 5009 | _ACEOF |
| 5010 | cat confdefs.h >>conftest.$ac_ext |
| 5011 | cat >>conftest.$ac_ext <<_ACEOF |
| 5012 | /* end confdefs.h. */ |
| 5013 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5014 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5015 | int |
| 5016 | main () |
| 5017 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5018 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5019 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5020 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5021 | return 0; |
| 5022 | ; |
| 5023 | return 0; |
| 5024 | } |
| 5025 | _ACEOF |
| 5026 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5027 | if { (ac_try="$ac_compile" |
| 5028 | case "(($ac_try" in |
| 5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5030 | *) ac_try_echo=$ac_try;; |
| 5031 | esac |
| 5032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5033 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5034 | ac_status=$? |
| 5035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5036 | rm -f conftest.er1 |
| 5037 | cat conftest.err >&5 |
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5039 | (exit $ac_status); } && { |
| 5040 | test -z "$ac_c_werror_flag" || |
| 5041 | test ! -s conftest.err |
| 5042 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5043 | ac_cv_type_off_t=yes |
| 5044 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5045 | echo "$as_me: failed program was:" >&5 |
| 5046 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5048 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5049 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5050 | |
| 5051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5052 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5053 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5054 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5055 | if test $ac_cv_type_off_t = yes; then |
| 5056 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5057 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5058 | |
| 5059 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5060 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5061 | _ACEOF |
| 5062 | |
| 5063 | fi |
| 5064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5065 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5066 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5067 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5069 | else |
| 5070 | cat >conftest.$ac_ext <<_ACEOF |
| 5071 | /* confdefs.h. */ |
| 5072 | _ACEOF |
| 5073 | cat confdefs.h >>conftest.$ac_ext |
| 5074 | cat >>conftest.$ac_ext <<_ACEOF |
| 5075 | /* end confdefs.h. */ |
| 5076 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5077 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5078 | int |
| 5079 | main () |
| 5080 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5081 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5082 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5083 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5084 | return 0; |
| 5085 | ; |
| 5086 | return 0; |
| 5087 | } |
| 5088 | _ACEOF |
| 5089 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5090 | if { (ac_try="$ac_compile" |
| 5091 | case "(($ac_try" in |
| 5092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5093 | *) ac_try_echo=$ac_try;; |
| 5094 | esac |
| 5095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5096 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5097 | ac_status=$? |
| 5098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5099 | rm -f conftest.er1 |
| 5100 | cat conftest.err >&5 |
| 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5102 | (exit $ac_status); } && { |
| 5103 | test -z "$ac_c_werror_flag" || |
| 5104 | test ! -s conftest.err |
| 5105 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5106 | ac_cv_type_size_t=yes |
| 5107 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5108 | echo "$as_me: failed program was:" >&5 |
| 5109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5111 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5113 | |
| 5114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5115 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5116 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5117 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5118 | if test $ac_cv_type_size_t = yes; then |
| 5119 | : |
| 5120 | else |
| 5121 | |
| 5122 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5123 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5124 | _ACEOF |
| 5125 | |
| 5126 | fi |
| 5127 | |
| 5128 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5129 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5130 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5131 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5133 | else |
| 5134 | cat >conftest.$ac_ext <<_ACEOF |
| 5135 | /* confdefs.h. */ |
| 5136 | _ACEOF |
| 5137 | cat confdefs.h >>conftest.$ac_ext |
| 5138 | cat >>conftest.$ac_ext <<_ACEOF |
| 5139 | /* end confdefs.h. */ |
| 5140 | long long ll = 1LL; int i = 63; |
| 5141 | int |
| 5142 | main () |
| 5143 | { |
| 5144 | long long llmax = (long long) -1; |
| 5145 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5146 | ; |
| 5147 | return 0; |
| 5148 | } |
| 5149 | _ACEOF |
| 5150 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5151 | if { (ac_try="$ac_link" |
| 5152 | case "(($ac_try" in |
| 5153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5154 | *) ac_try_echo=$ac_try;; |
| 5155 | esac |
| 5156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5157 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5158 | ac_status=$? |
| 5159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5160 | rm -f conftest.er1 |
| 5161 | cat conftest.err >&5 |
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5163 | (exit $ac_status); } && { |
| 5164 | test -z "$ac_c_werror_flag" || |
| 5165 | test ! -s conftest.err |
| 5166 | } && test -s conftest$ac_exeext && |
| 5167 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5168 | ac_cv_type_long_long=yes |
| 5169 | else |
| 5170 | echo "$as_me: failed program was:" >&5 |
| 5171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5172 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5173 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5174 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5175 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5176 | 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] | 5177 | conftest$ac_exeext conftest.$ac_ext |
| 5178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5179 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5180 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5181 | if test $ac_cv_type_long_long = yes; then |
| 5182 | |
| 5183 | cat >>confdefs.h <<\_ACEOF |
| 5184 | #define HAVE_LONG_LONG 1 |
| 5185 | _ACEOF |
| 5186 | |
| 5187 | fi |
| 5188 | |
| 5189 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5190 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5191 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5192 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5194 | else |
| 5195 | if test "$GCC" = yes; then |
| 5196 | gt_cv_c_long_double=yes |
| 5197 | else |
| 5198 | cat >conftest.$ac_ext <<_ACEOF |
| 5199 | /* confdefs.h. */ |
| 5200 | _ACEOF |
| 5201 | cat confdefs.h >>conftest.$ac_ext |
| 5202 | cat >>conftest.$ac_ext <<_ACEOF |
| 5203 | /* end confdefs.h. */ |
| 5204 | |
| 5205 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5206 | long double foo = 0.0; |
| 5207 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5208 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5209 | |
| 5210 | int |
| 5211 | main () |
| 5212 | { |
| 5213 | |
| 5214 | ; |
| 5215 | return 0; |
| 5216 | } |
| 5217 | _ACEOF |
| 5218 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5219 | if { (ac_try="$ac_compile" |
| 5220 | case "(($ac_try" in |
| 5221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5222 | *) ac_try_echo=$ac_try;; |
| 5223 | esac |
| 5224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5225 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5226 | ac_status=$? |
| 5227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5228 | rm -f conftest.er1 |
| 5229 | cat conftest.err >&5 |
| 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5231 | (exit $ac_status); } && { |
| 5232 | test -z "$ac_c_werror_flag" || |
| 5233 | test ! -s conftest.err |
| 5234 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5235 | gt_cv_c_long_double=yes |
| 5236 | else |
| 5237 | echo "$as_me: failed program was:" >&5 |
| 5238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5239 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5240 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5242 | |
| 5243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5244 | fi |
| 5245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5246 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5247 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5248 | if test $gt_cv_c_long_double = yes; then |
| 5249 | |
| 5250 | cat >>confdefs.h <<\_ACEOF |
| 5251 | #define HAVE_LONG_DOUBLE 1 |
| 5252 | _ACEOF |
| 5253 | |
| 5254 | fi |
| 5255 | |
| 5256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5257 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5258 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5259 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5261 | else |
| 5262 | cat >conftest.$ac_ext <<_ACEOF |
| 5263 | /* confdefs.h. */ |
| 5264 | _ACEOF |
| 5265 | cat confdefs.h >>conftest.$ac_ext |
| 5266 | cat >>conftest.$ac_ext <<_ACEOF |
| 5267 | /* end confdefs.h. */ |
| 5268 | #include <stddef.h> |
| 5269 | wchar_t foo = (wchar_t)'\0'; |
| 5270 | int |
| 5271 | main () |
| 5272 | { |
| 5273 | |
| 5274 | ; |
| 5275 | return 0; |
| 5276 | } |
| 5277 | _ACEOF |
| 5278 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5279 | if { (ac_try="$ac_compile" |
| 5280 | case "(($ac_try" in |
| 5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5282 | *) ac_try_echo=$ac_try;; |
| 5283 | esac |
| 5284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5285 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5286 | ac_status=$? |
| 5287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5288 | rm -f conftest.er1 |
| 5289 | cat conftest.err >&5 |
| 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5291 | (exit $ac_status); } && { |
| 5292 | test -z "$ac_c_werror_flag" || |
| 5293 | test ! -s conftest.err |
| 5294 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5295 | gt_cv_c_wchar_t=yes |
| 5296 | else |
| 5297 | echo "$as_me: failed program was:" >&5 |
| 5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5299 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5300 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5301 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5302 | |
| 5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5304 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5305 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5306 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5307 | if test $gt_cv_c_wchar_t = yes; then |
| 5308 | |
| 5309 | cat >>confdefs.h <<\_ACEOF |
| 5310 | #define HAVE_WCHAR_T 1 |
| 5311 | _ACEOF |
| 5312 | |
| 5313 | fi |
| 5314 | |
| 5315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5316 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5317 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5318 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5320 | else |
| 5321 | cat >conftest.$ac_ext <<_ACEOF |
| 5322 | /* confdefs.h. */ |
| 5323 | _ACEOF |
| 5324 | cat confdefs.h >>conftest.$ac_ext |
| 5325 | cat >>conftest.$ac_ext <<_ACEOF |
| 5326 | /* end confdefs.h. */ |
| 5327 | #include <wchar.h> |
| 5328 | wint_t foo = (wchar_t)'\0'; |
| 5329 | int |
| 5330 | main () |
| 5331 | { |
| 5332 | |
| 5333 | ; |
| 5334 | return 0; |
| 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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5354 | gt_cv_c_wint_t=yes |
| 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 | gt_cv_c_wint_t=no |
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 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5363 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5364 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5365 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5366 | if test $gt_cv_c_wint_t = yes; then |
| 5367 | |
| 5368 | cat >>confdefs.h <<\_ACEOF |
| 5369 | #define HAVE_WINT_T 1 |
| 5370 | _ACEOF |
| 5371 | |
| 5372 | fi |
| 5373 | |
| 5374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5376 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5377 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5379 | else |
| 5380 | cat >conftest.$ac_ext <<_ACEOF |
| 5381 | /* confdefs.h. */ |
| 5382 | _ACEOF |
| 5383 | cat confdefs.h >>conftest.$ac_ext |
| 5384 | cat >>conftest.$ac_ext <<_ACEOF |
| 5385 | /* end confdefs.h. */ |
| 5386 | #include <sys/types.h> |
| 5387 | #include <inttypes.h> |
| 5388 | int |
| 5389 | main () |
| 5390 | { |
| 5391 | uintmax_t i = (uintmax_t) -1; |
| 5392 | ; |
| 5393 | return 0; |
| 5394 | } |
| 5395 | _ACEOF |
| 5396 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5397 | if { (ac_try="$ac_compile" |
| 5398 | case "(($ac_try" in |
| 5399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5400 | *) ac_try_echo=$ac_try;; |
| 5401 | esac |
| 5402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5403 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5404 | ac_status=$? |
| 5405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5406 | rm -f conftest.er1 |
| 5407 | cat conftest.err >&5 |
| 5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5409 | (exit $ac_status); } && { |
| 5410 | test -z "$ac_c_werror_flag" || |
| 5411 | test ! -s conftest.err |
| 5412 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5413 | jm_ac_cv_header_inttypes_h=yes |
| 5414 | else |
| 5415 | echo "$as_me: failed program was:" >&5 |
| 5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5418 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5419 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5420 | |
| 5421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5422 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5423 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5424 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5425 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5426 | |
| 5427 | cat >>confdefs.h <<_ACEOF |
| 5428 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5429 | _ACEOF |
| 5430 | |
| 5431 | fi |
| 5432 | |
| 5433 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5434 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5435 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5436 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5438 | else |
| 5439 | cat >conftest.$ac_ext <<_ACEOF |
| 5440 | /* confdefs.h. */ |
| 5441 | _ACEOF |
| 5442 | cat confdefs.h >>conftest.$ac_ext |
| 5443 | cat >>conftest.$ac_ext <<_ACEOF |
| 5444 | /* end confdefs.h. */ |
| 5445 | #include <sys/types.h> |
| 5446 | #include <stdint.h> |
| 5447 | int |
| 5448 | main () |
| 5449 | { |
| 5450 | uintmax_t i = (uintmax_t) -1; |
| 5451 | ; |
| 5452 | return 0; |
| 5453 | } |
| 5454 | _ACEOF |
| 5455 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5456 | if { (ac_try="$ac_compile" |
| 5457 | case "(($ac_try" in |
| 5458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5459 | *) ac_try_echo=$ac_try;; |
| 5460 | esac |
| 5461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5462 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5463 | ac_status=$? |
| 5464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5465 | rm -f conftest.er1 |
| 5466 | cat conftest.err >&5 |
| 5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5468 | (exit $ac_status); } && { |
| 5469 | test -z "$ac_c_werror_flag" || |
| 5470 | test ! -s conftest.err |
| 5471 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5472 | jm_ac_cv_header_stdint_h=yes |
| 5473 | else |
| 5474 | echo "$as_me: failed program was:" >&5 |
| 5475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5477 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5478 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5479 | |
| 5480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5482 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5483 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5484 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5485 | |
| 5486 | cat >>confdefs.h <<_ACEOF |
| 5487 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5488 | _ACEOF |
| 5489 | |
| 5490 | fi |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5495 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5496 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5497 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5499 | else |
| 5500 | cat >conftest.$ac_ext <<_ACEOF |
| 5501 | /* confdefs.h. */ |
| 5502 | _ACEOF |
| 5503 | cat confdefs.h >>conftest.$ac_ext |
| 5504 | cat >>conftest.$ac_ext <<_ACEOF |
| 5505 | /* end confdefs.h. */ |
| 5506 | |
| 5507 | #include <stddef.h> |
| 5508 | #include <stdlib.h> |
| 5509 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5510 | #include <stdint.h> |
| 5511 | #endif |
| 5512 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5513 | #include <inttypes.h> |
| 5514 | #endif |
| 5515 | |
| 5516 | int |
| 5517 | main () |
| 5518 | { |
| 5519 | intmax_t x = -1; |
| 5520 | ; |
| 5521 | return 0; |
| 5522 | } |
| 5523 | _ACEOF |
| 5524 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5525 | if { (ac_try="$ac_compile" |
| 5526 | case "(($ac_try" in |
| 5527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5528 | *) ac_try_echo=$ac_try;; |
| 5529 | esac |
| 5530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5531 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | ac_status=$? |
| 5533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5534 | rm -f conftest.er1 |
| 5535 | cat conftest.err >&5 |
| 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5537 | (exit $ac_status); } && { |
| 5538 | test -z "$ac_c_werror_flag" || |
| 5539 | test ! -s conftest.err |
| 5540 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5541 | gt_cv_c_intmax_t=yes |
| 5542 | else |
| 5543 | echo "$as_me: failed program was:" >&5 |
| 5544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5546 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5547 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5548 | |
| 5549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5550 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5551 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5552 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5553 | if test $gt_cv_c_intmax_t = yes; then |
| 5554 | |
| 5555 | cat >>confdefs.h <<\_ACEOF |
| 5556 | #define HAVE_INTMAX_T 1 |
| 5557 | _ACEOF |
| 5558 | |
| 5559 | fi |
| 5560 | |
| 5561 | |
| 5562 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5563 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5564 | 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] | 5565 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5567 | else |
| 5568 | |
| 5569 | if test "$cross_compiling" = yes; then |
| 5570 | |
| 5571 | cat >conftest.$ac_ext <<_ACEOF |
| 5572 | /* confdefs.h. */ |
| 5573 | _ACEOF |
| 5574 | cat confdefs.h >>conftest.$ac_ext |
| 5575 | cat >>conftest.$ac_ext <<_ACEOF |
| 5576 | /* end confdefs.h. */ |
| 5577 | |
| 5578 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5579 | notposix |
| 5580 | #endif |
| 5581 | |
| 5582 | _ACEOF |
| 5583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5584 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5585 | gt_cv_func_printf_posix="guessing no" |
| 5586 | else |
| 5587 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5588 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5589 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5591 | |
| 5592 | else |
| 5593 | cat >conftest.$ac_ext <<_ACEOF |
| 5594 | /* confdefs.h. */ |
| 5595 | _ACEOF |
| 5596 | cat confdefs.h >>conftest.$ac_ext |
| 5597 | cat >>conftest.$ac_ext <<_ACEOF |
| 5598 | /* end confdefs.h. */ |
| 5599 | |
| 5600 | #include <stdio.h> |
| 5601 | #include <string.h> |
| 5602 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5603 | dollar expansion (possibly an autoconf bug). */ |
| 5604 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5605 | static char buf[100]; |
| 5606 | int main () |
| 5607 | { |
| 5608 | sprintf (buf, format, 33, 55); |
| 5609 | return (strcmp (buf, "55 33") != 0); |
| 5610 | } |
| 5611 | _ACEOF |
| 5612 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5613 | if { (ac_try="$ac_link" |
| 5614 | case "(($ac_try" in |
| 5615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5616 | *) ac_try_echo=$ac_try;; |
| 5617 | esac |
| 5618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5619 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5620 | ac_status=$? |
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5623 | { (case "(($ac_try" in |
| 5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5625 | *) ac_try_echo=$ac_try;; |
| 5626 | esac |
| 5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5628 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5629 | ac_status=$? |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); }; }; then |
| 5632 | gt_cv_func_printf_posix=yes |
| 5633 | else |
| 5634 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5635 | echo "$as_me: failed program was:" >&5 |
| 5636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5637 | |
| 5638 | ( exit $ac_status ) |
| 5639 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5641 | 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] | 5642 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5644 | |
| 5645 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5647 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5648 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5649 | case $gt_cv_func_printf_posix in |
| 5650 | *yes) |
| 5651 | |
| 5652 | cat >>confdefs.h <<\_ACEOF |
| 5653 | #define HAVE_POSIX_PRINTF 1 |
| 5654 | _ACEOF |
| 5655 | |
| 5656 | ;; |
| 5657 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5658 | |
| 5659 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5660 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5661 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5662 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5663 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5665 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5666 | cat >conftest.$ac_ext <<_ACEOF |
| 5667 | /* confdefs.h. */ |
| 5668 | _ACEOF |
| 5669 | cat confdefs.h >>conftest.$ac_ext |
| 5670 | cat >>conftest.$ac_ext <<_ACEOF |
| 5671 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5672 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5673 | int |
| 5674 | main () |
| 5675 | { |
| 5676 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5678 | ; |
| 5679 | return 0; |
| 5680 | } |
| 5681 | _ACEOF |
| 5682 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5683 | if { (ac_try="$ac_link" |
| 5684 | case "(($ac_try" in |
| 5685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5686 | *) ac_try_echo=$ac_try;; |
| 5687 | esac |
| 5688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5689 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5690 | ac_status=$? |
| 5691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5692 | rm -f conftest.er1 |
| 5693 | cat conftest.err >&5 |
| 5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5695 | (exit $ac_status); } && { |
| 5696 | test -z "$ac_c_werror_flag" || |
| 5697 | test ! -s conftest.err |
| 5698 | } && test -s conftest$ac_exeext && |
| 5699 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5700 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5701 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | echo "$as_me: failed program was:" >&5 |
| 5703 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5704 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5705 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5706 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5707 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5708 | 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] | 5709 | conftest$ac_exeext conftest.$ac_ext |
| 5710 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5711 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5712 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5713 | if test $ac_cv_working_alloca_h = yes; then |
| 5714 | |
| 5715 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5716 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5717 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5718 | |
| 5719 | fi |
| 5720 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5721 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5722 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5723 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5725 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5726 | cat >conftest.$ac_ext <<_ACEOF |
| 5727 | /* confdefs.h. */ |
| 5728 | _ACEOF |
| 5729 | cat confdefs.h >>conftest.$ac_ext |
| 5730 | cat >>conftest.$ac_ext <<_ACEOF |
| 5731 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5732 | #ifdef __GNUC__ |
| 5733 | # define alloca __builtin_alloca |
| 5734 | #else |
| 5735 | # ifdef _MSC_VER |
| 5736 | # include <malloc.h> |
| 5737 | # define alloca _alloca |
| 5738 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5739 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5740 | # include <alloca.h> |
| 5741 | # else |
| 5742 | # ifdef _AIX |
| 5743 | #pragma alloca |
| 5744 | # else |
| 5745 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5746 | char *alloca (); |
| 5747 | # endif |
| 5748 | # endif |
| 5749 | # endif |
| 5750 | # endif |
| 5751 | #endif |
| 5752 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5753 | int |
| 5754 | main () |
| 5755 | { |
| 5756 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5758 | ; |
| 5759 | return 0; |
| 5760 | } |
| 5761 | _ACEOF |
| 5762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5763 | if { (ac_try="$ac_link" |
| 5764 | case "(($ac_try" in |
| 5765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5766 | *) ac_try_echo=$ac_try;; |
| 5767 | esac |
| 5768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5769 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5770 | ac_status=$? |
| 5771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5772 | rm -f conftest.er1 |
| 5773 | cat conftest.err >&5 |
| 5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5775 | (exit $ac_status); } && { |
| 5776 | test -z "$ac_c_werror_flag" || |
| 5777 | test ! -s conftest.err |
| 5778 | } && test -s conftest$ac_exeext && |
| 5779 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5780 | ac_cv_func_alloca_works=yes |
| 5781 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5782 | echo "$as_me: failed program was:" >&5 |
| 5783 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5785 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5786 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5787 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5788 | 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] | 5789 | conftest$ac_exeext conftest.$ac_ext |
| 5790 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5791 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5792 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5793 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5794 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5795 | |
| 5796 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5797 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5798 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5799 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5800 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5801 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5802 | # that cause trouble. Some versions do not even contain alloca or |
| 5803 | # contain a buggy version. If you still want to use their alloca, |
| 5804 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5805 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5806 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5807 | |
| 5808 | cat >>confdefs.h <<\_ACEOF |
| 5809 | #define C_ALLOCA 1 |
| 5810 | _ACEOF |
| 5811 | |
| 5812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5813 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5814 | 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] | 5815 | if test "${ac_cv_os_cray+set}" = set; then |
| 5816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5817 | else |
| 5818 | cat >conftest.$ac_ext <<_ACEOF |
| 5819 | /* confdefs.h. */ |
| 5820 | _ACEOF |
| 5821 | cat confdefs.h >>conftest.$ac_ext |
| 5822 | cat >>conftest.$ac_ext <<_ACEOF |
| 5823 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5824 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5825 | webecray |
| 5826 | #else |
| 5827 | wenotbecray |
| 5828 | #endif |
| 5829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5830 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5832 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5833 | ac_cv_os_cray=yes |
| 5834 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5835 | ac_cv_os_cray=no |
| 5836 | fi |
| 5837 | rm -f conftest* |
| 5838 | |
| 5839 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5840 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5841 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5842 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5843 | for ac_func in _getb67 GETB67 getb67; do |
| 5844 | 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] | 5845 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5846 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 5847 | 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] | 5848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5849 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5850 | cat >conftest.$ac_ext <<_ACEOF |
| 5851 | /* confdefs.h. */ |
| 5852 | _ACEOF |
| 5853 | cat confdefs.h >>conftest.$ac_ext |
| 5854 | cat >>conftest.$ac_ext <<_ACEOF |
| 5855 | /* end confdefs.h. */ |
| 5856 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5858 | #define $ac_func innocuous_$ac_func |
| 5859 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5860 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5861 | which can conflict with char $ac_func (); below. |
| 5862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5863 | <limits.h> exists even on freestanding compilers. */ |
| 5864 | |
| 5865 | #ifdef __STDC__ |
| 5866 | # include <limits.h> |
| 5867 | #else |
| 5868 | # include <assert.h> |
| 5869 | #endif |
| 5870 | |
| 5871 | #undef $ac_func |
| 5872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5873 | /* Override any GCC internal prototype to avoid an error. |
| 5874 | Use char because int might match the return type of a GCC |
| 5875 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5876 | #ifdef __cplusplus |
| 5877 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5878 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5879 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5880 | /* The GNU C library defines this for functions which it implements |
| 5881 | to always fail with ENOSYS. Some functions are actually named |
| 5882 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5883 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5884 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5885 | #endif |
| 5886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5887 | int |
| 5888 | main () |
| 5889 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5890 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5891 | ; |
| 5892 | return 0; |
| 5893 | } |
| 5894 | _ACEOF |
| 5895 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5896 | if { (ac_try="$ac_link" |
| 5897 | case "(($ac_try" in |
| 5898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5899 | *) ac_try_echo=$ac_try;; |
| 5900 | esac |
| 5901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5902 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5903 | ac_status=$? |
| 5904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5905 | rm -f conftest.er1 |
| 5906 | cat conftest.err >&5 |
| 5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5908 | (exit $ac_status); } && { |
| 5909 | test -z "$ac_c_werror_flag" || |
| 5910 | test ! -s conftest.err |
| 5911 | } && test -s conftest$ac_exeext && |
| 5912 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5913 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5914 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5915 | echo "$as_me: failed program was:" >&5 |
| 5916 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5918 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5920 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5921 | 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] | 5922 | conftest$ac_exeext conftest.$ac_ext |
| 5923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5924 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 5925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5926 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5927 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5928 | |
| 5929 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5930 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5932 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5933 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5934 | fi |
| 5935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5936 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5937 | fi |
| 5938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5939 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 5940 | 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] | 5941 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 5942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5943 | else |
| 5944 | if test "$cross_compiling" = yes; then |
| 5945 | ac_cv_c_stack_direction=0 |
| 5946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5947 | cat >conftest.$ac_ext <<_ACEOF |
| 5948 | /* confdefs.h. */ |
| 5949 | _ACEOF |
| 5950 | cat confdefs.h >>conftest.$ac_ext |
| 5951 | cat >>conftest.$ac_ext <<_ACEOF |
| 5952 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5953 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5954 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5955 | find_stack_direction () |
| 5956 | { |
| 5957 | static char *addr = 0; |
| 5958 | auto char dummy; |
| 5959 | if (addr == 0) |
| 5960 | { |
| 5961 | addr = &dummy; |
| 5962 | return find_stack_direction (); |
| 5963 | } |
| 5964 | else |
| 5965 | return (&dummy > addr) ? 1 : -1; |
| 5966 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5967 | |
| 5968 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5969 | main () |
| 5970 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5971 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5972 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5973 | _ACEOF |
| 5974 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5975 | if { (ac_try="$ac_link" |
| 5976 | case "(($ac_try" in |
| 5977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5978 | *) ac_try_echo=$ac_try;; |
| 5979 | esac |
| 5980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5981 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5982 | ac_status=$? |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5985 | { (case "(($ac_try" in |
| 5986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5987 | *) ac_try_echo=$ac_try;; |
| 5988 | esac |
| 5989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5990 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5991 | ac_status=$? |
| 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5994 | ac_cv_c_stack_direction=1 |
| 5995 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5996 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5997 | echo "$as_me: failed program was:" >&5 |
| 5998 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5999 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | ( exit $ac_status ) |
| 6001 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6002 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6003 | 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] | 6004 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6005 | |
| 6006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6007 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6008 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6009 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6012 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6013 | _ACEOF |
| 6014 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6015 | |
| 6016 | fi |
| 6017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6018 | |
| 6019 | |
| 6020 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6021 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6022 | 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] | 6023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6026 | 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] | 6027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6028 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6029 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6030 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6031 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6032 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6033 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6034 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6036 | cat >conftest.$ac_ext <<_ACEOF |
| 6037 | /* confdefs.h. */ |
| 6038 | _ACEOF |
| 6039 | cat confdefs.h >>conftest.$ac_ext |
| 6040 | cat >>conftest.$ac_ext <<_ACEOF |
| 6041 | /* end confdefs.h. */ |
| 6042 | $ac_includes_default |
| 6043 | #include <$ac_header> |
| 6044 | _ACEOF |
| 6045 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6046 | if { (ac_try="$ac_compile" |
| 6047 | case "(($ac_try" in |
| 6048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6049 | *) ac_try_echo=$ac_try;; |
| 6050 | esac |
| 6051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6052 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6053 | ac_status=$? |
| 6054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6055 | rm -f conftest.er1 |
| 6056 | cat conftest.err >&5 |
| 6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6058 | (exit $ac_status); } && { |
| 6059 | test -z "$ac_c_werror_flag" || |
| 6060 | test ! -s conftest.err |
| 6061 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6062 | ac_header_compiler=yes |
| 6063 | else |
| 6064 | echo "$as_me: failed program was:" >&5 |
| 6065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6067 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6068 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6069 | |
| 6070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6071 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6072 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6073 | |
| 6074 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6075 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6077 | cat >conftest.$ac_ext <<_ACEOF |
| 6078 | /* confdefs.h. */ |
| 6079 | _ACEOF |
| 6080 | cat confdefs.h >>conftest.$ac_ext |
| 6081 | cat >>conftest.$ac_ext <<_ACEOF |
| 6082 | /* end confdefs.h. */ |
| 6083 | #include <$ac_header> |
| 6084 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6085 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6086 | case "(($ac_try" in |
| 6087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6088 | *) ac_try_echo=$ac_try;; |
| 6089 | esac |
| 6090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6091 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6092 | ac_status=$? |
| 6093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6094 | rm -f conftest.er1 |
| 6095 | cat conftest.err >&5 |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6097 | (exit $ac_status); } >/dev/null && { |
| 6098 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6099 | test ! -s conftest.err |
| 6100 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | ac_header_preproc=yes |
| 6102 | else |
| 6103 | echo "$as_me: failed program was:" >&5 |
| 6104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6105 | |
| 6106 | ac_header_preproc=no |
| 6107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6108 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6110 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6111 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6112 | |
| 6113 | # So? What about this header? |
| 6114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6115 | yes:no: ) |
| 6116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6119 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6120 | ac_header_preproc=yes |
| 6121 | ;; |
| 6122 | no:yes:* ) |
| 6123 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6124 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6125 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6126 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6127 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6128 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6129 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6130 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6132 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6133 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6134 | 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] | 6135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6136 | ;; |
| 6137 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6140 | 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] | 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6142 | else |
| 6143 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6144 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6145 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6147 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6148 | |
| 6149 | fi |
| 6150 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6151 | cat >>confdefs.h <<_ACEOF |
| 6152 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6153 | _ACEOF |
| 6154 | |
| 6155 | fi |
| 6156 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6157 | done |
| 6158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6159 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6160 | for ac_func in getpagesize |
| 6161 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6162 | 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] | 6163 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6164 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6165 | 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] | 6166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6167 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | cat >conftest.$ac_ext <<_ACEOF |
| 6169 | /* confdefs.h. */ |
| 6170 | _ACEOF |
| 6171 | cat confdefs.h >>conftest.$ac_ext |
| 6172 | cat >>conftest.$ac_ext <<_ACEOF |
| 6173 | /* end confdefs.h. */ |
| 6174 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6175 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6176 | #define $ac_func innocuous_$ac_func |
| 6177 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6178 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6179 | which can conflict with char $ac_func (); below. |
| 6180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6181 | <limits.h> exists even on freestanding compilers. */ |
| 6182 | |
| 6183 | #ifdef __STDC__ |
| 6184 | # include <limits.h> |
| 6185 | #else |
| 6186 | # include <assert.h> |
| 6187 | #endif |
| 6188 | |
| 6189 | #undef $ac_func |
| 6190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6191 | /* Override any GCC internal prototype to avoid an error. |
| 6192 | Use char because int might match the return type of a GCC |
| 6193 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6194 | #ifdef __cplusplus |
| 6195 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6196 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6197 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6198 | /* The GNU C library defines this for functions which it implements |
| 6199 | to always fail with ENOSYS. Some functions are actually named |
| 6200 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6201 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6202 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6203 | #endif |
| 6204 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6205 | int |
| 6206 | main () |
| 6207 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6208 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6209 | ; |
| 6210 | return 0; |
| 6211 | } |
| 6212 | _ACEOF |
| 6213 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6214 | if { (ac_try="$ac_link" |
| 6215 | case "(($ac_try" in |
| 6216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6217 | *) ac_try_echo=$ac_try;; |
| 6218 | esac |
| 6219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6220 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6221 | ac_status=$? |
| 6222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6223 | rm -f conftest.er1 |
| 6224 | cat conftest.err >&5 |
| 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6226 | (exit $ac_status); } && { |
| 6227 | test -z "$ac_c_werror_flag" || |
| 6228 | test ! -s conftest.err |
| 6229 | } && test -s conftest$ac_exeext && |
| 6230 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6231 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6232 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6233 | echo "$as_me: failed program was:" >&5 |
| 6234 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6236 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6237 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6238 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6239 | 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] | 6240 | conftest$ac_exeext conftest.$ac_ext |
| 6241 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6242 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6244 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6246 | cat >>confdefs.h <<_ACEOF |
| 6247 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6248 | _ACEOF |
| 6249 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6250 | fi |
| 6251 | done |
| 6252 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6253 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6254 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6255 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6257 | else |
| 6258 | if test "$cross_compiling" = yes; then |
| 6259 | ac_cv_func_mmap_fixed_mapped=no |
| 6260 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6261 | cat >conftest.$ac_ext <<_ACEOF |
| 6262 | /* confdefs.h. */ |
| 6263 | _ACEOF |
| 6264 | cat confdefs.h >>conftest.$ac_ext |
| 6265 | cat >>conftest.$ac_ext <<_ACEOF |
| 6266 | /* end confdefs.h. */ |
| 6267 | $ac_includes_default |
| 6268 | /* malloc might have been renamed as rpl_malloc. */ |
| 6269 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6270 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6271 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6272 | Here is a matrix of mmap possibilities: |
| 6273 | mmap private not fixed |
| 6274 | mmap private fixed at somewhere currently unmapped |
| 6275 | mmap private fixed at somewhere already mapped |
| 6276 | mmap shared not fixed |
| 6277 | mmap shared fixed at somewhere currently unmapped |
| 6278 | mmap shared fixed at somewhere already mapped |
| 6279 | For private mappings, we should verify that changes cannot be read() |
| 6280 | back from the file, nor mmap's back from the file at a different |
| 6281 | address. (There have been systems where private was not correctly |
| 6282 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6283 | 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] | 6284 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6285 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6286 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6287 | |
| 6288 | Grep wants private fixed already mapped. |
| 6289 | The main things grep needs to know about mmap are: |
| 6290 | * does it exist and is it safe to write into the mmap'd area |
| 6291 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6292 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6293 | #include <fcntl.h> |
| 6294 | #include <sys/mman.h> |
| 6295 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6296 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6297 | char *malloc (); |
| 6298 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6299 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6300 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6301 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6302 | /* 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] | 6303 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6304 | # define HAVE_SYS_PARAM_H 1 |
| 6305 | # endif |
| 6306 | |
| 6307 | # ifdef _SC_PAGESIZE |
| 6308 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6309 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6310 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6311 | # include <sys/param.h> |
| 6312 | # ifdef EXEC_PAGESIZE |
| 6313 | # define getpagesize() EXEC_PAGESIZE |
| 6314 | # else /* no EXEC_PAGESIZE */ |
| 6315 | # ifdef NBPG |
| 6316 | # define getpagesize() NBPG * CLSIZE |
| 6317 | # ifndef CLSIZE |
| 6318 | # define CLSIZE 1 |
| 6319 | # endif /* no CLSIZE */ |
| 6320 | # else /* no NBPG */ |
| 6321 | # ifdef NBPC |
| 6322 | # define getpagesize() NBPC |
| 6323 | # else /* no NBPC */ |
| 6324 | # ifdef PAGESIZE |
| 6325 | # define getpagesize() PAGESIZE |
| 6326 | # endif /* PAGESIZE */ |
| 6327 | # endif /* no NBPC */ |
| 6328 | # endif /* no NBPG */ |
| 6329 | # endif /* no EXEC_PAGESIZE */ |
| 6330 | # else /* no HAVE_SYS_PARAM_H */ |
| 6331 | # define getpagesize() 8192 /* punt totally */ |
| 6332 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6333 | # endif /* no _SC_PAGESIZE */ |
| 6334 | |
| 6335 | #endif /* no HAVE_GETPAGESIZE */ |
| 6336 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6337 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6338 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6339 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6340 | char *data, *data2, *data3; |
| 6341 | int i, pagesize; |
| 6342 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6343 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6344 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6345 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6346 | /* First, make a file with some known garbage in it. */ |
| 6347 | data = (char *) malloc (pagesize); |
| 6348 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6349 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | for (i = 0; i < pagesize; ++i) |
| 6351 | *(data + i) = rand (); |
| 6352 | umask (0); |
| 6353 | fd = creat ("conftest.mmap", 0600); |
| 6354 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6355 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6356 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6357 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6358 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6360 | /* Next, try to mmap the file at a fixed address which already has |
| 6361 | something else allocated at it. If we can, also make sure that |
| 6362 | we see the same garbage. */ |
| 6363 | fd = open ("conftest.mmap", O_RDWR); |
| 6364 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6365 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6366 | data2 = (char *) malloc (2 * pagesize); |
| 6367 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6368 | return 1; |
| 6369 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6370 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6371 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6372 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6373 | for (i = 0; i < pagesize; ++i) |
| 6374 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6375 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6376 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6377 | /* Finally, make sure that changes to the mapped area do not |
| 6378 | percolate back to the file as seen by read(). (This is a bug on |
| 6379 | some variants of i386 svr4.0.) */ |
| 6380 | for (i = 0; i < pagesize; ++i) |
| 6381 | *(data2 + i) = *(data2 + i) + 1; |
| 6382 | data3 = (char *) malloc (pagesize); |
| 6383 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6384 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6385 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6386 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6387 | for (i = 0; i < pagesize; ++i) |
| 6388 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6389 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6390 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6391 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6392 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6393 | _ACEOF |
| 6394 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6395 | if { (ac_try="$ac_link" |
| 6396 | case "(($ac_try" in |
| 6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6398 | *) ac_try_echo=$ac_try;; |
| 6399 | esac |
| 6400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6401 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6402 | ac_status=$? |
| 6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6405 | { (case "(($ac_try" in |
| 6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6407 | *) ac_try_echo=$ac_try;; |
| 6408 | esac |
| 6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6410 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6411 | ac_status=$? |
| 6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6413 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6414 | ac_cv_func_mmap_fixed_mapped=yes |
| 6415 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6417 | echo "$as_me: failed program was:" >&5 |
| 6418 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6419 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6420 | ( exit $ac_status ) |
| 6421 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6422 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6423 | 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] | 6424 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6425 | |
| 6426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6427 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6428 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6429 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6430 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6431 | |
| 6432 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6433 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6434 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6435 | |
| 6436 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6437 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6438 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6440 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6441 | 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] | 6442 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6444 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | cat >conftest.$ac_ext <<_ACEOF |
| 6446 | /* confdefs.h. */ |
| 6447 | _ACEOF |
| 6448 | cat confdefs.h >>conftest.$ac_ext |
| 6449 | cat >>conftest.$ac_ext <<_ACEOF |
| 6450 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6451 | |
| 6452 | #include <features.h> |
| 6453 | #ifdef __GNU_LIBRARY__ |
| 6454 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6455 | Lucky GNU user |
| 6456 | #endif |
| 6457 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6458 | |
| 6459 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6461 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6462 | ac_cv_gnu_library_2_1=yes |
| 6463 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6464 | ac_cv_gnu_library_2_1=no |
| 6465 | fi |
| 6466 | rm -f conftest* |
| 6467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6468 | |
| 6469 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6471 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6472 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6473 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6474 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6475 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6476 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6477 | |
| 6478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6479 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6480 | 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] | 6481 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6484 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6485 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6486 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6487 | # Guess based on the CPU. |
| 6488 | case "$host_cpu" in |
| 6489 | alpha* | i3456786 | m68k | s390*) |
| 6490 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6491 | *) |
| 6492 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6493 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6494 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6495 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6496 | cat >conftest.$ac_ext <<_ACEOF |
| 6497 | /* confdefs.h. */ |
| 6498 | _ACEOF |
| 6499 | cat confdefs.h >>conftest.$ac_ext |
| 6500 | cat >>conftest.$ac_ext <<_ACEOF |
| 6501 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6502 | |
| 6503 | #include <stdlib.h> |
| 6504 | #include <signal.h> |
| 6505 | |
| 6506 | static void |
| 6507 | #ifdef __cplusplus |
| 6508 | sigfpe_handler (int sig) |
| 6509 | #else |
| 6510 | sigfpe_handler (sig) int sig; |
| 6511 | #endif |
| 6512 | { |
| 6513 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6514 | exit (sig != SIGFPE); |
| 6515 | } |
| 6516 | |
| 6517 | int x = 1; |
| 6518 | int y = 0; |
| 6519 | int z; |
| 6520 | int nan; |
| 6521 | |
| 6522 | int main () |
| 6523 | { |
| 6524 | signal (SIGFPE, sigfpe_handler); |
| 6525 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6526 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6527 | signal (SIGTRAP, sigfpe_handler); |
| 6528 | #endif |
| 6529 | /* Linux/SPARC yields signal SIGILL. */ |
| 6530 | #if defined (__sparc__) && defined (__linux__) |
| 6531 | signal (SIGILL, sigfpe_handler); |
| 6532 | #endif |
| 6533 | |
| 6534 | z = x / y; |
| 6535 | nan = y / y; |
| 6536 | exit (1); |
| 6537 | } |
| 6538 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6539 | _ACEOF |
| 6540 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6541 | if { (ac_try="$ac_link" |
| 6542 | case "(($ac_try" in |
| 6543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6544 | *) ac_try_echo=$ac_try;; |
| 6545 | esac |
| 6546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6547 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6548 | ac_status=$? |
| 6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6550 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6551 | { (case "(($ac_try" in |
| 6552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6553 | *) ac_try_echo=$ac_try;; |
| 6554 | esac |
| 6555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6556 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6557 | ac_status=$? |
| 6558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6559 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6560 | gt_cv_int_divbyzero_sigfpe=yes |
| 6561 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6562 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6563 | echo "$as_me: failed program was:" >&5 |
| 6564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6565 | |
| 6566 | ( exit $ac_status ) |
| 6567 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6569 | 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] | 6570 | fi |
| 6571 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6572 | |
| 6573 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6575 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6576 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6577 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6578 | *yes) value=1;; |
| 6579 | *) value=0;; |
| 6580 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6581 | |
| 6582 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6583 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6584 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6585 | |
| 6586 | |
| 6587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6588 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6589 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6590 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6592 | else |
| 6593 | cat >conftest.$ac_ext <<_ACEOF |
| 6594 | /* confdefs.h. */ |
| 6595 | _ACEOF |
| 6596 | cat confdefs.h >>conftest.$ac_ext |
| 6597 | cat >>conftest.$ac_ext <<_ACEOF |
| 6598 | /* end confdefs.h. */ |
| 6599 | unsigned long long ull = 1ULL; int i = 63; |
| 6600 | int |
| 6601 | main () |
| 6602 | { |
| 6603 | unsigned long long ullmax = (unsigned long long) -1; |
| 6604 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6605 | ; |
| 6606 | return 0; |
| 6607 | } |
| 6608 | _ACEOF |
| 6609 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6610 | if { (ac_try="$ac_link" |
| 6611 | case "(($ac_try" in |
| 6612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6613 | *) ac_try_echo=$ac_try;; |
| 6614 | esac |
| 6615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6616 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6617 | ac_status=$? |
| 6618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6619 | rm -f conftest.er1 |
| 6620 | cat conftest.err >&5 |
| 6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6622 | (exit $ac_status); } && { |
| 6623 | test -z "$ac_c_werror_flag" || |
| 6624 | test ! -s conftest.err |
| 6625 | } && test -s conftest$ac_exeext && |
| 6626 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6627 | ac_cv_type_unsigned_long_long=yes |
| 6628 | else |
| 6629 | echo "$as_me: failed program was:" >&5 |
| 6630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6632 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6634 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6635 | 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] | 6636 | conftest$ac_exeext conftest.$ac_ext |
| 6637 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6638 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6639 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6640 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6641 | |
| 6642 | cat >>confdefs.h <<\_ACEOF |
| 6643 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6644 | _ACEOF |
| 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | |
| 6649 | |
| 6650 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6651 | 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] | 6652 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6653 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6654 | && ac_type='unsigned long long' \ |
| 6655 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6656 | |
| 6657 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6658 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6659 | _ACEOF |
| 6660 | |
| 6661 | else |
| 6662 | |
| 6663 | cat >>confdefs.h <<\_ACEOF |
| 6664 | #define HAVE_UINTMAX_T 1 |
| 6665 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6666 | |
| 6667 | fi |
| 6668 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6669 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6670 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6671 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6674 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | |
| 6676 | cat >conftest.$ac_ext <<_ACEOF |
| 6677 | /* confdefs.h. */ |
| 6678 | _ACEOF |
| 6679 | cat confdefs.h >>conftest.$ac_ext |
| 6680 | cat >>conftest.$ac_ext <<_ACEOF |
| 6681 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6682 | #include <sys/types.h> |
| 6683 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | int |
| 6685 | main () |
| 6686 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | ; |
| 6689 | return 0; |
| 6690 | } |
| 6691 | _ACEOF |
| 6692 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6693 | if { (ac_try="$ac_compile" |
| 6694 | case "(($ac_try" in |
| 6695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6696 | *) ac_try_echo=$ac_try;; |
| 6697 | esac |
| 6698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6699 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6700 | ac_status=$? |
| 6701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6702 | rm -f conftest.er1 |
| 6703 | cat conftest.err >&5 |
| 6704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6705 | (exit $ac_status); } && { |
| 6706 | test -z "$ac_c_werror_flag" || |
| 6707 | test ! -s conftest.err |
| 6708 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6709 | gt_cv_header_inttypes_h=yes |
| 6710 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6711 | echo "$as_me: failed program was:" >&5 |
| 6712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6714 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6716 | |
| 6717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6718 | |
| 6719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6721 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6722 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6723 | |
| 6724 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6725 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6727 | |
| 6728 | fi |
| 6729 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6731 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6732 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6733 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6734 | 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] | 6735 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6737 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6738 | |
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | /* confdefs.h. */ |
| 6741 | _ACEOF |
| 6742 | cat confdefs.h >>conftest.$ac_ext |
| 6743 | cat >>conftest.$ac_ext <<_ACEOF |
| 6744 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6745 | #include <inttypes.h> |
| 6746 | #ifdef PRId32 |
| 6747 | char *p = PRId32; |
| 6748 | #endif |
| 6749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | int |
| 6751 | main () |
| 6752 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6753 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | ; |
| 6755 | return 0; |
| 6756 | } |
| 6757 | _ACEOF |
| 6758 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6759 | if { (ac_try="$ac_compile" |
| 6760 | case "(($ac_try" in |
| 6761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6762 | *) ac_try_echo=$ac_try;; |
| 6763 | esac |
| 6764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6765 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | ac_status=$? |
| 6767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6768 | rm -f conftest.er1 |
| 6769 | cat conftest.err >&5 |
| 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6771 | (exit $ac_status); } && { |
| 6772 | test -z "$ac_c_werror_flag" || |
| 6773 | test ! -s conftest.err |
| 6774 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6775 | gt_cv_inttypes_pri_broken=no |
| 6776 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6777 | echo "$as_me: failed program was:" >&5 |
| 6778 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6779 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6780 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6782 | |
| 6783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | |
| 6785 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6787 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6788 | fi |
| 6789 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | |
| 6791 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6792 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6793 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6794 | |
| 6795 | fi |
| 6796 | |
| 6797 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6798 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6799 | for ac_header in stdint.h |
| 6800 | do |
| 6801 | 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] | 6802 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6803 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6805 | 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] | 6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6807 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6808 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6809 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6810 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | else |
| 6812 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6813 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | cat >conftest.$ac_ext <<_ACEOF |
| 6816 | /* confdefs.h. */ |
| 6817 | _ACEOF |
| 6818 | cat confdefs.h >>conftest.$ac_ext |
| 6819 | cat >>conftest.$ac_ext <<_ACEOF |
| 6820 | /* end confdefs.h. */ |
| 6821 | $ac_includes_default |
| 6822 | #include <$ac_header> |
| 6823 | _ACEOF |
| 6824 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6825 | if { (ac_try="$ac_compile" |
| 6826 | case "(($ac_try" in |
| 6827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6828 | *) ac_try_echo=$ac_try;; |
| 6829 | esac |
| 6830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6831 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6832 | ac_status=$? |
| 6833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6834 | rm -f conftest.er1 |
| 6835 | cat conftest.err >&5 |
| 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6837 | (exit $ac_status); } && { |
| 6838 | test -z "$ac_c_werror_flag" || |
| 6839 | test ! -s conftest.err |
| 6840 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6841 | ac_header_compiler=yes |
| 6842 | else |
| 6843 | echo "$as_me: failed program was:" >&5 |
| 6844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6846 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6848 | |
| 6849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6850 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6851 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6852 | |
| 6853 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6854 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6855 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6856 | cat >conftest.$ac_ext <<_ACEOF |
| 6857 | /* confdefs.h. */ |
| 6858 | _ACEOF |
| 6859 | cat confdefs.h >>conftest.$ac_ext |
| 6860 | cat >>conftest.$ac_ext <<_ACEOF |
| 6861 | /* end confdefs.h. */ |
| 6862 | #include <$ac_header> |
| 6863 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6864 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6865 | case "(($ac_try" in |
| 6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6867 | *) ac_try_echo=$ac_try;; |
| 6868 | esac |
| 6869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6871 | ac_status=$? |
| 6872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6873 | rm -f conftest.er1 |
| 6874 | cat conftest.err >&5 |
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6876 | (exit $ac_status); } >/dev/null && { |
| 6877 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6878 | test ! -s conftest.err |
| 6879 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | ac_header_preproc=yes |
| 6881 | else |
| 6882 | echo "$as_me: failed program was:" >&5 |
| 6883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6884 | |
| 6885 | ac_header_preproc=no |
| 6886 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6889 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6890 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6891 | |
| 6892 | # So? What about this header? |
| 6893 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6894 | yes:no: ) |
| 6895 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6896 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6897 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6898 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6899 | ac_header_preproc=yes |
| 6900 | ;; |
| 6901 | no:yes:* ) |
| 6902 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6903 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6904 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6905 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6906 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6907 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6908 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6909 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6912 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6913 | 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] | 6914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6915 | ;; |
| 6916 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6917 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6919 | 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] | 6920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6921 | else |
| 6922 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6924 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6926 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6927 | |
| 6928 | fi |
| 6929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6930 | cat >>confdefs.h <<_ACEOF |
| 6931 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6932 | _ACEOF |
| 6933 | |
| 6934 | fi |
| 6935 | |
| 6936 | done |
| 6937 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6938 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 6939 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6940 | result= |
| 6941 | cat >conftest.$ac_ext <<_ACEOF |
| 6942 | /* confdefs.h. */ |
| 6943 | _ACEOF |
| 6944 | cat confdefs.h >>conftest.$ac_ext |
| 6945 | cat >>conftest.$ac_ext <<_ACEOF |
| 6946 | /* end confdefs.h. */ |
| 6947 | |
| 6948 | #include <limits.h> |
| 6949 | #if HAVE_STDINT_H |
| 6950 | #include <stdint.h> |
| 6951 | #endif |
| 6952 | #ifdef SIZE_MAX |
| 6953 | Found it |
| 6954 | #endif |
| 6955 | |
| 6956 | _ACEOF |
| 6957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6958 | $EGREP "Found it" >/dev/null 2>&1; then |
| 6959 | result=yes |
| 6960 | fi |
| 6961 | rm -f conftest* |
| 6962 | |
| 6963 | if test -z "$result"; then |
| 6964 | if test "$cross_compiling" = yes; then |
| 6965 | # Depending upon the size, compute the lo and hi bounds. |
| 6966 | cat >conftest.$ac_ext <<_ACEOF |
| 6967 | /* confdefs.h. */ |
| 6968 | _ACEOF |
| 6969 | cat confdefs.h >>conftest.$ac_ext |
| 6970 | cat >>conftest.$ac_ext <<_ACEOF |
| 6971 | /* end confdefs.h. */ |
| 6972 | #include <stddef.h> |
| 6973 | int |
| 6974 | main () |
| 6975 | { |
| 6976 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 6977 | test_array [0] = 0 |
| 6978 | |
| 6979 | ; |
| 6980 | return 0; |
| 6981 | } |
| 6982 | _ACEOF |
| 6983 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6984 | if { (ac_try="$ac_compile" |
| 6985 | case "(($ac_try" in |
| 6986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6987 | *) ac_try_echo=$ac_try;; |
| 6988 | esac |
| 6989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6990 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | ac_status=$? |
| 6992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6993 | rm -f conftest.er1 |
| 6994 | cat conftest.err >&5 |
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6996 | (exit $ac_status); } && { |
| 6997 | test -z "$ac_c_werror_flag" || |
| 6998 | test ! -s conftest.err |
| 6999 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7000 | ac_lo=0 ac_mid=0 |
| 7001 | while :; do |
| 7002 | cat >conftest.$ac_ext <<_ACEOF |
| 7003 | /* confdefs.h. */ |
| 7004 | _ACEOF |
| 7005 | cat confdefs.h >>conftest.$ac_ext |
| 7006 | cat >>conftest.$ac_ext <<_ACEOF |
| 7007 | /* end confdefs.h. */ |
| 7008 | #include <stddef.h> |
| 7009 | int |
| 7010 | main () |
| 7011 | { |
| 7012 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7013 | test_array [0] = 0 |
| 7014 | |
| 7015 | ; |
| 7016 | return 0; |
| 7017 | } |
| 7018 | _ACEOF |
| 7019 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7020 | if { (ac_try="$ac_compile" |
| 7021 | case "(($ac_try" in |
| 7022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7023 | *) ac_try_echo=$ac_try;; |
| 7024 | esac |
| 7025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7026 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | ac_status=$? |
| 7028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7029 | rm -f conftest.er1 |
| 7030 | cat conftest.err >&5 |
| 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7032 | (exit $ac_status); } && { |
| 7033 | test -z "$ac_c_werror_flag" || |
| 7034 | test ! -s conftest.err |
| 7035 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7036 | ac_hi=$ac_mid; break |
| 7037 | else |
| 7038 | echo "$as_me: failed program was:" >&5 |
| 7039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7041 | ac_lo=`expr $ac_mid + 1` |
| 7042 | if test $ac_lo -le $ac_mid; then |
| 7043 | ac_lo= ac_hi= |
| 7044 | break |
| 7045 | fi |
| 7046 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7047 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7048 | |
| 7049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7050 | done |
| 7051 | else |
| 7052 | echo "$as_me: failed program was:" >&5 |
| 7053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7055 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
| 7061 | #include <stddef.h> |
| 7062 | int |
| 7063 | main () |
| 7064 | { |
| 7065 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7066 | test_array [0] = 0 |
| 7067 | |
| 7068 | ; |
| 7069 | return 0; |
| 7070 | } |
| 7071 | _ACEOF |
| 7072 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7073 | if { (ac_try="$ac_compile" |
| 7074 | case "(($ac_try" in |
| 7075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7076 | *) ac_try_echo=$ac_try;; |
| 7077 | esac |
| 7078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7079 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7080 | ac_status=$? |
| 7081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7082 | rm -f conftest.er1 |
| 7083 | cat conftest.err >&5 |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7085 | (exit $ac_status); } && { |
| 7086 | test -z "$ac_c_werror_flag" || |
| 7087 | test ! -s conftest.err |
| 7088 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | ac_hi=-1 ac_mid=-1 |
| 7090 | while :; do |
| 7091 | cat >conftest.$ac_ext <<_ACEOF |
| 7092 | /* confdefs.h. */ |
| 7093 | _ACEOF |
| 7094 | cat confdefs.h >>conftest.$ac_ext |
| 7095 | cat >>conftest.$ac_ext <<_ACEOF |
| 7096 | /* end confdefs.h. */ |
| 7097 | #include <stddef.h> |
| 7098 | int |
| 7099 | main () |
| 7100 | { |
| 7101 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7102 | test_array [0] = 0 |
| 7103 | |
| 7104 | ; |
| 7105 | return 0; |
| 7106 | } |
| 7107 | _ACEOF |
| 7108 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7109 | if { (ac_try="$ac_compile" |
| 7110 | case "(($ac_try" in |
| 7111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7112 | *) ac_try_echo=$ac_try;; |
| 7113 | esac |
| 7114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7115 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7116 | ac_status=$? |
| 7117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7118 | rm -f conftest.er1 |
| 7119 | cat conftest.err >&5 |
| 7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7121 | (exit $ac_status); } && { |
| 7122 | test -z "$ac_c_werror_flag" || |
| 7123 | test ! -s conftest.err |
| 7124 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7125 | ac_lo=$ac_mid; break |
| 7126 | else |
| 7127 | echo "$as_me: failed program was:" >&5 |
| 7128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7129 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7130 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7131 | if test $ac_mid -le $ac_hi; then |
| 7132 | ac_lo= ac_hi= |
| 7133 | break |
| 7134 | fi |
| 7135 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7136 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7137 | |
| 7138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7139 | done |
| 7140 | else |
| 7141 | echo "$as_me: failed program was:" >&5 |
| 7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7143 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7144 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7145 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7146 | |
| 7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7149 | |
| 7150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7151 | # Binary search between lo and hi bounds. |
| 7152 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7153 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7154 | cat >conftest.$ac_ext <<_ACEOF |
| 7155 | /* confdefs.h. */ |
| 7156 | _ACEOF |
| 7157 | cat confdefs.h >>conftest.$ac_ext |
| 7158 | cat >>conftest.$ac_ext <<_ACEOF |
| 7159 | /* end confdefs.h. */ |
| 7160 | #include <stddef.h> |
| 7161 | int |
| 7162 | main () |
| 7163 | { |
| 7164 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7165 | test_array [0] = 0 |
| 7166 | |
| 7167 | ; |
| 7168 | return 0; |
| 7169 | } |
| 7170 | _ACEOF |
| 7171 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7172 | if { (ac_try="$ac_compile" |
| 7173 | case "(($ac_try" in |
| 7174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7175 | *) ac_try_echo=$ac_try;; |
| 7176 | esac |
| 7177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7178 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7179 | ac_status=$? |
| 7180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7181 | rm -f conftest.er1 |
| 7182 | cat conftest.err >&5 |
| 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7184 | (exit $ac_status); } && { |
| 7185 | test -z "$ac_c_werror_flag" || |
| 7186 | test ! -s conftest.err |
| 7187 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7188 | ac_hi=$ac_mid |
| 7189 | else |
| 7190 | echo "$as_me: failed program was:" >&5 |
| 7191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7193 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7195 | |
| 7196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7197 | done |
| 7198 | case $ac_lo in |
| 7199 | ?*) res_hi=$ac_lo;; |
| 7200 | '') result=? ;; |
| 7201 | esac |
| 7202 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | cat >conftest.$ac_ext <<_ACEOF |
| 7204 | /* confdefs.h. */ |
| 7205 | _ACEOF |
| 7206 | cat confdefs.h >>conftest.$ac_ext |
| 7207 | cat >>conftest.$ac_ext <<_ACEOF |
| 7208 | /* end confdefs.h. */ |
| 7209 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7210 | static long int longval () { return ~(size_t)0 / 10; } |
| 7211 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | #include <stdio.h> |
| 7213 | #include <stdlib.h> |
| 7214 | int |
| 7215 | main () |
| 7216 | { |
| 7217 | |
| 7218 | FILE *f = fopen ("conftest.val", "w"); |
| 7219 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7220 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7221 | if ((~(size_t)0 / 10) < 0) |
| 7222 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7223 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7224 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7225 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7226 | fprintf (f, "%ld\n", i); |
| 7227 | } |
| 7228 | else |
| 7229 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7230 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7232 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7233 | fprintf (f, "%lu\n", i); |
| 7234 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7235 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7236 | |
| 7237 | ; |
| 7238 | return 0; |
| 7239 | } |
| 7240 | _ACEOF |
| 7241 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7242 | if { (ac_try="$ac_link" |
| 7243 | case "(($ac_try" in |
| 7244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7245 | *) ac_try_echo=$ac_try;; |
| 7246 | esac |
| 7247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7248 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7249 | ac_status=$? |
| 7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7252 | { (case "(($ac_try" in |
| 7253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7254 | *) ac_try_echo=$ac_try;; |
| 7255 | esac |
| 7256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7257 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7258 | ac_status=$? |
| 7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7260 | (exit $ac_status); }; }; then |
| 7261 | res_hi=`cat conftest.val` |
| 7262 | else |
| 7263 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7264 | echo "$as_me: failed program was:" >&5 |
| 7265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7266 | |
| 7267 | ( exit $ac_status ) |
| 7268 | result=? |
| 7269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7270 | 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] | 7271 | fi |
| 7272 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7273 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7274 | if test "$cross_compiling" = yes; then |
| 7275 | # Depending upon the size, compute the lo and hi bounds. |
| 7276 | cat >conftest.$ac_ext <<_ACEOF |
| 7277 | /* confdefs.h. */ |
| 7278 | _ACEOF |
| 7279 | cat confdefs.h >>conftest.$ac_ext |
| 7280 | cat >>conftest.$ac_ext <<_ACEOF |
| 7281 | /* end confdefs.h. */ |
| 7282 | #include <stddef.h> |
| 7283 | int |
| 7284 | main () |
| 7285 | { |
| 7286 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7287 | test_array [0] = 0 |
| 7288 | |
| 7289 | ; |
| 7290 | return 0; |
| 7291 | } |
| 7292 | _ACEOF |
| 7293 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7294 | if { (ac_try="$ac_compile" |
| 7295 | case "(($ac_try" in |
| 7296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7297 | *) ac_try_echo=$ac_try;; |
| 7298 | esac |
| 7299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7300 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7301 | ac_status=$? |
| 7302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7303 | rm -f conftest.er1 |
| 7304 | cat conftest.err >&5 |
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7306 | (exit $ac_status); } && { |
| 7307 | test -z "$ac_c_werror_flag" || |
| 7308 | test ! -s conftest.err |
| 7309 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | ac_lo=0 ac_mid=0 |
| 7311 | while :; do |
| 7312 | cat >conftest.$ac_ext <<_ACEOF |
| 7313 | /* confdefs.h. */ |
| 7314 | _ACEOF |
| 7315 | cat confdefs.h >>conftest.$ac_ext |
| 7316 | cat >>conftest.$ac_ext <<_ACEOF |
| 7317 | /* end confdefs.h. */ |
| 7318 | #include <stddef.h> |
| 7319 | int |
| 7320 | main () |
| 7321 | { |
| 7322 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7323 | test_array [0] = 0 |
| 7324 | |
| 7325 | ; |
| 7326 | return 0; |
| 7327 | } |
| 7328 | _ACEOF |
| 7329 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7330 | if { (ac_try="$ac_compile" |
| 7331 | case "(($ac_try" in |
| 7332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7333 | *) ac_try_echo=$ac_try;; |
| 7334 | esac |
| 7335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7336 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7337 | ac_status=$? |
| 7338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7339 | rm -f conftest.er1 |
| 7340 | cat conftest.err >&5 |
| 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7342 | (exit $ac_status); } && { |
| 7343 | test -z "$ac_c_werror_flag" || |
| 7344 | test ! -s conftest.err |
| 7345 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7346 | ac_hi=$ac_mid; break |
| 7347 | else |
| 7348 | echo "$as_me: failed program was:" >&5 |
| 7349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7350 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7351 | ac_lo=`expr $ac_mid + 1` |
| 7352 | if test $ac_lo -le $ac_mid; then |
| 7353 | ac_lo= ac_hi= |
| 7354 | break |
| 7355 | fi |
| 7356 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7357 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7358 | |
| 7359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7360 | done |
| 7361 | else |
| 7362 | echo "$as_me: failed program was:" >&5 |
| 7363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7364 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7365 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7366 | /* confdefs.h. */ |
| 7367 | _ACEOF |
| 7368 | cat confdefs.h >>conftest.$ac_ext |
| 7369 | cat >>conftest.$ac_ext <<_ACEOF |
| 7370 | /* end confdefs.h. */ |
| 7371 | #include <stddef.h> |
| 7372 | int |
| 7373 | main () |
| 7374 | { |
| 7375 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7376 | test_array [0] = 0 |
| 7377 | |
| 7378 | ; |
| 7379 | return 0; |
| 7380 | } |
| 7381 | _ACEOF |
| 7382 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7383 | if { (ac_try="$ac_compile" |
| 7384 | case "(($ac_try" in |
| 7385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7386 | *) ac_try_echo=$ac_try;; |
| 7387 | esac |
| 7388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7389 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7390 | ac_status=$? |
| 7391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7392 | rm -f conftest.er1 |
| 7393 | cat conftest.err >&5 |
| 7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7395 | (exit $ac_status); } && { |
| 7396 | test -z "$ac_c_werror_flag" || |
| 7397 | test ! -s conftest.err |
| 7398 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7399 | ac_hi=-1 ac_mid=-1 |
| 7400 | while :; do |
| 7401 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | /* confdefs.h. */ |
| 7403 | _ACEOF |
| 7404 | cat confdefs.h >>conftest.$ac_ext |
| 7405 | cat >>conftest.$ac_ext <<_ACEOF |
| 7406 | /* end confdefs.h. */ |
| 7407 | #include <stddef.h> |
| 7408 | int |
| 7409 | main () |
| 7410 | { |
| 7411 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7412 | test_array [0] = 0 |
| 7413 | |
| 7414 | ; |
| 7415 | return 0; |
| 7416 | } |
| 7417 | _ACEOF |
| 7418 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7419 | if { (ac_try="$ac_compile" |
| 7420 | case "(($ac_try" in |
| 7421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7422 | *) ac_try_echo=$ac_try;; |
| 7423 | esac |
| 7424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7425 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7426 | ac_status=$? |
| 7427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7428 | rm -f conftest.er1 |
| 7429 | cat conftest.err >&5 |
| 7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7431 | (exit $ac_status); } && { |
| 7432 | test -z "$ac_c_werror_flag" || |
| 7433 | test ! -s conftest.err |
| 7434 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7435 | ac_lo=$ac_mid; break |
| 7436 | else |
| 7437 | echo "$as_me: failed program was:" >&5 |
| 7438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7439 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7440 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7441 | if test $ac_mid -le $ac_hi; then |
| 7442 | ac_lo= ac_hi= |
| 7443 | break |
| 7444 | fi |
| 7445 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7446 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7447 | |
| 7448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7449 | done |
| 7450 | else |
| 7451 | echo "$as_me: failed program was:" >&5 |
| 7452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7453 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7454 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7456 | |
| 7457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7458 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7459 | |
| 7460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7461 | # Binary search between lo and hi bounds. |
| 7462 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7463 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7464 | cat >conftest.$ac_ext <<_ACEOF |
| 7465 | /* confdefs.h. */ |
| 7466 | _ACEOF |
| 7467 | cat confdefs.h >>conftest.$ac_ext |
| 7468 | cat >>conftest.$ac_ext <<_ACEOF |
| 7469 | /* end confdefs.h. */ |
| 7470 | #include <stddef.h> |
| 7471 | int |
| 7472 | main () |
| 7473 | { |
| 7474 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7475 | test_array [0] = 0 |
| 7476 | |
| 7477 | ; |
| 7478 | return 0; |
| 7479 | } |
| 7480 | _ACEOF |
| 7481 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7482 | if { (ac_try="$ac_compile" |
| 7483 | case "(($ac_try" in |
| 7484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7485 | *) ac_try_echo=$ac_try;; |
| 7486 | esac |
| 7487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7488 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7489 | ac_status=$? |
| 7490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7491 | rm -f conftest.er1 |
| 7492 | cat conftest.err >&5 |
| 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7494 | (exit $ac_status); } && { |
| 7495 | test -z "$ac_c_werror_flag" || |
| 7496 | test ! -s conftest.err |
| 7497 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7498 | ac_hi=$ac_mid |
| 7499 | else |
| 7500 | echo "$as_me: failed program was:" >&5 |
| 7501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7503 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7504 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7505 | |
| 7506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7507 | done |
| 7508 | case $ac_lo in |
| 7509 | ?*) res_lo=$ac_lo;; |
| 7510 | '') result=? ;; |
| 7511 | esac |
| 7512 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7513 | cat >conftest.$ac_ext <<_ACEOF |
| 7514 | /* confdefs.h. */ |
| 7515 | _ACEOF |
| 7516 | cat confdefs.h >>conftest.$ac_ext |
| 7517 | cat >>conftest.$ac_ext <<_ACEOF |
| 7518 | /* end confdefs.h. */ |
| 7519 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7520 | static long int longval () { return ~(size_t)0 % 10; } |
| 7521 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | #include <stdio.h> |
| 7523 | #include <stdlib.h> |
| 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | |
| 7528 | FILE *f = fopen ("conftest.val", "w"); |
| 7529 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7530 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7531 | if ((~(size_t)0 % 10) < 0) |
| 7532 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7533 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7534 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7535 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7536 | fprintf (f, "%ld\n", i); |
| 7537 | } |
| 7538 | else |
| 7539 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7540 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7541 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7542 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7543 | fprintf (f, "%lu\n", i); |
| 7544 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7545 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7546 | |
| 7547 | ; |
| 7548 | return 0; |
| 7549 | } |
| 7550 | _ACEOF |
| 7551 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7552 | if { (ac_try="$ac_link" |
| 7553 | case "(($ac_try" in |
| 7554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7555 | *) ac_try_echo=$ac_try;; |
| 7556 | esac |
| 7557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7558 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7559 | ac_status=$? |
| 7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7562 | { (case "(($ac_try" in |
| 7563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7564 | *) ac_try_echo=$ac_try;; |
| 7565 | esac |
| 7566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7567 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | ac_status=$? |
| 7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7570 | (exit $ac_status); }; }; then |
| 7571 | res_lo=`cat conftest.val` |
| 7572 | else |
| 7573 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7574 | echo "$as_me: failed program was:" >&5 |
| 7575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7576 | |
| 7577 | ( exit $ac_status ) |
| 7578 | result=? |
| 7579 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7580 | 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] | 7581 | fi |
| 7582 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7584 | if test "$cross_compiling" = yes; then |
| 7585 | # Depending upon the size, compute the lo and hi bounds. |
| 7586 | cat >conftest.$ac_ext <<_ACEOF |
| 7587 | /* confdefs.h. */ |
| 7588 | _ACEOF |
| 7589 | cat confdefs.h >>conftest.$ac_ext |
| 7590 | cat >>conftest.$ac_ext <<_ACEOF |
| 7591 | /* end confdefs.h. */ |
| 7592 | #include <stddef.h> |
| 7593 | int |
| 7594 | main () |
| 7595 | { |
| 7596 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7597 | test_array [0] = 0 |
| 7598 | |
| 7599 | ; |
| 7600 | return 0; |
| 7601 | } |
| 7602 | _ACEOF |
| 7603 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7604 | if { (ac_try="$ac_compile" |
| 7605 | case "(($ac_try" in |
| 7606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7607 | *) ac_try_echo=$ac_try;; |
| 7608 | esac |
| 7609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7610 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7611 | ac_status=$? |
| 7612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7613 | rm -f conftest.er1 |
| 7614 | cat conftest.err >&5 |
| 7615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7616 | (exit $ac_status); } && { |
| 7617 | test -z "$ac_c_werror_flag" || |
| 7618 | test ! -s conftest.err |
| 7619 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | ac_lo=0 ac_mid=0 |
| 7621 | while :; do |
| 7622 | cat >conftest.$ac_ext <<_ACEOF |
| 7623 | /* confdefs.h. */ |
| 7624 | _ACEOF |
| 7625 | cat confdefs.h >>conftest.$ac_ext |
| 7626 | cat >>conftest.$ac_ext <<_ACEOF |
| 7627 | /* end confdefs.h. */ |
| 7628 | #include <stddef.h> |
| 7629 | int |
| 7630 | main () |
| 7631 | { |
| 7632 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7633 | test_array [0] = 0 |
| 7634 | |
| 7635 | ; |
| 7636 | return 0; |
| 7637 | } |
| 7638 | _ACEOF |
| 7639 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7640 | if { (ac_try="$ac_compile" |
| 7641 | case "(($ac_try" in |
| 7642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7643 | *) ac_try_echo=$ac_try;; |
| 7644 | esac |
| 7645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7646 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7647 | ac_status=$? |
| 7648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7649 | rm -f conftest.er1 |
| 7650 | cat conftest.err >&5 |
| 7651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7652 | (exit $ac_status); } && { |
| 7653 | test -z "$ac_c_werror_flag" || |
| 7654 | test ! -s conftest.err |
| 7655 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7656 | ac_hi=$ac_mid; break |
| 7657 | else |
| 7658 | echo "$as_me: failed program was:" >&5 |
| 7659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7660 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7661 | ac_lo=`expr $ac_mid + 1` |
| 7662 | if test $ac_lo -le $ac_mid; then |
| 7663 | ac_lo= ac_hi= |
| 7664 | break |
| 7665 | fi |
| 7666 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7668 | |
| 7669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | done |
| 7671 | else |
| 7672 | echo "$as_me: failed program was:" >&5 |
| 7673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7674 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7675 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7676 | /* confdefs.h. */ |
| 7677 | _ACEOF |
| 7678 | cat confdefs.h >>conftest.$ac_ext |
| 7679 | cat >>conftest.$ac_ext <<_ACEOF |
| 7680 | /* end confdefs.h. */ |
| 7681 | #include <stddef.h> |
| 7682 | int |
| 7683 | main () |
| 7684 | { |
| 7685 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7686 | test_array [0] = 0 |
| 7687 | |
| 7688 | ; |
| 7689 | return 0; |
| 7690 | } |
| 7691 | _ACEOF |
| 7692 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7693 | if { (ac_try="$ac_compile" |
| 7694 | case "(($ac_try" in |
| 7695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7696 | *) ac_try_echo=$ac_try;; |
| 7697 | esac |
| 7698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7699 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7700 | ac_status=$? |
| 7701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7702 | rm -f conftest.er1 |
| 7703 | cat conftest.err >&5 |
| 7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7705 | (exit $ac_status); } && { |
| 7706 | test -z "$ac_c_werror_flag" || |
| 7707 | test ! -s conftest.err |
| 7708 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7709 | ac_hi=-1 ac_mid=-1 |
| 7710 | while :; do |
| 7711 | cat >conftest.$ac_ext <<_ACEOF |
| 7712 | /* confdefs.h. */ |
| 7713 | _ACEOF |
| 7714 | cat confdefs.h >>conftest.$ac_ext |
| 7715 | cat >>conftest.$ac_ext <<_ACEOF |
| 7716 | /* end confdefs.h. */ |
| 7717 | #include <stddef.h> |
| 7718 | int |
| 7719 | main () |
| 7720 | { |
| 7721 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7722 | test_array [0] = 0 |
| 7723 | |
| 7724 | ; |
| 7725 | return 0; |
| 7726 | } |
| 7727 | _ACEOF |
| 7728 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7729 | if { (ac_try="$ac_compile" |
| 7730 | case "(($ac_try" in |
| 7731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7732 | *) ac_try_echo=$ac_try;; |
| 7733 | esac |
| 7734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7735 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7736 | ac_status=$? |
| 7737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7738 | rm -f conftest.er1 |
| 7739 | cat conftest.err >&5 |
| 7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7741 | (exit $ac_status); } && { |
| 7742 | test -z "$ac_c_werror_flag" || |
| 7743 | test ! -s conftest.err |
| 7744 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7745 | ac_lo=$ac_mid; break |
| 7746 | else |
| 7747 | echo "$as_me: failed program was:" >&5 |
| 7748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7749 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7750 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7751 | if test $ac_mid -le $ac_hi; then |
| 7752 | ac_lo= ac_hi= |
| 7753 | break |
| 7754 | fi |
| 7755 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7756 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7757 | |
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7759 | done |
| 7760 | else |
| 7761 | echo "$as_me: failed program was:" >&5 |
| 7762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7764 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7765 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7766 | |
| 7767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7768 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7769 | |
| 7770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7771 | # Binary search between lo and hi bounds. |
| 7772 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7773 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7774 | cat >conftest.$ac_ext <<_ACEOF |
| 7775 | /* confdefs.h. */ |
| 7776 | _ACEOF |
| 7777 | cat confdefs.h >>conftest.$ac_ext |
| 7778 | cat >>conftest.$ac_ext <<_ACEOF |
| 7779 | /* end confdefs.h. */ |
| 7780 | #include <stddef.h> |
| 7781 | int |
| 7782 | main () |
| 7783 | { |
| 7784 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7785 | test_array [0] = 0 |
| 7786 | |
| 7787 | ; |
| 7788 | return 0; |
| 7789 | } |
| 7790 | _ACEOF |
| 7791 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7792 | if { (ac_try="$ac_compile" |
| 7793 | case "(($ac_try" in |
| 7794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7795 | *) ac_try_echo=$ac_try;; |
| 7796 | esac |
| 7797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7798 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7799 | ac_status=$? |
| 7800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7801 | rm -f conftest.er1 |
| 7802 | cat conftest.err >&5 |
| 7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7804 | (exit $ac_status); } && { |
| 7805 | test -z "$ac_c_werror_flag" || |
| 7806 | test ! -s conftest.err |
| 7807 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7808 | ac_hi=$ac_mid |
| 7809 | else |
| 7810 | echo "$as_me: failed program was:" >&5 |
| 7811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7813 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7814 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7815 | |
| 7816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7817 | done |
| 7818 | case $ac_lo in |
| 7819 | ?*) fits_in_uint=$ac_lo;; |
| 7820 | '') result=? ;; |
| 7821 | esac |
| 7822 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7823 | cat >conftest.$ac_ext <<_ACEOF |
| 7824 | /* confdefs.h. */ |
| 7825 | _ACEOF |
| 7826 | cat confdefs.h >>conftest.$ac_ext |
| 7827 | cat >>conftest.$ac_ext <<_ACEOF |
| 7828 | /* end confdefs.h. */ |
| 7829 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7830 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7831 | 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] | 7832 | #include <stdio.h> |
| 7833 | #include <stdlib.h> |
| 7834 | int |
| 7835 | main () |
| 7836 | { |
| 7837 | |
| 7838 | FILE *f = fopen ("conftest.val", "w"); |
| 7839 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7840 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7841 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7842 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7843 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7844 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7845 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7846 | fprintf (f, "%ld\n", i); |
| 7847 | } |
| 7848 | else |
| 7849 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7850 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7851 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7852 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7853 | fprintf (f, "%lu\n", i); |
| 7854 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7855 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7856 | |
| 7857 | ; |
| 7858 | return 0; |
| 7859 | } |
| 7860 | _ACEOF |
| 7861 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7862 | if { (ac_try="$ac_link" |
| 7863 | case "(($ac_try" in |
| 7864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7865 | *) ac_try_echo=$ac_try;; |
| 7866 | esac |
| 7867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7868 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7869 | ac_status=$? |
| 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7872 | { (case "(($ac_try" in |
| 7873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7874 | *) ac_try_echo=$ac_try;; |
| 7875 | esac |
| 7876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7877 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7878 | ac_status=$? |
| 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7880 | (exit $ac_status); }; }; then |
| 7881 | fits_in_uint=`cat conftest.val` |
| 7882 | else |
| 7883 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7884 | echo "$as_me: failed program was:" >&5 |
| 7885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7886 | |
| 7887 | ( exit $ac_status ) |
| 7888 | result=? |
| 7889 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7890 | 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] | 7891 | fi |
| 7892 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7893 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7894 | if test "$fits_in_uint" = 1; then |
| 7895 | cat >conftest.$ac_ext <<_ACEOF |
| 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
| 7900 | /* end confdefs.h. */ |
| 7901 | #include <stddef.h> |
| 7902 | extern size_t foo; |
| 7903 | extern unsigned long foo; |
| 7904 | |
| 7905 | int |
| 7906 | main () |
| 7907 | { |
| 7908 | |
| 7909 | ; |
| 7910 | return 0; |
| 7911 | } |
| 7912 | _ACEOF |
| 7913 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7914 | if { (ac_try="$ac_compile" |
| 7915 | case "(($ac_try" in |
| 7916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7917 | *) ac_try_echo=$ac_try;; |
| 7918 | esac |
| 7919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7920 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7921 | ac_status=$? |
| 7922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7923 | rm -f conftest.er1 |
| 7924 | cat conftest.err >&5 |
| 7925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7926 | (exit $ac_status); } && { |
| 7927 | test -z "$ac_c_werror_flag" || |
| 7928 | test ! -s conftest.err |
| 7929 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7930 | fits_in_uint=0 |
| 7931 | else |
| 7932 | echo "$as_me: failed program was:" >&5 |
| 7933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7936 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7937 | |
| 7938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | fi |
| 7940 | if test -z "$result"; then |
| 7941 | if test "$fits_in_uint" = 1; then |
| 7942 | result="$res_hi$res_lo"U |
| 7943 | else |
| 7944 | result="$res_hi$res_lo"UL |
| 7945 | fi |
| 7946 | else |
| 7947 | result='~(size_t)0' |
| 7948 | fi |
| 7949 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7950 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 7951 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7952 | if test "$result" != yes; then |
| 7953 | |
| 7954 | cat >>confdefs.h <<_ACEOF |
| 7955 | #define SIZE_MAX $result |
| 7956 | _ACEOF |
| 7957 | |
| 7958 | fi |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | for ac_header in stdint.h |
| 7964 | do |
| 7965 | 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] | 7966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7967 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7969 | 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] | 7970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7971 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7972 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7974 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7975 | else |
| 7976 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7977 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7979 | cat >conftest.$ac_ext <<_ACEOF |
| 7980 | /* confdefs.h. */ |
| 7981 | _ACEOF |
| 7982 | cat confdefs.h >>conftest.$ac_ext |
| 7983 | cat >>conftest.$ac_ext <<_ACEOF |
| 7984 | /* end confdefs.h. */ |
| 7985 | $ac_includes_default |
| 7986 | #include <$ac_header> |
| 7987 | _ACEOF |
| 7988 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7989 | if { (ac_try="$ac_compile" |
| 7990 | case "(($ac_try" in |
| 7991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7992 | *) ac_try_echo=$ac_try;; |
| 7993 | esac |
| 7994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7995 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7996 | ac_status=$? |
| 7997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7998 | rm -f conftest.er1 |
| 7999 | cat conftest.err >&5 |
| 8000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8001 | (exit $ac_status); } && { |
| 8002 | test -z "$ac_c_werror_flag" || |
| 8003 | test ! -s conftest.err |
| 8004 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8005 | ac_header_compiler=yes |
| 8006 | else |
| 8007 | echo "$as_me: failed program was:" >&5 |
| 8008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8010 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8012 | |
| 8013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8014 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8015 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8016 | |
| 8017 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8018 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8019 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8020 | cat >conftest.$ac_ext <<_ACEOF |
| 8021 | /* confdefs.h. */ |
| 8022 | _ACEOF |
| 8023 | cat confdefs.h >>conftest.$ac_ext |
| 8024 | cat >>conftest.$ac_ext <<_ACEOF |
| 8025 | /* end confdefs.h. */ |
| 8026 | #include <$ac_header> |
| 8027 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8028 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8029 | case "(($ac_try" in |
| 8030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8031 | *) ac_try_echo=$ac_try;; |
| 8032 | esac |
| 8033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8034 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8035 | ac_status=$? |
| 8036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8037 | rm -f conftest.er1 |
| 8038 | cat conftest.err >&5 |
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8040 | (exit $ac_status); } >/dev/null && { |
| 8041 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8042 | test ! -s conftest.err |
| 8043 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8044 | ac_header_preproc=yes |
| 8045 | else |
| 8046 | echo "$as_me: failed program was:" >&5 |
| 8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8048 | |
| 8049 | ac_header_preproc=no |
| 8050 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8051 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8052 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8053 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8054 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8055 | |
| 8056 | # So? What about this header? |
| 8057 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8058 | yes:no: ) |
| 8059 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8060 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8062 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8063 | ac_header_preproc=yes |
| 8064 | ;; |
| 8065 | no:yes:* ) |
| 8066 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8067 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8068 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8069 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8070 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8071 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8072 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8073 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8075 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8076 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8077 | 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] | 8078 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8079 | ;; |
| 8080 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8081 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8083 | 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] | 8084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8085 | else |
| 8086 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8088 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8090 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8091 | |
| 8092 | fi |
| 8093 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8094 | cat >>confdefs.h <<_ACEOF |
| 8095 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8096 | _ACEOF |
| 8097 | |
| 8098 | fi |
| 8099 | |
| 8100 | done |
| 8101 | |
| 8102 | |
| 8103 | |
| 8104 | if test "X$prefix" = "XNONE"; then |
| 8105 | acl_final_prefix="$ac_default_prefix" |
| 8106 | else |
| 8107 | acl_final_prefix="$prefix" |
| 8108 | fi |
| 8109 | if test "X$exec_prefix" = "XNONE"; then |
| 8110 | acl_final_exec_prefix='${prefix}' |
| 8111 | else |
| 8112 | acl_final_exec_prefix="$exec_prefix" |
| 8113 | fi |
| 8114 | acl_save_prefix="$prefix" |
| 8115 | prefix="$acl_final_prefix" |
| 8116 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8117 | prefix="$acl_save_prefix" |
| 8118 | |
| 8119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8120 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8121 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8122 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8123 | else |
| 8124 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8125 | fi |
| 8126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8127 | # Prepare PATH_SEPARATOR. |
| 8128 | # The user is always right. |
| 8129 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8130 | echo "#! /bin/sh" >conf$$.sh |
| 8131 | echo "exit 0" >>conf$$.sh |
| 8132 | chmod +x conf$$.sh |
| 8133 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8134 | PATH_SEPARATOR=';' |
| 8135 | else |
| 8136 | PATH_SEPARATOR=: |
| 8137 | fi |
| 8138 | rm -f conf$$.sh |
| 8139 | fi |
| 8140 | ac_prog=ld |
| 8141 | if test "$GCC" = yes; then |
| 8142 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8143 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8144 | 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] | 8145 | case $host in |
| 8146 | *-*-mingw*) |
| 8147 | # gcc leaves a trailing carriage return which upsets mingw |
| 8148 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8149 | *) |
| 8150 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8151 | esac |
| 8152 | case $ac_prog in |
| 8153 | # Accept absolute paths. |
| 8154 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8155 | re_direlt='/[^/][^/]*/\.\./' |
| 8156 | # Canonicalize the path of ld |
| 8157 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8158 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8159 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8160 | done |
| 8161 | test -z "$LD" && LD="$ac_prog" |
| 8162 | ;; |
| 8163 | "") |
| 8164 | # If it fails, then pretend we aren't using GCC. |
| 8165 | ac_prog=ld |
| 8166 | ;; |
| 8167 | *) |
| 8168 | # If it is relative, then search for the first ld in PATH. |
| 8169 | with_gnu_ld=unknown |
| 8170 | ;; |
| 8171 | esac |
| 8172 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8173 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8174 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8175 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8176 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8177 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8178 | fi |
| 8179 | if test "${acl_cv_path_LD+set}" = set; then |
| 8180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8181 | else |
| 8182 | if test -z "$LD"; then |
| 8183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8184 | for ac_dir in $PATH; do |
| 8185 | test -z "$ac_dir" && ac_dir=. |
| 8186 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8187 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8188 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8189 | # but apparently some GNU ld's only accept -v. |
| 8190 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8191 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8192 | *GNU* | *'with BFD'*) |
| 8193 | test "$with_gnu_ld" != no && break ;; |
| 8194 | *) |
| 8195 | test "$with_gnu_ld" != yes && break ;; |
| 8196 | esac |
| 8197 | fi |
| 8198 | done |
| 8199 | IFS="$ac_save_ifs" |
| 8200 | else |
| 8201 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8202 | fi |
| 8203 | fi |
| 8204 | |
| 8205 | LD="$acl_cv_path_LD" |
| 8206 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8207 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8208 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8209 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8211 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8212 | fi |
| 8213 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8214 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8215 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8216 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8217 | 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] | 8218 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8220 | else |
| 8221 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8222 | case `$LD -v 2>&1 </dev/null` in |
| 8223 | *GNU* | *'with BFD'*) |
| 8224 | acl_cv_prog_gnu_ld=yes ;; |
| 8225 | *) |
| 8226 | acl_cv_prog_gnu_ld=no ;; |
| 8227 | esac |
| 8228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8229 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8230 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8231 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8232 | |
| 8233 | |
| 8234 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8235 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8236 | 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] | 8237 | if test "${acl_cv_rpath+set}" = set; then |
| 8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8239 | else |
| 8240 | |
| 8241 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8242 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8243 | . ./conftest.sh |
| 8244 | rm -f ./conftest.sh |
| 8245 | acl_cv_rpath=done |
| 8246 | |
| 8247 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8248 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8249 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8250 | wl="$acl_cv_wl" |
| 8251 | libext="$acl_cv_libext" |
| 8252 | shlibext="$acl_cv_shlibext" |
| 8253 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8254 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8255 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8256 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8257 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8258 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8259 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8260 | else |
| 8261 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8262 | fi |
| 8263 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8264 | |
| 8265 | |
| 8266 | |
| 8267 | |
| 8268 | |
| 8269 | |
| 8270 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8271 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8272 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8273 | acl_save_prefix="$prefix" |
| 8274 | prefix="$acl_final_prefix" |
| 8275 | acl_save_exec_prefix="$exec_prefix" |
| 8276 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8277 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8278 | eval additional_includedir=\"$includedir\" |
| 8279 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8280 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8281 | exec_prefix="$acl_save_exec_prefix" |
| 8282 | prefix="$acl_save_prefix" |
| 8283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8284 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8285 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8286 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8287 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8288 | if test "X$withval" = "Xno"; then |
| 8289 | use_additional=no |
| 8290 | else |
| 8291 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8293 | acl_save_prefix="$prefix" |
| 8294 | prefix="$acl_final_prefix" |
| 8295 | acl_save_exec_prefix="$exec_prefix" |
| 8296 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8298 | eval additional_includedir=\"$includedir\" |
| 8299 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8300 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8301 | exec_prefix="$acl_save_exec_prefix" |
| 8302 | prefix="$acl_save_prefix" |
| 8303 | |
| 8304 | else |
| 8305 | additional_includedir="$withval/include" |
| 8306 | additional_libdir="$withval/lib" |
| 8307 | fi |
| 8308 | fi |
| 8309 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8310 | fi |
| 8311 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8312 | LIBICONV= |
| 8313 | LTLIBICONV= |
| 8314 | INCICONV= |
| 8315 | rpathdirs= |
| 8316 | ltrpathdirs= |
| 8317 | names_already_handled= |
| 8318 | names_next_round='iconv ' |
| 8319 | while test -n "$names_next_round"; do |
| 8320 | names_this_round="$names_next_round" |
| 8321 | names_next_round= |
| 8322 | for name in $names_this_round; do |
| 8323 | already_handled= |
| 8324 | for n in $names_already_handled; do |
| 8325 | if test "$n" = "$name"; then |
| 8326 | already_handled=yes |
| 8327 | break |
| 8328 | fi |
| 8329 | done |
| 8330 | if test -z "$already_handled"; then |
| 8331 | names_already_handled="$names_already_handled $name" |
| 8332 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8333 | eval value=\"\$HAVE_LIB$uppername\" |
| 8334 | if test -n "$value"; then |
| 8335 | if test "$value" = yes; then |
| 8336 | eval value=\"\$LIB$uppername\" |
| 8337 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8338 | eval value=\"\$LTLIB$uppername\" |
| 8339 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8340 | else |
| 8341 | : |
| 8342 | fi |
| 8343 | else |
| 8344 | found_dir= |
| 8345 | found_la= |
| 8346 | found_so= |
| 8347 | found_a= |
| 8348 | if test $use_additional = yes; then |
| 8349 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8350 | found_dir="$additional_libdir" |
| 8351 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8352 | if test -f "$additional_libdir/lib$name.la"; then |
| 8353 | found_la="$additional_libdir/lib$name.la" |
| 8354 | fi |
| 8355 | else |
| 8356 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8357 | found_dir="$additional_libdir" |
| 8358 | found_a="$additional_libdir/lib$name.$libext" |
| 8359 | if test -f "$additional_libdir/lib$name.la"; then |
| 8360 | found_la="$additional_libdir/lib$name.la" |
| 8361 | fi |
| 8362 | fi |
| 8363 | fi |
| 8364 | fi |
| 8365 | if test "X$found_dir" = "X"; then |
| 8366 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8367 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8368 | acl_save_prefix="$prefix" |
| 8369 | prefix="$acl_final_prefix" |
| 8370 | acl_save_exec_prefix="$exec_prefix" |
| 8371 | exec_prefix="$acl_final_exec_prefix" |
| 8372 | eval x=\"$x\" |
| 8373 | exec_prefix="$acl_save_exec_prefix" |
| 8374 | prefix="$acl_save_prefix" |
| 8375 | |
| 8376 | case "$x" in |
| 8377 | -L*) |
| 8378 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8379 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8380 | found_dir="$dir" |
| 8381 | found_so="$dir/lib$name.$shlibext" |
| 8382 | if test -f "$dir/lib$name.la"; then |
| 8383 | found_la="$dir/lib$name.la" |
| 8384 | fi |
| 8385 | else |
| 8386 | if test -f "$dir/lib$name.$libext"; then |
| 8387 | found_dir="$dir" |
| 8388 | found_a="$dir/lib$name.$libext" |
| 8389 | if test -f "$dir/lib$name.la"; then |
| 8390 | found_la="$dir/lib$name.la" |
| 8391 | fi |
| 8392 | fi |
| 8393 | fi |
| 8394 | ;; |
| 8395 | esac |
| 8396 | if test "X$found_dir" != "X"; then |
| 8397 | break |
| 8398 | fi |
| 8399 | done |
| 8400 | fi |
| 8401 | if test "X$found_dir" != "X"; then |
| 8402 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8403 | if test "X$found_so" != "X"; then |
| 8404 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8405 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8406 | else |
| 8407 | haveit= |
| 8408 | for x in $ltrpathdirs; do |
| 8409 | if test "X$x" = "X$found_dir"; then |
| 8410 | haveit=yes |
| 8411 | break |
| 8412 | fi |
| 8413 | done |
| 8414 | if test -z "$haveit"; then |
| 8415 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8416 | fi |
| 8417 | if test "$hardcode_direct" = yes; then |
| 8418 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8419 | else |
| 8420 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8421 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8422 | haveit= |
| 8423 | for x in $rpathdirs; do |
| 8424 | if test "X$x" = "X$found_dir"; then |
| 8425 | haveit=yes |
| 8426 | break |
| 8427 | fi |
| 8428 | done |
| 8429 | if test -z "$haveit"; then |
| 8430 | rpathdirs="$rpathdirs $found_dir" |
| 8431 | fi |
| 8432 | else |
| 8433 | haveit= |
| 8434 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8435 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8436 | acl_save_prefix="$prefix" |
| 8437 | prefix="$acl_final_prefix" |
| 8438 | acl_save_exec_prefix="$exec_prefix" |
| 8439 | exec_prefix="$acl_final_exec_prefix" |
| 8440 | eval x=\"$x\" |
| 8441 | exec_prefix="$acl_save_exec_prefix" |
| 8442 | prefix="$acl_save_prefix" |
| 8443 | |
| 8444 | if test "X$x" = "X-L$found_dir"; then |
| 8445 | haveit=yes |
| 8446 | break |
| 8447 | fi |
| 8448 | done |
| 8449 | if test -z "$haveit"; then |
| 8450 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8451 | fi |
| 8452 | if test "$hardcode_minus_L" != no; then |
| 8453 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8454 | else |
| 8455 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8456 | fi |
| 8457 | fi |
| 8458 | fi |
| 8459 | fi |
| 8460 | else |
| 8461 | if test "X$found_a" != "X"; then |
| 8462 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8463 | else |
| 8464 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8465 | fi |
| 8466 | fi |
| 8467 | additional_includedir= |
| 8468 | case "$found_dir" in |
| 8469 | */lib | */lib/) |
| 8470 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8471 | additional_includedir="$basedir/include" |
| 8472 | ;; |
| 8473 | esac |
| 8474 | if test "X$additional_includedir" != "X"; then |
| 8475 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8476 | haveit= |
| 8477 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8478 | if test -n "$GCC"; then |
| 8479 | case $host_os in |
| 8480 | linux*) haveit=yes;; |
| 8481 | esac |
| 8482 | fi |
| 8483 | fi |
| 8484 | if test -z "$haveit"; then |
| 8485 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8486 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8487 | acl_save_prefix="$prefix" |
| 8488 | prefix="$acl_final_prefix" |
| 8489 | acl_save_exec_prefix="$exec_prefix" |
| 8490 | exec_prefix="$acl_final_exec_prefix" |
| 8491 | eval x=\"$x\" |
| 8492 | exec_prefix="$acl_save_exec_prefix" |
| 8493 | prefix="$acl_save_prefix" |
| 8494 | |
| 8495 | if test "X$x" = "X-I$additional_includedir"; then |
| 8496 | haveit=yes |
| 8497 | break |
| 8498 | fi |
| 8499 | done |
| 8500 | if test -z "$haveit"; then |
| 8501 | if test -d "$additional_includedir"; then |
| 8502 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8503 | fi |
| 8504 | fi |
| 8505 | fi |
| 8506 | fi |
| 8507 | fi |
| 8508 | if test -n "$found_la"; then |
| 8509 | save_libdir="$libdir" |
| 8510 | case "$found_la" in |
| 8511 | */* | *\\*) . "$found_la" ;; |
| 8512 | *) . "./$found_la" ;; |
| 8513 | esac |
| 8514 | libdir="$save_libdir" |
| 8515 | for dep in $dependency_libs; do |
| 8516 | case "$dep" in |
| 8517 | -L*) |
| 8518 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8519 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8520 | haveit= |
| 8521 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8522 | if test -n "$GCC"; then |
| 8523 | case $host_os in |
| 8524 | linux*) haveit=yes;; |
| 8525 | esac |
| 8526 | fi |
| 8527 | fi |
| 8528 | if test -z "$haveit"; then |
| 8529 | haveit= |
| 8530 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8531 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8532 | acl_save_prefix="$prefix" |
| 8533 | prefix="$acl_final_prefix" |
| 8534 | acl_save_exec_prefix="$exec_prefix" |
| 8535 | exec_prefix="$acl_final_exec_prefix" |
| 8536 | eval x=\"$x\" |
| 8537 | exec_prefix="$acl_save_exec_prefix" |
| 8538 | prefix="$acl_save_prefix" |
| 8539 | |
| 8540 | if test "X$x" = "X-L$additional_libdir"; then |
| 8541 | haveit=yes |
| 8542 | break |
| 8543 | fi |
| 8544 | done |
| 8545 | if test -z "$haveit"; then |
| 8546 | if test -d "$additional_libdir"; then |
| 8547 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8548 | fi |
| 8549 | fi |
| 8550 | haveit= |
| 8551 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8553 | acl_save_prefix="$prefix" |
| 8554 | prefix="$acl_final_prefix" |
| 8555 | acl_save_exec_prefix="$exec_prefix" |
| 8556 | exec_prefix="$acl_final_exec_prefix" |
| 8557 | eval x=\"$x\" |
| 8558 | exec_prefix="$acl_save_exec_prefix" |
| 8559 | prefix="$acl_save_prefix" |
| 8560 | |
| 8561 | if test "X$x" = "X-L$additional_libdir"; then |
| 8562 | haveit=yes |
| 8563 | break |
| 8564 | fi |
| 8565 | done |
| 8566 | if test -z "$haveit"; then |
| 8567 | if test -d "$additional_libdir"; then |
| 8568 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8569 | fi |
| 8570 | fi |
| 8571 | fi |
| 8572 | fi |
| 8573 | ;; |
| 8574 | -R*) |
| 8575 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8576 | if test "$enable_rpath" != no; then |
| 8577 | haveit= |
| 8578 | for x in $rpathdirs; do |
| 8579 | if test "X$x" = "X$dir"; then |
| 8580 | haveit=yes |
| 8581 | break |
| 8582 | fi |
| 8583 | done |
| 8584 | if test -z "$haveit"; then |
| 8585 | rpathdirs="$rpathdirs $dir" |
| 8586 | fi |
| 8587 | haveit= |
| 8588 | for x in $ltrpathdirs; do |
| 8589 | if test "X$x" = "X$dir"; then |
| 8590 | haveit=yes |
| 8591 | break |
| 8592 | fi |
| 8593 | done |
| 8594 | if test -z "$haveit"; then |
| 8595 | ltrpathdirs="$ltrpathdirs $dir" |
| 8596 | fi |
| 8597 | fi |
| 8598 | ;; |
| 8599 | -l*) |
| 8600 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8601 | ;; |
| 8602 | *.la) |
| 8603 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8604 | ;; |
| 8605 | *) |
| 8606 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8607 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8608 | ;; |
| 8609 | esac |
| 8610 | done |
| 8611 | fi |
| 8612 | else |
| 8613 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8614 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8615 | fi |
| 8616 | fi |
| 8617 | fi |
| 8618 | done |
| 8619 | done |
| 8620 | if test "X$rpathdirs" != "X"; then |
| 8621 | if test -n "$hardcode_libdir_separator"; then |
| 8622 | alldirs= |
| 8623 | for found_dir in $rpathdirs; do |
| 8624 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8625 | done |
| 8626 | acl_save_libdir="$libdir" |
| 8627 | libdir="$alldirs" |
| 8628 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8629 | libdir="$acl_save_libdir" |
| 8630 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8631 | else |
| 8632 | for found_dir in $rpathdirs; do |
| 8633 | acl_save_libdir="$libdir" |
| 8634 | libdir="$found_dir" |
| 8635 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8636 | libdir="$acl_save_libdir" |
| 8637 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8638 | done |
| 8639 | fi |
| 8640 | fi |
| 8641 | if test "X$ltrpathdirs" != "X"; then |
| 8642 | for found_dir in $ltrpathdirs; do |
| 8643 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8644 | done |
| 8645 | fi |
| 8646 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8647 | |
| 8648 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8649 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8650 | |
| 8651 | |
| 8652 | |
| 8653 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8654 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8655 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8656 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8658 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8659 | cat >conftest.$ac_ext <<_ACEOF |
| 8660 | /* confdefs.h. */ |
| 8661 | _ACEOF |
| 8662 | cat confdefs.h >>conftest.$ac_ext |
| 8663 | cat >>conftest.$ac_ext <<_ACEOF |
| 8664 | /* end confdefs.h. */ |
| 8665 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8666 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8667 | int |
| 8668 | main () |
| 8669 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8670 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8671 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8672 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8673 | return 0; |
| 8674 | ; |
| 8675 | return 0; |
| 8676 | } |
| 8677 | _ACEOF |
| 8678 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8679 | if { (ac_try="$ac_compile" |
| 8680 | case "(($ac_try" in |
| 8681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8682 | *) ac_try_echo=$ac_try;; |
| 8683 | esac |
| 8684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8685 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8686 | ac_status=$? |
| 8687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8688 | rm -f conftest.er1 |
| 8689 | cat conftest.err >&5 |
| 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8691 | (exit $ac_status); } && { |
| 8692 | test -z "$ac_c_werror_flag" || |
| 8693 | test ! -s conftest.err |
| 8694 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8695 | ac_cv_type_ptrdiff_t=yes |
| 8696 | else |
| 8697 | echo "$as_me: failed program was:" >&5 |
| 8698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8699 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8700 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8701 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8702 | |
| 8703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8704 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8705 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8706 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8707 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8708 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8709 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8710 | |
| 8711 | cat >>confdefs.h <<\_ACEOF |
| 8712 | #define ptrdiff_t long |
| 8713 | _ACEOF |
| 8714 | |
| 8715 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8716 | fi |
| 8717 | |
| 8718 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8719 | |
| 8720 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8721 | |
| 8722 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8723 | |
| 8724 | |
| 8725 | |
| 8726 | |
| 8727 | |
| 8728 | 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] | 8729 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8730 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8731 | 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] | 8732 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8733 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8735 | 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] | 8736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8737 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8740 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8741 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8743 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8744 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8745 | cat >conftest.$ac_ext <<_ACEOF |
| 8746 | /* confdefs.h. */ |
| 8747 | _ACEOF |
| 8748 | cat confdefs.h >>conftest.$ac_ext |
| 8749 | cat >>conftest.$ac_ext <<_ACEOF |
| 8750 | /* end confdefs.h. */ |
| 8751 | $ac_includes_default |
| 8752 | #include <$ac_header> |
| 8753 | _ACEOF |
| 8754 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8755 | if { (ac_try="$ac_compile" |
| 8756 | case "(($ac_try" in |
| 8757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8758 | *) ac_try_echo=$ac_try;; |
| 8759 | esac |
| 8760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8761 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8762 | ac_status=$? |
| 8763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8764 | rm -f conftest.er1 |
| 8765 | cat conftest.err >&5 |
| 8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8767 | (exit $ac_status); } && { |
| 8768 | test -z "$ac_c_werror_flag" || |
| 8769 | test ! -s conftest.err |
| 8770 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8771 | ac_header_compiler=yes |
| 8772 | else |
| 8773 | echo "$as_me: failed program was:" >&5 |
| 8774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8776 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8777 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8778 | |
| 8779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8780 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8781 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | |
| 8783 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8784 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8786 | cat >conftest.$ac_ext <<_ACEOF |
| 8787 | /* confdefs.h. */ |
| 8788 | _ACEOF |
| 8789 | cat confdefs.h >>conftest.$ac_ext |
| 8790 | cat >>conftest.$ac_ext <<_ACEOF |
| 8791 | /* end confdefs.h. */ |
| 8792 | #include <$ac_header> |
| 8793 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8794 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8795 | case "(($ac_try" in |
| 8796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8797 | *) ac_try_echo=$ac_try;; |
| 8798 | esac |
| 8799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8801 | ac_status=$? |
| 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
| 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8806 | (exit $ac_status); } >/dev/null && { |
| 8807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8808 | test ! -s conftest.err |
| 8809 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8810 | ac_header_preproc=yes |
| 8811 | else |
| 8812 | echo "$as_me: failed program was:" >&5 |
| 8813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8814 | |
| 8815 | ac_header_preproc=no |
| 8816 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8817 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8818 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8819 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8820 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8821 | |
| 8822 | # So? What about this header? |
| 8823 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8824 | yes:no: ) |
| 8825 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8826 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8827 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8828 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8829 | ac_header_preproc=yes |
| 8830 | ;; |
| 8831 | no:yes:* ) |
| 8832 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8833 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8834 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8835 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8836 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8837 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8838 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8839 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8841 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8842 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8843 | 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] | 8844 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8845 | ;; |
| 8846 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8849 | 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] | 8850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8851 | else |
| 8852 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8853 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8856 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8857 | |
| 8858 | fi |
| 8859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8860 | cat >>confdefs.h <<_ACEOF |
| 8861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8862 | _ACEOF |
| 8863 | |
| 8864 | fi |
| 8865 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8866 | done |
| 8867 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8868 | |
| 8869 | |
| 8870 | |
| 8871 | |
| 8872 | |
| 8873 | |
| 8874 | |
| 8875 | |
| 8876 | |
| 8877 | |
| 8878 | |
| 8879 | |
| 8880 | |
| 8881 | |
| 8882 | |
| 8883 | |
| 8884 | |
| 8885 | |
| 8886 | |
| 8887 | |
| 8888 | |
| 8889 | |
| 8890 | |
| 8891 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 8892 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8893 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8894 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8895 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8896 | 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] | 8897 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8898 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 8899 | 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] | 8900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8901 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8902 | cat >conftest.$ac_ext <<_ACEOF |
| 8903 | /* confdefs.h. */ |
| 8904 | _ACEOF |
| 8905 | cat confdefs.h >>conftest.$ac_ext |
| 8906 | cat >>conftest.$ac_ext <<_ACEOF |
| 8907 | /* end confdefs.h. */ |
| 8908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8910 | #define $ac_func innocuous_$ac_func |
| 8911 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8912 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8913 | which can conflict with char $ac_func (); below. |
| 8914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8915 | <limits.h> exists even on freestanding compilers. */ |
| 8916 | |
| 8917 | #ifdef __STDC__ |
| 8918 | # include <limits.h> |
| 8919 | #else |
| 8920 | # include <assert.h> |
| 8921 | #endif |
| 8922 | |
| 8923 | #undef $ac_func |
| 8924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8925 | /* Override any GCC internal prototype to avoid an error. |
| 8926 | Use char because int might match the return type of a GCC |
| 8927 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8928 | #ifdef __cplusplus |
| 8929 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8930 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8931 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8932 | /* The GNU C library defines this for functions which it implements |
| 8933 | to always fail with ENOSYS. Some functions are actually named |
| 8934 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8935 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8936 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8937 | #endif |
| 8938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8939 | int |
| 8940 | main () |
| 8941 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8942 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8943 | ; |
| 8944 | return 0; |
| 8945 | } |
| 8946 | _ACEOF |
| 8947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8948 | if { (ac_try="$ac_link" |
| 8949 | case "(($ac_try" in |
| 8950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8951 | *) ac_try_echo=$ac_try;; |
| 8952 | esac |
| 8953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8954 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8955 | ac_status=$? |
| 8956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8957 | rm -f conftest.er1 |
| 8958 | cat conftest.err >&5 |
| 8959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8960 | (exit $ac_status); } && { |
| 8961 | test -z "$ac_c_werror_flag" || |
| 8962 | test ! -s conftest.err |
| 8963 | } && test -s conftest$ac_exeext && |
| 8964 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8965 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8966 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8967 | echo "$as_me: failed program was:" >&5 |
| 8968 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8970 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8971 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8972 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8973 | 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] | 8974 | conftest$ac_exeext conftest.$ac_ext |
| 8975 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8976 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 8977 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8978 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8979 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8980 | cat >>confdefs.h <<_ACEOF |
| 8981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8982 | _ACEOF |
| 8983 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8984 | fi |
| 8985 | done |
| 8986 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8987 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8989 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 8990 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8991 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 8992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8993 | else |
| 8994 | cat >conftest.$ac_ext <<_ACEOF |
| 8995 | /* confdefs.h. */ |
| 8996 | _ACEOF |
| 8997 | cat confdefs.h >>conftest.$ac_ext |
| 8998 | cat >>conftest.$ac_ext <<_ACEOF |
| 8999 | /* end confdefs.h. */ |
| 9000 | #include <stdio.h> |
| 9001 | int |
| 9002 | main () |
| 9003 | { |
| 9004 | |
| 9005 | #ifndef _snprintf |
| 9006 | char *p = (char *) _snprintf; |
| 9007 | #endif |
| 9008 | |
| 9009 | ; |
| 9010 | return 0; |
| 9011 | } |
| 9012 | _ACEOF |
| 9013 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9014 | if { (ac_try="$ac_compile" |
| 9015 | case "(($ac_try" in |
| 9016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9017 | *) ac_try_echo=$ac_try;; |
| 9018 | esac |
| 9019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9020 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9021 | ac_status=$? |
| 9022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9023 | rm -f conftest.er1 |
| 9024 | cat conftest.err >&5 |
| 9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9026 | (exit $ac_status); } && { |
| 9027 | test -z "$ac_c_werror_flag" || |
| 9028 | test ! -s conftest.err |
| 9029 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9030 | ac_cv_have_decl__snprintf=yes |
| 9031 | else |
| 9032 | echo "$as_me: failed program was:" >&5 |
| 9033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9035 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9036 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9037 | |
| 9038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9039 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9040 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9041 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9042 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9043 | gt_value=1 |
| 9044 | else |
| 9045 | gt_value=0 |
| 9046 | fi |
| 9047 | |
| 9048 | cat >>confdefs.h <<_ACEOF |
| 9049 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9050 | _ACEOF |
| 9051 | |
| 9052 | |
| 9053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9054 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9055 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9056 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9058 | else |
| 9059 | cat >conftest.$ac_ext <<_ACEOF |
| 9060 | /* confdefs.h. */ |
| 9061 | _ACEOF |
| 9062 | cat confdefs.h >>conftest.$ac_ext |
| 9063 | cat >>conftest.$ac_ext <<_ACEOF |
| 9064 | /* end confdefs.h. */ |
| 9065 | #include <stdio.h> |
| 9066 | int |
| 9067 | main () |
| 9068 | { |
| 9069 | |
| 9070 | #ifndef _snwprintf |
| 9071 | char *p = (char *) _snwprintf; |
| 9072 | #endif |
| 9073 | |
| 9074 | ; |
| 9075 | return 0; |
| 9076 | } |
| 9077 | _ACEOF |
| 9078 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9079 | if { (ac_try="$ac_compile" |
| 9080 | case "(($ac_try" in |
| 9081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9082 | *) ac_try_echo=$ac_try;; |
| 9083 | esac |
| 9084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9085 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9086 | ac_status=$? |
| 9087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9088 | rm -f conftest.er1 |
| 9089 | cat conftest.err >&5 |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9091 | (exit $ac_status); } && { |
| 9092 | test -z "$ac_c_werror_flag" || |
| 9093 | test ! -s conftest.err |
| 9094 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | ac_cv_have_decl__snwprintf=yes |
| 9096 | else |
| 9097 | echo "$as_me: failed program was:" >&5 |
| 9098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9100 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9101 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9102 | |
| 9103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9105 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9106 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9107 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9108 | gt_value=1 |
| 9109 | else |
| 9110 | gt_value=0 |
| 9111 | fi |
| 9112 | |
| 9113 | cat >>confdefs.h <<_ACEOF |
| 9114 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9115 | _ACEOF |
| 9116 | |
| 9117 | |
| 9118 | |
| 9119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9120 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9121 | 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] | 9122 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9124 | else |
| 9125 | cat >conftest.$ac_ext <<_ACEOF |
| 9126 | /* confdefs.h. */ |
| 9127 | _ACEOF |
| 9128 | cat confdefs.h >>conftest.$ac_ext |
| 9129 | cat >>conftest.$ac_ext <<_ACEOF |
| 9130 | /* end confdefs.h. */ |
| 9131 | #include <stdio.h> |
| 9132 | int |
| 9133 | main () |
| 9134 | { |
| 9135 | |
| 9136 | #ifndef feof_unlocked |
| 9137 | char *p = (char *) feof_unlocked; |
| 9138 | #endif |
| 9139 | |
| 9140 | ; |
| 9141 | return 0; |
| 9142 | } |
| 9143 | _ACEOF |
| 9144 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9145 | if { (ac_try="$ac_compile" |
| 9146 | case "(($ac_try" in |
| 9147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9148 | *) ac_try_echo=$ac_try;; |
| 9149 | esac |
| 9150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9151 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9152 | ac_status=$? |
| 9153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9154 | rm -f conftest.er1 |
| 9155 | cat conftest.err >&5 |
| 9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9157 | (exit $ac_status); } && { |
| 9158 | test -z "$ac_c_werror_flag" || |
| 9159 | test ! -s conftest.err |
| 9160 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9161 | ac_cv_have_decl_feof_unlocked=yes |
| 9162 | else |
| 9163 | echo "$as_me: failed program was:" >&5 |
| 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9166 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9167 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9168 | |
| 9169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9170 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9171 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9172 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9173 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9174 | gt_value=1 |
| 9175 | else |
| 9176 | gt_value=0 |
| 9177 | fi |
| 9178 | |
| 9179 | cat >>confdefs.h <<_ACEOF |
| 9180 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9181 | _ACEOF |
| 9182 | |
| 9183 | |
| 9184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9185 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9186 | 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] | 9187 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9189 | else |
| 9190 | cat >conftest.$ac_ext <<_ACEOF |
| 9191 | /* confdefs.h. */ |
| 9192 | _ACEOF |
| 9193 | cat confdefs.h >>conftest.$ac_ext |
| 9194 | cat >>conftest.$ac_ext <<_ACEOF |
| 9195 | /* end confdefs.h. */ |
| 9196 | #include <stdio.h> |
| 9197 | int |
| 9198 | main () |
| 9199 | { |
| 9200 | |
| 9201 | #ifndef fgets_unlocked |
| 9202 | char *p = (char *) fgets_unlocked; |
| 9203 | #endif |
| 9204 | |
| 9205 | ; |
| 9206 | return 0; |
| 9207 | } |
| 9208 | _ACEOF |
| 9209 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9210 | if { (ac_try="$ac_compile" |
| 9211 | case "(($ac_try" in |
| 9212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9213 | *) ac_try_echo=$ac_try;; |
| 9214 | esac |
| 9215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9216 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9217 | ac_status=$? |
| 9218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9219 | rm -f conftest.er1 |
| 9220 | cat conftest.err >&5 |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9222 | (exit $ac_status); } && { |
| 9223 | test -z "$ac_c_werror_flag" || |
| 9224 | test ! -s conftest.err |
| 9225 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9226 | ac_cv_have_decl_fgets_unlocked=yes |
| 9227 | else |
| 9228 | echo "$as_me: failed program was:" >&5 |
| 9229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9230 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9231 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9232 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9233 | |
| 9234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9235 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9237 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9238 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9239 | gt_value=1 |
| 9240 | else |
| 9241 | gt_value=0 |
| 9242 | fi |
| 9243 | |
| 9244 | cat >>confdefs.h <<_ACEOF |
| 9245 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9246 | _ACEOF |
| 9247 | |
| 9248 | |
| 9249 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9250 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9251 | 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] | 9252 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9254 | else |
| 9255 | cat >conftest.$ac_ext <<_ACEOF |
| 9256 | /* confdefs.h. */ |
| 9257 | _ACEOF |
| 9258 | cat confdefs.h >>conftest.$ac_ext |
| 9259 | cat >>conftest.$ac_ext <<_ACEOF |
| 9260 | /* end confdefs.h. */ |
| 9261 | #include <stdio.h> |
| 9262 | int |
| 9263 | main () |
| 9264 | { |
| 9265 | |
| 9266 | #ifndef getc_unlocked |
| 9267 | char *p = (char *) getc_unlocked; |
| 9268 | #endif |
| 9269 | |
| 9270 | ; |
| 9271 | return 0; |
| 9272 | } |
| 9273 | _ACEOF |
| 9274 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9275 | if { (ac_try="$ac_compile" |
| 9276 | case "(($ac_try" in |
| 9277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9278 | *) ac_try_echo=$ac_try;; |
| 9279 | esac |
| 9280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9281 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9282 | ac_status=$? |
| 9283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9284 | rm -f conftest.er1 |
| 9285 | cat conftest.err >&5 |
| 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9287 | (exit $ac_status); } && { |
| 9288 | test -z "$ac_c_werror_flag" || |
| 9289 | test ! -s conftest.err |
| 9290 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9291 | ac_cv_have_decl_getc_unlocked=yes |
| 9292 | else |
| 9293 | echo "$as_me: failed program was:" >&5 |
| 9294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9295 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9296 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9297 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9298 | |
| 9299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9300 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9301 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9302 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9303 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9304 | gt_value=1 |
| 9305 | else |
| 9306 | gt_value=0 |
| 9307 | fi |
| 9308 | |
| 9309 | cat >>confdefs.h <<_ACEOF |
| 9310 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9311 | _ACEOF |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 | case $gt_cv_func_printf_posix in |
| 9316 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9317 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9318 | esac |
| 9319 | |
| 9320 | if test "$ac_cv_func_asprintf" = yes; then |
| 9321 | HAVE_ASPRINTF=1 |
| 9322 | else |
| 9323 | HAVE_ASPRINTF=0 |
| 9324 | fi |
| 9325 | |
| 9326 | if test "$ac_cv_func_snprintf" = yes; then |
| 9327 | HAVE_SNPRINTF=1 |
| 9328 | else |
| 9329 | HAVE_SNPRINTF=0 |
| 9330 | fi |
| 9331 | |
| 9332 | if test "$ac_cv_func_wprintf" = yes; then |
| 9333 | HAVE_WPRINTF=1 |
| 9334 | else |
| 9335 | HAVE_WPRINTF=0 |
| 9336 | fi |
| 9337 | |
| 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9343 | |
| 9344 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9345 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9346 | for element in $INCICONV; do |
| 9347 | haveit= |
| 9348 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9349 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9350 | acl_save_prefix="$prefix" |
| 9351 | prefix="$acl_final_prefix" |
| 9352 | acl_save_exec_prefix="$exec_prefix" |
| 9353 | exec_prefix="$acl_final_exec_prefix" |
| 9354 | eval x=\"$x\" |
| 9355 | exec_prefix="$acl_save_exec_prefix" |
| 9356 | prefix="$acl_save_prefix" |
| 9357 | |
| 9358 | if test "X$x" = "X$element"; then |
| 9359 | haveit=yes |
| 9360 | break |
| 9361 | fi |
| 9362 | done |
| 9363 | if test -z "$haveit"; then |
| 9364 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9365 | fi |
| 9366 | done |
| 9367 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9369 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9370 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9371 | if test "${am_cv_func_iconv+set}" = set; then |
| 9372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9373 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9374 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9375 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9376 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9377 | cat >conftest.$ac_ext <<_ACEOF |
| 9378 | /* confdefs.h. */ |
| 9379 | _ACEOF |
| 9380 | cat confdefs.h >>conftest.$ac_ext |
| 9381 | cat >>conftest.$ac_ext <<_ACEOF |
| 9382 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9383 | #include <stdlib.h> |
| 9384 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9385 | int |
| 9386 | main () |
| 9387 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9388 | iconv_t cd = iconv_open("",""); |
| 9389 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9390 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9391 | ; |
| 9392 | return 0; |
| 9393 | } |
| 9394 | _ACEOF |
| 9395 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9396 | if { (ac_try="$ac_link" |
| 9397 | case "(($ac_try" in |
| 9398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9399 | *) ac_try_echo=$ac_try;; |
| 9400 | esac |
| 9401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9402 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9403 | ac_status=$? |
| 9404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9405 | rm -f conftest.er1 |
| 9406 | cat conftest.err >&5 |
| 9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9408 | (exit $ac_status); } && { |
| 9409 | test -z "$ac_c_werror_flag" || |
| 9410 | test ! -s conftest.err |
| 9411 | } && test -s conftest$ac_exeext && |
| 9412 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9413 | am_cv_func_iconv=yes |
| 9414 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9415 | echo "$as_me: failed program was:" >&5 |
| 9416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9419 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9420 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9421 | 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] | 9422 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9423 | if test "$am_cv_func_iconv" != yes; then |
| 9424 | am_save_LIBS="$LIBS" |
| 9425 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9426 | cat >conftest.$ac_ext <<_ACEOF |
| 9427 | /* confdefs.h. */ |
| 9428 | _ACEOF |
| 9429 | cat confdefs.h >>conftest.$ac_ext |
| 9430 | cat >>conftest.$ac_ext <<_ACEOF |
| 9431 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9432 | #include <stdlib.h> |
| 9433 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9434 | int |
| 9435 | main () |
| 9436 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9437 | iconv_t cd = iconv_open("",""); |
| 9438 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9439 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9440 | ; |
| 9441 | return 0; |
| 9442 | } |
| 9443 | _ACEOF |
| 9444 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9445 | if { (ac_try="$ac_link" |
| 9446 | case "(($ac_try" in |
| 9447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9448 | *) ac_try_echo=$ac_try;; |
| 9449 | esac |
| 9450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9451 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9452 | ac_status=$? |
| 9453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9454 | rm -f conftest.er1 |
| 9455 | cat conftest.err >&5 |
| 9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9457 | (exit $ac_status); } && { |
| 9458 | test -z "$ac_c_werror_flag" || |
| 9459 | test ! -s conftest.err |
| 9460 | } && test -s conftest$ac_exeext && |
| 9461 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9462 | am_cv_lib_iconv=yes |
| 9463 | am_cv_func_iconv=yes |
| 9464 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | echo "$as_me: failed program was:" >&5 |
| 9466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9468 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9469 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9470 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9471 | 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] | 9472 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9473 | LIBS="$am_save_LIBS" |
| 9474 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9475 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9477 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9478 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9479 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9480 | |
| 9481 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9482 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9483 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9484 | |
| 9485 | fi |
| 9486 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9487 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9488 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9489 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9490 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9491 | else |
| 9492 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9493 | LIBICONV= |
| 9494 | LTLIBICONV= |
| 9495 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9496 | |
| 9497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9498 | |
| 9499 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9500 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9501 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9502 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9504 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9505 | |
| 9506 | cat >conftest.$ac_ext <<_ACEOF |
| 9507 | /* confdefs.h. */ |
| 9508 | _ACEOF |
| 9509 | cat confdefs.h >>conftest.$ac_ext |
| 9510 | cat >>conftest.$ac_ext <<_ACEOF |
| 9511 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9512 | |
| 9513 | #include <stdlib.h> |
| 9514 | #include <iconv.h> |
| 9515 | extern |
| 9516 | #ifdef __cplusplus |
| 9517 | "C" |
| 9518 | #endif |
| 9519 | #if defined(__STDC__) || defined(__cplusplus) |
| 9520 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9521 | #else |
| 9522 | size_t iconv(); |
| 9523 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9525 | int |
| 9526 | main () |
| 9527 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9529 | ; |
| 9530 | return 0; |
| 9531 | } |
| 9532 | _ACEOF |
| 9533 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9534 | if { (ac_try="$ac_compile" |
| 9535 | case "(($ac_try" in |
| 9536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9537 | *) ac_try_echo=$ac_try;; |
| 9538 | esac |
| 9539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9540 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9541 | ac_status=$? |
| 9542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9543 | rm -f conftest.er1 |
| 9544 | cat conftest.err >&5 |
| 9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9546 | (exit $ac_status); } && { |
| 9547 | test -z "$ac_c_werror_flag" || |
| 9548 | test ! -s conftest.err |
| 9549 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9550 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9552 | echo "$as_me: failed program was:" >&5 |
| 9553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9554 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9555 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9556 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9557 | |
| 9558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9559 | 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] | 9560 | fi |
| 9561 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9562 | 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] | 9563 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9564 | }$am_cv_proto_iconv" >&5 |
| 9565 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9566 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9567 | |
| 9568 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9569 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9570 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9571 | |
| 9572 | fi |
| 9573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9575 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9576 | 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] | 9577 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9579 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9580 | cat >conftest.$ac_ext <<_ACEOF |
| 9581 | /* confdefs.h. */ |
| 9582 | _ACEOF |
| 9583 | cat confdefs.h >>conftest.$ac_ext |
| 9584 | cat >>conftest.$ac_ext <<_ACEOF |
| 9585 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9586 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9587 | int |
| 9588 | main () |
| 9589 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9590 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | ; |
| 9592 | return 0; |
| 9593 | } |
| 9594 | _ACEOF |
| 9595 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9596 | if { (ac_try="$ac_link" |
| 9597 | case "(($ac_try" in |
| 9598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9599 | *) ac_try_echo=$ac_try;; |
| 9600 | esac |
| 9601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9602 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9603 | ac_status=$? |
| 9604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9605 | rm -f conftest.er1 |
| 9606 | cat conftest.err >&5 |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9608 | (exit $ac_status); } && { |
| 9609 | test -z "$ac_c_werror_flag" || |
| 9610 | test ! -s conftest.err |
| 9611 | } && test -s conftest$ac_exeext && |
| 9612 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9613 | am_cv_langinfo_codeset=yes |
| 9614 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9615 | echo "$as_me: failed program was:" >&5 |
| 9616 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9618 | am_cv_langinfo_codeset=no |
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 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9621 | 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] | 9622 | conftest$ac_exeext conftest.$ac_ext |
| 9623 | |
| 9624 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9625 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9626 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9627 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9628 | |
| 9629 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9630 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9631 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9632 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9633 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9634 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9635 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9636 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9637 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9638 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9639 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9641 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9642 | cat >conftest.$ac_ext <<_ACEOF |
| 9643 | /* confdefs.h. */ |
| 9644 | _ACEOF |
| 9645 | cat confdefs.h >>conftest.$ac_ext |
| 9646 | cat >>conftest.$ac_ext <<_ACEOF |
| 9647 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9648 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9649 | int |
| 9650 | main () |
| 9651 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9652 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
| 9656 | _ACEOF |
| 9657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9658 | if { (ac_try="$ac_link" |
| 9659 | case "(($ac_try" in |
| 9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9661 | *) ac_try_echo=$ac_try;; |
| 9662 | esac |
| 9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9664 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9665 | ac_status=$? |
| 9666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9667 | rm -f conftest.er1 |
| 9668 | cat conftest.err >&5 |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9670 | (exit $ac_status); } && { |
| 9671 | test -z "$ac_c_werror_flag" || |
| 9672 | test ! -s conftest.err |
| 9673 | } && test -s conftest$ac_exeext && |
| 9674 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9675 | am_cv_val_LC_MESSAGES=yes |
| 9676 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9677 | echo "$as_me: failed program was:" >&5 |
| 9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9680 | am_cv_val_LC_MESSAGES=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 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9683 | 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] | 9684 | conftest$ac_exeext conftest.$ac_ext |
| 9685 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9686 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9687 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9688 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9689 | |
| 9690 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9691 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9692 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9693 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9694 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9695 | |
| 9696 | fi |
| 9697 | |
| 9698 | for ac_prog in bison |
| 9699 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9700 | # 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] | 9701 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9704 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9706 | else |
| 9707 | if test -n "$INTLBISON"; then |
| 9708 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9709 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9711 | for as_dir in $PATH |
| 9712 | do |
| 9713 | IFS=$as_save_IFS |
| 9714 | test -z "$as_dir" && as_dir=. |
| 9715 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9716 | 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] | 9717 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9719 | break 2 |
| 9720 | fi |
| 9721 | done |
| 9722 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9723 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9724 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9725 | fi |
| 9726 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9727 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9728 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9729 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9730 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9731 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9732 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9733 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9734 | fi |
| 9735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9736 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9737 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9738 | done |
| 9739 | |
| 9740 | if test -z "$INTLBISON"; then |
| 9741 | ac_verc_fail=yes |
| 9742 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9743 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9744 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9745 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9746 | case $ac_prog_version in |
| 9747 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9748 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9749 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9750 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9751 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9752 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9753 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9754 | fi |
| 9755 | if test $ac_verc_fail = yes; then |
| 9756 | INTLBISON=: |
| 9757 | fi |
| 9758 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9759 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9760 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9761 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9762 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9763 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9764 | |
| 9765 | |
| 9766 | |
| 9767 | |
| 9768 | |
| 9769 | |
| 9770 | |
| 9771 | |
| 9772 | |
| 9773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9774 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9775 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 9776 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9777 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9778 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9779 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9780 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9781 | fi |
| 9782 | |
| 9783 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9784 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9785 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9787 | |
| 9788 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9789 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9790 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9791 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9792 | LIBINTL= |
| 9793 | LTLIBINTL= |
| 9794 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9796 | if test "$USE_NLS" = "yes"; then |
| 9797 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9799 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9800 | 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] | 9801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9803 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9804 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9805 | else |
| 9806 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9807 | fi |
| 9808 | |
| 9809 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9810 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9811 | |
| 9812 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9813 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9814 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9815 | |
| 9816 | |
| 9817 | |
| 9818 | |
| 9819 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9820 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9821 | 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] | 9822 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9824 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9825 | cat >conftest.$ac_ext <<_ACEOF |
| 9826 | /* confdefs.h. */ |
| 9827 | _ACEOF |
| 9828 | cat confdefs.h >>conftest.$ac_ext |
| 9829 | cat >>conftest.$ac_ext <<_ACEOF |
| 9830 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9831 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9832 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9833 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9834 | int |
| 9835 | main () |
| 9836 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9837 | bindtextdomain ("", ""); |
| 9838 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9839 | ; |
| 9840 | return 0; |
| 9841 | } |
| 9842 | _ACEOF |
| 9843 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9844 | if { (ac_try="$ac_link" |
| 9845 | case "(($ac_try" in |
| 9846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9847 | *) ac_try_echo=$ac_try;; |
| 9848 | esac |
| 9849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9850 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9851 | ac_status=$? |
| 9852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9853 | rm -f conftest.er1 |
| 9854 | cat conftest.err >&5 |
| 9855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9856 | (exit $ac_status); } && { |
| 9857 | test -z "$ac_c_werror_flag" || |
| 9858 | test ! -s conftest.err |
| 9859 | } && test -s conftest$ac_exeext && |
| 9860 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9861 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9862 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9863 | echo "$as_me: failed program was:" >&5 |
| 9864 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9866 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9868 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9869 | 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] | 9870 | conftest$ac_exeext conftest.$ac_ext |
| 9871 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9872 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9873 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9874 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9875 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9876 | |
| 9877 | |
| 9878 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9879 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9881 | acl_save_prefix="$prefix" |
| 9882 | prefix="$acl_final_prefix" |
| 9883 | acl_save_exec_prefix="$exec_prefix" |
| 9884 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9885 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9886 | eval additional_includedir=\"$includedir\" |
| 9887 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9888 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9889 | exec_prefix="$acl_save_exec_prefix" |
| 9890 | prefix="$acl_save_prefix" |
| 9891 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9893 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9894 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9895 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9896 | if test "X$withval" = "Xno"; then |
| 9897 | use_additional=no |
| 9898 | else |
| 9899 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9901 | acl_save_prefix="$prefix" |
| 9902 | prefix="$acl_final_prefix" |
| 9903 | acl_save_exec_prefix="$exec_prefix" |
| 9904 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9905 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9906 | eval additional_includedir=\"$includedir\" |
| 9907 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9908 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9909 | exec_prefix="$acl_save_exec_prefix" |
| 9910 | prefix="$acl_save_prefix" |
| 9911 | |
| 9912 | else |
| 9913 | additional_includedir="$withval/include" |
| 9914 | additional_libdir="$withval/lib" |
| 9915 | fi |
| 9916 | fi |
| 9917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9918 | fi |
| 9919 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9920 | LIBINTL= |
| 9921 | LTLIBINTL= |
| 9922 | INCINTL= |
| 9923 | rpathdirs= |
| 9924 | ltrpathdirs= |
| 9925 | names_already_handled= |
| 9926 | names_next_round='intl ' |
| 9927 | while test -n "$names_next_round"; do |
| 9928 | names_this_round="$names_next_round" |
| 9929 | names_next_round= |
| 9930 | for name in $names_this_round; do |
| 9931 | already_handled= |
| 9932 | for n in $names_already_handled; do |
| 9933 | if test "$n" = "$name"; then |
| 9934 | already_handled=yes |
| 9935 | break |
| 9936 | fi |
| 9937 | done |
| 9938 | if test -z "$already_handled"; then |
| 9939 | names_already_handled="$names_already_handled $name" |
| 9940 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9941 | eval value=\"\$HAVE_LIB$uppername\" |
| 9942 | if test -n "$value"; then |
| 9943 | if test "$value" = yes; then |
| 9944 | eval value=\"\$LIB$uppername\" |
| 9945 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 9946 | eval value=\"\$LTLIB$uppername\" |
| 9947 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 9948 | else |
| 9949 | : |
| 9950 | fi |
| 9951 | else |
| 9952 | found_dir= |
| 9953 | found_la= |
| 9954 | found_so= |
| 9955 | found_a= |
| 9956 | if test $use_additional = yes; then |
| 9957 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9958 | found_dir="$additional_libdir" |
| 9959 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9960 | if test -f "$additional_libdir/lib$name.la"; then |
| 9961 | found_la="$additional_libdir/lib$name.la" |
| 9962 | fi |
| 9963 | else |
| 9964 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9965 | found_dir="$additional_libdir" |
| 9966 | found_a="$additional_libdir/lib$name.$libext" |
| 9967 | if test -f "$additional_libdir/lib$name.la"; then |
| 9968 | found_la="$additional_libdir/lib$name.la" |
| 9969 | fi |
| 9970 | fi |
| 9971 | fi |
| 9972 | fi |
| 9973 | if test "X$found_dir" = "X"; then |
| 9974 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9976 | acl_save_prefix="$prefix" |
| 9977 | prefix="$acl_final_prefix" |
| 9978 | acl_save_exec_prefix="$exec_prefix" |
| 9979 | exec_prefix="$acl_final_exec_prefix" |
| 9980 | eval x=\"$x\" |
| 9981 | exec_prefix="$acl_save_exec_prefix" |
| 9982 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9983 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9984 | case "$x" in |
| 9985 | -L*) |
| 9986 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9987 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9988 | found_dir="$dir" |
| 9989 | found_so="$dir/lib$name.$shlibext" |
| 9990 | if test -f "$dir/lib$name.la"; then |
| 9991 | found_la="$dir/lib$name.la" |
| 9992 | fi |
| 9993 | else |
| 9994 | if test -f "$dir/lib$name.$libext"; then |
| 9995 | found_dir="$dir" |
| 9996 | found_a="$dir/lib$name.$libext" |
| 9997 | if test -f "$dir/lib$name.la"; then |
| 9998 | found_la="$dir/lib$name.la" |
| 9999 | fi |
| 10000 | fi |
| 10001 | fi |
| 10002 | ;; |
| 10003 | esac |
| 10004 | if test "X$found_dir" != "X"; then |
| 10005 | break |
| 10006 | fi |
| 10007 | done |
| 10008 | fi |
| 10009 | if test "X$found_dir" != "X"; then |
| 10010 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10011 | if test "X$found_so" != "X"; then |
| 10012 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10013 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10014 | else |
| 10015 | haveit= |
| 10016 | for x in $ltrpathdirs; do |
| 10017 | if test "X$x" = "X$found_dir"; then |
| 10018 | haveit=yes |
| 10019 | break |
| 10020 | fi |
| 10021 | done |
| 10022 | if test -z "$haveit"; then |
| 10023 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10024 | fi |
| 10025 | if test "$hardcode_direct" = yes; then |
| 10026 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10027 | else |
| 10028 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10029 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10030 | haveit= |
| 10031 | for x in $rpathdirs; do |
| 10032 | if test "X$x" = "X$found_dir"; then |
| 10033 | haveit=yes |
| 10034 | break |
| 10035 | fi |
| 10036 | done |
| 10037 | if test -z "$haveit"; then |
| 10038 | rpathdirs="$rpathdirs $found_dir" |
| 10039 | fi |
| 10040 | else |
| 10041 | haveit= |
| 10042 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10043 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10044 | acl_save_prefix="$prefix" |
| 10045 | prefix="$acl_final_prefix" |
| 10046 | acl_save_exec_prefix="$exec_prefix" |
| 10047 | exec_prefix="$acl_final_exec_prefix" |
| 10048 | eval x=\"$x\" |
| 10049 | exec_prefix="$acl_save_exec_prefix" |
| 10050 | prefix="$acl_save_prefix" |
| 10051 | |
| 10052 | if test "X$x" = "X-L$found_dir"; then |
| 10053 | haveit=yes |
| 10054 | break |
| 10055 | fi |
| 10056 | done |
| 10057 | if test -z "$haveit"; then |
| 10058 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10059 | fi |
| 10060 | if test "$hardcode_minus_L" != no; then |
| 10061 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10062 | else |
| 10063 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10064 | fi |
| 10065 | fi |
| 10066 | fi |
| 10067 | fi |
| 10068 | else |
| 10069 | if test "X$found_a" != "X"; then |
| 10070 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10071 | else |
| 10072 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10073 | fi |
| 10074 | fi |
| 10075 | additional_includedir= |
| 10076 | case "$found_dir" in |
| 10077 | */lib | */lib/) |
| 10078 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10079 | additional_includedir="$basedir/include" |
| 10080 | ;; |
| 10081 | esac |
| 10082 | if test "X$additional_includedir" != "X"; then |
| 10083 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10084 | haveit= |
| 10085 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10086 | if test -n "$GCC"; then |
| 10087 | case $host_os in |
| 10088 | linux*) haveit=yes;; |
| 10089 | esac |
| 10090 | fi |
| 10091 | fi |
| 10092 | if test -z "$haveit"; then |
| 10093 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10094 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10095 | acl_save_prefix="$prefix" |
| 10096 | prefix="$acl_final_prefix" |
| 10097 | acl_save_exec_prefix="$exec_prefix" |
| 10098 | exec_prefix="$acl_final_exec_prefix" |
| 10099 | eval x=\"$x\" |
| 10100 | exec_prefix="$acl_save_exec_prefix" |
| 10101 | prefix="$acl_save_prefix" |
| 10102 | |
| 10103 | if test "X$x" = "X-I$additional_includedir"; then |
| 10104 | haveit=yes |
| 10105 | break |
| 10106 | fi |
| 10107 | done |
| 10108 | if test -z "$haveit"; then |
| 10109 | if test -d "$additional_includedir"; then |
| 10110 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10111 | fi |
| 10112 | fi |
| 10113 | fi |
| 10114 | fi |
| 10115 | fi |
| 10116 | if test -n "$found_la"; then |
| 10117 | save_libdir="$libdir" |
| 10118 | case "$found_la" in |
| 10119 | */* | *\\*) . "$found_la" ;; |
| 10120 | *) . "./$found_la" ;; |
| 10121 | esac |
| 10122 | libdir="$save_libdir" |
| 10123 | for dep in $dependency_libs; do |
| 10124 | case "$dep" in |
| 10125 | -L*) |
| 10126 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10127 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10128 | haveit= |
| 10129 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10130 | if test -n "$GCC"; then |
| 10131 | case $host_os in |
| 10132 | linux*) haveit=yes;; |
| 10133 | esac |
| 10134 | fi |
| 10135 | fi |
| 10136 | if test -z "$haveit"; then |
| 10137 | haveit= |
| 10138 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10139 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10140 | acl_save_prefix="$prefix" |
| 10141 | prefix="$acl_final_prefix" |
| 10142 | acl_save_exec_prefix="$exec_prefix" |
| 10143 | exec_prefix="$acl_final_exec_prefix" |
| 10144 | eval x=\"$x\" |
| 10145 | exec_prefix="$acl_save_exec_prefix" |
| 10146 | prefix="$acl_save_prefix" |
| 10147 | |
| 10148 | if test "X$x" = "X-L$additional_libdir"; then |
| 10149 | haveit=yes |
| 10150 | break |
| 10151 | fi |
| 10152 | done |
| 10153 | if test -z "$haveit"; then |
| 10154 | if test -d "$additional_libdir"; then |
| 10155 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10156 | fi |
| 10157 | fi |
| 10158 | haveit= |
| 10159 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10160 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10161 | acl_save_prefix="$prefix" |
| 10162 | prefix="$acl_final_prefix" |
| 10163 | acl_save_exec_prefix="$exec_prefix" |
| 10164 | exec_prefix="$acl_final_exec_prefix" |
| 10165 | eval x=\"$x\" |
| 10166 | exec_prefix="$acl_save_exec_prefix" |
| 10167 | prefix="$acl_save_prefix" |
| 10168 | |
| 10169 | if test "X$x" = "X-L$additional_libdir"; then |
| 10170 | haveit=yes |
| 10171 | break |
| 10172 | fi |
| 10173 | done |
| 10174 | if test -z "$haveit"; then |
| 10175 | if test -d "$additional_libdir"; then |
| 10176 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10177 | fi |
| 10178 | fi |
| 10179 | fi |
| 10180 | fi |
| 10181 | ;; |
| 10182 | -R*) |
| 10183 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10184 | if test "$enable_rpath" != no; then |
| 10185 | haveit= |
| 10186 | for x in $rpathdirs; do |
| 10187 | if test "X$x" = "X$dir"; then |
| 10188 | haveit=yes |
| 10189 | break |
| 10190 | fi |
| 10191 | done |
| 10192 | if test -z "$haveit"; then |
| 10193 | rpathdirs="$rpathdirs $dir" |
| 10194 | fi |
| 10195 | haveit= |
| 10196 | for x in $ltrpathdirs; do |
| 10197 | if test "X$x" = "X$dir"; then |
| 10198 | haveit=yes |
| 10199 | break |
| 10200 | fi |
| 10201 | done |
| 10202 | if test -z "$haveit"; then |
| 10203 | ltrpathdirs="$ltrpathdirs $dir" |
| 10204 | fi |
| 10205 | fi |
| 10206 | ;; |
| 10207 | -l*) |
| 10208 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10209 | ;; |
| 10210 | *.la) |
| 10211 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10212 | ;; |
| 10213 | *) |
| 10214 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10215 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10216 | ;; |
| 10217 | esac |
| 10218 | done |
| 10219 | fi |
| 10220 | else |
| 10221 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10222 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10223 | fi |
| 10224 | fi |
| 10225 | fi |
| 10226 | done |
| 10227 | done |
| 10228 | if test "X$rpathdirs" != "X"; then |
| 10229 | if test -n "$hardcode_libdir_separator"; then |
| 10230 | alldirs= |
| 10231 | for found_dir in $rpathdirs; do |
| 10232 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10233 | done |
| 10234 | acl_save_libdir="$libdir" |
| 10235 | libdir="$alldirs" |
| 10236 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10237 | libdir="$acl_save_libdir" |
| 10238 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10239 | else |
| 10240 | for found_dir in $rpathdirs; do |
| 10241 | acl_save_libdir="$libdir" |
| 10242 | libdir="$found_dir" |
| 10243 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10244 | libdir="$acl_save_libdir" |
| 10245 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10246 | done |
| 10247 | fi |
| 10248 | fi |
| 10249 | if test "X$ltrpathdirs" != "X"; then |
| 10250 | for found_dir in $ltrpathdirs; do |
| 10251 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10252 | done |
| 10253 | fi |
| 10254 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10255 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10256 | 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] | 10257 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10259 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10260 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10261 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10262 | gt_save_LIBS="$LIBS" |
| 10263 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10264 | cat >conftest.$ac_ext <<_ACEOF |
| 10265 | /* confdefs.h. */ |
| 10266 | _ACEOF |
| 10267 | cat confdefs.h >>conftest.$ac_ext |
| 10268 | cat >>conftest.$ac_ext <<_ACEOF |
| 10269 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10270 | #include <libintl.h> |
| 10271 | extern int _nl_msg_cat_cntr; |
| 10272 | extern |
| 10273 | #ifdef __cplusplus |
| 10274 | "C" |
| 10275 | #endif |
| 10276 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10277 | int |
| 10278 | main () |
| 10279 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10280 | bindtextdomain ("", ""); |
| 10281 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10282 | ; |
| 10283 | return 0; |
| 10284 | } |
| 10285 | _ACEOF |
| 10286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10287 | if { (ac_try="$ac_link" |
| 10288 | case "(($ac_try" in |
| 10289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10290 | *) ac_try_echo=$ac_try;; |
| 10291 | esac |
| 10292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10293 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10294 | ac_status=$? |
| 10295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10296 | rm -f conftest.er1 |
| 10297 | cat conftest.err >&5 |
| 10298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10299 | (exit $ac_status); } && { |
| 10300 | test -z "$ac_c_werror_flag" || |
| 10301 | test ! -s conftest.err |
| 10302 | } && test -s conftest$ac_exeext && |
| 10303 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10304 | gt_cv_func_gnugettext1_libintl=yes |
| 10305 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10306 | echo "$as_me: failed program was:" >&5 |
| 10307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10309 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10310 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10311 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10312 | 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] | 10313 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10314 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10315 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10316 | cat >conftest.$ac_ext <<_ACEOF |
| 10317 | /* confdefs.h. */ |
| 10318 | _ACEOF |
| 10319 | cat confdefs.h >>conftest.$ac_ext |
| 10320 | cat >>conftest.$ac_ext <<_ACEOF |
| 10321 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10322 | #include <libintl.h> |
| 10323 | extern int _nl_msg_cat_cntr; |
| 10324 | extern |
| 10325 | #ifdef __cplusplus |
| 10326 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10327 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10328 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10329 | int |
| 10330 | main () |
| 10331 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10332 | bindtextdomain ("", ""); |
| 10333 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10334 | ; |
| 10335 | return 0; |
| 10336 | } |
| 10337 | _ACEOF |
| 10338 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10339 | if { (ac_try="$ac_link" |
| 10340 | case "(($ac_try" in |
| 10341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10342 | *) ac_try_echo=$ac_try;; |
| 10343 | esac |
| 10344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10345 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10346 | ac_status=$? |
| 10347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10348 | rm -f conftest.er1 |
| 10349 | cat conftest.err >&5 |
| 10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10351 | (exit $ac_status); } && { |
| 10352 | test -z "$ac_c_werror_flag" || |
| 10353 | test ! -s conftest.err |
| 10354 | } && test -s conftest$ac_exeext && |
| 10355 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10356 | LIBINTL="$LIBINTL $LIBICONV" |
| 10357 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10358 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10359 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10360 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10361 | echo "$as_me: failed program was:" >&5 |
| 10362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10363 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10364 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10366 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10367 | 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] | 10368 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10369 | fi |
| 10370 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10371 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10372 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10373 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10374 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10375 | fi |
| 10376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10377 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10378 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10379 | && test "$PACKAGE" != gettext-runtime \ |
| 10380 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10381 | gt_use_preinstalled_gnugettext=yes |
| 10382 | else |
| 10383 | LIBINTL= |
| 10384 | LTLIBINTL= |
| 10385 | INCINTL= |
| 10386 | fi |
| 10387 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10389 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10390 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10391 | fi |
| 10392 | fi |
| 10393 | |
| 10394 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10395 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10396 | USE_INCLUDED_LIBINTL=yes |
| 10397 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10398 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10399 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10400 | fi |
| 10401 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10402 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10403 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10404 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10405 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10406 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10408 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10409 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10410 | |
| 10411 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10412 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10413 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10414 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10415 | else |
| 10416 | USE_NLS=no |
| 10417 | fi |
| 10418 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10420 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10421 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10422 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10423 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10424 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10426 | 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] | 10427 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10428 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10429 | gt_source="external libintl" |
| 10430 | else |
| 10431 | gt_source="libc" |
| 10432 | fi |
| 10433 | else |
| 10434 | gt_source="included intl directory" |
| 10435 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10436 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10437 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10438 | fi |
| 10439 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10440 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10441 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10442 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10443 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10444 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10445 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10446 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10447 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10448 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10449 | for element in $INCINTL; do |
| 10450 | haveit= |
| 10451 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10452 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10453 | acl_save_prefix="$prefix" |
| 10454 | prefix="$acl_final_prefix" |
| 10455 | acl_save_exec_prefix="$exec_prefix" |
| 10456 | exec_prefix="$acl_final_exec_prefix" |
| 10457 | eval x=\"$x\" |
| 10458 | exec_prefix="$acl_save_exec_prefix" |
| 10459 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10460 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10461 | if test "X$x" = "X$element"; then |
| 10462 | haveit=yes |
| 10463 | break |
| 10464 | fi |
| 10465 | done |
| 10466 | if test -z "$haveit"; then |
| 10467 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10468 | fi |
| 10469 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10470 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10471 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10474 | cat >>confdefs.h <<\_ACEOF |
| 10475 | #define HAVE_GETTEXT 1 |
| 10476 | _ACEOF |
| 10477 | |
| 10478 | |
| 10479 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10480 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10481 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10482 | |
| 10483 | fi |
| 10484 | |
| 10485 | POSUB=po |
| 10486 | fi |
| 10487 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10488 | |
| 10489 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10490 | BUILD_INCLUDED_LIBINTL=yes |
| 10491 | fi |
| 10492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10493 | |
| 10494 | |
| 10495 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10496 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10497 | nls_cv_header_intl= |
| 10498 | nls_cv_header_libgt= |
| 10499 | |
| 10500 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10501 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10502 | |
| 10503 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10504 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10505 | |
| 10506 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10507 | |
| 10508 | |
| 10509 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10510 | INTLOBJS="\$(GETTOBJS)" |
| 10511 | fi |
| 10512 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10513 | |
| 10514 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10515 | |
| 10516 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10517 | |
| 10518 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10519 | |
| 10520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10526 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10527 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10528 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10529 | 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] | 10530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10531 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10532 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10533 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10534 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10535 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10536 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10537 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10538 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10539 | *@@@%%%=?*=@@@%%%*) |
| 10540 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10541 | *) |
| 10542 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10543 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10545 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10546 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10547 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10548 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10549 | SET_MAKE= |
| 10550 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10552 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10553 | SET_MAKE="MAKE=${MAKE-make}" |
| 10554 | fi |
| 10555 | |
| 10556 | # Extract the first word of "ln", so it can be a program name with args. |
| 10557 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10560 | if test "${ac_cv_path_LN+set}" = set; then |
| 10561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10562 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10563 | case $LN in |
| 10564 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10565 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10566 | ;; |
| 10567 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10569 | for as_dir in $PATH |
| 10570 | do |
| 10571 | IFS=$as_save_IFS |
| 10572 | test -z "$as_dir" && as_dir=. |
| 10573 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10574 | 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] | 10575 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10577 | break 2 |
| 10578 | fi |
| 10579 | done |
| 10580 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10581 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10582 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10583 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10584 | ;; |
| 10585 | esac |
| 10586 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10587 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10588 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10589 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10590 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10591 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10593 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10594 | fi |
| 10595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10596 | |
| 10597 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10598 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10599 | LN_S=$as_ln_s |
| 10600 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10601 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10602 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10603 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10604 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10605 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10606 | fi |
| 10607 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10608 | # Extract the first word of "mv", so it can be a program name with args. |
| 10609 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10612 | if test "${ac_cv_path_MV+set}" = set; then |
| 10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10614 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10615 | case $MV in |
| 10616 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10617 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10618 | ;; |
| 10619 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10621 | for as_dir in $PATH |
| 10622 | do |
| 10623 | IFS=$as_save_IFS |
| 10624 | test -z "$as_dir" && as_dir=. |
| 10625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10626 | 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] | 10627 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10629 | break 2 |
| 10630 | fi |
| 10631 | done |
| 10632 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10633 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10634 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10635 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10636 | ;; |
| 10637 | esac |
| 10638 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10639 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10640 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10641 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10642 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10643 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10644 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10645 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10646 | fi |
| 10647 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10648 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10649 | # Extract the first word of "cp", so it can be a program name with args. |
| 10650 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | if test "${ac_cv_path_CP+set}" = set; then |
| 10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10655 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10656 | case $CP in |
| 10657 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10658 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10659 | ;; |
| 10660 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10662 | for as_dir in $PATH |
| 10663 | do |
| 10664 | IFS=$as_save_IFS |
| 10665 | test -z "$as_dir" && as_dir=. |
| 10666 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10667 | 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] | 10668 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10670 | break 2 |
| 10671 | fi |
| 10672 | done |
| 10673 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10674 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10675 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10676 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10677 | ;; |
| 10678 | esac |
| 10679 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10681 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10682 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10683 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10684 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10685 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10686 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10687 | fi |
| 10688 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10689 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10690 | # Extract the first word of "rm", so it can be a program name with args. |
| 10691 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10692 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10694 | if test "${ac_cv_path_RM+set}" = set; then |
| 10695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10696 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10697 | case $RM in |
| 10698 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10699 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10700 | ;; |
| 10701 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10703 | for as_dir in $PATH |
| 10704 | do |
| 10705 | IFS=$as_save_IFS |
| 10706 | test -z "$as_dir" && as_dir=. |
| 10707 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10708 | 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] | 10709 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10711 | break 2 |
| 10712 | fi |
| 10713 | done |
| 10714 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10715 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10716 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10717 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10718 | ;; |
| 10719 | esac |
| 10720 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10721 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10722 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10723 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 10724 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10725 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10726 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10727 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10728 | fi |
| 10729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10730 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10731 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10732 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10735 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10737 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10738 | case $CHMOD in |
| 10739 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10740 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10741 | ;; |
| 10742 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10744 | for as_dir in $PATH |
| 10745 | do |
| 10746 | IFS=$as_save_IFS |
| 10747 | test -z "$as_dir" && as_dir=. |
| 10748 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10749 | 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] | 10750 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10752 | break 2 |
| 10753 | fi |
| 10754 | done |
| 10755 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10756 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10758 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10759 | ;; |
| 10760 | esac |
| 10761 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10762 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10763 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10764 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10765 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10766 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10768 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10769 | fi |
| 10770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10771 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10772 | for ac_prog in gawk mawk nawk awk |
| 10773 | do |
| 10774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10775 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10776 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10778 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10780 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10781 | if test -n "$AWK"; then |
| 10782 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10783 | else |
| 10784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10785 | for as_dir in $PATH |
| 10786 | do |
| 10787 | IFS=$as_save_IFS |
| 10788 | test -z "$as_dir" && as_dir=. |
| 10789 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10790 | 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] | 10791 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10793 | break 2 |
| 10794 | fi |
| 10795 | done |
| 10796 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10797 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10798 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10799 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10800 | fi |
| 10801 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10802 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10803 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10804 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10805 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10806 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10807 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10808 | fi |
| 10809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10810 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10811 | test -n "$AWK" && break |
| 10812 | done |
| 10813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10814 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 10815 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 10816 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10818 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10819 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10820 | then ac_cv_path_EGREP="$GREP -E" |
| 10821 | else |
| 10822 | # Extract the first word of "egrep" to use in msg output |
| 10823 | if test -z "$EGREP"; then |
| 10824 | set dummy egrep; ac_prog_name=$2 |
| 10825 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 10826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10827 | else |
| 10828 | ac_path_EGREP_found=false |
| 10829 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10831 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10832 | do |
| 10833 | IFS=$as_save_IFS |
| 10834 | test -z "$as_dir" && as_dir=. |
| 10835 | for ac_prog in egrep; do |
| 10836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10837 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10838 | { 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] | 10839 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 10840 | # Check for GNU $ac_path_EGREP |
| 10841 | case `"$ac_path_EGREP" --version 2>&1` in |
| 10842 | *GNU*) |
| 10843 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10844 | *) |
| 10845 | ac_count=0 |
| 10846 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 10847 | while : |
| 10848 | do |
| 10849 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10850 | mv "conftest.tmp" "conftest.in" |
| 10851 | cp "conftest.in" "conftest.nl" |
| 10852 | echo 'EGREP' >> "conftest.nl" |
| 10853 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10854 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10855 | ac_count=`expr $ac_count + 1` |
| 10856 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10857 | # Best one so far, save it but keep looking for a better one |
| 10858 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 10859 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10860 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10861 | # 10*(2^10) chars as input seems more than enough |
| 10862 | test $ac_count -gt 10 && break |
| 10863 | done |
| 10864 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10865 | esac |
| 10866 | |
| 10867 | |
| 10868 | $ac_path_EGREP_found && break 3 |
| 10869 | done |
| 10870 | done |
| 10871 | |
| 10872 | done |
| 10873 | IFS=$as_save_IFS |
| 10874 | |
| 10875 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10876 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10877 | |
| 10878 | EGREP="$ac_cv_path_EGREP" |
| 10879 | if test -z "$EGREP"; then |
| 10880 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 10881 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 10882 | { (exit 1); exit 1; }; } |
| 10883 | fi |
| 10884 | |
| 10885 | else |
| 10886 | ac_cv_path_EGREP=$EGREP |
| 10887 | fi |
| 10888 | |
| 10889 | |
| 10890 | fi |
| 10891 | fi |
| 10892 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 10893 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 10894 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10895 | |
| 10896 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10897 | # Extract the first word of "sed", so it can be a program name with args. |
| 10898 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10899 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10901 | if test "${ac_cv_path_SED+set}" = set; then |
| 10902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10903 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10904 | case $SED in |
| 10905 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10906 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 10907 | ;; |
| 10908 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10910 | for as_dir in $PATH |
| 10911 | do |
| 10912 | IFS=$as_save_IFS |
| 10913 | test -z "$as_dir" && as_dir=. |
| 10914 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10915 | 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] | 10916 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 10917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10918 | break 2 |
| 10919 | fi |
| 10920 | done |
| 10921 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10922 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10923 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10924 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 10925 | ;; |
| 10926 | esac |
| 10927 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10928 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10929 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 10931 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10932 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10933 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10934 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10935 | fi |
| 10936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10937 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10938 | # Extract the first word of "perl", so it can be a program name with args. |
| 10939 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10942 | if test "${ac_cv_path_PERL+set}" = set; then |
| 10943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10944 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10945 | case $PERL in |
| 10946 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10947 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 10948 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10949 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10951 | for as_dir in $PATH |
| 10952 | do |
| 10953 | IFS=$as_save_IFS |
| 10954 | test -z "$as_dir" && as_dir=. |
| 10955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10956 | 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] | 10957 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 10958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10959 | break 2 |
| 10960 | fi |
| 10961 | done |
| 10962 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10963 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10964 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10965 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 10966 | ;; |
| 10967 | esac |
| 10968 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10969 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10970 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10971 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 10972 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10973 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10974 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10975 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10976 | fi |
| 10977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10978 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10979 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 10980 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10981 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10983 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 10984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10985 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10986 | case $LDCONFIG in |
| 10987 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10988 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 10989 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10990 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10992 | for as_dir in $PATH |
| 10993 | do |
| 10994 | IFS=$as_save_IFS |
| 10995 | test -z "$as_dir" && as_dir=. |
| 10996 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10997 | 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] | 10998 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11000 | break 2 |
| 11001 | fi |
| 11002 | done |
| 11003 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11004 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11005 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11006 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11007 | ;; |
| 11008 | esac |
| 11009 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11010 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11011 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11012 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11013 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11014 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11015 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11016 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11017 | fi |
| 11018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11019 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11020 | if test -n "$ac_tool_prefix"; then |
| 11021 | # 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] | 11022 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11025 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11027 | else |
| 11028 | if test -n "$AR"; then |
| 11029 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11030 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11032 | for as_dir in $PATH |
| 11033 | do |
| 11034 | IFS=$as_save_IFS |
| 11035 | test -z "$as_dir" && as_dir=. |
| 11036 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11037 | 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] | 11038 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11040 | break 2 |
| 11041 | fi |
| 11042 | done |
| 11043 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11044 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11045 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11046 | fi |
| 11047 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11048 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11049 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11050 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11051 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11052 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11053 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11054 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11055 | fi |
| 11056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11057 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11058 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11059 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11060 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11061 | # Extract the first word of "ar", so it can be a program name with args. |
| 11062 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11065 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11067 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11068 | if test -n "$ac_ct_AR"; then |
| 11069 | 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] | 11070 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11072 | for as_dir in $PATH |
| 11073 | do |
| 11074 | IFS=$as_save_IFS |
| 11075 | test -z "$as_dir" && as_dir=. |
| 11076 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11077 | 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] | 11078 | ac_cv_prog_ac_ct_AR="ar" |
| 11079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11080 | break 2 |
| 11081 | fi |
| 11082 | done |
| 11083 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11084 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11085 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11086 | fi |
| 11087 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11088 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11089 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11090 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11091 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11092 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11093 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11094 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11095 | fi |
| 11096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11097 | if test "x$ac_ct_AR" = x; then |
| 11098 | AR="ar" |
| 11099 | else |
| 11100 | case $cross_compiling:$ac_tool_warned in |
| 11101 | yes:) |
| 11102 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11103 | whose name does not start with the host triplet. If you think this |
| 11104 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11105 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11106 | whose name does not start with the host triplet. If you think this |
| 11107 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11108 | ac_tool_warned=yes ;; |
| 11109 | esac |
| 11110 | AR=$ac_ct_AR |
| 11111 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11112 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11113 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11114 | fi |
| 11115 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11116 | if test -n "$ac_tool_prefix"; then |
| 11117 | # 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] | 11118 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11119 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11121 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11123 | else |
| 11124 | if test -n "$RANLIB"; then |
| 11125 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11126 | else |
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_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 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 | fi |
| 11143 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11144 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11145 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11146 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11147 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11148 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11150 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11151 | fi |
| 11152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11154 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11155 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11156 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11157 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11158 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11161 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11163 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11164 | if test -n "$ac_ct_RANLIB"; then |
| 11165 | 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] | 11166 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11168 | for as_dir in $PATH |
| 11169 | do |
| 11170 | IFS=$as_save_IFS |
| 11171 | test -z "$as_dir" && as_dir=. |
| 11172 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11173 | 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] | 11174 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11176 | break 2 |
| 11177 | fi |
| 11178 | done |
| 11179 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11180 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11181 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11182 | fi |
| 11183 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11184 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11185 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11186 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11187 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11188 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11190 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11191 | fi |
| 11192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11193 | if test "x$ac_ct_RANLIB" = x; then |
| 11194 | RANLIB=":" |
| 11195 | else |
| 11196 | case $cross_compiling:$ac_tool_warned in |
| 11197 | yes:) |
| 11198 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11199 | whose name does not start with the host triplet. If you think this |
| 11200 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11201 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11202 | whose name does not start with the host triplet. If you think this |
| 11203 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11204 | ac_tool_warned=yes ;; |
| 11205 | esac |
| 11206 | RANLIB=$ac_ct_RANLIB |
| 11207 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11208 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11209 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11210 | fi |
| 11211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11212 | if test -n "$ac_tool_prefix"; then |
| 11213 | # 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] | 11214 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11217 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11219 | else |
| 11220 | if test -n "$STRIP"; then |
| 11221 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11222 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11224 | for as_dir in $PATH |
| 11225 | do |
| 11226 | IFS=$as_save_IFS |
| 11227 | test -z "$as_dir" && as_dir=. |
| 11228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11229 | 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] | 11230 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11232 | break 2 |
| 11233 | fi |
| 11234 | done |
| 11235 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11236 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11237 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11238 | fi |
| 11239 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11240 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11241 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11242 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11243 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11244 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11246 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11247 | fi |
| 11248 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11250 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11251 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11253 | # Extract the first word of "strip", so it can be a program name with args. |
| 11254 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11257 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11259 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11260 | if test -n "$ac_ct_STRIP"; then |
| 11261 | 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] | 11262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11264 | for as_dir in $PATH |
| 11265 | do |
| 11266 | IFS=$as_save_IFS |
| 11267 | test -z "$as_dir" && as_dir=. |
| 11268 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11269 | 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] | 11270 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11272 | break 2 |
| 11273 | fi |
| 11274 | done |
| 11275 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11276 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11277 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11278 | fi |
| 11279 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11280 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11281 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11282 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11283 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11284 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11285 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11286 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11287 | fi |
| 11288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11289 | if test "x$ac_ct_STRIP" = x; then |
| 11290 | STRIP=":" |
| 11291 | else |
| 11292 | case $cross_compiling:$ac_tool_warned in |
| 11293 | yes:) |
| 11294 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11295 | whose name does not start with the host triplet. If you think this |
| 11296 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11297 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11298 | whose name does not start with the host triplet. If you think this |
| 11299 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11300 | ac_tool_warned=yes ;; |
| 11301 | esac |
| 11302 | STRIP=$ac_ct_STRIP |
| 11303 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11304 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11306 | fi |
| 11307 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11308 | # Find a good install program. We prefer a C program (faster), |
| 11309 | # so one script is as good as another. But avoid the broken or |
| 11310 | # incompatible versions: |
| 11311 | # SysV /etc/install, /usr/sbin/install |
| 11312 | # SunOS /usr/etc/install |
| 11313 | # IRIX /sbin/install |
| 11314 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11315 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11316 | # 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] | 11317 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11318 | # 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] | 11319 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11320 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11321 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11322 | 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] | 11323 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11324 | if test "${ac_cv_path_install+set}" = set; then |
| 11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11326 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11328 | for as_dir in $PATH |
| 11329 | do |
| 11330 | IFS=$as_save_IFS |
| 11331 | test -z "$as_dir" && as_dir=. |
| 11332 | # Account for people who put trailing slashes in PATH elements. |
| 11333 | case $as_dir/ in |
| 11334 | ./ | .// | /cC/* | \ |
| 11335 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11336 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11337 | /usr/ucb/* ) ;; |
| 11338 | *) |
| 11339 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11340 | # Don't use installbsd from OSF since it installs stuff as root |
| 11341 | # by default. |
| 11342 | for ac_prog in ginstall scoinst install; do |
| 11343 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11344 | 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] | 11345 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11346 | 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] | 11347 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11348 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11349 | elif test $ac_prog = install && |
| 11350 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11351 | # program-specific install script used by HP pwplus--don't use. |
| 11352 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11353 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11354 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11355 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11356 | fi |
| 11357 | fi |
| 11358 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | done |
| 11360 | ;; |
| 11361 | esac |
| 11362 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11363 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11364 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11365 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11366 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11367 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11368 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11369 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11370 | # As a last resort, use the slow shell script. Don't cache a |
| 11371 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11372 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11373 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11374 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11375 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11376 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11377 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11378 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11379 | |
| 11380 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11381 | # It thinks the first close brace ends the variable substitution. |
| 11382 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11384 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11385 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11386 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11387 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11388 | # See if we need a separate native compiler. |
| 11389 | if test $cross_compiling = no; then |
| 11390 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11391 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11392 | else |
| 11393 | for ac_prog in gcc cc |
| 11394 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11395 | # 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] | 11396 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11399 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11401 | else |
| 11402 | if test -n "$BUILD_CC"; then |
| 11403 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11404 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11406 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11407 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11408 | IFS=$as_save_IFS |
| 11409 | test -z "$as_dir" && as_dir=. |
| 11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11411 | 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] | 11412 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11414 | break 2 |
| 11415 | fi |
| 11416 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11417 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11418 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11419 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11420 | fi |
| 11421 | fi |
| 11422 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11423 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11424 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11425 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11426 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11427 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11428 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11429 | fi |
| 11430 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11431 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11432 | test -n "$BUILD_CC" && break |
| 11433 | done |
| 11434 | |
| 11435 | fi |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
| 11450 | |
| 11451 | |
| 11452 | |
| 11453 | |
| 11454 | |
| 11455 | |
| 11456 | |
| 11457 | |
| 11458 | |
| 11459 | |
| 11460 | |
| 11461 | |
| 11462 | |
| 11463 | |
| 11464 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11465 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11466 | |
| 11467 | |
| 11468 | for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | do |
| 11470 | 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] | 11471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11472 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11474 | 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] | 11475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11477 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11479 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11480 | else |
| 11481 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11482 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11483 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11484 | cat >conftest.$ac_ext <<_ACEOF |
| 11485 | /* confdefs.h. */ |
| 11486 | _ACEOF |
| 11487 | cat confdefs.h >>conftest.$ac_ext |
| 11488 | cat >>conftest.$ac_ext <<_ACEOF |
| 11489 | /* end confdefs.h. */ |
| 11490 | $ac_includes_default |
| 11491 | #include <$ac_header> |
| 11492 | _ACEOF |
| 11493 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11494 | if { (ac_try="$ac_compile" |
| 11495 | case "(($ac_try" in |
| 11496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11497 | *) ac_try_echo=$ac_try;; |
| 11498 | esac |
| 11499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11500 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11501 | ac_status=$? |
| 11502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11503 | rm -f conftest.er1 |
| 11504 | cat conftest.err >&5 |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11506 | (exit $ac_status); } && { |
| 11507 | test -z "$ac_c_werror_flag" || |
| 11508 | test ! -s conftest.err |
| 11509 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11510 | ac_header_compiler=yes |
| 11511 | else |
| 11512 | echo "$as_me: failed program was:" >&5 |
| 11513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11515 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11517 | |
| 11518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11519 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11520 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11521 | |
| 11522 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11523 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11525 | cat >conftest.$ac_ext <<_ACEOF |
| 11526 | /* confdefs.h. */ |
| 11527 | _ACEOF |
| 11528 | cat confdefs.h >>conftest.$ac_ext |
| 11529 | cat >>conftest.$ac_ext <<_ACEOF |
| 11530 | /* end confdefs.h. */ |
| 11531 | #include <$ac_header> |
| 11532 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11533 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11534 | case "(($ac_try" in |
| 11535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11536 | *) ac_try_echo=$ac_try;; |
| 11537 | esac |
| 11538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11539 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11540 | ac_status=$? |
| 11541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11542 | rm -f conftest.er1 |
| 11543 | cat conftest.err >&5 |
| 11544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11545 | (exit $ac_status); } >/dev/null && { |
| 11546 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11547 | test ! -s conftest.err |
| 11548 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | ac_header_preproc=yes |
| 11550 | else |
| 11551 | echo "$as_me: failed program was:" >&5 |
| 11552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11553 | |
| 11554 | ac_header_preproc=no |
| 11555 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11557 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11558 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11559 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11560 | |
| 11561 | # So? What about this header? |
| 11562 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11563 | yes:no: ) |
| 11564 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11565 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11567 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11568 | ac_header_preproc=yes |
| 11569 | ;; |
| 11570 | no:yes:* ) |
| 11571 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11572 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11573 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11574 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11575 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11576 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11577 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11578 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11579 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11580 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11581 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11582 | 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] | 11583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11584 | ;; |
| 11585 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11588 | 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] | 11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11590 | else |
| 11591 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11593 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11595 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | |
| 11597 | fi |
| 11598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11599 | cat >>confdefs.h <<_ACEOF |
| 11600 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11601 | _ACEOF |
| 11602 | |
| 11603 | fi |
| 11604 | |
| 11605 | done |
| 11606 | |
| 11607 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11608 | |
| 11609 | for ac_header in sys/disk.h sys/mount.h |
| 11610 | do |
| 11611 | 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] | 11612 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11614 | 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] | 11615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11616 | else |
| 11617 | cat >conftest.$ac_ext <<_ACEOF |
| 11618 | /* confdefs.h. */ |
| 11619 | _ACEOF |
| 11620 | cat confdefs.h >>conftest.$ac_ext |
| 11621 | cat >>conftest.$ac_ext <<_ACEOF |
| 11622 | /* end confdefs.h. */ |
| 11623 | |
| 11624 | #if HAVE_SYS_QUEUE_H |
| 11625 | #include <sys/queue.h> |
| 11626 | #endif |
| 11627 | |
| 11628 | |
| 11629 | #include <$ac_header> |
| 11630 | _ACEOF |
| 11631 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11632 | if { (ac_try="$ac_compile" |
| 11633 | case "(($ac_try" in |
| 11634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11635 | *) ac_try_echo=$ac_try;; |
| 11636 | esac |
| 11637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11638 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11639 | ac_status=$? |
| 11640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11641 | rm -f conftest.er1 |
| 11642 | cat conftest.err >&5 |
| 11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11644 | (exit $ac_status); } && { |
| 11645 | test -z "$ac_c_werror_flag" || |
| 11646 | test ! -s conftest.err |
| 11647 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11648 | eval "$as_ac_Header=yes" |
| 11649 | else |
| 11650 | echo "$as_me: failed program was:" >&5 |
| 11651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11653 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11655 | |
| 11656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11657 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11658 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11660 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11662 | cat >>confdefs.h <<_ACEOF |
| 11663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11664 | _ACEOF |
| 11665 | |
| 11666 | fi |
| 11667 | |
| 11668 | done |
| 11669 | |
| 11670 | |
| 11671 | for ac_header in net/if.h |
| 11672 | do |
| 11673 | 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] | 11674 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11676 | 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] | 11677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11678 | else |
| 11679 | cat >conftest.$ac_ext <<_ACEOF |
| 11680 | /* confdefs.h. */ |
| 11681 | _ACEOF |
| 11682 | cat confdefs.h >>conftest.$ac_ext |
| 11683 | cat >>conftest.$ac_ext <<_ACEOF |
| 11684 | /* end confdefs.h. */ |
| 11685 | |
| 11686 | #if HAVE_SYS_TYPES_H |
| 11687 | #include <sys/types.h> |
| 11688 | #endif |
| 11689 | #if HAVE_SYS_SOCKET |
| 11690 | #include <sys/socket.h> |
| 11691 | #endif |
| 11692 | |
| 11693 | |
| 11694 | #include <$ac_header> |
| 11695 | _ACEOF |
| 11696 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11697 | if { (ac_try="$ac_compile" |
| 11698 | case "(($ac_try" in |
| 11699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11700 | *) ac_try_echo=$ac_try;; |
| 11701 | esac |
| 11702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11703 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11704 | ac_status=$? |
| 11705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11706 | rm -f conftest.er1 |
| 11707 | cat conftest.err >&5 |
| 11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11709 | (exit $ac_status); } && { |
| 11710 | test -z "$ac_c_werror_flag" || |
| 11711 | test ! -s conftest.err |
| 11712 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11713 | eval "$as_ac_Header=yes" |
| 11714 | else |
| 11715 | echo "$as_me: failed program was:" >&5 |
| 11716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11718 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11720 | |
| 11721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11722 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11723 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11724 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11725 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11726 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11727 | cat >>confdefs.h <<_ACEOF |
| 11728 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11729 | _ACEOF |
| 11730 | |
| 11731 | fi |
| 11732 | |
| 11733 | done |
| 11734 | |
| 11735 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11736 | for ac_func in vprintf |
| 11737 | do |
| 11738 | 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] | 11739 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11741 | 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] | 11742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11743 | else |
| 11744 | cat >conftest.$ac_ext <<_ACEOF |
| 11745 | /* confdefs.h. */ |
| 11746 | _ACEOF |
| 11747 | cat confdefs.h >>conftest.$ac_ext |
| 11748 | cat >>conftest.$ac_ext <<_ACEOF |
| 11749 | /* end confdefs.h. */ |
| 11750 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11752 | #define $ac_func innocuous_$ac_func |
| 11753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11754 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11755 | which can conflict with char $ac_func (); below. |
| 11756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11757 | <limits.h> exists even on freestanding compilers. */ |
| 11758 | |
| 11759 | #ifdef __STDC__ |
| 11760 | # include <limits.h> |
| 11761 | #else |
| 11762 | # include <assert.h> |
| 11763 | #endif |
| 11764 | |
| 11765 | #undef $ac_func |
| 11766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11767 | /* Override any GCC internal prototype to avoid an error. |
| 11768 | Use char because int might match the return type of a GCC |
| 11769 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11770 | #ifdef __cplusplus |
| 11771 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11772 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11773 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11774 | /* The GNU C library defines this for functions which it implements |
| 11775 | to always fail with ENOSYS. Some functions are actually named |
| 11776 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11777 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11778 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11779 | #endif |
| 11780 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11781 | int |
| 11782 | main () |
| 11783 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11784 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11785 | ; |
| 11786 | return 0; |
| 11787 | } |
| 11788 | _ACEOF |
| 11789 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11790 | if { (ac_try="$ac_link" |
| 11791 | case "(($ac_try" in |
| 11792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11793 | *) ac_try_echo=$ac_try;; |
| 11794 | esac |
| 11795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11796 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11797 | ac_status=$? |
| 11798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11799 | rm -f conftest.er1 |
| 11800 | cat conftest.err >&5 |
| 11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11802 | (exit $ac_status); } && { |
| 11803 | test -z "$ac_c_werror_flag" || |
| 11804 | test ! -s conftest.err |
| 11805 | } && test -s conftest$ac_exeext && |
| 11806 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11807 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11808 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11809 | echo "$as_me: failed program was:" >&5 |
| 11810 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11812 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11814 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11815 | 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] | 11816 | conftest$ac_exeext conftest.$ac_ext |
| 11817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11818 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11820 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11821 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11822 | cat >>confdefs.h <<_ACEOF |
| 11823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11824 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11826 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 11827 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11828 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 11829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11831 | cat >conftest.$ac_ext <<_ACEOF |
| 11832 | /* confdefs.h. */ |
| 11833 | _ACEOF |
| 11834 | cat confdefs.h >>conftest.$ac_ext |
| 11835 | cat >>conftest.$ac_ext <<_ACEOF |
| 11836 | /* end confdefs.h. */ |
| 11837 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 11838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11839 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11840 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11841 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11842 | which can conflict with char _doprnt (); below. |
| 11843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11844 | <limits.h> exists even on freestanding compilers. */ |
| 11845 | |
| 11846 | #ifdef __STDC__ |
| 11847 | # include <limits.h> |
| 11848 | #else |
| 11849 | # include <assert.h> |
| 11850 | #endif |
| 11851 | |
| 11852 | #undef _doprnt |
| 11853 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11854 | /* Override any GCC internal prototype to avoid an error. |
| 11855 | Use char because int might match the return type of a GCC |
| 11856 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11857 | #ifdef __cplusplus |
| 11858 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11859 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11860 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11861 | /* The GNU C library defines this for functions which it implements |
| 11862 | to always fail with ENOSYS. Some functions are actually named |
| 11863 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11864 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11865 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11866 | #endif |
| 11867 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11868 | int |
| 11869 | main () |
| 11870 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11871 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11872 | ; |
| 11873 | return 0; |
| 11874 | } |
| 11875 | _ACEOF |
| 11876 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11877 | if { (ac_try="$ac_link" |
| 11878 | case "(($ac_try" in |
| 11879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11880 | *) ac_try_echo=$ac_try;; |
| 11881 | esac |
| 11882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11883 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11884 | ac_status=$? |
| 11885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11886 | rm -f conftest.er1 |
| 11887 | cat conftest.err >&5 |
| 11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11889 | (exit $ac_status); } && { |
| 11890 | test -z "$ac_c_werror_flag" || |
| 11891 | test ! -s conftest.err |
| 11892 | } && test -s conftest$ac_exeext && |
| 11893 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11894 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11895 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | echo "$as_me: failed program was:" >&5 |
| 11897 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11899 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11900 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11901 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11902 | 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] | 11903 | conftest$ac_exeext conftest.$ac_ext |
| 11904 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 11906 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11907 | if test $ac_cv_func__doprnt = yes; then |
| 11908 | |
| 11909 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11910 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11911 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11912 | |
| 11913 | fi |
| 11914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11915 | fi |
| 11916 | done |
| 11917 | |
| 11918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11919 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 11920 | 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] | 11921 | 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] | 11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11923 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
| 11925 | /* confdefs.h. */ |
| 11926 | _ACEOF |
| 11927 | cat confdefs.h >>conftest.$ac_ext |
| 11928 | cat >>conftest.$ac_ext <<_ACEOF |
| 11929 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11930 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11931 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11932 | int |
| 11933 | main () |
| 11934 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11935 | static struct dirent ac_aggr; |
| 11936 | if (ac_aggr.d_reclen) |
| 11937 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11938 | ; |
| 11939 | return 0; |
| 11940 | } |
| 11941 | _ACEOF |
| 11942 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11943 | if { (ac_try="$ac_compile" |
| 11944 | case "(($ac_try" in |
| 11945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11946 | *) ac_try_echo=$ac_try;; |
| 11947 | esac |
| 11948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11949 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11950 | ac_status=$? |
| 11951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11952 | rm -f conftest.er1 |
| 11953 | cat conftest.err >&5 |
| 11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11955 | (exit $ac_status); } && { |
| 11956 | test -z "$ac_c_werror_flag" || |
| 11957 | test ! -s conftest.err |
| 11958 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11959 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11960 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11961 | echo "$as_me: failed program was:" >&5 |
| 11962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11964 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11965 | /* confdefs.h. */ |
| 11966 | _ACEOF |
| 11967 | cat confdefs.h >>conftest.$ac_ext |
| 11968 | cat >>conftest.$ac_ext <<_ACEOF |
| 11969 | /* end confdefs.h. */ |
| 11970 | #include <dirent.h> |
| 11971 | |
| 11972 | int |
| 11973 | main () |
| 11974 | { |
| 11975 | static struct dirent ac_aggr; |
| 11976 | if (sizeof ac_aggr.d_reclen) |
| 11977 | return 0; |
| 11978 | ; |
| 11979 | return 0; |
| 11980 | } |
| 11981 | _ACEOF |
| 11982 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11983 | if { (ac_try="$ac_compile" |
| 11984 | case "(($ac_try" in |
| 11985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11986 | *) ac_try_echo=$ac_try;; |
| 11987 | esac |
| 11988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11989 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11990 | ac_status=$? |
| 11991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11992 | rm -f conftest.er1 |
| 11993 | cat conftest.err >&5 |
| 11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11995 | (exit $ac_status); } && { |
| 11996 | test -z "$ac_c_werror_flag" || |
| 11997 | test ! -s conftest.err |
| 11998 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 11999 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12000 | else |
| 12001 | echo "$as_me: failed program was:" >&5 |
| 12002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12004 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12006 | |
| 12007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12009 | |
| 12010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12012 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12013 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12014 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12015 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12016 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12017 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12018 | |
| 12019 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12021 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12022 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12023 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12025 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12026 | cat >conftest.$ac_ext <<_ACEOF |
| 12027 | /* confdefs.h. */ |
| 12028 | _ACEOF |
| 12029 | cat confdefs.h >>conftest.$ac_ext |
| 12030 | cat >>conftest.$ac_ext <<_ACEOF |
| 12031 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12032 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12034 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12035 | int |
| 12036 | main () |
| 12037 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12038 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12039 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12040 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12041 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12042 | ; |
| 12043 | return 0; |
| 12044 | } |
| 12045 | _ACEOF |
| 12046 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12047 | if { (ac_try="$ac_compile" |
| 12048 | case "(($ac_try" in |
| 12049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12050 | *) ac_try_echo=$ac_try;; |
| 12051 | esac |
| 12052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12053 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12054 | ac_status=$? |
| 12055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12056 | rm -f conftest.er1 |
| 12057 | cat conftest.err >&5 |
| 12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12059 | (exit $ac_status); } && { |
| 12060 | test -z "$ac_c_werror_flag" || |
| 12061 | test ! -s conftest.err |
| 12062 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12063 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12064 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12065 | echo "$as_me: failed program was:" >&5 |
| 12066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12068 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12070 | |
| 12071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12072 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12073 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12074 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12075 | if test $ac_cv_type_ssize_t = yes; then |
| 12076 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12077 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12078 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12079 | |
| 12080 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12082 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12083 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12084 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12086 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12087 | cat >conftest.$ac_ext <<_ACEOF |
| 12088 | /* confdefs.h. */ |
| 12089 | _ACEOF |
| 12090 | cat confdefs.h >>conftest.$ac_ext |
| 12091 | cat >>conftest.$ac_ext <<_ACEOF |
| 12092 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12093 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12094 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12095 | int |
| 12096 | main () |
| 12097 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12098 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12099 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12100 | #endif |
| 12101 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | ; |
| 12103 | return 0; |
| 12104 | } |
| 12105 | _ACEOF |
| 12106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | if { (ac_try="$ac_compile" |
| 12108 | case "(($ac_try" in |
| 12109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12110 | *) ac_try_echo=$ac_try;; |
| 12111 | esac |
| 12112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12113 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | ac_status=$? |
| 12115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12116 | rm -f conftest.er1 |
| 12117 | cat conftest.err >&5 |
| 12118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12119 | (exit $ac_status); } && { |
| 12120 | test -z "$ac_c_werror_flag" || |
| 12121 | test ! -s conftest.err |
| 12122 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12123 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12124 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12125 | echo "$as_me: failed program was:" >&5 |
| 12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12130 | |
| 12131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12132 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12133 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12134 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12135 | if test $ac_cv_have_decl_llseek = yes; then |
| 12136 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12137 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12138 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12139 | |
| 12140 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12141 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12142 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12143 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12144 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | cat >conftest.$ac_ext <<_ACEOF |
| 12148 | /* confdefs.h. */ |
| 12149 | _ACEOF |
| 12150 | cat confdefs.h >>conftest.$ac_ext |
| 12151 | cat >>conftest.$ac_ext <<_ACEOF |
| 12152 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12153 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12154 | #define _LARGEFILE64_SOURCE |
| 12155 | #include <unistd.h> |
| 12156 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12157 | int |
| 12158 | main () |
| 12159 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12160 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12161 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12162 | #endif |
| 12163 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12164 | ; |
| 12165 | return 0; |
| 12166 | } |
| 12167 | _ACEOF |
| 12168 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12169 | if { (ac_try="$ac_compile" |
| 12170 | case "(($ac_try" in |
| 12171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12172 | *) ac_try_echo=$ac_try;; |
| 12173 | esac |
| 12174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12175 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12176 | ac_status=$? |
| 12177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12178 | rm -f conftest.er1 |
| 12179 | cat conftest.err >&5 |
| 12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12181 | (exit $ac_status); } && { |
| 12182 | test -z "$ac_c_werror_flag" || |
| 12183 | test ! -s conftest.err |
| 12184 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12185 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12186 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12187 | echo "$as_me: failed program was:" >&5 |
| 12188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12189 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12190 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12191 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12192 | |
| 12193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12195 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12196 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12197 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12198 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12199 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12200 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12201 | |
| 12202 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12203 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12204 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12205 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12206 | ac_cv_sizeof_short=2 |
| 12207 | ac_cv_sizeof_int=4 |
| 12208 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12209 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12210 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 12211 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12212 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12214 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12215 | if test "${ac_cv_type_short+set}" = set; then |
| 12216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12217 | else |
| 12218 | cat >conftest.$ac_ext <<_ACEOF |
| 12219 | /* confdefs.h. */ |
| 12220 | _ACEOF |
| 12221 | cat confdefs.h >>conftest.$ac_ext |
| 12222 | cat >>conftest.$ac_ext <<_ACEOF |
| 12223 | /* end confdefs.h. */ |
| 12224 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12225 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12226 | int |
| 12227 | main () |
| 12228 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12229 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12230 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12231 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | return 0; |
| 12233 | ; |
| 12234 | return 0; |
| 12235 | } |
| 12236 | _ACEOF |
| 12237 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12238 | if { (ac_try="$ac_compile" |
| 12239 | case "(($ac_try" in |
| 12240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12241 | *) ac_try_echo=$ac_try;; |
| 12242 | esac |
| 12243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12244 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12245 | ac_status=$? |
| 12246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12247 | rm -f conftest.er1 |
| 12248 | cat conftest.err >&5 |
| 12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12250 | (exit $ac_status); } && { |
| 12251 | test -z "$ac_c_werror_flag" || |
| 12252 | test ! -s conftest.err |
| 12253 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12254 | ac_cv_type_short=yes |
| 12255 | else |
| 12256 | echo "$as_me: failed program was:" >&5 |
| 12257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12258 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12259 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12260 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12261 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12263 | fi |
| 12264 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12265 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12266 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12267 | # The cast to long int works around a bug in the HP C Compiler |
| 12268 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12269 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12270 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12271 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12272 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12273 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12275 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12276 | if test "$cross_compiling" = yes; then |
| 12277 | # Depending upon the size, compute the lo and hi bounds. |
| 12278 | cat >conftest.$ac_ext <<_ACEOF |
| 12279 | /* confdefs.h. */ |
| 12280 | _ACEOF |
| 12281 | cat confdefs.h >>conftest.$ac_ext |
| 12282 | cat >>conftest.$ac_ext <<_ACEOF |
| 12283 | /* end confdefs.h. */ |
| 12284 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12285 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12286 | int |
| 12287 | main () |
| 12288 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12289 | 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] | 12290 | test_array [0] = 0 |
| 12291 | |
| 12292 | ; |
| 12293 | return 0; |
| 12294 | } |
| 12295 | _ACEOF |
| 12296 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12297 | if { (ac_try="$ac_compile" |
| 12298 | case "(($ac_try" in |
| 12299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12300 | *) ac_try_echo=$ac_try;; |
| 12301 | esac |
| 12302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12303 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12304 | ac_status=$? |
| 12305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12306 | rm -f conftest.er1 |
| 12307 | cat conftest.err >&5 |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12309 | (exit $ac_status); } && { |
| 12310 | test -z "$ac_c_werror_flag" || |
| 12311 | test ! -s conftest.err |
| 12312 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12313 | ac_lo=0 ac_mid=0 |
| 12314 | while :; do |
| 12315 | cat >conftest.$ac_ext <<_ACEOF |
| 12316 | /* confdefs.h. */ |
| 12317 | _ACEOF |
| 12318 | cat confdefs.h >>conftest.$ac_ext |
| 12319 | cat >>conftest.$ac_ext <<_ACEOF |
| 12320 | /* end confdefs.h. */ |
| 12321 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12322 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12323 | int |
| 12324 | main () |
| 12325 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12326 | 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] | 12327 | test_array [0] = 0 |
| 12328 | |
| 12329 | ; |
| 12330 | return 0; |
| 12331 | } |
| 12332 | _ACEOF |
| 12333 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12334 | if { (ac_try="$ac_compile" |
| 12335 | case "(($ac_try" in |
| 12336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12337 | *) ac_try_echo=$ac_try;; |
| 12338 | esac |
| 12339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12340 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12341 | ac_status=$? |
| 12342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12343 | rm -f conftest.er1 |
| 12344 | cat conftest.err >&5 |
| 12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12346 | (exit $ac_status); } && { |
| 12347 | test -z "$ac_c_werror_flag" || |
| 12348 | test ! -s conftest.err |
| 12349 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12350 | ac_hi=$ac_mid; break |
| 12351 | else |
| 12352 | echo "$as_me: failed program was:" >&5 |
| 12353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12354 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12355 | ac_lo=`expr $ac_mid + 1` |
| 12356 | if test $ac_lo -le $ac_mid; then |
| 12357 | ac_lo= ac_hi= |
| 12358 | break |
| 12359 | fi |
| 12360 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12361 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12362 | |
| 12363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12364 | done |
| 12365 | else |
| 12366 | echo "$as_me: failed program was:" >&5 |
| 12367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12369 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12370 | /* confdefs.h. */ |
| 12371 | _ACEOF |
| 12372 | cat confdefs.h >>conftest.$ac_ext |
| 12373 | cat >>conftest.$ac_ext <<_ACEOF |
| 12374 | /* end confdefs.h. */ |
| 12375 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12376 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12377 | int |
| 12378 | main () |
| 12379 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12380 | 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] | 12381 | test_array [0] = 0 |
| 12382 | |
| 12383 | ; |
| 12384 | return 0; |
| 12385 | } |
| 12386 | _ACEOF |
| 12387 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12388 | if { (ac_try="$ac_compile" |
| 12389 | case "(($ac_try" in |
| 12390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12391 | *) ac_try_echo=$ac_try;; |
| 12392 | esac |
| 12393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12394 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12395 | ac_status=$? |
| 12396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12397 | rm -f conftest.er1 |
| 12398 | cat conftest.err >&5 |
| 12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12400 | (exit $ac_status); } && { |
| 12401 | test -z "$ac_c_werror_flag" || |
| 12402 | test ! -s conftest.err |
| 12403 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12404 | ac_hi=-1 ac_mid=-1 |
| 12405 | while :; do |
| 12406 | cat >conftest.$ac_ext <<_ACEOF |
| 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
| 12411 | /* end confdefs.h. */ |
| 12412 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12413 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12414 | int |
| 12415 | main () |
| 12416 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12417 | 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] | 12418 | test_array [0] = 0 |
| 12419 | |
| 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 | b0cacab | 2004-11-30 19:00:19 -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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12441 | ac_lo=$ac_mid; break |
| 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_hi=`expr '(' $ac_mid ')' - 1` |
| 12447 | if test $ac_mid -le $ac_hi; then |
| 12448 | ac_lo= ac_hi= |
| 12449 | break |
| 12450 | fi |
| 12451 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12452 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12453 | |
| 12454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12455 | done |
| 12456 | else |
| 12457 | echo "$as_me: failed program was:" >&5 |
| 12458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12460 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12461 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12462 | |
| 12463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12464 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12465 | |
| 12466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12467 | # Binary search between lo and hi bounds. |
| 12468 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12469 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12470 | cat >conftest.$ac_ext <<_ACEOF |
| 12471 | /* confdefs.h. */ |
| 12472 | _ACEOF |
| 12473 | cat confdefs.h >>conftest.$ac_ext |
| 12474 | cat >>conftest.$ac_ext <<_ACEOF |
| 12475 | /* end confdefs.h. */ |
| 12476 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12477 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12478 | int |
| 12479 | main () |
| 12480 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12481 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12482 | test_array [0] = 0 |
| 12483 | |
| 12484 | ; |
| 12485 | return 0; |
| 12486 | } |
| 12487 | _ACEOF |
| 12488 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12489 | if { (ac_try="$ac_compile" |
| 12490 | case "(($ac_try" in |
| 12491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12492 | *) ac_try_echo=$ac_try;; |
| 12493 | esac |
| 12494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12495 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12496 | ac_status=$? |
| 12497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12498 | rm -f conftest.er1 |
| 12499 | cat conftest.err >&5 |
| 12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12501 | (exit $ac_status); } && { |
| 12502 | test -z "$ac_c_werror_flag" || |
| 12503 | test ! -s conftest.err |
| 12504 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | ac_hi=$ac_mid |
| 12506 | else |
| 12507 | echo "$as_me: failed program was:" >&5 |
| 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12510 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12514 | done |
| 12515 | case $ac_lo in |
| 12516 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12517 | '') if test "$ac_cv_type_short" = yes; then |
| 12518 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12520 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12521 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12522 | { (exit 77); exit 77; }; } |
| 12523 | else |
| 12524 | ac_cv_sizeof_short=0 |
| 12525 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12526 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12527 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12528 | cat >conftest.$ac_ext <<_ACEOF |
| 12529 | /* confdefs.h. */ |
| 12530 | _ACEOF |
| 12531 | cat confdefs.h >>conftest.$ac_ext |
| 12532 | cat >>conftest.$ac_ext <<_ACEOF |
| 12533 | /* end confdefs.h. */ |
| 12534 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12535 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12536 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12537 | 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] | 12538 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12539 | #include <stdlib.h> |
| 12540 | int |
| 12541 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12542 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12543 | |
| 12544 | FILE *f = fopen ("conftest.val", "w"); |
| 12545 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12546 | return 1; |
| 12547 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12548 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12549 | long int i = longval (); |
| 12550 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12551 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12552 | fprintf (f, "%ld\n", i); |
| 12553 | } |
| 12554 | else |
| 12555 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12556 | unsigned long int i = ulongval (); |
| 12557 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12558 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | fprintf (f, "%lu\n", i); |
| 12560 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12561 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12562 | |
| 12563 | ; |
| 12564 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12565 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12566 | _ACEOF |
| 12567 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12568 | if { (ac_try="$ac_link" |
| 12569 | case "(($ac_try" in |
| 12570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12571 | *) ac_try_echo=$ac_try;; |
| 12572 | esac |
| 12573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12574 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12575 | ac_status=$? |
| 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12577 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12578 | { (case "(($ac_try" in |
| 12579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12580 | *) ac_try_echo=$ac_try;; |
| 12581 | esac |
| 12582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12583 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12584 | ac_status=$? |
| 12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12586 | (exit $ac_status); }; }; then |
| 12587 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12588 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12589 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12590 | echo "$as_me: failed program was:" >&5 |
| 12591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12592 | |
| 12593 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12594 | if test "$ac_cv_type_short" = yes; then |
| 12595 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12596 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12597 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12598 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12599 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12600 | else |
| 12601 | ac_cv_sizeof_short=0 |
| 12602 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12603 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12604 | 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] | 12605 | fi |
| 12606 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12608 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12609 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12610 | |
| 12611 | |
| 12612 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12613 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12614 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12615 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12616 | |
| 12617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12618 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12619 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12620 | if test "${ac_cv_type_int+set}" = set; then |
| 12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12622 | else |
| 12623 | cat >conftest.$ac_ext <<_ACEOF |
| 12624 | /* confdefs.h. */ |
| 12625 | _ACEOF |
| 12626 | cat confdefs.h >>conftest.$ac_ext |
| 12627 | cat >>conftest.$ac_ext <<_ACEOF |
| 12628 | /* end confdefs.h. */ |
| 12629 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12630 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12631 | int |
| 12632 | main () |
| 12633 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12634 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12636 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12637 | return 0; |
| 12638 | ; |
| 12639 | return 0; |
| 12640 | } |
| 12641 | _ACEOF |
| 12642 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12643 | if { (ac_try="$ac_compile" |
| 12644 | case "(($ac_try" in |
| 12645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12646 | *) ac_try_echo=$ac_try;; |
| 12647 | esac |
| 12648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12649 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12650 | ac_status=$? |
| 12651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12652 | rm -f conftest.er1 |
| 12653 | cat conftest.err >&5 |
| 12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12655 | (exit $ac_status); } && { |
| 12656 | test -z "$ac_c_werror_flag" || |
| 12657 | test ! -s conftest.err |
| 12658 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12659 | ac_cv_type_int=yes |
| 12660 | else |
| 12661 | echo "$as_me: failed program was:" >&5 |
| 12662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12663 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12664 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12665 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12666 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12668 | fi |
| 12669 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12670 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12671 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12672 | # The cast to long int works around a bug in the HP C Compiler |
| 12673 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12674 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12675 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12676 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12677 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12678 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12680 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12681 | if test "$cross_compiling" = yes; then |
| 12682 | # Depending upon the size, compute the lo and hi bounds. |
| 12683 | cat >conftest.$ac_ext <<_ACEOF |
| 12684 | /* confdefs.h. */ |
| 12685 | _ACEOF |
| 12686 | cat confdefs.h >>conftest.$ac_ext |
| 12687 | cat >>conftest.$ac_ext <<_ACEOF |
| 12688 | /* end confdefs.h. */ |
| 12689 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12690 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | int |
| 12692 | main () |
| 12693 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12694 | 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] | 12695 | test_array [0] = 0 |
| 12696 | |
| 12697 | ; |
| 12698 | return 0; |
| 12699 | } |
| 12700 | _ACEOF |
| 12701 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12702 | if { (ac_try="$ac_compile" |
| 12703 | case "(($ac_try" in |
| 12704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12705 | *) ac_try_echo=$ac_try;; |
| 12706 | esac |
| 12707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12708 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12709 | ac_status=$? |
| 12710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12711 | rm -f conftest.er1 |
| 12712 | cat conftest.err >&5 |
| 12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12714 | (exit $ac_status); } && { |
| 12715 | test -z "$ac_c_werror_flag" || |
| 12716 | test ! -s conftest.err |
| 12717 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12718 | ac_lo=0 ac_mid=0 |
| 12719 | while :; do |
| 12720 | cat >conftest.$ac_ext <<_ACEOF |
| 12721 | /* confdefs.h. */ |
| 12722 | _ACEOF |
| 12723 | cat confdefs.h >>conftest.$ac_ext |
| 12724 | cat >>conftest.$ac_ext <<_ACEOF |
| 12725 | /* end confdefs.h. */ |
| 12726 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12727 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12728 | int |
| 12729 | main () |
| 12730 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12731 | 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] | 12732 | test_array [0] = 0 |
| 12733 | |
| 12734 | ; |
| 12735 | return 0; |
| 12736 | } |
| 12737 | _ACEOF |
| 12738 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12739 | if { (ac_try="$ac_compile" |
| 12740 | case "(($ac_try" in |
| 12741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12742 | *) ac_try_echo=$ac_try;; |
| 12743 | esac |
| 12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12745 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12746 | ac_status=$? |
| 12747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12748 | rm -f conftest.er1 |
| 12749 | cat conftest.err >&5 |
| 12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12751 | (exit $ac_status); } && { |
| 12752 | test -z "$ac_c_werror_flag" || |
| 12753 | test ! -s conftest.err |
| 12754 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12755 | ac_hi=$ac_mid; break |
| 12756 | else |
| 12757 | echo "$as_me: failed program was:" >&5 |
| 12758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12759 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12760 | ac_lo=`expr $ac_mid + 1` |
| 12761 | if test $ac_lo -le $ac_mid; then |
| 12762 | ac_lo= ac_hi= |
| 12763 | break |
| 12764 | fi |
| 12765 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12766 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12767 | |
| 12768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12769 | done |
| 12770 | else |
| 12771 | echo "$as_me: failed program was:" >&5 |
| 12772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12774 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12775 | /* confdefs.h. */ |
| 12776 | _ACEOF |
| 12777 | cat confdefs.h >>conftest.$ac_ext |
| 12778 | cat >>conftest.$ac_ext <<_ACEOF |
| 12779 | /* end confdefs.h. */ |
| 12780 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12781 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12782 | int |
| 12783 | main () |
| 12784 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12785 | 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] | 12786 | test_array [0] = 0 |
| 12787 | |
| 12788 | ; |
| 12789 | return 0; |
| 12790 | } |
| 12791 | _ACEOF |
| 12792 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12793 | if { (ac_try="$ac_compile" |
| 12794 | case "(($ac_try" in |
| 12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12796 | *) ac_try_echo=$ac_try;; |
| 12797 | esac |
| 12798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12799 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12800 | ac_status=$? |
| 12801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12802 | rm -f conftest.er1 |
| 12803 | cat conftest.err >&5 |
| 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12805 | (exit $ac_status); } && { |
| 12806 | test -z "$ac_c_werror_flag" || |
| 12807 | test ! -s conftest.err |
| 12808 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12809 | ac_hi=-1 ac_mid=-1 |
| 12810 | while :; do |
| 12811 | cat >conftest.$ac_ext <<_ACEOF |
| 12812 | /* confdefs.h. */ |
| 12813 | _ACEOF |
| 12814 | cat confdefs.h >>conftest.$ac_ext |
| 12815 | cat >>conftest.$ac_ext <<_ACEOF |
| 12816 | /* end confdefs.h. */ |
| 12817 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12818 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12819 | int |
| 12820 | main () |
| 12821 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12822 | 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] | 12823 | test_array [0] = 0 |
| 12824 | |
| 12825 | ; |
| 12826 | return 0; |
| 12827 | } |
| 12828 | _ACEOF |
| 12829 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12830 | if { (ac_try="$ac_compile" |
| 12831 | case "(($ac_try" in |
| 12832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12833 | *) ac_try_echo=$ac_try;; |
| 12834 | esac |
| 12835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12836 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12837 | ac_status=$? |
| 12838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12839 | rm -f conftest.er1 |
| 12840 | cat conftest.err >&5 |
| 12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12842 | (exit $ac_status); } && { |
| 12843 | test -z "$ac_c_werror_flag" || |
| 12844 | test ! -s conftest.err |
| 12845 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12846 | ac_lo=$ac_mid; break |
| 12847 | else |
| 12848 | echo "$as_me: failed program was:" >&5 |
| 12849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12850 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12851 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12852 | if test $ac_mid -le $ac_hi; then |
| 12853 | ac_lo= ac_hi= |
| 12854 | break |
| 12855 | fi |
| 12856 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12857 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12858 | |
| 12859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12860 | done |
| 12861 | else |
| 12862 | echo "$as_me: failed program was:" >&5 |
| 12863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12865 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12866 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12867 | |
| 12868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12869 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12870 | |
| 12871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12872 | # Binary search between lo and hi bounds. |
| 12873 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12874 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
| 12881 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12882 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12883 | int |
| 12884 | main () |
| 12885 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12886 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12887 | test_array [0] = 0 |
| 12888 | |
| 12889 | ; |
| 12890 | return 0; |
| 12891 | } |
| 12892 | _ACEOF |
| 12893 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12894 | if { (ac_try="$ac_compile" |
| 12895 | case "(($ac_try" in |
| 12896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12897 | *) ac_try_echo=$ac_try;; |
| 12898 | esac |
| 12899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12900 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12901 | ac_status=$? |
| 12902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12903 | rm -f conftest.er1 |
| 12904 | cat conftest.err >&5 |
| 12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12906 | (exit $ac_status); } && { |
| 12907 | test -z "$ac_c_werror_flag" || |
| 12908 | test ! -s conftest.err |
| 12909 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12910 | ac_hi=$ac_mid |
| 12911 | else |
| 12912 | echo "$as_me: failed program was:" >&5 |
| 12913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12915 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12917 | |
| 12918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12919 | done |
| 12920 | case $ac_lo in |
| 12921 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12922 | '') if test "$ac_cv_type_int" = yes; then |
| 12923 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12924 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12925 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12926 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12927 | { (exit 77); exit 77; }; } |
| 12928 | else |
| 12929 | ac_cv_sizeof_int=0 |
| 12930 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12931 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12932 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12933 | cat >conftest.$ac_ext <<_ACEOF |
| 12934 | /* confdefs.h. */ |
| 12935 | _ACEOF |
| 12936 | cat confdefs.h >>conftest.$ac_ext |
| 12937 | cat >>conftest.$ac_ext <<_ACEOF |
| 12938 | /* end confdefs.h. */ |
| 12939 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12940 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12941 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12942 | 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] | 12943 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12944 | #include <stdlib.h> |
| 12945 | int |
| 12946 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12947 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12948 | |
| 12949 | FILE *f = fopen ("conftest.val", "w"); |
| 12950 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12951 | return 1; |
| 12952 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12954 | long int i = longval (); |
| 12955 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12956 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12957 | fprintf (f, "%ld\n", i); |
| 12958 | } |
| 12959 | else |
| 12960 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12961 | unsigned long int i = ulongval (); |
| 12962 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12963 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12964 | fprintf (f, "%lu\n", i); |
| 12965 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12966 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12967 | |
| 12968 | ; |
| 12969 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12970 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12971 | _ACEOF |
| 12972 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12973 | if { (ac_try="$ac_link" |
| 12974 | case "(($ac_try" in |
| 12975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12976 | *) ac_try_echo=$ac_try;; |
| 12977 | esac |
| 12978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12979 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12980 | ac_status=$? |
| 12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12983 | { (case "(($ac_try" in |
| 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12985 | *) ac_try_echo=$ac_try;; |
| 12986 | esac |
| 12987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12988 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12989 | ac_status=$? |
| 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12991 | (exit $ac_status); }; }; then |
| 12992 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12993 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12995 | echo "$as_me: failed program was:" >&5 |
| 12996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12997 | |
| 12998 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12999 | if test "$ac_cv_type_int" = yes; then |
| 13000 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13001 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13002 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13003 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13004 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13005 | else |
| 13006 | ac_cv_sizeof_int=0 |
| 13007 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13009 | 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] | 13010 | fi |
| 13011 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13012 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13014 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13015 | |
| 13016 | |
| 13017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13018 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13019 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13020 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13021 | |
| 13022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13023 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13024 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13025 | if test "${ac_cv_type_long+set}" = set; then |
| 13026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13027 | else |
| 13028 | cat >conftest.$ac_ext <<_ACEOF |
| 13029 | /* confdefs.h. */ |
| 13030 | _ACEOF |
| 13031 | cat confdefs.h >>conftest.$ac_ext |
| 13032 | cat >>conftest.$ac_ext <<_ACEOF |
| 13033 | /* end confdefs.h. */ |
| 13034 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13035 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | int |
| 13037 | main () |
| 13038 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13039 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13040 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13041 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13042 | return 0; |
| 13043 | ; |
| 13044 | return 0; |
| 13045 | } |
| 13046 | _ACEOF |
| 13047 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13048 | if { (ac_try="$ac_compile" |
| 13049 | case "(($ac_try" in |
| 13050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13051 | *) ac_try_echo=$ac_try;; |
| 13052 | esac |
| 13053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13054 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13055 | ac_status=$? |
| 13056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13057 | rm -f conftest.er1 |
| 13058 | cat conftest.err >&5 |
| 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13060 | (exit $ac_status); } && { |
| 13061 | test -z "$ac_c_werror_flag" || |
| 13062 | test ! -s conftest.err |
| 13063 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13064 | ac_cv_type_long=yes |
| 13065 | else |
| 13066 | echo "$as_me: failed program was:" >&5 |
| 13067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13068 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13069 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13070 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13073 | fi |
| 13074 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13075 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13076 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13077 | # The cast to long int works around a bug in the HP C Compiler |
| 13078 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13079 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13080 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13081 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13082 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13083 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13085 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13086 | if test "$cross_compiling" = yes; then |
| 13087 | # Depending upon the size, compute the lo and hi bounds. |
| 13088 | cat >conftest.$ac_ext <<_ACEOF |
| 13089 | /* confdefs.h. */ |
| 13090 | _ACEOF |
| 13091 | cat confdefs.h >>conftest.$ac_ext |
| 13092 | cat >>conftest.$ac_ext <<_ACEOF |
| 13093 | /* end confdefs.h. */ |
| 13094 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13095 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13096 | int |
| 13097 | main () |
| 13098 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13099 | 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] | 13100 | test_array [0] = 0 |
| 13101 | |
| 13102 | ; |
| 13103 | return 0; |
| 13104 | } |
| 13105 | _ACEOF |
| 13106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13107 | if { (ac_try="$ac_compile" |
| 13108 | case "(($ac_try" in |
| 13109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13110 | *) ac_try_echo=$ac_try;; |
| 13111 | esac |
| 13112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13113 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13114 | ac_status=$? |
| 13115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13116 | rm -f conftest.er1 |
| 13117 | cat conftest.err >&5 |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13119 | (exit $ac_status); } && { |
| 13120 | test -z "$ac_c_werror_flag" || |
| 13121 | test ! -s conftest.err |
| 13122 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13123 | ac_lo=0 ac_mid=0 |
| 13124 | while :; do |
| 13125 | cat >conftest.$ac_ext <<_ACEOF |
| 13126 | /* confdefs.h. */ |
| 13127 | _ACEOF |
| 13128 | cat confdefs.h >>conftest.$ac_ext |
| 13129 | cat >>conftest.$ac_ext <<_ACEOF |
| 13130 | /* end confdefs.h. */ |
| 13131 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13132 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13133 | int |
| 13134 | main () |
| 13135 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13136 | 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] | 13137 | test_array [0] = 0 |
| 13138 | |
| 13139 | ; |
| 13140 | return 0; |
| 13141 | } |
| 13142 | _ACEOF |
| 13143 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13144 | if { (ac_try="$ac_compile" |
| 13145 | case "(($ac_try" in |
| 13146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13147 | *) ac_try_echo=$ac_try;; |
| 13148 | esac |
| 13149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13150 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13151 | ac_status=$? |
| 13152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13153 | rm -f conftest.er1 |
| 13154 | cat conftest.err >&5 |
| 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13156 | (exit $ac_status); } && { |
| 13157 | test -z "$ac_c_werror_flag" || |
| 13158 | test ! -s conftest.err |
| 13159 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13160 | ac_hi=$ac_mid; break |
| 13161 | else |
| 13162 | echo "$as_me: failed program was:" >&5 |
| 13163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13165 | ac_lo=`expr $ac_mid + 1` |
| 13166 | if test $ac_lo -le $ac_mid; then |
| 13167 | ac_lo= ac_hi= |
| 13168 | break |
| 13169 | fi |
| 13170 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13171 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13172 | |
| 13173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13174 | done |
| 13175 | else |
| 13176 | echo "$as_me: failed program was:" >&5 |
| 13177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13179 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13180 | /* confdefs.h. */ |
| 13181 | _ACEOF |
| 13182 | cat confdefs.h >>conftest.$ac_ext |
| 13183 | cat >>conftest.$ac_ext <<_ACEOF |
| 13184 | /* end confdefs.h. */ |
| 13185 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13186 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13187 | int |
| 13188 | main () |
| 13189 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13190 | 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] | 13191 | test_array [0] = 0 |
| 13192 | |
| 13193 | ; |
| 13194 | return 0; |
| 13195 | } |
| 13196 | _ACEOF |
| 13197 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13198 | if { (ac_try="$ac_compile" |
| 13199 | case "(($ac_try" in |
| 13200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13201 | *) ac_try_echo=$ac_try;; |
| 13202 | esac |
| 13203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13204 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13205 | ac_status=$? |
| 13206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13207 | rm -f conftest.er1 |
| 13208 | cat conftest.err >&5 |
| 13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13210 | (exit $ac_status); } && { |
| 13211 | test -z "$ac_c_werror_flag" || |
| 13212 | test ! -s conftest.err |
| 13213 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13214 | ac_hi=-1 ac_mid=-1 |
| 13215 | while :; do |
| 13216 | cat >conftest.$ac_ext <<_ACEOF |
| 13217 | /* confdefs.h. */ |
| 13218 | _ACEOF |
| 13219 | cat confdefs.h >>conftest.$ac_ext |
| 13220 | cat >>conftest.$ac_ext <<_ACEOF |
| 13221 | /* end confdefs.h. */ |
| 13222 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13223 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13224 | int |
| 13225 | main () |
| 13226 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13227 | 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] | 13228 | test_array [0] = 0 |
| 13229 | |
| 13230 | ; |
| 13231 | return 0; |
| 13232 | } |
| 13233 | _ACEOF |
| 13234 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13235 | if { (ac_try="$ac_compile" |
| 13236 | case "(($ac_try" in |
| 13237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13238 | *) ac_try_echo=$ac_try;; |
| 13239 | esac |
| 13240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13241 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13242 | ac_status=$? |
| 13243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13244 | rm -f conftest.er1 |
| 13245 | cat conftest.err >&5 |
| 13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13247 | (exit $ac_status); } && { |
| 13248 | test -z "$ac_c_werror_flag" || |
| 13249 | test ! -s conftest.err |
| 13250 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13251 | ac_lo=$ac_mid; break |
| 13252 | else |
| 13253 | echo "$as_me: failed program was:" >&5 |
| 13254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13255 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13256 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13257 | if test $ac_mid -le $ac_hi; then |
| 13258 | ac_lo= ac_hi= |
| 13259 | break |
| 13260 | fi |
| 13261 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13263 | |
| 13264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13265 | done |
| 13266 | else |
| 13267 | echo "$as_me: failed program was:" >&5 |
| 13268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13270 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13271 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13272 | |
| 13273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13275 | |
| 13276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13277 | # Binary search between lo and hi bounds. |
| 13278 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13279 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13280 | cat >conftest.$ac_ext <<_ACEOF |
| 13281 | /* confdefs.h. */ |
| 13282 | _ACEOF |
| 13283 | cat confdefs.h >>conftest.$ac_ext |
| 13284 | cat >>conftest.$ac_ext <<_ACEOF |
| 13285 | /* end confdefs.h. */ |
| 13286 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13287 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13288 | int |
| 13289 | main () |
| 13290 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13291 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13292 | test_array [0] = 0 |
| 13293 | |
| 13294 | ; |
| 13295 | return 0; |
| 13296 | } |
| 13297 | _ACEOF |
| 13298 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13299 | if { (ac_try="$ac_compile" |
| 13300 | case "(($ac_try" in |
| 13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13302 | *) ac_try_echo=$ac_try;; |
| 13303 | esac |
| 13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13305 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13306 | ac_status=$? |
| 13307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13308 | rm -f conftest.er1 |
| 13309 | cat conftest.err >&5 |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13311 | (exit $ac_status); } && { |
| 13312 | test -z "$ac_c_werror_flag" || |
| 13313 | test ! -s conftest.err |
| 13314 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13315 | ac_hi=$ac_mid |
| 13316 | else |
| 13317 | echo "$as_me: failed program was:" >&5 |
| 13318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13319 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13320 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13321 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13322 | |
| 13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13324 | done |
| 13325 | case $ac_lo in |
| 13326 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13327 | '') if test "$ac_cv_type_long" = yes; then |
| 13328 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13330 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13331 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13332 | { (exit 77); exit 77; }; } |
| 13333 | else |
| 13334 | ac_cv_sizeof_long=0 |
| 13335 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13336 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13337 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13338 | cat >conftest.$ac_ext <<_ACEOF |
| 13339 | /* confdefs.h. */ |
| 13340 | _ACEOF |
| 13341 | cat confdefs.h >>conftest.$ac_ext |
| 13342 | cat >>conftest.$ac_ext <<_ACEOF |
| 13343 | /* end confdefs.h. */ |
| 13344 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13345 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13346 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13347 | 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] | 13348 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13349 | #include <stdlib.h> |
| 13350 | int |
| 13351 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13352 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13353 | |
| 13354 | FILE *f = fopen ("conftest.val", "w"); |
| 13355 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13356 | return 1; |
| 13357 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13359 | long int i = longval (); |
| 13360 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13361 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13362 | fprintf (f, "%ld\n", i); |
| 13363 | } |
| 13364 | else |
| 13365 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13366 | unsigned long int i = ulongval (); |
| 13367 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13368 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13369 | fprintf (f, "%lu\n", i); |
| 13370 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13371 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13372 | |
| 13373 | ; |
| 13374 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13375 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13376 | _ACEOF |
| 13377 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13378 | if { (ac_try="$ac_link" |
| 13379 | case "(($ac_try" in |
| 13380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13381 | *) ac_try_echo=$ac_try;; |
| 13382 | esac |
| 13383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13384 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13385 | ac_status=$? |
| 13386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13387 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13388 | { (case "(($ac_try" in |
| 13389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13390 | *) ac_try_echo=$ac_try;; |
| 13391 | esac |
| 13392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13393 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13394 | ac_status=$? |
| 13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13396 | (exit $ac_status); }; }; then |
| 13397 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13398 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13399 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13400 | echo "$as_me: failed program was:" >&5 |
| 13401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13402 | |
| 13403 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13404 | if test "$ac_cv_type_long" = yes; then |
| 13405 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13406 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13407 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13408 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13409 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13410 | else |
| 13411 | ac_cv_sizeof_long=0 |
| 13412 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13413 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13414 | 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] | 13415 | fi |
| 13416 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13418 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13419 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13420 | |
| 13421 | |
| 13422 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13423 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13424 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13425 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13426 | |
| 13427 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13428 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13429 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13430 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13432 | else |
| 13433 | cat >conftest.$ac_ext <<_ACEOF |
| 13434 | /* confdefs.h. */ |
| 13435 | _ACEOF |
| 13436 | cat confdefs.h >>conftest.$ac_ext |
| 13437 | cat >>conftest.$ac_ext <<_ACEOF |
| 13438 | /* end confdefs.h. */ |
| 13439 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13440 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13441 | int |
| 13442 | main () |
| 13443 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13444 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13445 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13446 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13447 | return 0; |
| 13448 | ; |
| 13449 | return 0; |
| 13450 | } |
| 13451 | _ACEOF |
| 13452 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13453 | if { (ac_try="$ac_compile" |
| 13454 | case "(($ac_try" in |
| 13455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13456 | *) ac_try_echo=$ac_try;; |
| 13457 | esac |
| 13458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13459 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13460 | ac_status=$? |
| 13461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13462 | rm -f conftest.er1 |
| 13463 | cat conftest.err >&5 |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13465 | (exit $ac_status); } && { |
| 13466 | test -z "$ac_c_werror_flag" || |
| 13467 | test ! -s conftest.err |
| 13468 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13469 | ac_cv_type_long_long=yes |
| 13470 | else |
| 13471 | echo "$as_me: failed program was:" >&5 |
| 13472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13473 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13474 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13475 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13478 | fi |
| 13479 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13480 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13481 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13482 | # The cast to long int works around a bug in the HP C Compiler |
| 13483 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13484 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13485 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13486 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13487 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13488 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13491 | if test "$cross_compiling" = yes; then |
| 13492 | # Depending upon the size, compute the lo and hi bounds. |
| 13493 | cat >conftest.$ac_ext <<_ACEOF |
| 13494 | /* confdefs.h. */ |
| 13495 | _ACEOF |
| 13496 | cat confdefs.h >>conftest.$ac_ext |
| 13497 | cat >>conftest.$ac_ext <<_ACEOF |
| 13498 | /* end confdefs.h. */ |
| 13499 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13500 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13501 | int |
| 13502 | main () |
| 13503 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13504 | 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] | 13505 | test_array [0] = 0 |
| 13506 | |
| 13507 | ; |
| 13508 | return 0; |
| 13509 | } |
| 13510 | _ACEOF |
| 13511 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13512 | if { (ac_try="$ac_compile" |
| 13513 | case "(($ac_try" in |
| 13514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13515 | *) ac_try_echo=$ac_try;; |
| 13516 | esac |
| 13517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13518 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13519 | ac_status=$? |
| 13520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13521 | rm -f conftest.er1 |
| 13522 | cat conftest.err >&5 |
| 13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13524 | (exit $ac_status); } && { |
| 13525 | test -z "$ac_c_werror_flag" || |
| 13526 | test ! -s conftest.err |
| 13527 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13528 | ac_lo=0 ac_mid=0 |
| 13529 | while :; do |
| 13530 | cat >conftest.$ac_ext <<_ACEOF |
| 13531 | /* confdefs.h. */ |
| 13532 | _ACEOF |
| 13533 | cat confdefs.h >>conftest.$ac_ext |
| 13534 | cat >>conftest.$ac_ext <<_ACEOF |
| 13535 | /* end confdefs.h. */ |
| 13536 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13537 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13538 | int |
| 13539 | main () |
| 13540 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13541 | 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] | 13542 | test_array [0] = 0 |
| 13543 | |
| 13544 | ; |
| 13545 | return 0; |
| 13546 | } |
| 13547 | _ACEOF |
| 13548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13549 | if { (ac_try="$ac_compile" |
| 13550 | case "(($ac_try" in |
| 13551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13552 | *) ac_try_echo=$ac_try;; |
| 13553 | esac |
| 13554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13555 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | ac_status=$? |
| 13557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13558 | rm -f conftest.er1 |
| 13559 | cat conftest.err >&5 |
| 13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13561 | (exit $ac_status); } && { |
| 13562 | test -z "$ac_c_werror_flag" || |
| 13563 | test ! -s conftest.err |
| 13564 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13565 | ac_hi=$ac_mid; break |
| 13566 | else |
| 13567 | echo "$as_me: failed program was:" >&5 |
| 13568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13570 | ac_lo=`expr $ac_mid + 1` |
| 13571 | if test $ac_lo -le $ac_mid; then |
| 13572 | ac_lo= ac_hi= |
| 13573 | break |
| 13574 | fi |
| 13575 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13577 | |
| 13578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13579 | done |
| 13580 | else |
| 13581 | echo "$as_me: failed program was:" >&5 |
| 13582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13584 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13585 | /* confdefs.h. */ |
| 13586 | _ACEOF |
| 13587 | cat confdefs.h >>conftest.$ac_ext |
| 13588 | cat >>conftest.$ac_ext <<_ACEOF |
| 13589 | /* end confdefs.h. */ |
| 13590 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13591 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13592 | int |
| 13593 | main () |
| 13594 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13595 | 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] | 13596 | test_array [0] = 0 |
| 13597 | |
| 13598 | ; |
| 13599 | return 0; |
| 13600 | } |
| 13601 | _ACEOF |
| 13602 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13603 | if { (ac_try="$ac_compile" |
| 13604 | case "(($ac_try" in |
| 13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13606 | *) ac_try_echo=$ac_try;; |
| 13607 | esac |
| 13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13609 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13610 | ac_status=$? |
| 13611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13612 | rm -f conftest.er1 |
| 13613 | cat conftest.err >&5 |
| 13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13615 | (exit $ac_status); } && { |
| 13616 | test -z "$ac_c_werror_flag" || |
| 13617 | test ! -s conftest.err |
| 13618 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13619 | ac_hi=-1 ac_mid=-1 |
| 13620 | while :; do |
| 13621 | cat >conftest.$ac_ext <<_ACEOF |
| 13622 | /* confdefs.h. */ |
| 13623 | _ACEOF |
| 13624 | cat confdefs.h >>conftest.$ac_ext |
| 13625 | cat >>conftest.$ac_ext <<_ACEOF |
| 13626 | /* end confdefs.h. */ |
| 13627 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13628 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13629 | int |
| 13630 | main () |
| 13631 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13632 | 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] | 13633 | test_array [0] = 0 |
| 13634 | |
| 13635 | ; |
| 13636 | return 0; |
| 13637 | } |
| 13638 | _ACEOF |
| 13639 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13640 | if { (ac_try="$ac_compile" |
| 13641 | case "(($ac_try" in |
| 13642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13643 | *) ac_try_echo=$ac_try;; |
| 13644 | esac |
| 13645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13646 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13647 | ac_status=$? |
| 13648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13649 | rm -f conftest.er1 |
| 13650 | cat conftest.err >&5 |
| 13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13652 | (exit $ac_status); } && { |
| 13653 | test -z "$ac_c_werror_flag" || |
| 13654 | test ! -s conftest.err |
| 13655 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13656 | ac_lo=$ac_mid; break |
| 13657 | else |
| 13658 | echo "$as_me: failed program was:" >&5 |
| 13659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13660 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13661 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13662 | if test $ac_mid -le $ac_hi; then |
| 13663 | ac_lo= ac_hi= |
| 13664 | break |
| 13665 | fi |
| 13666 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13668 | |
| 13669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13670 | done |
| 13671 | else |
| 13672 | echo "$as_me: failed program was:" >&5 |
| 13673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13674 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13675 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13676 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13677 | |
| 13678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13679 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13680 | |
| 13681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13682 | # Binary search between lo and hi bounds. |
| 13683 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13684 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13685 | cat >conftest.$ac_ext <<_ACEOF |
| 13686 | /* confdefs.h. */ |
| 13687 | _ACEOF |
| 13688 | cat confdefs.h >>conftest.$ac_ext |
| 13689 | cat >>conftest.$ac_ext <<_ACEOF |
| 13690 | /* end confdefs.h. */ |
| 13691 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13692 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13693 | int |
| 13694 | main () |
| 13695 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13696 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13697 | test_array [0] = 0 |
| 13698 | |
| 13699 | ; |
| 13700 | return 0; |
| 13701 | } |
| 13702 | _ACEOF |
| 13703 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13704 | if { (ac_try="$ac_compile" |
| 13705 | case "(($ac_try" in |
| 13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13707 | *) ac_try_echo=$ac_try;; |
| 13708 | esac |
| 13709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13710 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13711 | ac_status=$? |
| 13712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13713 | rm -f conftest.er1 |
| 13714 | cat conftest.err >&5 |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13716 | (exit $ac_status); } && { |
| 13717 | test -z "$ac_c_werror_flag" || |
| 13718 | test ! -s conftest.err |
| 13719 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13720 | ac_hi=$ac_mid |
| 13721 | else |
| 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13725 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13727 | |
| 13728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13729 | done |
| 13730 | case $ac_lo in |
| 13731 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13732 | '') if test "$ac_cv_type_long_long" = yes; then |
| 13733 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13734 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13735 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13736 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13737 | { (exit 77); exit 77; }; } |
| 13738 | else |
| 13739 | ac_cv_sizeof_long_long=0 |
| 13740 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13741 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13743 | cat >conftest.$ac_ext <<_ACEOF |
| 13744 | /* confdefs.h. */ |
| 13745 | _ACEOF |
| 13746 | cat confdefs.h >>conftest.$ac_ext |
| 13747 | cat >>conftest.$ac_ext <<_ACEOF |
| 13748 | /* end confdefs.h. */ |
| 13749 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13750 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13751 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13752 | 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] | 13753 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13754 | #include <stdlib.h> |
| 13755 | int |
| 13756 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13757 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13758 | |
| 13759 | FILE *f = fopen ("conftest.val", "w"); |
| 13760 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13761 | return 1; |
| 13762 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13763 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13764 | long int i = longval (); |
| 13765 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13766 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13767 | fprintf (f, "%ld\n", i); |
| 13768 | } |
| 13769 | else |
| 13770 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13771 | unsigned long int i = ulongval (); |
| 13772 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13773 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13774 | fprintf (f, "%lu\n", i); |
| 13775 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13776 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13777 | |
| 13778 | ; |
| 13779 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13780 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13781 | _ACEOF |
| 13782 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13783 | if { (ac_try="$ac_link" |
| 13784 | case "(($ac_try" in |
| 13785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13786 | *) ac_try_echo=$ac_try;; |
| 13787 | esac |
| 13788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13789 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13790 | ac_status=$? |
| 13791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13793 | { (case "(($ac_try" in |
| 13794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13795 | *) ac_try_echo=$ac_try;; |
| 13796 | esac |
| 13797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13798 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13799 | ac_status=$? |
| 13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13801 | (exit $ac_status); }; }; then |
| 13802 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13803 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13804 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13805 | echo "$as_me: failed program was:" >&5 |
| 13806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13807 | |
| 13808 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13809 | if test "$ac_cv_type_long_long" = yes; then |
| 13810 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13812 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13814 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13815 | else |
| 13816 | ac_cv_sizeof_long_long=0 |
| 13817 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13818 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13819 | 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] | 13820 | fi |
| 13821 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13822 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13823 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 13824 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13825 | |
| 13826 | |
| 13827 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13828 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13829 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13830 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13831 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13832 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13833 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 13834 | SIZEOF_INT=$ac_cv_sizeof_int |
| 13835 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13836 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 13837 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13838 | |
| 13839 | |
| 13840 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13841 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 13842 | 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] | 13843 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 13844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13845 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13846 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 13847 | cat >conftest.$ac_ext <<_ACEOF |
| 13848 | /* confdefs.h. */ |
| 13849 | _ACEOF |
| 13850 | cat confdefs.h >>conftest.$ac_ext |
| 13851 | cat >>conftest.$ac_ext <<_ACEOF |
| 13852 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13853 | #include <sys/types.h> |
| 13854 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13855 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13856 | int |
| 13857 | main () |
| 13858 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13859 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 13860 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13861 | bogus endian macros |
| 13862 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13863 | |
| 13864 | ; |
| 13865 | return 0; |
| 13866 | } |
| 13867 | _ACEOF |
| 13868 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13869 | if { (ac_try="$ac_compile" |
| 13870 | case "(($ac_try" in |
| 13871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13872 | *) ac_try_echo=$ac_try;; |
| 13873 | esac |
| 13874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13875 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13876 | ac_status=$? |
| 13877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13878 | rm -f conftest.er1 |
| 13879 | cat conftest.err >&5 |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13881 | (exit $ac_status); } && { |
| 13882 | test -z "$ac_c_werror_flag" || |
| 13883 | test ! -s conftest.err |
| 13884 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13885 | # 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] | 13886 | cat >conftest.$ac_ext <<_ACEOF |
| 13887 | /* confdefs.h. */ |
| 13888 | _ACEOF |
| 13889 | cat confdefs.h >>conftest.$ac_ext |
| 13890 | cat >>conftest.$ac_ext <<_ACEOF |
| 13891 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13892 | #include <sys/types.h> |
| 13893 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13894 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13895 | int |
| 13896 | main () |
| 13897 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13898 | #if BYTE_ORDER != BIG_ENDIAN |
| 13899 | not big endian |
| 13900 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13901 | |
| 13902 | ; |
| 13903 | return 0; |
| 13904 | } |
| 13905 | _ACEOF |
| 13906 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13907 | if { (ac_try="$ac_compile" |
| 13908 | case "(($ac_try" in |
| 13909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13910 | *) ac_try_echo=$ac_try;; |
| 13911 | esac |
| 13912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13913 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13914 | ac_status=$? |
| 13915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13916 | rm -f conftest.er1 |
| 13917 | cat conftest.err >&5 |
| 13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13919 | (exit $ac_status); } && { |
| 13920 | test -z "$ac_c_werror_flag" || |
| 13921 | test ! -s conftest.err |
| 13922 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13923 | ac_cv_c_bigendian=yes |
| 13924 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13925 | echo "$as_me: failed program was:" >&5 |
| 13926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13928 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13929 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13930 | |
| 13931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13932 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13933 | echo "$as_me: failed program was:" >&5 |
| 13934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13936 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13937 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13938 | # try to guess the endianness by grepping values into an object file |
| 13939 | ac_cv_c_bigendian=unknown |
| 13940 | cat >conftest.$ac_ext <<_ACEOF |
| 13941 | /* confdefs.h. */ |
| 13942 | _ACEOF |
| 13943 | cat confdefs.h >>conftest.$ac_ext |
| 13944 | cat >>conftest.$ac_ext <<_ACEOF |
| 13945 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13946 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13947 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13948 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13949 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13950 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13951 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 13952 | int |
| 13953 | main () |
| 13954 | { |
| 13955 | _ascii (); _ebcdic (); |
| 13956 | ; |
| 13957 | return 0; |
| 13958 | } |
| 13959 | _ACEOF |
| 13960 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13961 | if { (ac_try="$ac_compile" |
| 13962 | case "(($ac_try" in |
| 13963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13964 | *) ac_try_echo=$ac_try;; |
| 13965 | esac |
| 13966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13967 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13968 | ac_status=$? |
| 13969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13970 | rm -f conftest.er1 |
| 13971 | cat conftest.err >&5 |
| 13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13973 | (exit $ac_status); } && { |
| 13974 | test -z "$ac_c_werror_flag" || |
| 13975 | test ! -s conftest.err |
| 13976 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13977 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 13978 | ac_cv_c_bigendian=yes |
| 13979 | fi |
| 13980 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 13981 | if test "$ac_cv_c_bigendian" = unknown; then |
| 13982 | ac_cv_c_bigendian=no |
| 13983 | else |
| 13984 | # finding both strings is unlikely to happen, but who knows? |
| 13985 | ac_cv_c_bigendian=unknown |
| 13986 | fi |
| 13987 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13988 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13989 | echo "$as_me: failed program was:" >&5 |
| 13990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13992 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13994 | |
| 13995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13996 | else |
| 13997 | cat >conftest.$ac_ext <<_ACEOF |
| 13998 | /* confdefs.h. */ |
| 13999 | _ACEOF |
| 14000 | cat confdefs.h >>conftest.$ac_ext |
| 14001 | cat >>conftest.$ac_ext <<_ACEOF |
| 14002 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14003 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14004 | int |
| 14005 | main () |
| 14006 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14007 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14008 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14009 | union |
| 14010 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14011 | long int l; |
| 14012 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14013 | } u; |
| 14014 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14015 | return u.c[sizeof (long int) - 1] == 1; |
| 14016 | |
| 14017 | ; |
| 14018 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14019 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14020 | _ACEOF |
| 14021 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14022 | if { (ac_try="$ac_link" |
| 14023 | case "(($ac_try" in |
| 14024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14025 | *) ac_try_echo=$ac_try;; |
| 14026 | esac |
| 14027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14028 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14032 | { (case "(($ac_try" in |
| 14033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14034 | *) ac_try_echo=$ac_try;; |
| 14035 | esac |
| 14036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14037 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14038 | ac_status=$? |
| 14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14040 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14041 | ac_cv_c_bigendian=no |
| 14042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14043 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14044 | echo "$as_me: failed program was:" >&5 |
| 14045 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14046 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14047 | ( exit $ac_status ) |
| 14048 | ac_cv_c_bigendian=yes |
| 14049 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14050 | 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] | 14051 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14052 | |
| 14053 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14054 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14055 | |
| 14056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14057 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14058 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14059 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14060 | case $ac_cv_c_bigendian in |
| 14061 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14064 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14065 | _ACEOF |
| 14066 | ;; |
| 14067 | no) |
| 14068 | ;; |
| 14069 | *) |
| 14070 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14071 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14072 | echo "$as_me: error: unknown endianness |
| 14073 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14074 | { (exit 1); exit 1; }; } ;; |
| 14075 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14076 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14077 | 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] | 14078 | ASM_TYPES_HEADER=./asm_types.h |
| 14079 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14080 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14081 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14082 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14083 | 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] | 14084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14085 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14087 | 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] | 14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14089 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14090 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14092 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14093 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14094 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14095 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14096 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14097 | cat >conftest.$ac_ext <<_ACEOF |
| 14098 | /* confdefs.h. */ |
| 14099 | _ACEOF |
| 14100 | cat confdefs.h >>conftest.$ac_ext |
| 14101 | cat >>conftest.$ac_ext <<_ACEOF |
| 14102 | /* end confdefs.h. */ |
| 14103 | $ac_includes_default |
| 14104 | #include <$ac_header> |
| 14105 | _ACEOF |
| 14106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14107 | if { (ac_try="$ac_compile" |
| 14108 | case "(($ac_try" in |
| 14109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14110 | *) ac_try_echo=$ac_try;; |
| 14111 | esac |
| 14112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14113 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14114 | ac_status=$? |
| 14115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14116 | rm -f conftest.er1 |
| 14117 | cat conftest.err >&5 |
| 14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14119 | (exit $ac_status); } && { |
| 14120 | test -z "$ac_c_werror_flag" || |
| 14121 | test ! -s conftest.err |
| 14122 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14123 | ac_header_compiler=yes |
| 14124 | else |
| 14125 | echo "$as_me: failed program was:" >&5 |
| 14126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14128 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14130 | |
| 14131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14132 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14133 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14134 | |
| 14135 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14136 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14138 | cat >conftest.$ac_ext <<_ACEOF |
| 14139 | /* confdefs.h. */ |
| 14140 | _ACEOF |
| 14141 | cat confdefs.h >>conftest.$ac_ext |
| 14142 | cat >>conftest.$ac_ext <<_ACEOF |
| 14143 | /* end confdefs.h. */ |
| 14144 | #include <$ac_header> |
| 14145 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14146 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14147 | case "(($ac_try" in |
| 14148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14149 | *) ac_try_echo=$ac_try;; |
| 14150 | esac |
| 14151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14152 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | ac_status=$? |
| 14154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14155 | rm -f conftest.er1 |
| 14156 | cat conftest.err >&5 |
| 14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14158 | (exit $ac_status); } >/dev/null && { |
| 14159 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14160 | test ! -s conftest.err |
| 14161 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14162 | ac_header_preproc=yes |
| 14163 | else |
| 14164 | echo "$as_me: failed program was:" >&5 |
| 14165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14166 | |
| 14167 | ac_header_preproc=no |
| 14168 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14169 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14170 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14171 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14172 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14173 | |
| 14174 | # So? What about this header? |
| 14175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14176 | yes:no: ) |
| 14177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14181 | ac_header_preproc=yes |
| 14182 | ;; |
| 14183 | no:yes:* ) |
| 14184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14195 | 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] | 14196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14197 | ;; |
| 14198 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14199 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14201 | 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] | 14202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14203 | else |
| 14204 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14205 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14206 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14207 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14208 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14209 | |
| 14210 | fi |
| 14211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14212 | cat >>confdefs.h <<_ACEOF |
| 14213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14214 | _ACEOF |
| 14215 | |
| 14216 | fi |
| 14217 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14218 | done |
| 14219 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14220 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14221 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14222 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14225 | cat >conftest.$ac_ext <<_ACEOF |
| 14226 | /* confdefs.h. */ |
| 14227 | _ACEOF |
| 14228 | cat confdefs.h >>conftest.$ac_ext |
| 14229 | cat >>conftest.$ac_ext <<_ACEOF |
| 14230 | /* end confdefs.h. */ |
| 14231 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14232 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14233 | int |
| 14234 | main () |
| 14235 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14236 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14237 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14238 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14239 | return 0; |
| 14240 | ; |
| 14241 | return 0; |
| 14242 | } |
| 14243 | _ACEOF |
| 14244 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14245 | if { (ac_try="$ac_compile" |
| 14246 | case "(($ac_try" in |
| 14247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14248 | *) ac_try_echo=$ac_try;; |
| 14249 | esac |
| 14250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14251 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14252 | ac_status=$? |
| 14253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14254 | rm -f conftest.er1 |
| 14255 | cat conftest.err >&5 |
| 14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14257 | (exit $ac_status); } && { |
| 14258 | test -z "$ac_c_werror_flag" || |
| 14259 | test ! -s conftest.err |
| 14260 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14261 | ac_cv_type_intptr_t=yes |
| 14262 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14263 | echo "$as_me: failed program was:" >&5 |
| 14264 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14266 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14267 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14268 | |
| 14269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14270 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14271 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14272 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14273 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14274 | |
| 14275 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14276 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14277 | _ACEOF |
| 14278 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14279 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14280 | fi |
| 14281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14282 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14283 | 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] | 14284 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14286 | else |
| 14287 | cat >conftest.$ac_ext <<_ACEOF |
| 14288 | /* confdefs.h. */ |
| 14289 | _ACEOF |
| 14290 | cat confdefs.h >>conftest.$ac_ext |
| 14291 | cat >>conftest.$ac_ext <<_ACEOF |
| 14292 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14293 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14294 | int |
| 14295 | main () |
| 14296 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14297 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14298 | ; |
| 14299 | return 0; |
| 14300 | } |
| 14301 | _ACEOF |
| 14302 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14303 | if { (ac_try="$ac_compile" |
| 14304 | case "(($ac_try" in |
| 14305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14306 | *) ac_try_echo=$ac_try;; |
| 14307 | esac |
| 14308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14309 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14310 | ac_status=$? |
| 14311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14312 | rm -f conftest.er1 |
| 14313 | cat conftest.err >&5 |
| 14314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14315 | (exit $ac_status); } && { |
| 14316 | test -z "$ac_c_werror_flag" || |
| 14317 | test ! -s conftest.err |
| 14318 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14319 | e2fsprogs_cv_struct_st_flags=yes |
| 14320 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14321 | echo "$as_me: failed program was:" >&5 |
| 14322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14324 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14325 | fi |
| 14326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14328 | fi |
| 14329 | |
| 14330 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14331 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14332 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14333 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14334 | 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] | 14335 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14337 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14338 | cat >conftest.$ac_ext <<_ACEOF |
| 14339 | /* confdefs.h. */ |
| 14340 | _ACEOF |
| 14341 | cat confdefs.h >>conftest.$ac_ext |
| 14342 | cat >>conftest.$ac_ext <<_ACEOF |
| 14343 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14344 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14345 | int |
| 14346 | main () |
| 14347 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14348 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14349 | ; |
| 14350 | return 0; |
| 14351 | } |
| 14352 | _ACEOF |
| 14353 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14354 | if { (ac_try="$ac_compile" |
| 14355 | case "(($ac_try" in |
| 14356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14357 | *) ac_try_echo=$ac_try;; |
| 14358 | esac |
| 14359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14360 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14361 | ac_status=$? |
| 14362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14363 | rm -f conftest.er1 |
| 14364 | cat conftest.err >&5 |
| 14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14366 | (exit $ac_status); } && { |
| 14367 | test -z "$ac_c_werror_flag" || |
| 14368 | test ! -s conftest.err |
| 14369 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14370 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14371 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14372 | echo "$as_me: failed program was:" >&5 |
| 14373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14375 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14376 | fi |
| 14377 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14379 | fi |
| 14380 | |
| 14381 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14382 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14383 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14384 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14385 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14386 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14387 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14388 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14391 | 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] | 14392 | 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] | 14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14394 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | cat >conftest.$ac_ext <<_ACEOF |
| 14396 | /* confdefs.h. */ |
| 14397 | _ACEOF |
| 14398 | cat confdefs.h >>conftest.$ac_ext |
| 14399 | cat >>conftest.$ac_ext <<_ACEOF |
| 14400 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14401 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14402 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14404 | int |
| 14405 | main () |
| 14406 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14407 | static struct sockaddr ac_aggr; |
| 14408 | if (ac_aggr.sa_len) |
| 14409 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14410 | ; |
| 14411 | return 0; |
| 14412 | } |
| 14413 | _ACEOF |
| 14414 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14415 | if { (ac_try="$ac_compile" |
| 14416 | case "(($ac_try" in |
| 14417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14418 | *) ac_try_echo=$ac_try;; |
| 14419 | esac |
| 14420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14421 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | ac_status=$? |
| 14423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14424 | rm -f conftest.er1 |
| 14425 | cat conftest.err >&5 |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14427 | (exit $ac_status); } && { |
| 14428 | test -z "$ac_c_werror_flag" || |
| 14429 | test ! -s conftest.err |
| 14430 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14431 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14432 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14433 | echo "$as_me: failed program was:" >&5 |
| 14434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14436 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14437 | /* confdefs.h. */ |
| 14438 | _ACEOF |
| 14439 | cat confdefs.h >>conftest.$ac_ext |
| 14440 | cat >>conftest.$ac_ext <<_ACEOF |
| 14441 | /* end confdefs.h. */ |
| 14442 | #include <sys/types.h> |
| 14443 | #include <sys/socket.h> |
| 14444 | |
| 14445 | int |
| 14446 | main () |
| 14447 | { |
| 14448 | static struct sockaddr ac_aggr; |
| 14449 | if (sizeof ac_aggr.sa_len) |
| 14450 | return 0; |
| 14451 | ; |
| 14452 | return 0; |
| 14453 | } |
| 14454 | _ACEOF |
| 14455 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14456 | if { (ac_try="$ac_compile" |
| 14457 | case "(($ac_try" in |
| 14458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14459 | *) ac_try_echo=$ac_try;; |
| 14460 | esac |
| 14461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14462 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14463 | ac_status=$? |
| 14464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14465 | rm -f conftest.er1 |
| 14466 | cat conftest.err >&5 |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14468 | (exit $ac_status); } && { |
| 14469 | test -z "$ac_c_werror_flag" || |
| 14470 | test ! -s conftest.err |
| 14471 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14472 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14473 | else |
| 14474 | echo "$as_me: failed program was:" >&5 |
| 14475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14477 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14478 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14479 | |
| 14480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14481 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14482 | |
| 14483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14485 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14486 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14487 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14488 | |
| 14489 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14490 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14492 | |
| 14493 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14494 | |
| 14495 | |
| 14496 | |
| 14497 | |
| 14498 | |
| 14499 | |
| 14500 | |
| 14501 | |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | |
| 14508 | |
| 14509 | |
| 14510 | |
| 14511 | |
| 14512 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14513 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14514 | |
| 14515 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14516 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14517 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14518 | |
| 14519 | |
| 14520 | |
| 14521 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14522 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14523 | 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] | 14524 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14526 | 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] | 14527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | cat >conftest.$ac_ext <<_ACEOF |
| 14530 | /* confdefs.h. */ |
| 14531 | _ACEOF |
| 14532 | cat confdefs.h >>conftest.$ac_ext |
| 14533 | cat >>conftest.$ac_ext <<_ACEOF |
| 14534 | /* end confdefs.h. */ |
| 14535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14537 | #define $ac_func innocuous_$ac_func |
| 14538 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14539 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14540 | which can conflict with char $ac_func (); below. |
| 14541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14542 | <limits.h> exists even on freestanding compilers. */ |
| 14543 | |
| 14544 | #ifdef __STDC__ |
| 14545 | # include <limits.h> |
| 14546 | #else |
| 14547 | # include <assert.h> |
| 14548 | #endif |
| 14549 | |
| 14550 | #undef $ac_func |
| 14551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14552 | /* Override any GCC internal prototype to avoid an error. |
| 14553 | Use char because int might match the return type of a GCC |
| 14554 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14555 | #ifdef __cplusplus |
| 14556 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14558 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14559 | /* The GNU C library defines this for functions which it implements |
| 14560 | to always fail with ENOSYS. Some functions are actually named |
| 14561 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14562 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14563 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14564 | #endif |
| 14565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14566 | int |
| 14567 | main () |
| 14568 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14569 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14570 | ; |
| 14571 | return 0; |
| 14572 | } |
| 14573 | _ACEOF |
| 14574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14575 | if { (ac_try="$ac_link" |
| 14576 | case "(($ac_try" in |
| 14577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14578 | *) ac_try_echo=$ac_try;; |
| 14579 | esac |
| 14580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14581 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14582 | ac_status=$? |
| 14583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14584 | rm -f conftest.er1 |
| 14585 | cat conftest.err >&5 |
| 14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14587 | (exit $ac_status); } && { |
| 14588 | test -z "$ac_c_werror_flag" || |
| 14589 | test ! -s conftest.err |
| 14590 | } && test -s conftest$ac_exeext && |
| 14591 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14593 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14594 | echo "$as_me: failed program was:" >&5 |
| 14595 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14597 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14598 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14599 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14600 | 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] | 14601 | conftest$ac_exeext conftest.$ac_ext |
| 14602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14603 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14604 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14605 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14606 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14607 | cat >>confdefs.h <<_ACEOF |
| 14608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14609 | _ACEOF |
| 14610 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14611 | fi |
| 14612 | done |
| 14613 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14614 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14615 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14616 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14617 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14619 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14620 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14621 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14622 | cat >conftest.$ac_ext <<_ACEOF |
| 14623 | /* confdefs.h. */ |
| 14624 | _ACEOF |
| 14625 | cat confdefs.h >>conftest.$ac_ext |
| 14626 | cat >>conftest.$ac_ext <<_ACEOF |
| 14627 | /* end confdefs.h. */ |
| 14628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14629 | /* Override any GCC internal prototype to avoid an error. |
| 14630 | Use char because int might match the return type of a GCC |
| 14631 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14632 | #ifdef __cplusplus |
| 14633 | extern "C" |
| 14634 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14635 | char socket (); |
| 14636 | int |
| 14637 | main () |
| 14638 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14639 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14640 | ; |
| 14641 | return 0; |
| 14642 | } |
| 14643 | _ACEOF |
| 14644 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14645 | if { (ac_try="$ac_link" |
| 14646 | case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14652 | ac_status=$? |
| 14653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14654 | rm -f conftest.er1 |
| 14655 | cat conftest.err >&5 |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14657 | (exit $ac_status); } && { |
| 14658 | test -z "$ac_c_werror_flag" || |
| 14659 | test ! -s conftest.err |
| 14660 | } && test -s conftest$ac_exeext && |
| 14661 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14662 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14663 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14664 | echo "$as_me: failed program was:" >&5 |
| 14665 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14666 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14667 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14668 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14669 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14670 | 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] | 14671 | conftest$ac_exeext conftest.$ac_ext |
| 14672 | LIBS=$ac_check_lib_save_LIBS |
| 14673 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14674 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14675 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14676 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14677 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14678 | fi |
| 14679 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14680 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14681 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14682 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14683 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14684 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14687 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14688 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14689 | cat >conftest.$ac_ext <<_ACEOF |
| 14690 | /* confdefs.h. */ |
| 14691 | _ACEOF |
| 14692 | cat confdefs.h >>conftest.$ac_ext |
| 14693 | cat >>conftest.$ac_ext <<_ACEOF |
| 14694 | /* end confdefs.h. */ |
| 14695 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14696 | /* Override any GCC internal prototype to avoid an error. |
| 14697 | Use char because int might match the return type of a GCC |
| 14698 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14699 | #ifdef __cplusplus |
| 14700 | extern "C" |
| 14701 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14702 | char dlopen (); |
| 14703 | int |
| 14704 | main () |
| 14705 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14706 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14707 | ; |
| 14708 | return 0; |
| 14709 | } |
| 14710 | _ACEOF |
| 14711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14712 | if { (ac_try="$ac_link" |
| 14713 | case "(($ac_try" in |
| 14714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14715 | *) ac_try_echo=$ac_try;; |
| 14716 | esac |
| 14717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14718 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14719 | ac_status=$? |
| 14720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14721 | rm -f conftest.er1 |
| 14722 | cat conftest.err >&5 |
| 14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14724 | (exit $ac_status); } && { |
| 14725 | test -z "$ac_c_werror_flag" || |
| 14726 | test ! -s conftest.err |
| 14727 | } && test -s conftest$ac_exeext && |
| 14728 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14729 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14730 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14731 | echo "$as_me: failed program was:" >&5 |
| 14732 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14734 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14735 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14736 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14737 | 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] | 14738 | conftest$ac_exeext conftest.$ac_ext |
| 14739 | LIBS=$ac_check_lib_save_LIBS |
| 14740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14741 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14742 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14743 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14744 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14745 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14746 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14747 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14748 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14749 | fi |
| 14750 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14752 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 14753 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14754 | if test "${ac_cv_have_optreset+set}" = set; then |
| 14755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14756 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14757 | cat >conftest.$ac_ext <<_ACEOF |
| 14758 | /* confdefs.h. */ |
| 14759 | _ACEOF |
| 14760 | cat confdefs.h >>conftest.$ac_ext |
| 14761 | cat >>conftest.$ac_ext <<_ACEOF |
| 14762 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14763 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14764 | |
| 14765 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14767 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14768 | ac_cv_have_optreset=yes |
| 14769 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14770 | ac_cv_have_optreset=no |
| 14771 | fi |
| 14772 | rm -f conftest* |
| 14773 | |
| 14774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14775 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 14776 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14777 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14778 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14779 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14780 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14781 | |
| 14782 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14783 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 14784 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14785 | if diff -u $0 $0 >& /dev/null ; then |
| 14786 | UNI_DIFF_OPTS=-u |
| 14787 | else |
| 14788 | UNI_DIFF_OPTS=-c |
| 14789 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14790 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 14791 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14792 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14793 | case "$host_os" in |
| 14794 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14795 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14796 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14798 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14799 | ;; |
| 14800 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14801 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14802 | CYGWIN_CMT="#" |
| 14803 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14804 | case "$host_os" in |
| 14805 | linux*) |
| 14806 | LINUX_CMT= |
| 14807 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14808 | cygwin) |
| 14809 | CYGWIN_CMT= |
| 14810 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14811 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14812 | esac |
| 14813 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14814 | |
| 14815 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14816 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14817 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14818 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 14819 | root_prefix=""; |
| 14820 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14821 | fi |
| 14822 | ;; |
| 14823 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14824 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14825 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14826 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14827 | prefix="/usr"; |
| 14828 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 14829 | if test "$mandir" = '${prefix}/man' ; then |
| 14830 | echo "...and mandir defaults to /usr/share/man" |
| 14831 | mandir=/usr/share/man |
| 14832 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14833 | fi |
| 14834 | ;; |
| 14835 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14836 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 14837 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14838 | root_prefix="$ac_default_prefix" |
| 14839 | else |
| 14840 | root_prefix="$prefix" |
| 14841 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 14842 | root_bindir=$bindir |
| 14843 | root_sbindir=$sbindir |
| 14844 | root_libdir=$libdir |
| 14845 | root_sysconfdir=$sysconfdir |
| 14846 | else |
| 14847 | root_bindir='${root_prefix}/bin' |
| 14848 | root_sbindir='${root_prefix}/sbin' |
| 14849 | root_libdir='${root_prefix}/lib' |
| 14850 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14851 | fi |
| 14852 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14857 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 14858 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14859 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 14860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14861 | else |
| 14862 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14863 | cat >conftest.$ac_ext <<_ACEOF |
| 14864 | /* confdefs.h. */ |
| 14865 | _ACEOF |
| 14866 | cat confdefs.h >>conftest.$ac_ext |
| 14867 | cat >>conftest.$ac_ext <<_ACEOF |
| 14868 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14869 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14870 | int |
| 14871 | main () |
| 14872 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14873 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14874 | ; |
| 14875 | return 0; |
| 14876 | } |
| 14877 | _ACEOF |
| 14878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14879 | if { (ac_try="$ac_link" |
| 14880 | case "(($ac_try" in |
| 14881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14882 | *) ac_try_echo=$ac_try;; |
| 14883 | esac |
| 14884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14885 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14886 | ac_status=$? |
| 14887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14888 | rm -f conftest.er1 |
| 14889 | cat conftest.err >&5 |
| 14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14891 | (exit $ac_status); } && { |
| 14892 | test -z "$ac_c_werror_flag" || |
| 14893 | test ! -s conftest.err |
| 14894 | } && test -s conftest$ac_exeext && |
| 14895 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14896 | ac_cv_e2fsprogs_use_static=yes |
| 14897 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14898 | echo "$as_me: failed program was:" >&5 |
| 14899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14900 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14901 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14902 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14903 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14904 | 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] | 14905 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14906 | LDFLAGS=$SAVE_LDFLAGS |
| 14907 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14908 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 14909 | case "$host_os" in |
| 14910 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14911 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 14912 | ;; |
| 14913 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14914 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 14915 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 14916 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14917 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14918 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 14919 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14920 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14921 | case "$host_os" in |
| 14922 | darwin*) |
| 14923 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14924 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14925 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14926 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14927 | |
| 14928 | ;; |
| 14929 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14930 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 14931 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 14932 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14933 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14934 | if test "$cross_compiling" = yes ; then |
| 14935 | DO_TEST_SUITE= |
| 14936 | else |
| 14937 | DO_TEST_SUITE=check |
| 14938 | fi |
| 14939 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 14940 | INTL_FLAGS= |
| 14941 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 14942 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 14943 | fi |
| 14944 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 14945 | if test $cross_compiling = no; then |
| 14946 | BUILD_CFLAGS="$CFLAGS" |
| 14947 | BUILD_LDFLAGS="$LDFLAGS" |
| 14948 | else |
| 14949 | BUILD_CFLAGS= |
| 14950 | BUILD_LDFLAGS= |
| 14951 | fi |
| 14952 | |
| 14953 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14954 | test -d lib || mkdir lib |
| 14955 | test -d include || mkdir include |
| 14956 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 14957 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 14958 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 14959 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 14960 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 14961 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 14962 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 14963 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 14964 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 14965 | 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] | 14966 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 14967 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 14968 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 14969 | if test -d `dirname ${srcdir}/$i` ; then |
| 14970 | outlist="$outlist $i" |
| 14971 | fi |
| 14972 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14973 | ac_config_files="$ac_config_files $outlist" |
| 14974 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14975 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14976 | # This file is a shell script that caches the results of configure |
| 14977 | # 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] | 14978 | # scripts and configure runs, see configure's option --config-cache. |
| 14979 | # It is not useful on other systems. If it contains results you don't |
| 14980 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14981 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14982 | # config.status only pays attention to the cache file if you give it |
| 14983 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14984 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14985 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14986 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14987 | # following values. |
| 14988 | |
| 14989 | _ACEOF |
| 14990 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14991 | # The following way of writing the cache mishandles newlines in values, |
| 14992 | # 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] | 14993 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14994 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14995 | # 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] | 14996 | ( |
| 14997 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14998 | eval ac_val=\$$ac_var |
| 14999 | case $ac_val in #( |
| 15000 | *${as_nl}*) |
| 15001 | case $ac_var in #( |
| 15002 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15003 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15004 | esac |
| 15005 | case $ac_var in #( |
| 15006 | _ | IFS | as_nl) ;; #( |
| 15007 | *) $as_unset $ac_var ;; |
| 15008 | esac ;; |
| 15009 | esac |
| 15010 | done |
| 15011 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15012 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15013 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15014 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15015 | # `set' does not quote correctly, so add quotes (double-quote |
| 15016 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15017 | sed -n \ |
| 15018 | "s/'/'\\\\''/g; |
| 15019 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15020 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15021 | *) |
| 15022 | # `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] | 15023 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15024 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15025 | esac | |
| 15026 | sort |
| 15027 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15028 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15029 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15030 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15031 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15032 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15033 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15034 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15035 | :end' >>confcache |
| 15036 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15037 | if test -w "$cache_file"; then |
| 15038 | test "x$cache_file" != "x/dev/null" && |
| 15039 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15040 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15041 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15042 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15043 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15044 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15045 | fi |
| 15046 | fi |
| 15047 | rm -f confcache |
| 15048 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15049 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15050 | # Let make expand exec_prefix. |
| 15051 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15052 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15053 | # Transform confdefs.h into DEFS. |
| 15054 | # Protect against shell expansion while executing Makefile rules. |
| 15055 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15056 | # |
| 15057 | # 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] | 15058 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15059 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15060 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15061 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15062 | :clear |
| 15063 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15064 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15065 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15066 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15067 | b any |
| 15068 | :quote |
| 15069 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15070 | s/\[/\\&/g |
| 15071 | s/\]/\\&/g |
| 15072 | s/\$/$$/g |
| 15073 | H |
| 15074 | :any |
| 15075 | ${ |
| 15076 | g |
| 15077 | s/^\n// |
| 15078 | s/\n/ /g |
| 15079 | p |
| 15080 | } |
| 15081 | ' |
| 15082 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15083 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15084 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15085 | ac_libobjs= |
| 15086 | ac_ltlibobjs= |
| 15087 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15088 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15089 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15090 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15091 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15092 | # will be set to the directory where LIBOBJS objects are built. |
| 15093 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15094 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15095 | done |
| 15096 | LIBOBJS=$ac_libobjs |
| 15097 | |
| 15098 | LTLIBOBJS=$ac_ltlibobjs |
| 15099 | |
| 15100 | |
| 15101 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15102 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15103 | ac_clean_files_save=$ac_clean_files |
| 15104 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15105 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15106 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15107 | cat >$CONFIG_STATUS <<_ACEOF |
| 15108 | #! $SHELL |
| 15109 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15110 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15111 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15112 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15114 | debug=false |
| 15115 | ac_cs_recheck=false |
| 15116 | ac_cs_silent=false |
| 15117 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15118 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15120 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15121 | ## --------------------- ## |
| 15122 | ## M4sh Initialization. ## |
| 15123 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15124 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15125 | # Be more Bourne compatible |
| 15126 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15127 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15128 | emulate sh |
| 15129 | NULLCMD=: |
| 15130 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15131 | # is contrary to our usage. Disable this feature. |
| 15132 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15133 | setopt NO_GLOB_SUBST |
| 15134 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15135 | case `(set -o) 2>/dev/null` in |
| 15136 | *posix*) set -o posix ;; |
| 15137 | esac |
| 15138 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15139 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15140 | |
| 15141 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15142 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15143 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15144 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15145 | # Avoid depending upon Character Ranges. |
| 15146 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15147 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15148 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15149 | as_cr_digits='0123456789' |
| 15150 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15151 | |
| 15152 | # The user is always right. |
| 15153 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15154 | echo "#! /bin/sh" >conf$$.sh |
| 15155 | echo "exit 0" >>conf$$.sh |
| 15156 | chmod +x conf$$.sh |
| 15157 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15158 | PATH_SEPARATOR=';' |
| 15159 | else |
| 15160 | PATH_SEPARATOR=: |
| 15161 | fi |
| 15162 | rm -f conf$$.sh |
| 15163 | fi |
| 15164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15165 | # Support unset when possible. |
| 15166 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15167 | as_unset=unset |
| 15168 | else |
| 15169 | as_unset=false |
| 15170 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15172 | |
| 15173 | # IFS |
| 15174 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15175 | # there to prevent editors from complaining about space-tab. |
| 15176 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15177 | # splitting by setting IFS to empty value.) |
| 15178 | as_nl=' |
| 15179 | ' |
| 15180 | IFS=" "" $as_nl" |
| 15181 | |
| 15182 | # Find who we are. Look in the path if we contain no directory separator. |
| 15183 | case $0 in |
| 15184 | *[\\/]* ) as_myself=$0 ;; |
| 15185 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15186 | for as_dir in $PATH |
| 15187 | do |
| 15188 | IFS=$as_save_IFS |
| 15189 | test -z "$as_dir" && as_dir=. |
| 15190 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15191 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15192 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15194 | ;; |
| 15195 | esac |
| 15196 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15197 | # in which case we are not to be found in the path. |
| 15198 | if test "x$as_myself" = x; then |
| 15199 | as_myself=$0 |
| 15200 | fi |
| 15201 | if test ! -f "$as_myself"; then |
| 15202 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15203 | { (exit 1); exit 1; } |
| 15204 | fi |
| 15205 | |
| 15206 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15207 | for as_var in ENV MAIL MAILPATH |
| 15208 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15209 | done |
| 15210 | PS1='$ ' |
| 15211 | PS2='> ' |
| 15212 | PS4='+ ' |
| 15213 | |
| 15214 | # NLS nuisances. |
| 15215 | for as_var in \ |
| 15216 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15217 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15218 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15219 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15220 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15221 | eval $as_var=C; export $as_var |
| 15222 | else |
| 15223 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15224 | fi |
| 15225 | done |
| 15226 | |
| 15227 | # Required to use basename. |
| 15228 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15229 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15230 | as_expr=expr |
| 15231 | else |
| 15232 | as_expr=false |
| 15233 | fi |
| 15234 | |
| 15235 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15236 | as_basename=basename |
| 15237 | else |
| 15238 | as_basename=false |
| 15239 | fi |
| 15240 | |
| 15241 | |
| 15242 | # Name of the executable. |
| 15243 | as_me=`$as_basename -- "$0" || |
| 15244 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15245 | X"$0" : 'X\(//\)$' \| \ |
| 15246 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15247 | echo X/"$0" | |
| 15248 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15249 | s//\1/ |
| 15250 | q |
| 15251 | } |
| 15252 | /^X\/\(\/\/\)$/{ |
| 15253 | s//\1/ |
| 15254 | q |
| 15255 | } |
| 15256 | /^X\/\(\/\).*/{ |
| 15257 | s//\1/ |
| 15258 | q |
| 15259 | } |
| 15260 | s/.*/./; q'` |
| 15261 | |
| 15262 | # CDPATH. |
| 15263 | $as_unset CDPATH |
| 15264 | |
| 15265 | |
| 15266 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15267 | as_lineno_1=$LINENO |
| 15268 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15269 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15270 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15272 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15273 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15274 | # line-number line after each line using $LINENO; the second 'sed' |
| 15275 | # does the real work. The second script uses 'N' to pair each |
| 15276 | # line-number line with the line containing $LINENO, and appends |
| 15277 | # trailing '-' during substitution so that $LINENO is not a special |
| 15278 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15279 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15280 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15281 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15282 | sed -n ' |
| 15283 | p |
| 15284 | /[$]LINENO/= |
| 15285 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15286 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15287 | s/[$]LINENO.*/&-/ |
| 15288 | t lineno |
| 15289 | b |
| 15290 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15291 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15292 | :loop |
| 15293 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15294 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15295 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15296 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15297 | chmod +x "$as_me.lineno" || |
| 15298 | { 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] | 15299 | { (exit 1); exit 1; }; } |
| 15300 | |
| 15301 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15302 | # (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] | 15303 | # original and so on. Autoconf is especially sensitive to this). |
| 15304 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15305 | # Exit status is that of the last command. |
| 15306 | exit |
| 15307 | } |
| 15308 | |
| 15309 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15310 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15311 | as_dirname=dirname |
| 15312 | else |
| 15313 | as_dirname=false |
| 15314 | fi |
| 15315 | |
| 15316 | ECHO_C= ECHO_N= ECHO_T= |
| 15317 | case `echo -n x` in |
| 15318 | -n*) |
| 15319 | case `echo 'x\c'` in |
| 15320 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15321 | *) ECHO_C='\c';; |
| 15322 | esac;; |
| 15323 | *) |
| 15324 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15325 | esac |
| 15326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15327 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15328 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15329 | as_expr=expr |
| 15330 | else |
| 15331 | as_expr=false |
| 15332 | fi |
| 15333 | |
| 15334 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15335 | if test -d conf$$.dir; then |
| 15336 | rm -f conf$$.dir/conf$$.file |
| 15337 | else |
| 15338 | rm -f conf$$.dir |
| 15339 | mkdir conf$$.dir |
| 15340 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15341 | echo >conf$$.file |
| 15342 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15343 | as_ln_s='ln -s' |
| 15344 | # ... but there are two gotchas: |
| 15345 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15346 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15347 | # In both cases, we have to default to `cp -p'. |
| 15348 | 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] | 15349 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15350 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15351 | as_ln_s=ln |
| 15352 | else |
| 15353 | as_ln_s='cp -p' |
| 15354 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15355 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15356 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15357 | |
| 15358 | if mkdir -p . 2>/dev/null; then |
| 15359 | as_mkdir_p=: |
| 15360 | else |
| 15361 | test -d ./-p && rmdir ./-p |
| 15362 | as_mkdir_p=false |
| 15363 | fi |
| 15364 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15365 | if test -x / >/dev/null 2>&1; then |
| 15366 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15367 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15368 | if ls -dL / >/dev/null 2>&1; then |
| 15369 | as_ls_L_option=L |
| 15370 | else |
| 15371 | as_ls_L_option= |
| 15372 | fi |
| 15373 | as_test_x=' |
| 15374 | eval sh -c '\'' |
| 15375 | if test -d "$1"; then |
| 15376 | test -d "$1/."; |
| 15377 | else |
| 15378 | case $1 in |
| 15379 | -*)set "./$1";; |
| 15380 | esac; |
| 15381 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15382 | ???[sx]*):;;*)false;;esac;fi |
| 15383 | '\'' sh |
| 15384 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15385 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15386 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15387 | |
| 15388 | # Sed expression to map a string onto a valid CPP name. |
| 15389 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15390 | |
| 15391 | # Sed expression to map a string onto a valid variable name. |
| 15392 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15393 | |
| 15394 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15395 | exec 6>&1 |
| 15396 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15397 | # 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] | 15398 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15399 | # values after options handling. |
| 15400 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15401 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15402 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15403 | |
| 15404 | CONFIG_FILES = $CONFIG_FILES |
| 15405 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15406 | CONFIG_LINKS = $CONFIG_LINKS |
| 15407 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15408 | $ $0 $@ |
| 15409 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15410 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15411 | " |
| 15412 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15413 | _ACEOF |
| 15414 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15415 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15416 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15417 | config_files="$ac_config_files" |
| 15418 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15420 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15421 | |
| 15422 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15423 | ac_cs_usage="\ |
| 15424 | \`$as_me' instantiates files from templates according to the |
| 15425 | current configuration. |
| 15426 | |
| 15427 | Usage: $0 [OPTIONS] [FILE]... |
| 15428 | |
| 15429 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15430 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15431 | -q, --quiet do not print progress messages |
| 15432 | -d, --debug don't remove temporary files |
| 15433 | --recheck update $as_me by reconfiguring in the same conditions |
| 15434 | --file=FILE[:TEMPLATE] |
| 15435 | instantiate the configuration file FILE |
| 15436 | |
| 15437 | Configuration files: |
| 15438 | $config_files |
| 15439 | |
| 15440 | Configuration commands: |
| 15441 | $config_commands |
| 15442 | |
| 15443 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15444 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15445 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15446 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15447 | ac_cs_version="\\ |
| 15448 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15449 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15450 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15452 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15453 | This config.status script is free software; the Free Software Foundation |
| 15454 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15455 | |
| 15456 | ac_pwd='$ac_pwd' |
| 15457 | srcdir='$srcdir' |
| 15458 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15459 | _ACEOF |
| 15460 | |
| 15461 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15462 | # If no file are specified by the user, then we need to provide default |
| 15463 | # value. By we need to know if files were specified by the user. |
| 15464 | ac_need_defaults=: |
| 15465 | while test $# != 0 |
| 15466 | do |
| 15467 | case $1 in |
| 15468 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15469 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15470 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15471 | ac_shift=: |
| 15472 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15473 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15474 | ac_option=$1 |
| 15475 | ac_optarg=$2 |
| 15476 | ac_shift=shift |
| 15477 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15478 | esac |
| 15479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15480 | case $ac_option in |
| 15481 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15482 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15483 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15484 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15485 | echo "$ac_cs_version"; exit ;; |
| 15486 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15487 | debug=: ;; |
| 15488 | --file | --fil | --fi | --f ) |
| 15489 | $ac_shift |
| 15490 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15491 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15492 | --he | --h | --help | --hel | -h ) |
| 15493 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15494 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15495 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15496 | ac_cs_silent=: ;; |
| 15497 | |
| 15498 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15499 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15500 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15501 | { (exit 1); exit 1; }; } ;; |
| 15502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15503 | *) ac_config_targets="$ac_config_targets $1" |
| 15504 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15505 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15506 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15507 | shift |
| 15508 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15510 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15511 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15512 | if $ac_cs_silent; then |
| 15513 | exec 6>/dev/null |
| 15514 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15515 | fi |
| 15516 | |
| 15517 | _ACEOF |
| 15518 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15519 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15520 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15521 | CONFIG_SHELL=$SHELL |
| 15522 | export CONFIG_SHELL |
| 15523 | 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] | 15524 | fi |
| 15525 | |
| 15526 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15527 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15528 | exec 5>>config.log |
| 15529 | { |
| 15530 | echo |
| 15531 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15532 | ## Running $as_me. ## |
| 15533 | _ASBOX |
| 15534 | echo "$ac_log" |
| 15535 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15537 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15538 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15539 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15540 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15541 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15542 | # 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] | 15543 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15544 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15545 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15546 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15547 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15548 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15549 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15550 | _ACEOF |
| 15551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15552 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15553 | |
| 15554 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15555 | for ac_config_target in $ac_config_targets |
| 15556 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15557 | case $ac_config_target in |
| 15558 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15559 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15560 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15561 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15562 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15563 | { (exit 1); exit 1; }; };; |
| 15564 | esac |
| 15565 | done |
| 15566 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15567 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15568 | # If the user did not use the arguments to specify the items to instantiate, |
| 15569 | # then the envvar interface is used. Set only those that are not. |
| 15570 | # We use the long form for the default assignment because of an extremely |
| 15571 | # bizarre bug on SunOS 4.1.3. |
| 15572 | if $ac_need_defaults; then |
| 15573 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15574 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15575 | fi |
| 15576 | |
| 15577 | # 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] | 15578 | # 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] | 15579 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15580 | # Hook for its removal unless debugging. |
| 15581 | # Note that there is a small window in which the directory will not be cleaned: |
| 15582 | # 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] | 15583 | $debug || |
| 15584 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15585 | tmp= |
| 15586 | trap 'exit_status=$? |
| 15587 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15588 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15589 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15590 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15591 | # Create a (secure) tmp directory for tmp files. |
| 15592 | |
| 15593 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15594 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15595 | test -n "$tmp" && test -d "$tmp" |
| 15596 | } || |
| 15597 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15598 | tmp=./conf$$-$RANDOM |
| 15599 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15600 | } || |
| 15601 | { |
| 15602 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15603 | { (exit 1); exit 1; } |
| 15604 | } |
| 15605 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15606 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15607 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15608 | # |
| 15609 | |
| 15610 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15611 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15612 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15613 | |
| 15614 | _ACEOF |
| 15615 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15616 | # Create sed commands to just substitute file output variables. |
| 15617 | |
| 15618 | # Remaining file output variables are in a fragment that also has non-file |
| 15619 | # output varibles. |
| 15620 | |
| 15621 | |
| 15622 | |
| 15623 | ac_delim='%!_!# ' |
| 15624 | for ac_last_try in false false false false false :; do |
| 15625 | cat >conf$$subs.sed <<_ACEOF |
| 15626 | SHELL!$SHELL$ac_delim |
| 15627 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15628 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15629 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15630 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15631 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15632 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15633 | exec_prefix!$exec_prefix$ac_delim |
| 15634 | prefix!$prefix$ac_delim |
| 15635 | program_transform_name!$program_transform_name$ac_delim |
| 15636 | bindir!$bindir$ac_delim |
| 15637 | sbindir!$sbindir$ac_delim |
| 15638 | libexecdir!$libexecdir$ac_delim |
| 15639 | datarootdir!$datarootdir$ac_delim |
| 15640 | datadir!$datadir$ac_delim |
| 15641 | sysconfdir!$sysconfdir$ac_delim |
| 15642 | sharedstatedir!$sharedstatedir$ac_delim |
| 15643 | localstatedir!$localstatedir$ac_delim |
| 15644 | includedir!$includedir$ac_delim |
| 15645 | oldincludedir!$oldincludedir$ac_delim |
| 15646 | docdir!$docdir$ac_delim |
| 15647 | infodir!$infodir$ac_delim |
| 15648 | htmldir!$htmldir$ac_delim |
| 15649 | dvidir!$dvidir$ac_delim |
| 15650 | pdfdir!$pdfdir$ac_delim |
| 15651 | psdir!$psdir$ac_delim |
| 15652 | libdir!$libdir$ac_delim |
| 15653 | localedir!$localedir$ac_delim |
| 15654 | mandir!$mandir$ac_delim |
| 15655 | DEFS!$DEFS$ac_delim |
| 15656 | ECHO_C!$ECHO_C$ac_delim |
| 15657 | ECHO_N!$ECHO_N$ac_delim |
| 15658 | ECHO_T!$ECHO_T$ac_delim |
| 15659 | LIBS!$LIBS$ac_delim |
| 15660 | build_alias!$build_alias$ac_delim |
| 15661 | host_alias!$host_alias$ac_delim |
| 15662 | target_alias!$target_alias$ac_delim |
| 15663 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15664 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15665 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15666 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15667 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15668 | build!$build$ac_delim |
| 15669 | build_cpu!$build_cpu$ac_delim |
| 15670 | build_vendor!$build_vendor$ac_delim |
| 15671 | build_os!$build_os$ac_delim |
| 15672 | host!$host$ac_delim |
| 15673 | host_cpu!$host_cpu$ac_delim |
| 15674 | host_vendor!$host_vendor$ac_delim |
| 15675 | host_os!$host_os$ac_delim |
| 15676 | CC!$CC$ac_delim |
| 15677 | CFLAGS!$CFLAGS$ac_delim |
| 15678 | LDFLAGS!$LDFLAGS$ac_delim |
| 15679 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15680 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15681 | EXEEXT!$EXEEXT$ac_delim |
| 15682 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15683 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15684 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15685 | GREP!$GREP$ac_delim |
| 15686 | EGREP!$EGREP$ac_delim |
| 15687 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 15688 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 15689 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 15690 | ELF_CMT!$ELF_CMT$ac_delim |
| 15691 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 15692 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 15693 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 15694 | LIB_EXT!$LIB_EXT$ac_delim |
| 15695 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 15696 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 15697 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 15698 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 15699 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 15700 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 15701 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15702 | _ACEOF |
| 15703 | |
| 15704 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 15705 | break |
| 15706 | elif $ac_last_try; then |
| 15707 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15708 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15709 | { (exit 1); exit 1; }; } |
| 15710 | else |
| 15711 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15712 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15713 | done |
| 15714 | |
| 15715 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15716 | if test -n "$ac_eof"; then |
| 15717 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15718 | ac_eof=`expr $ac_eof + 1` |
| 15719 | fi |
| 15720 | |
| 15721 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15722 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 15723 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15724 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 15725 | r $MCONFIG |
| 15726 | d |
| 15727 | } |
| 15728 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 15729 | r $MAKEFILE_ELF |
| 15730 | d |
| 15731 | } |
| 15732 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 15733 | r $MAKEFILE_BSDLIB |
| 15734 | d |
| 15735 | } |
| 15736 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 15737 | r $MAKEFILE_PROFILE |
| 15738 | d |
| 15739 | } |
| 15740 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 15741 | r $MAKEFILE_CHECKER |
| 15742 | d |
| 15743 | } |
| 15744 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 15745 | r $MAKEFILE_LIBRARY |
| 15746 | d |
| 15747 | } |
| 15748 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 15749 | r $ASM_TYPES_HEADER |
| 15750 | d |
| 15751 | } |
| 15752 | _ACEOF |
| 15753 | sed ' |
| 15754 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15755 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15756 | :n |
| 15757 | t n |
| 15758 | s/'"$ac_delim"'$/,g/; t |
| 15759 | s/$/\\/; p |
| 15760 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15761 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15762 | rm -f conf$$subs.sed |
| 15763 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15764 | CEOF$ac_eof |
| 15765 | _ACEOF |
| 15766 | |
| 15767 | |
| 15768 | ac_delim='%!_!# ' |
| 15769 | for ac_last_try in false false false false false :; do |
| 15770 | cat >conf$$subs.sed <<_ACEOF |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15771 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15772 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 15773 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 15774 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
| 15775 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 15776 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 15777 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 15778 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
| 15779 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 15780 | PACKAGE!$PACKAGE$ac_delim |
| 15781 | VERSION!$VERSION$ac_delim |
| 15782 | SET_MAKE!$SET_MAKE$ac_delim |
| 15783 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 15784 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 15785 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 15786 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 15787 | USE_NLS!$USE_NLS$ac_delim |
| 15788 | MSGFMT!$MSGFMT$ac_delim |
| 15789 | GMSGFMT!$GMSGFMT$ac_delim |
| 15790 | XGETTEXT!$XGETTEXT$ac_delim |
| 15791 | MSGMERGE!$MSGMERGE$ac_delim |
| 15792 | RANLIB!$RANLIB$ac_delim |
| 15793 | ALLOCA!$ALLOCA$ac_delim |
| 15794 | GLIBC21!$GLIBC21$ac_delim |
| 15795 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 15796 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 15797 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 15798 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 15799 | LIBICONV!$LIBICONV$ac_delim |
| 15800 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 15801 | INTLBISON!$INTLBISON$ac_delim |
| 15802 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 15803 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 15804 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 15805 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 15806 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 15807 | GENCAT!$GENCAT$ac_delim |
| 15808 | INTLOBJS!$INTLOBJS$ac_delim |
| 15809 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 15810 | INTLLIBS!$INTLLIBS$ac_delim |
| 15811 | LIBINTL!$LIBINTL$ac_delim |
| 15812 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 15813 | POSUB!$POSUB$ac_delim |
| 15814 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 15815 | LN!$LN$ac_delim |
| 15816 | LN_S!$LN_S$ac_delim |
| 15817 | MV!$MV$ac_delim |
| 15818 | CP!$CP$ac_delim |
| 15819 | RM!$RM$ac_delim |
| 15820 | CHMOD!$CHMOD$ac_delim |
| 15821 | AWK!$AWK$ac_delim |
| 15822 | SED!$SED$ac_delim |
| 15823 | PERL!$PERL$ac_delim |
| 15824 | LDCONFIG!$LDCONFIG$ac_delim |
| 15825 | AR!$AR$ac_delim |
| 15826 | STRIP!$STRIP$ac_delim |
| 15827 | BUILD_CC!$BUILD_CC$ac_delim |
| 15828 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 15829 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 15830 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 15831 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 15832 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 15833 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 15834 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 15835 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 15836 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 15837 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 15838 | root_prefix!$root_prefix$ac_delim |
| 15839 | root_bindir!$root_bindir$ac_delim |
| 15840 | root_sbindir!$root_sbindir$ac_delim |
| 15841 | root_libdir!$root_libdir$ac_delim |
| 15842 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 15843 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 15844 | SS_DIR!$SS_DIR$ac_delim |
| 15845 | ET_DIR!$ET_DIR$ac_delim |
| 15846 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 15847 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 15848 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 15849 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 15850 | LIBOBJS!$LIBOBJS$ac_delim |
| 15851 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 15852 | _ACEOF |
| 15853 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15854 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15855 | break |
| 15856 | elif $ac_last_try; then |
| 15857 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15858 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15859 | { (exit 1); exit 1; }; } |
| 15860 | else |
| 15861 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15862 | fi |
| 15863 | done |
| 15864 | |
| 15865 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15866 | if test -n "$ac_eof"; then |
| 15867 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15868 | ac_eof=`expr $ac_eof + 1` |
| 15869 | fi |
| 15870 | |
| 15871 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15872 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 15873 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 15874 | _ACEOF |
| 15875 | sed ' |
| 15876 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15877 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15878 | :n |
| 15879 | t n |
| 15880 | s/'"$ac_delim"'$/,g/; t |
| 15881 | s/$/\\/; p |
| 15882 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15883 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15884 | rm -f conf$$subs.sed |
| 15885 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15886 | :end |
| 15887 | s/|#_!!_#|//g |
| 15888 | CEOF$ac_eof |
| 15889 | _ACEOF |
| 15890 | |
| 15891 | |
| 15892 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15893 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15894 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15895 | # (actually we leave an empty line to preserve line numbers). |
| 15896 | if test "x$srcdir" = x.; then |
| 15897 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15898 | s/:*\$(srcdir):*/:/ |
| 15899 | s/:*\${srcdir}:*/:/ |
| 15900 | s/:*@srcdir@:*/:/ |
| 15901 | s/^\([^=]*=[ ]*\):*/\1/ |
| 15902 | s/:*$// |
| 15903 | s/^[^=]*=[ ]*$// |
| 15904 | }' |
| 15905 | fi |
| 15906 | |
| 15907 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15908 | fi # test -n "$CONFIG_FILES" |
| 15909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15910 | |
| 15911 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 15912 | do |
| 15913 | case $ac_tag in |
| 15914 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 15915 | esac |
| 15916 | case $ac_mode$ac_tag in |
| 15917 | :[FHL]*:*);; |
| 15918 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 15919 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 15920 | { (exit 1); exit 1; }; };; |
| 15921 | :[FH]-) ac_tag=-:-;; |
| 15922 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15923 | esac |
| 15924 | ac_save_IFS=$IFS |
| 15925 | IFS=: |
| 15926 | set x $ac_tag |
| 15927 | IFS=$ac_save_IFS |
| 15928 | shift |
| 15929 | ac_file=$1 |
| 15930 | shift |
| 15931 | |
| 15932 | case $ac_mode in |
| 15933 | :L) ac_source=$1;; |
| 15934 | :[FH]) |
| 15935 | ac_file_inputs= |
| 15936 | for ac_f |
| 15937 | do |
| 15938 | case $ac_f in |
| 15939 | -) ac_f="$tmp/stdin";; |
| 15940 | *) # Look for the file first in the build tree, then in the source tree |
| 15941 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15942 | # because $ac_f cannot contain `:'. |
| 15943 | test -f "$ac_f" || |
| 15944 | case $ac_f in |
| 15945 | [\\/$]*) false;; |
| 15946 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15947 | esac || |
| 15948 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 15949 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 15950 | { (exit 1); exit 1; }; };; |
| 15951 | esac |
| 15952 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 15953 | done |
| 15954 | |
| 15955 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15956 | # use $as_me), people would be surprised to read: |
| 15957 | # /* config.h. Generated by config.status. */ |
| 15958 | configure_input="Generated from "`IFS=: |
| 15959 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 15960 | if test x"$ac_file" != x-; then |
| 15961 | configure_input="$ac_file. $configure_input" |
| 15962 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 15963 | echo "$as_me: creating $ac_file" >&6;} |
| 15964 | fi |
| 15965 | |
| 15966 | case $ac_tag in |
| 15967 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 15968 | esac |
| 15969 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15970 | esac |
| 15971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15972 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15973 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15974 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15975 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15976 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15977 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15978 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15979 | s//\1/ |
| 15980 | q |
| 15981 | } |
| 15982 | /^X\(\/\/\)[^/].*/{ |
| 15983 | s//\1/ |
| 15984 | q |
| 15985 | } |
| 15986 | /^X\(\/\/\)$/{ |
| 15987 | s//\1/ |
| 15988 | q |
| 15989 | } |
| 15990 | /^X\(\/\).*/{ |
| 15991 | s//\1/ |
| 15992 | q |
| 15993 | } |
| 15994 | s/.*/./; q'` |
| 15995 | { as_dir="$ac_dir" |
| 15996 | case $as_dir in #( |
| 15997 | -*) as_dir=./$as_dir;; |
| 15998 | esac |
| 15999 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16000 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16001 | while :; do |
| 16002 | case $as_dir in #( |
| 16003 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16004 | *) as_qdir=$as_dir;; |
| 16005 | esac |
| 16006 | as_dirs="'$as_qdir' $as_dirs" |
| 16007 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16008 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16009 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16010 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16011 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16012 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16013 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16014 | s//\1/ |
| 16015 | q |
| 16016 | } |
| 16017 | /^X\(\/\/\)[^/].*/{ |
| 16018 | s//\1/ |
| 16019 | q |
| 16020 | } |
| 16021 | /^X\(\/\/\)$/{ |
| 16022 | s//\1/ |
| 16023 | q |
| 16024 | } |
| 16025 | /^X\(\/\).*/{ |
| 16026 | s//\1/ |
| 16027 | q |
| 16028 | } |
| 16029 | s/.*/./; q'` |
| 16030 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16031 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16032 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16033 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16034 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16035 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16036 | ac_builddir=. |
| 16037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16038 | case "$ac_dir" in |
| 16039 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16040 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16041 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16042 | # A ".." for each directory in $ac_dir_suffix. |
| 16043 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16044 | case $ac_top_builddir_sub in |
| 16045 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16046 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16047 | esac ;; |
| 16048 | esac |
| 16049 | ac_abs_top_builddir=$ac_pwd |
| 16050 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16051 | # for backward compatibility: |
| 16052 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16053 | |
| 16054 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16055 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16056 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16057 | ac_top_srcdir=$ac_top_builddir_sub |
| 16058 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16059 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16060 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16061 | ac_top_srcdir=$srcdir |
| 16062 | ac_abs_top_srcdir=$srcdir ;; |
| 16063 | *) # Relative name. |
| 16064 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16065 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16066 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16067 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16068 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16069 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16071 | case $ac_mode in |
| 16072 | :F) |
| 16073 | # |
| 16074 | # CONFIG_FILE |
| 16075 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16076 | |
| 16077 | case $INSTALL in |
| 16078 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16079 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16080 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16081 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16082 | |
| 16083 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16084 | # If the template does not know about datarootdir, expand it. |
| 16085 | # FIXME: This hack should be removed a few years after 2.60. |
| 16086 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16087 | |
| 16088 | case `sed -n '/datarootdir/ { |
| 16089 | p |
| 16090 | q |
| 16091 | } |
| 16092 | /@datadir@/p |
| 16093 | /@docdir@/p |
| 16094 | /@infodir@/p |
| 16095 | /@localedir@/p |
| 16096 | /@mandir@/p |
| 16097 | ' $ac_file_inputs` in |
| 16098 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16099 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16100 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16101 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16102 | _ACEOF |
| 16103 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16104 | ac_datarootdir_hack=' |
| 16105 | s&@datadir@&$datadir&g |
| 16106 | s&@docdir@&$docdir&g |
| 16107 | s&@infodir@&$infodir&g |
| 16108 | s&@localedir@&$localedir&g |
| 16109 | s&@mandir@&$mandir&g |
| 16110 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16111 | esac |
| 16112 | _ACEOF |
| 16113 | |
| 16114 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16115 | # Shell code in configure.ac might set extrasub. |
| 16116 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16117 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16118 | sed "$ac_vpsub |
| 16119 | $extrasub |
| 16120 | _ACEOF |
| 16121 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16122 | :t |
| 16123 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16124 | s&@configure_input@&$configure_input&;t t |
| 16125 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16126 | s&@srcdir@&$ac_srcdir&;t t |
| 16127 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16128 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16129 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16130 | s&@builddir@&$ac_builddir&;t t |
| 16131 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16132 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16133 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16134 | $ac_datarootdir_hack |
| 16135 | " $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] | 16136 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16137 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16138 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16139 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16140 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16141 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16142 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16143 | 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] | 16144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16145 | rm -f "$tmp/stdin" |
| 16146 | case $ac_file in |
| 16147 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16148 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16149 | esac |
| 16150 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16151 | |
| 16152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16153 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16154 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16155 | ;; |
| 16156 | esac |
| 16157 | |
| 16158 | |
| 16159 | case $ac_file$ac_mode in |
| 16160 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16161 | for ac_file in $CONFIG_FILES; do |
| 16162 | # Support "outfile[:infile[:infile...]]" |
| 16163 | case "$ac_file" in |
| 16164 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16165 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16166 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16167 | case "$ac_file" in */Makefile.in) |
| 16168 | # Adjust a relative srcdir. |
| 16169 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16170 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16171 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16172 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16173 | # In autoconf-2.50 it is called $srcdir. |
| 16174 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16175 | case "$ac_given_srcdir" in |
| 16176 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16177 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16178 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16179 | esac |
| 16180 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16181 | rm -f "$ac_dir/POTFILES" |
| 16182 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16183 | 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] | 16184 | POMAKEFILEDEPS="POTFILES.in" |
| 16185 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16186 | # on $ac_dir but don't depend on user-specified configuration |
| 16187 | # parameters. |
| 16188 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16189 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16190 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16191 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16192 | fi |
| 16193 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16194 | # Hide the ALL_LINGUAS assigment from automake. |
| 16195 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16196 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16197 | else |
| 16198 | # The set of available languages was given in configure.in. |
| 16199 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16200 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16201 | # Compute POFILES |
| 16202 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16203 | # Compute UPDATEPOFILES |
| 16204 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16205 | # Compute DUMMYPOFILES |
| 16206 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16207 | # Compute GMOFILES |
| 16208 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16209 | case "$ac_given_srcdir" in |
| 16210 | .) srcdirpre= ;; |
| 16211 | *) srcdirpre='$(srcdir)/' ;; |
| 16212 | esac |
| 16213 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16214 | UPDATEPOFILES= |
| 16215 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16216 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16217 | for lang in $ALL_LINGUAS; do |
| 16218 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16219 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16220 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16221 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16222 | done |
| 16223 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16224 | # environment variable. |
| 16225 | INST_LINGUAS= |
| 16226 | if test -n "$ALL_LINGUAS"; then |
| 16227 | for presentlang in $ALL_LINGUAS; do |
| 16228 | useit=no |
| 16229 | if test "%UNSET%" != "$LINGUAS"; then |
| 16230 | desiredlanguages="$LINGUAS" |
| 16231 | else |
| 16232 | desiredlanguages="$ALL_LINGUAS" |
| 16233 | fi |
| 16234 | for desiredlang in $desiredlanguages; do |
| 16235 | # Use the presentlang catalog if desiredlang is |
| 16236 | # a. equal to presentlang, or |
| 16237 | # b. a variant of presentlang (because in this case, |
| 16238 | # presentlang can be used as a fallback for messages |
| 16239 | # which are not translated in the desiredlang catalog). |
| 16240 | case "$desiredlang" in |
| 16241 | "$presentlang"*) useit=yes;; |
| 16242 | esac |
| 16243 | done |
| 16244 | if test $useit = yes; then |
| 16245 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16246 | fi |
| 16247 | done |
| 16248 | fi |
| 16249 | CATALOGS= |
| 16250 | if test -n "$INST_LINGUAS"; then |
| 16251 | for lang in $INST_LINGUAS; do |
| 16252 | CATALOGS="$CATALOGS $lang.gmo" |
| 16253 | done |
| 16254 | fi |
| 16255 | 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] | 16256 | 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] | 16257 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16258 | if test -f "$f"; then |
| 16259 | case "$f" in |
| 16260 | *.orig | *.bak | *~) ;; |
| 16261 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16262 | esac |
| 16263 | fi |
| 16264 | done |
| 16265 | fi |
| 16266 | ;; |
| 16267 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16268 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16270 | esac |
| 16271 | done # for ac_tag |
| 16272 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16273 | |
| 16274 | { (exit 0); exit 0; } |
| 16275 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16276 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16277 | ac_clean_files=$ac_clean_files_save |
| 16278 | |
| 16279 | |
| 16280 | # configure is writing to config.log, and then calls config.status. |
| 16281 | # config.status does its own redirection, appending to config.log. |
| 16282 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16283 | # by configure, so config.status won't be able to write to it; its |
| 16284 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16285 | # effectively closing config.log, so it can be properly (re)opened and |
| 16286 | # appended to by config.status. When coming back to configure, we |
| 16287 | # need to make the FD available again. |
| 16288 | if test "$no_create" != yes; then |
| 16289 | ac_cs_success=: |
| 16290 | ac_config_status_args= |
| 16291 | test "$silent" = yes && |
| 16292 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16293 | exec 5>/dev/null |
| 16294 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16295 | exec 5>>config.log |
| 16296 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16297 | # would make configure fail if this is the last instruction. |
| 16298 | $ac_cs_success || { (exit 1); exit 1; } |
| 16299 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16300 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16301 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16302 | |