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 |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 696 | PKG_CONFIG |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 697 | DEVMAPPER_REQ |
| 698 | DEVMAPPER_PC_LIBS |
| 699 | DEVMAPPER_LIBS |
| 700 | STATIC_DEVMAPPER_LIBS |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 701 | STATIC_BLKID_DEVMAPPER_LIBS |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 702 | UUIDD_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 703 | GETTEXT_PACKAGE |
| 704 | PACKAGE |
| 705 | VERSION |
| 706 | SET_MAKE |
| 707 | INSTALL_PROGRAM |
| 708 | INSTALL_SCRIPT |
| 709 | INSTALL_DATA |
| 710 | MKINSTALLDIRS |
| 711 | USE_NLS |
| 712 | MSGFMT |
| 713 | GMSGFMT |
| 714 | XGETTEXT |
| 715 | MSGMERGE |
| 716 | RANLIB |
| 717 | ALLOCA |
| 718 | GLIBC21 |
| 719 | HAVE_POSIX_PRINTF |
| 720 | HAVE_ASPRINTF |
| 721 | HAVE_SNPRINTF |
| 722 | HAVE_WPRINTF |
| 723 | LIBICONV |
| 724 | LTLIBICONV |
| 725 | INTLBISON |
| 726 | BUILD_INCLUDED_LIBINTL |
| 727 | USE_INCLUDED_LIBINTL |
| 728 | CATOBJEXT |
| 729 | DATADIRNAME |
| 730 | INSTOBJEXT |
| 731 | GENCAT |
| 732 | INTLOBJS |
| 733 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 734 | INTLLIBS |
| 735 | LIBINTL |
| 736 | LTLIBINTL |
| 737 | POSUB |
| 738 | BINARY_TYPE |
| 739 | LN |
| 740 | LN_S |
| 741 | MV |
| 742 | CP |
| 743 | RM |
| 744 | CHMOD |
| 745 | AWK |
| 746 | SED |
| 747 | PERL |
| 748 | LDCONFIG |
| 749 | AR |
| 750 | STRIP |
| 751 | BUILD_CC |
| 752 | SIZEOF_SHORT |
| 753 | SIZEOF_INT |
| 754 | SIZEOF_LONG |
| 755 | SIZEOF_LONG_LONG |
| 756 | SOCKET_LIB |
| 757 | DLOPEN_LIB |
| 758 | UNI_DIFF_OPTS |
| 759 | LINUX_CMT |
| 760 | CYGWIN_CMT |
| 761 | UNIX_CMT |
| 762 | root_prefix |
| 763 | root_bindir |
| 764 | root_sbindir |
| 765 | root_libdir |
| 766 | root_sysconfdir |
| 767 | LDFLAG_STATIC |
| 768 | SS_DIR |
| 769 | ET_DIR |
| 770 | DO_TEST_SUITE |
| 771 | INTL_FLAGS |
| 772 | BUILD_CFLAGS |
| 773 | BUILD_LDFLAGS |
| 774 | LIBOBJS |
| 775 | LTLIBOBJS' |
| 776 | ac_subst_files='MCONFIG |
| 777 | MAKEFILE_ELF |
| 778 | MAKEFILE_BSDLIB |
| 779 | MAKEFILE_PROFILE |
| 780 | MAKEFILE_CHECKER |
| 781 | MAKEFILE_LIBRARY |
| 782 | ASM_TYPES_HEADER' |
| 783 | ac_precious_vars='build_alias |
| 784 | host_alias |
| 785 | target_alias |
| 786 | CC |
| 787 | CFLAGS |
| 788 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 789 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 790 | CPPFLAGS |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 791 | CPP |
| 792 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 793 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 794 | |
| 795 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 796 | ac_init_help= |
| 797 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 798 | # The variables have the same names as the options, with |
| 799 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 800 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 801 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 802 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 803 | no_recursion= |
| 804 | prefix=NONE |
| 805 | program_prefix=NONE |
| 806 | program_suffix=NONE |
| 807 | program_transform_name=s,x,x, |
| 808 | silent= |
| 809 | site= |
| 810 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 811 | verbose= |
| 812 | x_includes=NONE |
| 813 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 814 | |
| 815 | # Installation directory options. |
| 816 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 817 | # and all the variables that are supposed to be based on exec_prefix |
| 818 | # by default will actually change. |
| 819 | # 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] | 820 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 821 | bindir='${exec_prefix}/bin' |
| 822 | sbindir='${exec_prefix}/sbin' |
| 823 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 824 | datarootdir='${prefix}/share' |
| 825 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 826 | sysconfdir='${prefix}/etc' |
| 827 | sharedstatedir='${prefix}/com' |
| 828 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 829 | includedir='${prefix}/include' |
| 830 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 831 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 832 | infodir='${datarootdir}/info' |
| 833 | htmldir='${docdir}' |
| 834 | dvidir='${docdir}' |
| 835 | pdfdir='${docdir}' |
| 836 | psdir='${docdir}' |
| 837 | libdir='${exec_prefix}/lib' |
| 838 | localedir='${datarootdir}/locale' |
| 839 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 840 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 842 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 843 | for ac_option |
| 844 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 845 | # If the previous option needs an argument, assign it. |
| 846 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 847 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 848 | ac_prev= |
| 849 | continue |
| 850 | fi |
| 851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 852 | case $ac_option in |
| 853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 854 | *) ac_optarg=yes ;; |
| 855 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 856 | |
| 857 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 858 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 859 | case $ac_dashdash$ac_option in |
| 860 | --) |
| 861 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 862 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 864 | ac_prev=bindir ;; |
| 865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 866 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 867 | |
| 868 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 869 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 871 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 872 | |
| 873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 875 | ac_prev=cache_file ;; |
| 876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 878 | cache_file=$ac_optarg ;; |
| 879 | |
| 880 | --config-cache | -C) |
| 881 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 883 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 884 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 886 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 889 | | --dataroo | --dataro | --datar) |
| 890 | ac_prev=datarootdir ;; |
| 891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 893 | datarootdir=$ac_optarg ;; |
| 894 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 896 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 897 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 898 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 899 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 900 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 901 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 902 | eval enable_$ac_feature=no ;; |
| 903 | |
| 904 | -docdir | --docdir | --docdi | --doc | --do) |
| 905 | ac_prev=docdir ;; |
| 906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 907 | docdir=$ac_optarg ;; |
| 908 | |
| 909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 910 | ac_prev=dvidir ;; |
| 911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 912 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 913 | |
| 914 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 915 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 917 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 918 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 919 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 920 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 921 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | |
| 923 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 924 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 925 | | --exec | --exe | --ex) |
| 926 | ac_prev=exec_prefix ;; |
| 927 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 928 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 929 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 930 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 931 | |
| 932 | -gas | --gas | --ga | --g) |
| 933 | # Obsolete; use --with-gas. |
| 934 | with_gas=yes ;; |
| 935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 936 | -help | --help | --hel | --he | -h) |
| 937 | ac_init_help=long ;; |
| 938 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 939 | ac_init_help=recursive ;; |
| 940 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 941 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | |
| 943 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 944 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 945 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 946 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 947 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 948 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 949 | ac_prev=htmldir ;; |
| 950 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 951 | | --ht=*) |
| 952 | htmldir=$ac_optarg ;; |
| 953 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 954 | -includedir | --includedir | --includedi | --included | --include \ |
| 955 | | --includ | --inclu | --incl | --inc) |
| 956 | ac_prev=includedir ;; |
| 957 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 958 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 959 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 960 | |
| 961 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 962 | ac_prev=infodir ;; |
| 963 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 964 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 965 | |
| 966 | -libdir | --libdir | --libdi | --libd) |
| 967 | ac_prev=libdir ;; |
| 968 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 969 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 970 | |
| 971 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 972 | | --libexe | --libex | --libe) |
| 973 | ac_prev=libexecdir ;; |
| 974 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 975 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 976 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 977 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 978 | -localedir | --localedir | --localedi | --localed | --locale) |
| 979 | ac_prev=localedir ;; |
| 980 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 981 | localedir=$ac_optarg ;; |
| 982 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 984 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 985 | ac_prev=localstatedir ;; |
| 986 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 987 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 988 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 989 | |
| 990 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 991 | ac_prev=mandir ;; |
| 992 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 993 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | -nfp | --nfp | --nf) |
| 996 | # Obsolete; use --without-fp. |
| 997 | with_fp=no ;; |
| 998 | |
| 999 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1000 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1001 | no_create=yes ;; |
| 1002 | |
| 1003 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1004 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1005 | no_recursion=yes ;; |
| 1006 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1007 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1008 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1009 | | --oldin | --oldi | --old | --ol | --o) |
| 1010 | ac_prev=oldincludedir ;; |
| 1011 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1012 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1013 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1014 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1015 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1016 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1017 | ac_prev=prefix ;; |
| 1018 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1019 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1022 | | --program-pre | --program-pr | --program-p) |
| 1023 | ac_prev=program_prefix ;; |
| 1024 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1025 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1026 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1027 | |
| 1028 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1029 | | --program-suf | --program-su | --program-s) |
| 1030 | ac_prev=program_suffix ;; |
| 1031 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1032 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1033 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1034 | |
| 1035 | -program-transform-name | --program-transform-name \ |
| 1036 | | --program-transform-nam | --program-transform-na \ |
| 1037 | | --program-transform-n | --program-transform- \ |
| 1038 | | --program-transform | --program-transfor \ |
| 1039 | | --program-transfo | --program-transf \ |
| 1040 | | --program-trans | --program-tran \ |
| 1041 | | --progr-tra | --program-tr | --program-t) |
| 1042 | ac_prev=program_transform_name ;; |
| 1043 | -program-transform-name=* | --program-transform-name=* \ |
| 1044 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1045 | | --program-transform-n=* | --program-transform-=* \ |
| 1046 | | --program-transform=* | --program-transfor=* \ |
| 1047 | | --program-transfo=* | --program-transf=* \ |
| 1048 | | --program-trans=* | --program-tran=* \ |
| 1049 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1050 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1052 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1053 | ac_prev=pdfdir ;; |
| 1054 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1055 | pdfdir=$ac_optarg ;; |
| 1056 | |
| 1057 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1058 | ac_prev=psdir ;; |
| 1059 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1060 | psdir=$ac_optarg ;; |
| 1061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1063 | | -silent | --silent | --silen | --sile | --sil) |
| 1064 | silent=yes ;; |
| 1065 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1066 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1067 | ac_prev=sbindir ;; |
| 1068 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1069 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1070 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1071 | |
| 1072 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1073 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1074 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1075 | | --sha | --sh) |
| 1076 | ac_prev=sharedstatedir ;; |
| 1077 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1078 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1079 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1080 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1081 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1082 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1083 | -site | --site | --sit) |
| 1084 | ac_prev=site ;; |
| 1085 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1086 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1087 | |
| 1088 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1089 | ac_prev=srcdir ;; |
| 1090 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1092 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1093 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1094 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1095 | ac_prev=sysconfdir ;; |
| 1096 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1097 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1099 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1100 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1101 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1102 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1103 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1104 | |
| 1105 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1106 | verbose=yes ;; |
| 1107 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | -version | --version | --versio | --versi | --vers | -V) |
| 1109 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | |
| 1111 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1112 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1113 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1114 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1115 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1116 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1117 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1118 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1119 | |
| 1120 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1122 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1123 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1124 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1125 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1126 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1127 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | |
| 1129 | --x) |
| 1130 | # Obsolete; use --with-x. |
| 1131 | with_x=yes ;; |
| 1132 | |
| 1133 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1134 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1135 | ac_prev=x_includes ;; |
| 1136 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1137 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1138 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1139 | |
| 1140 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1141 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1142 | ac_prev=x_libraries ;; |
| 1143 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1144 | | --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] | 1145 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1146 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1148 | Try \`$0 --help' for more information." >&2 |
| 1149 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1150 | ;; |
| 1151 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | *=*) |
| 1153 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1154 | # Reject names that are not valid shell variable names. |
| 1155 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1156 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1157 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1158 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | export $ac_envvar ;; |
| 1160 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1161 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | # FIXME: should be removed in autoconf 3.0. |
| 1163 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1164 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1165 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1166 | : ${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] | 1167 | ;; |
| 1168 | |
| 1169 | esac |
| 1170 | done |
| 1171 | |
| 1172 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1173 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1174 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1175 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1176 | fi |
| 1177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1178 | # Be sure to have absolute directory names. |
| 1179 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1180 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1181 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1182 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1183 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1184 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1185 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1186 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1187 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1188 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1189 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1190 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1191 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1193 | # There might be people who depend on the old broken behavior: `$host' |
| 1194 | # used to hold the argument of --host etc. |
| 1195 | # FIXME: To remove some day. |
| 1196 | build=$build_alias |
| 1197 | host=$host_alias |
| 1198 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1199 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1200 | # FIXME: To remove some day. |
| 1201 | if test "x$host_alias" != x; then |
| 1202 | if test "x$build_alias" = x; then |
| 1203 | cross_compiling=maybe |
| 1204 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1205 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1206 | elif test "x$build_alias" != "x$host_alias"; then |
| 1207 | cross_compiling=yes |
| 1208 | fi |
| 1209 | fi |
| 1210 | |
| 1211 | ac_tool_prefix= |
| 1212 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1213 | |
| 1214 | test "$silent" = yes && exec 6>/dev/null |
| 1215 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1216 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1217 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1218 | ac_ls_di=`ls -di .` && |
| 1219 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1220 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1221 | { (exit 1); exit 1; }; } |
| 1222 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1223 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1224 | { (exit 1); exit 1; }; } |
| 1225 | |
| 1226 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | # Find the source files, if location was not specified. |
| 1228 | if test -z "$srcdir"; then |
| 1229 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1230 | # Try the directory containing this script, then the parent directory. |
| 1231 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1233 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1234 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1235 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1236 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1238 | s//\1/ |
| 1239 | q |
| 1240 | } |
| 1241 | /^X\(\/\/\)[^/].*/{ |
| 1242 | s//\1/ |
| 1243 | q |
| 1244 | } |
| 1245 | /^X\(\/\/\)$/{ |
| 1246 | s//\1/ |
| 1247 | q |
| 1248 | } |
| 1249 | /^X\(\/\).*/{ |
| 1250 | s//\1/ |
| 1251 | q |
| 1252 | } |
| 1253 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1255 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1256 | srcdir=.. |
| 1257 | fi |
| 1258 | else |
| 1259 | ac_srcdir_defaulted=no |
| 1260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1262 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1263 | { 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] | 1264 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1267 | ac_abs_confdir=`( |
| 1268 | 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] | 1269 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1270 | pwd)` |
| 1271 | # When building in place, set srcdir=. |
| 1272 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1273 | srcdir=. |
| 1274 | fi |
| 1275 | # Remove unnecessary trailing slashes from srcdir. |
| 1276 | # Double slashes in file names in object file debugging info |
| 1277 | # mess up M-x gdb in Emacs. |
| 1278 | case $srcdir in |
| 1279 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1280 | esac |
| 1281 | for ac_var in $ac_precious_vars; do |
| 1282 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1284 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1285 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1286 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1288 | # |
| 1289 | # Report the --help message. |
| 1290 | # |
| 1291 | if test "$ac_init_help" = "long"; then |
| 1292 | # Omit some internal or obsolete options to make the list less imposing. |
| 1293 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1294 | cat <<_ACEOF |
| 1295 | \`configure' configures this package to adapt to many kinds of systems. |
| 1296 | |
| 1297 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1298 | |
| 1299 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1300 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1301 | |
| 1302 | Defaults for the options are specified in brackets. |
| 1303 | |
| 1304 | Configuration: |
| 1305 | -h, --help display this help and exit |
| 1306 | --help=short display options specific to this package |
| 1307 | --help=recursive display the short help of all the included packages |
| 1308 | -V, --version display version information and exit |
| 1309 | -q, --quiet, --silent do not print \`checking...' messages |
| 1310 | --cache-file=FILE cache test results in FILE [disabled] |
| 1311 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1312 | -n, --no-create do not create output files |
| 1313 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1314 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | Installation directories: |
| 1316 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1317 | [$ac_default_prefix] |
| 1318 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1319 | [PREFIX] |
| 1320 | |
| 1321 | By default, \`make install' will install all the files in |
| 1322 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1323 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1324 | for instance \`--prefix=\$HOME'. |
| 1325 | |
| 1326 | For better control, use the options below. |
| 1327 | |
| 1328 | Fine tuning of the installation directories: |
| 1329 | --bindir=DIR user executables [EPREFIX/bin] |
| 1330 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1331 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1332 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1333 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1334 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1335 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1336 | --includedir=DIR C header files [PREFIX/include] |
| 1337 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1338 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1339 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1340 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1341 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1342 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1343 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1344 | --htmldir=DIR html documentation [DOCDIR] |
| 1345 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1346 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1347 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1348 | _ACEOF |
| 1349 | |
| 1350 | cat <<\_ACEOF |
| 1351 | |
| 1352 | System types: |
| 1353 | --build=BUILD configure for building on BUILD [guessed] |
| 1354 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1355 | _ACEOF |
| 1356 | fi |
| 1357 | |
| 1358 | if test -n "$ac_init_help"; then |
| 1359 | |
| 1360 | cat <<\_ACEOF |
| 1361 | |
| 1362 | Optional Features: |
| 1363 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1364 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1365 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1366 | --enable-compression enable EXPERIMENTAL compression support |
| 1367 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1368 | --enable-elf-shlibs select ELF shared libraries |
| 1369 | --enable-bsd-shlibs select BSD shared libraries |
| 1370 | --enable-profile build profiling libraries |
| 1371 | --enable-checker build checker libraries |
| 1372 | --enable-jbd-debug enable journal debugging |
| 1373 | --enable-blkid-debug enable blkid debugging |
| 1374 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 1375 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 1376 | --disable-debugfs disable support of debugfs program |
| 1377 | --disable-imager disable support of e2image program |
| 1378 | --disable-resizer disable support of e2resize program |
| 1379 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 1380 | --enable-fsck build fsck wrapper program |
| 1381 | --enable-e2initrd-helper build e2initrd-helper program |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 1382 | --enable-blkid-devmapper build with device-mapper support |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1383 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1384 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1385 | --disable-nls do not use Native Language Support |
| 1386 | --disable-rpath do not hardcode runtime library paths |
| 1387 | |
| 1388 | Optional Packages: |
| 1389 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1390 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1391 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1392 | --with-cc=COMPILER select compiler to use |
| 1393 | --with-linker=LINKER select linker to use |
| 1394 | --with-ccopts=CCOPTS select compiler command line options |
| 1395 | --with-ldopts=LDOPTS select linker command line options |
| 1396 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1397 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1398 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1399 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1400 | --with-included-gettext use the GNU gettext library included here |
| 1401 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1402 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1403 | |
| 1404 | Some influential environment variables: |
| 1405 | CC C compiler command |
| 1406 | CFLAGS C compiler flags |
| 1407 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1408 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1409 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1410 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1411 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1412 | CPP C preprocessor |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 1413 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1414 | |
| 1415 | Use these variables to override the choices made by `configure' or to help |
| 1416 | it to find libraries and programs with nonstandard names/locations. |
| 1417 | |
| 1418 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1419 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1420 | fi |
| 1421 | |
| 1422 | if test "$ac_init_help" = "recursive"; then |
| 1423 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1424 | 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] | 1425 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1426 | ac_builddir=. |
| 1427 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1428 | case "$ac_dir" in |
| 1429 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1430 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1431 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1432 | # A ".." for each directory in $ac_dir_suffix. |
| 1433 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1434 | case $ac_top_builddir_sub in |
| 1435 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1436 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1437 | esac ;; |
| 1438 | esac |
| 1439 | ac_abs_top_builddir=$ac_pwd |
| 1440 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1441 | # for backward compatibility: |
| 1442 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1443 | |
| 1444 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1445 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1446 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1447 | ac_top_srcdir=$ac_top_builddir_sub |
| 1448 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1449 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1450 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1451 | ac_top_srcdir=$srcdir |
| 1452 | ac_abs_top_srcdir=$srcdir ;; |
| 1453 | *) # Relative name. |
| 1454 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1455 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1456 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1457 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1458 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1460 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1461 | # Check for guested configure. |
| 1462 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1463 | echo && |
| 1464 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1465 | elif test -f "$ac_srcdir/configure"; then |
| 1466 | echo && |
| 1467 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1468 | else |
| 1469 | 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] | 1470 | fi || ac_status=$? |
| 1471 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1472 | done |
| 1473 | fi |
| 1474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1475 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | if $ac_init_version; then |
| 1477 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1478 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1479 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1480 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1481 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1482 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | This configure script is free software; the Free Software Foundation |
| 1484 | gives unlimited permission to copy, distribute and modify it. |
| 1485 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1486 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1487 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1488 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1489 | This file contains any messages produced by compilers while |
| 1490 | running configure, to aid debugging if configure makes a mistake. |
| 1491 | |
| 1492 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1493 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1494 | |
| 1495 | $ $0 $@ |
| 1496 | |
| 1497 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1498 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1499 | { |
| 1500 | cat <<_ASUNAME |
| 1501 | ## --------- ## |
| 1502 | ## Platform. ## |
| 1503 | ## --------- ## |
| 1504 | |
| 1505 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1506 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1507 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1508 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1509 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1510 | |
| 1511 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1512 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1513 | |
| 1514 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1515 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1516 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1517 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1518 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1519 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1520 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1521 | |
| 1522 | _ASUNAME |
| 1523 | |
| 1524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1525 | for as_dir in $PATH |
| 1526 | do |
| 1527 | IFS=$as_save_IFS |
| 1528 | test -z "$as_dir" && as_dir=. |
| 1529 | echo "PATH: $as_dir" |
| 1530 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1531 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1532 | |
| 1533 | } >&5 |
| 1534 | |
| 1535 | cat >&5 <<_ACEOF |
| 1536 | |
| 1537 | |
| 1538 | ## ----------- ## |
| 1539 | ## Core tests. ## |
| 1540 | ## ----------- ## |
| 1541 | |
| 1542 | _ACEOF |
| 1543 | |
| 1544 | |
| 1545 | # Keep a trace of the command line. |
| 1546 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1547 | # Strip out --silent because we don't want to record it for future runs. |
| 1548 | # Also quote any args containing shell meta-characters. |
| 1549 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1550 | ac_configure_args= |
| 1551 | ac_configure_args0= |
| 1552 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1553 | ac_must_keep_next=false |
| 1554 | for ac_pass in 1 2 |
| 1555 | do |
| 1556 | for ac_arg |
| 1557 | do |
| 1558 | case $ac_arg in |
| 1559 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1560 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1561 | | -silent | --silent | --silen | --sile | --sil) |
| 1562 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1563 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1565 | esac |
| 1566 | case $ac_pass in |
| 1567 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1568 | 2) |
| 1569 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1570 | if test $ac_must_keep_next = true; then |
| 1571 | ac_must_keep_next=false # Got value, back to normal. |
| 1572 | else |
| 1573 | case $ac_arg in |
| 1574 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1575 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1576 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1577 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1578 | case "$ac_configure_args0 " in |
| 1579 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1580 | esac |
| 1581 | ;; |
| 1582 | -* ) ac_must_keep_next=true ;; |
| 1583 | esac |
| 1584 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1585 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1586 | ;; |
| 1587 | esac |
| 1588 | done |
| 1589 | done |
| 1590 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1591 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1592 | |
| 1593 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1594 | # config.log. We remove comments because anyway the quotes in there |
| 1595 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1596 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1597 | # 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] | 1598 | trap 'exit_status=$? |
| 1599 | # Save into config.log some information that might help in debugging. |
| 1600 | { |
| 1601 | echo |
| 1602 | |
| 1603 | cat <<\_ASBOX |
| 1604 | ## ---------------- ## |
| 1605 | ## Cache variables. ## |
| 1606 | ## ---------------- ## |
| 1607 | _ASBOX |
| 1608 | echo |
| 1609 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1610 | ( |
| 1611 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1612 | eval ac_val=\$$ac_var |
| 1613 | case $ac_val in #( |
| 1614 | *${as_nl}*) |
| 1615 | case $ac_var in #( |
| 1616 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1617 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1618 | esac |
| 1619 | case $ac_var in #( |
| 1620 | _ | IFS | as_nl) ;; #( |
| 1621 | *) $as_unset $ac_var ;; |
| 1622 | esac ;; |
| 1623 | esac |
| 1624 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1625 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1626 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1627 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1630 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1631 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1632 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1633 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1634 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1635 | esac | |
| 1636 | sort |
| 1637 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1638 | echo |
| 1639 | |
| 1640 | cat <<\_ASBOX |
| 1641 | ## ----------------- ## |
| 1642 | ## Output variables. ## |
| 1643 | ## ----------------- ## |
| 1644 | _ASBOX |
| 1645 | echo |
| 1646 | for ac_var in $ac_subst_vars |
| 1647 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1648 | eval ac_val=\$$ac_var |
| 1649 | case $ac_val in |
| 1650 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1651 | esac |
| 1652 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1653 | done | sort |
| 1654 | echo |
| 1655 | |
| 1656 | if test -n "$ac_subst_files"; then |
| 1657 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1658 | ## ------------------- ## |
| 1659 | ## File substitutions. ## |
| 1660 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1661 | _ASBOX |
| 1662 | echo |
| 1663 | for ac_var in $ac_subst_files |
| 1664 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1665 | eval ac_val=\$$ac_var |
| 1666 | case $ac_val in |
| 1667 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1668 | esac |
| 1669 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1670 | done | sort |
| 1671 | echo |
| 1672 | fi |
| 1673 | |
| 1674 | if test -s confdefs.h; then |
| 1675 | cat <<\_ASBOX |
| 1676 | ## ----------- ## |
| 1677 | ## confdefs.h. ## |
| 1678 | ## ----------- ## |
| 1679 | _ASBOX |
| 1680 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1681 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1682 | echo |
| 1683 | fi |
| 1684 | test "$ac_signal" != 0 && |
| 1685 | echo "$as_me: caught signal $ac_signal" |
| 1686 | echo "$as_me: exit $exit_status" |
| 1687 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1688 | rm -f core *.core core.conftest.* && |
| 1689 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1690 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1691 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1692 | for ac_signal in 1 2 13 15; do |
| 1693 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1694 | done |
| 1695 | ac_signal=0 |
| 1696 | |
| 1697 | # 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] | 1698 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1699 | |
| 1700 | # Predefined preprocessor variables. |
| 1701 | |
| 1702 | cat >>confdefs.h <<_ACEOF |
| 1703 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1704 | _ACEOF |
| 1705 | |
| 1706 | |
| 1707 | cat >>confdefs.h <<_ACEOF |
| 1708 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1709 | _ACEOF |
| 1710 | |
| 1711 | |
| 1712 | cat >>confdefs.h <<_ACEOF |
| 1713 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1714 | _ACEOF |
| 1715 | |
| 1716 | |
| 1717 | cat >>confdefs.h <<_ACEOF |
| 1718 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1719 | _ACEOF |
| 1720 | |
| 1721 | |
| 1722 | cat >>confdefs.h <<_ACEOF |
| 1723 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1724 | _ACEOF |
| 1725 | |
| 1726 | |
| 1727 | # 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] | 1728 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1729 | if test -n "$CONFIG_SITE"; then |
| 1730 | set x "$CONFIG_SITE" |
| 1731 | elif test "x$prefix" != xNONE; then |
| 1732 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1733 | else |
| 1734 | set x "$ac_default_prefix/share/config.site" \ |
| 1735 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1736 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1737 | shift |
| 1738 | for ac_site_file |
| 1739 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1740 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1742 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1743 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1744 | . "$ac_site_file" |
| 1745 | fi |
| 1746 | done |
| 1747 | |
| 1748 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1749 | # Some versions of bash will fail to source /dev/null (special |
| 1750 | # files actually), so we avoid doing that. |
| 1751 | if test -f "$cache_file"; then |
| 1752 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1753 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1754 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1755 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1756 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1757 | esac |
| 1758 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1759 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1760 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1761 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1762 | >$cache_file |
| 1763 | fi |
| 1764 | |
| 1765 | # Check that the precious variables saved in the cache have kept the same |
| 1766 | # value. |
| 1767 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1768 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1769 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1770 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1771 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1772 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1773 | case $ac_old_set,$ac_new_set in |
| 1774 | set,) |
| 1775 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1776 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1777 | ac_cache_corrupted=: ;; |
| 1778 | ,set) |
| 1779 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1780 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1781 | ac_cache_corrupted=: ;; |
| 1782 | ,);; |
| 1783 | *) |
| 1784 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1785 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1786 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1787 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1788 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1789 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1790 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1791 | ac_cache_corrupted=: |
| 1792 | fi;; |
| 1793 | esac |
| 1794 | # Pass precious variables to config.status. |
| 1795 | if test "$ac_new_set" = set; then |
| 1796 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1797 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1798 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1799 | esac |
| 1800 | case " $ac_configure_args " in |
| 1801 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1802 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1803 | esac |
| 1804 | fi |
| 1805 | done |
| 1806 | if $ac_cache_corrupted; then |
| 1807 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1808 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1809 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1810 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1811 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1812 | fi |
| 1813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1830 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1831 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1835 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1836 | |
| 1837 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1838 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1839 | for ac_dir in config "$srcdir"/config; do |
| 1840 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1841 | ac_aux_dir=$ac_dir |
| 1842 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1843 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1844 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1845 | ac_aux_dir=$ac_dir |
| 1846 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1847 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1848 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1849 | ac_aux_dir=$ac_dir |
| 1850 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1851 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1852 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1853 | done |
| 1854 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1855 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1856 | 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] | 1857 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1858 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1859 | |
| 1860 | # These three variables are undocumented and unsupported, |
| 1861 | # and are intended to be withdrawn in a future Autoconf release. |
| 1862 | # They can cause serious problems if a builder's source tree is in a directory |
| 1863 | # whose full name contains unusual characters. |
| 1864 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1865 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1866 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1867 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1868 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1869 | MCONFIG=./MCONFIG |
| 1870 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1871 | BINARY_TYPE=bin |
| 1872 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1873 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1874 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1875 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1876 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1877 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1878 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1879 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1880 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1881 | E2FSPROGS_YEAR=$YEAR |
| 1882 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1883 | E2FSPROGS_YEAR=19$YEAR |
| 1884 | else |
| 1885 | E2FSPROGS_YEAR=20$YEAR |
| 1886 | fi |
| 1887 | |
| 1888 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1889 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1890 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1891 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1892 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1893 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1894 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1895 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1896 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1897 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1898 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1899 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1900 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1901 | *) echo "Unknown month $MONTH??" ;; |
| 1902 | esac |
| 1903 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1904 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1905 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
| 1906 | pre_vers=`echo $base_ver 0.01 - p | dc` |
| 1907 | |
| 1908 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1909 | |
| 1910 | case $E2FSPROGS_VERSION in |
| 1911 | *-WIP|pre-*) |
| 1912 | E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" |
| 1913 | ;; |
| 1914 | *) |
| 1915 | E2FSPROGS_PKGVER="$base_ver" |
| 1916 | ;; |
| 1917 | esac |
| 1918 | |
| 1919 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1920 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1921 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1922 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1923 | |
| 1924 | |
| 1925 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1926 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1927 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1928 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1929 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1930 | 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] | 1931 | { (exit 1); exit 1; }; } |
| 1932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1933 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1934 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1935 | if test "${ac_cv_build+set}" = set; then |
| 1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1937 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1938 | ac_build_alias=$build_alias |
| 1939 | test "x$ac_build_alias" = x && |
| 1940 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1941 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1942 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1943 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1944 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1945 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1946 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1947 | 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] | 1948 | { (exit 1); exit 1; }; } |
| 1949 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1950 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1951 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1952 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1953 | case $ac_cv_build in |
| 1954 | *-*-*) ;; |
| 1955 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1956 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1957 | { (exit 1); exit 1; }; };; |
| 1958 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1959 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1960 | ac_save_IFS=$IFS; IFS='-' |
| 1961 | set x $ac_cv_build |
| 1962 | shift |
| 1963 | build_cpu=$1 |
| 1964 | build_vendor=$2 |
| 1965 | shift; shift |
| 1966 | # Remember, the first character of IFS is used to create $*, |
| 1967 | # except with old shells: |
| 1968 | build_os=$* |
| 1969 | IFS=$ac_save_IFS |
| 1970 | 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] | 1971 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1973 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1974 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1975 | if test "${ac_cv_host+set}" = set; then |
| 1976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1977 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1978 | if test "x$host_alias" = x; then |
| 1979 | ac_cv_host=$ac_cv_build |
| 1980 | else |
| 1981 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1982 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1983 | 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] | 1984 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1985 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1986 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1987 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1988 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1989 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1990 | case $ac_cv_host in |
| 1991 | *-*-*) ;; |
| 1992 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1993 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1994 | { (exit 1); exit 1; }; };; |
| 1995 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1996 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1997 | ac_save_IFS=$IFS; IFS='-' |
| 1998 | set x $ac_cv_host |
| 1999 | shift |
| 2000 | host_cpu=$1 |
| 2001 | host_vendor=$2 |
| 2002 | shift; shift |
| 2003 | # Remember, the first character of IFS is used to create $*, |
| 2004 | # except with old shells: |
| 2005 | host_os=$* |
| 2006 | IFS=$ac_save_IFS |
| 2007 | 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] | 2008 | |
| 2009 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2010 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2011 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2012 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2013 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2014 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2015 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2016 | fi |
| 2017 | |
| 2018 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2019 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2020 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2021 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2022 | CC=$withval |
| 2023 | else |
| 2024 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2025 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2026 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2027 | fi |
| 2028 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2030 | ac_ext=c |
| 2031 | ac_cpp='$CPP $CPPFLAGS' |
| 2032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2035 | if test -n "$ac_tool_prefix"; then |
| 2036 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2037 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2040 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2042 | else |
| 2043 | if test -n "$CC"; then |
| 2044 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2045 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2052 | 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] | 2053 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2055 | break 2 |
| 2056 | fi |
| 2057 | done |
| 2058 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2059 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2060 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2061 | fi |
| 2062 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2063 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2064 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2065 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2066 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2067 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2069 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2070 | fi |
| 2071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2072 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2073 | fi |
| 2074 | if test -z "$ac_cv_prog_CC"; then |
| 2075 | ac_ct_CC=$CC |
| 2076 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2077 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2078 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2082 | else |
| 2083 | if test -n "$ac_ct_CC"; then |
| 2084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2085 | else |
| 2086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2087 | for as_dir in $PATH |
| 2088 | do |
| 2089 | IFS=$as_save_IFS |
| 2090 | test -z "$as_dir" && as_dir=. |
| 2091 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2092 | 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] | 2093 | ac_cv_prog_ac_ct_CC="gcc" |
| 2094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2095 | break 2 |
| 2096 | fi |
| 2097 | done |
| 2098 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2099 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2100 | |
| 2101 | fi |
| 2102 | fi |
| 2103 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2104 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2105 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2106 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2107 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2108 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2109 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2110 | fi |
| 2111 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2112 | if test "x$ac_ct_CC" = x; then |
| 2113 | CC="" |
| 2114 | else |
| 2115 | case $cross_compiling:$ac_tool_warned in |
| 2116 | yes:) |
| 2117 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2118 | whose name does not start with the host triplet. If you think this |
| 2119 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2120 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2121 | whose name does not start with the host triplet. If you think this |
| 2122 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2123 | ac_tool_warned=yes ;; |
| 2124 | esac |
| 2125 | CC=$ac_ct_CC |
| 2126 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2127 | else |
| 2128 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2129 | fi |
| 2130 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2131 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2132 | if test -n "$ac_tool_prefix"; then |
| 2133 | # 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] | 2134 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2137 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2139 | else |
| 2140 | if test -n "$CC"; then |
| 2141 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2142 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2144 | for as_dir in $PATH |
| 2145 | do |
| 2146 | IFS=$as_save_IFS |
| 2147 | test -z "$as_dir" && as_dir=. |
| 2148 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2149 | 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] | 2150 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2152 | break 2 |
| 2153 | fi |
| 2154 | done |
| 2155 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2156 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2157 | |
| 2158 | fi |
| 2159 | fi |
| 2160 | CC=$ac_cv_prog_CC |
| 2161 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2162 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2163 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2164 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2165 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2166 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2167 | fi |
| 2168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2169 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2170 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2171 | fi |
| 2172 | if test -z "$CC"; then |
| 2173 | # Extract the first word of "cc", so it can be a program name with args. |
| 2174 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2177 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2179 | else |
| 2180 | if test -n "$CC"; then |
| 2181 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2182 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2183 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2185 | for as_dir in $PATH |
| 2186 | do |
| 2187 | IFS=$as_save_IFS |
| 2188 | test -z "$as_dir" && as_dir=. |
| 2189 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2190 | 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] | 2191 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2192 | ac_prog_rejected=yes |
| 2193 | continue |
| 2194 | fi |
| 2195 | ac_cv_prog_CC="cc" |
| 2196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2197 | break 2 |
| 2198 | fi |
| 2199 | done |
| 2200 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2201 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2202 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2203 | if test $ac_prog_rejected = yes; then |
| 2204 | # We found a bogon in the path, so make sure we never use it. |
| 2205 | set dummy $ac_cv_prog_CC |
| 2206 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2207 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2208 | # We chose a different compiler from the bogus one. |
| 2209 | # However, it has the same basename, so the bogon will be chosen |
| 2210 | # first if we set CC to just the basename; use the full file name. |
| 2211 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2212 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2213 | fi |
| 2214 | fi |
| 2215 | fi |
| 2216 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2217 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2218 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2219 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2220 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2221 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2222 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2223 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2224 | fi |
| 2225 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2227 | fi |
| 2228 | if test -z "$CC"; then |
| 2229 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2230 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2231 | do |
| 2232 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2233 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2236 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2238 | else |
| 2239 | if test -n "$CC"; then |
| 2240 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2241 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2243 | for as_dir in $PATH |
| 2244 | do |
| 2245 | IFS=$as_save_IFS |
| 2246 | test -z "$as_dir" && as_dir=. |
| 2247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2248 | 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] | 2249 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2251 | break 2 |
| 2252 | fi |
| 2253 | done |
| 2254 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2255 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2256 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2257 | fi |
| 2258 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2259 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2260 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2261 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2262 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2263 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2264 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2265 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2266 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2269 | test -n "$CC" && break |
| 2270 | done |
| 2271 | fi |
| 2272 | if test -z "$CC"; then |
| 2273 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2274 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2275 | do |
| 2276 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2277 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2278 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2280 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2282 | else |
| 2283 | if test -n "$ac_ct_CC"; then |
| 2284 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2285 | else |
| 2286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2287 | for as_dir in $PATH |
| 2288 | do |
| 2289 | IFS=$as_save_IFS |
| 2290 | test -z "$as_dir" && as_dir=. |
| 2291 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2292 | 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] | 2293 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2295 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2296 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2297 | done |
| 2298 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2299 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2300 | |
| 2301 | fi |
| 2302 | fi |
| 2303 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2304 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2305 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2306 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2308 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2309 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2310 | fi |
| 2311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2313 | test -n "$ac_ct_CC" && break |
| 2314 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2315 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2316 | if test "x$ac_ct_CC" = x; then |
| 2317 | CC="" |
| 2318 | else |
| 2319 | case $cross_compiling:$ac_tool_warned in |
| 2320 | yes:) |
| 2321 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2322 | whose name does not start with the host triplet. If you think this |
| 2323 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2324 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2325 | whose name does not start with the host triplet. If you think this |
| 2326 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2327 | ac_tool_warned=yes ;; |
| 2328 | esac |
| 2329 | CC=$ac_ct_CC |
| 2330 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2331 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2333 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2334 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2336 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2337 | See \`config.log' for more details." >&5 |
| 2338 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2339 | See \`config.log' for more details." >&2;} |
| 2340 | { (exit 1); exit 1; }; } |
| 2341 | |
| 2342 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2343 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2344 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2345 | { (ac_try="$ac_compiler --version >&5" |
| 2346 | case "(($ac_try" in |
| 2347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2348 | *) ac_try_echo=$ac_try;; |
| 2349 | esac |
| 2350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2351 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2352 | ac_status=$? |
| 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2354 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2355 | { (ac_try="$ac_compiler -v >&5" |
| 2356 | case "(($ac_try" in |
| 2357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2358 | *) ac_try_echo=$ac_try;; |
| 2359 | esac |
| 2360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2361 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2362 | ac_status=$? |
| 2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2364 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2365 | { (ac_try="$ac_compiler -V >&5" |
| 2366 | case "(($ac_try" in |
| 2367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2368 | *) ac_try_echo=$ac_try;; |
| 2369 | esac |
| 2370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2371 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2372 | ac_status=$? |
| 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2374 | (exit $ac_status); } |
| 2375 | |
| 2376 | cat >conftest.$ac_ext <<_ACEOF |
| 2377 | /* confdefs.h. */ |
| 2378 | _ACEOF |
| 2379 | cat confdefs.h >>conftest.$ac_ext |
| 2380 | cat >>conftest.$ac_ext <<_ACEOF |
| 2381 | /* end confdefs.h. */ |
| 2382 | |
| 2383 | int |
| 2384 | main () |
| 2385 | { |
| 2386 | |
| 2387 | ; |
| 2388 | return 0; |
| 2389 | } |
| 2390 | _ACEOF |
| 2391 | ac_clean_files_save=$ac_clean_files |
| 2392 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2393 | # Try to create an executable without -o first, disregard a.out. |
| 2394 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2395 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2396 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2397 | 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] | 2398 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2399 | # |
| 2400 | # List of possible output files, starting from the most likely. |
| 2401 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2402 | # only as a last resort. b.out is created by i960 compilers. |
| 2403 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2404 | # |
| 2405 | # The IRIX 6 linker writes into existing files which may not be |
| 2406 | # executable, retaining their permissions. Remove them first so a |
| 2407 | # subsequent execution test works. |
| 2408 | ac_rmfiles= |
| 2409 | for ac_file in $ac_files |
| 2410 | do |
| 2411 | case $ac_file in |
| 2412 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2413 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2414 | esac |
| 2415 | done |
| 2416 | rm -f $ac_rmfiles |
| 2417 | |
| 2418 | if { (ac_try="$ac_link_default" |
| 2419 | case "(($ac_try" in |
| 2420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2421 | *) ac_try_echo=$ac_try;; |
| 2422 | esac |
| 2423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2424 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2425 | ac_status=$? |
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2427 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2428 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2429 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2430 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2431 | # so that the user can short-circuit this test for compilers unknown to |
| 2432 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2433 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2434 | do |
| 2435 | test -f "$ac_file" || continue |
| 2436 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | *.$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] | 2438 | ;; |
| 2439 | [ab].out ) |
| 2440 | # We found the default executable, but exeext='' is most |
| 2441 | # certainly right. |
| 2442 | break;; |
| 2443 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2444 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2445 | then :; else |
| 2446 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2447 | fi |
| 2448 | # We set ac_cv_exeext here because the later test for it is not |
| 2449 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2450 | # argument, so we may need to know it at that point already. |
| 2451 | # Even if this section looks crufty: it has the advantage of |
| 2452 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | break;; |
| 2454 | * ) |
| 2455 | break;; |
| 2456 | esac |
| 2457 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2458 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2461 | ac_file='' |
| 2462 | fi |
| 2463 | |
| 2464 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2465 | echo "${ECHO_T}$ac_file" >&6; } |
| 2466 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2467 | echo "$as_me: failed program was:" >&5 |
| 2468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2469 | |
| 2470 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2471 | See \`config.log' for more details." >&5 |
| 2472 | echo "$as_me: error: C compiler cannot create executables |
| 2473 | See \`config.log' for more details." >&2;} |
| 2474 | { (exit 77); exit 77; }; } |
| 2475 | fi |
| 2476 | |
| 2477 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2479 | # 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] | 2480 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2481 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2482 | 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] | 2483 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2484 | # If not cross compiling, check that we can run a simple program. |
| 2485 | if test "$cross_compiling" != yes; then |
| 2486 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2487 | { (case "(($ac_try" in |
| 2488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2489 | *) ac_try_echo=$ac_try;; |
| 2490 | esac |
| 2491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2492 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2493 | ac_status=$? |
| 2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2495 | (exit $ac_status); }; }; then |
| 2496 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2497 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2498 | if test "$cross_compiling" = maybe; then |
| 2499 | cross_compiling=yes |
| 2500 | else |
| 2501 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2502 | If you meant to cross compile, use \`--host'. |
| 2503 | See \`config.log' for more details." >&5 |
| 2504 | echo "$as_me: error: cannot run C compiled programs. |
| 2505 | If you meant to cross compile, use \`--host'. |
| 2506 | See \`config.log' for more details." >&2;} |
| 2507 | { (exit 1); exit 1; }; } |
| 2508 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2509 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2510 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2511 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2512 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2513 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2514 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2515 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2516 | # 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] | 2517 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2519 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2520 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2521 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2522 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2523 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2524 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2525 | if { (ac_try="$ac_link" |
| 2526 | case "(($ac_try" in |
| 2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2528 | *) ac_try_echo=$ac_try;; |
| 2529 | esac |
| 2530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2531 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2532 | ac_status=$? |
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2534 | (exit $ac_status); }; then |
| 2535 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2536 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2537 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2538 | # `rm'. |
| 2539 | for ac_file in conftest.exe conftest conftest.*; do |
| 2540 | test -f "$ac_file" || continue |
| 2541 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2542 | *.$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] | 2543 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2544 | break;; |
| 2545 | * ) break;; |
| 2546 | esac |
| 2547 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2548 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2550 | See \`config.log' for more details." >&5 |
| 2551 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2552 | See \`config.log' for more details." >&2;} |
| 2553 | { (exit 1); exit 1; }; } |
| 2554 | fi |
| 2555 | |
| 2556 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2559 | |
| 2560 | rm -f conftest.$ac_ext |
| 2561 | EXEEXT=$ac_cv_exeext |
| 2562 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2563 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2564 | 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] | 2565 | if test "${ac_cv_objext+set}" = set; then |
| 2566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2567 | else |
| 2568 | cat >conftest.$ac_ext <<_ACEOF |
| 2569 | /* confdefs.h. */ |
| 2570 | _ACEOF |
| 2571 | cat confdefs.h >>conftest.$ac_ext |
| 2572 | cat >>conftest.$ac_ext <<_ACEOF |
| 2573 | /* end confdefs.h. */ |
| 2574 | |
| 2575 | int |
| 2576 | main () |
| 2577 | { |
| 2578 | |
| 2579 | ; |
| 2580 | return 0; |
| 2581 | } |
| 2582 | _ACEOF |
| 2583 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2584 | if { (ac_try="$ac_compile" |
| 2585 | case "(($ac_try" in |
| 2586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2587 | *) ac_try_echo=$ac_try;; |
| 2588 | esac |
| 2589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2590 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | ac_status=$? |
| 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2593 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2594 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2595 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2596 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2597 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2598 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2599 | break;; |
| 2600 | esac |
| 2601 | done |
| 2602 | else |
| 2603 | echo "$as_me: failed program was:" >&5 |
| 2604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2605 | |
| 2606 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2607 | See \`config.log' for more details." >&5 |
| 2608 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2609 | See \`config.log' for more details." >&2;} |
| 2610 | { (exit 1); exit 1; }; } |
| 2611 | fi |
| 2612 | |
| 2613 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2614 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2616 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2617 | OBJEXT=$ac_cv_objext |
| 2618 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2619 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2620 | 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] | 2621 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2623 | else |
| 2624 | cat >conftest.$ac_ext <<_ACEOF |
| 2625 | /* confdefs.h. */ |
| 2626 | _ACEOF |
| 2627 | cat confdefs.h >>conftest.$ac_ext |
| 2628 | cat >>conftest.$ac_ext <<_ACEOF |
| 2629 | /* end confdefs.h. */ |
| 2630 | |
| 2631 | int |
| 2632 | main () |
| 2633 | { |
| 2634 | #ifndef __GNUC__ |
| 2635 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2636 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2638 | ; |
| 2639 | return 0; |
| 2640 | } |
| 2641 | _ACEOF |
| 2642 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2643 | if { (ac_try="$ac_compile" |
| 2644 | case "(($ac_try" in |
| 2645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2646 | *) ac_try_echo=$ac_try;; |
| 2647 | esac |
| 2648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2649 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2650 | ac_status=$? |
| 2651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2652 | rm -f conftest.er1 |
| 2653 | cat conftest.err >&5 |
| 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2655 | (exit $ac_status); } && { |
| 2656 | test -z "$ac_c_werror_flag" || |
| 2657 | test ! -s conftest.err |
| 2658 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2659 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2660 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2661 | echo "$as_me: failed program was:" >&5 |
| 2662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2663 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2664 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2665 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2666 | |
| 2667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2668 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2669 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2670 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2671 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2672 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2673 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2674 | ac_test_CFLAGS=${CFLAGS+set} |
| 2675 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2676 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2677 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2678 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2680 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2681 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2682 | ac_c_werror_flag=yes |
| 2683 | ac_cv_prog_cc_g=no |
| 2684 | CFLAGS="-g" |
| 2685 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2686 | /* confdefs.h. */ |
| 2687 | _ACEOF |
| 2688 | cat confdefs.h >>conftest.$ac_ext |
| 2689 | cat >>conftest.$ac_ext <<_ACEOF |
| 2690 | /* end confdefs.h. */ |
| 2691 | |
| 2692 | int |
| 2693 | main () |
| 2694 | { |
| 2695 | |
| 2696 | ; |
| 2697 | return 0; |
| 2698 | } |
| 2699 | _ACEOF |
| 2700 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2701 | if { (ac_try="$ac_compile" |
| 2702 | case "(($ac_try" in |
| 2703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2704 | *) ac_try_echo=$ac_try;; |
| 2705 | esac |
| 2706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2707 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2708 | ac_status=$? |
| 2709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2710 | rm -f conftest.er1 |
| 2711 | cat conftest.err >&5 |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2713 | (exit $ac_status); } && { |
| 2714 | test -z "$ac_c_werror_flag" || |
| 2715 | test ! -s conftest.err |
| 2716 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2717 | ac_cv_prog_cc_g=yes |
| 2718 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2719 | echo "$as_me: failed program was:" >&5 |
| 2720 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2722 | CFLAGS="" |
| 2723 | cat >conftest.$ac_ext <<_ACEOF |
| 2724 | /* confdefs.h. */ |
| 2725 | _ACEOF |
| 2726 | cat confdefs.h >>conftest.$ac_ext |
| 2727 | cat >>conftest.$ac_ext <<_ACEOF |
| 2728 | /* end confdefs.h. */ |
| 2729 | |
| 2730 | int |
| 2731 | main () |
| 2732 | { |
| 2733 | |
| 2734 | ; |
| 2735 | return 0; |
| 2736 | } |
| 2737 | _ACEOF |
| 2738 | rm -f conftest.$ac_objext |
| 2739 | if { (ac_try="$ac_compile" |
| 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
| 2744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2745 | (eval "$ac_compile") 2>conftest.er1 |
| 2746 | ac_status=$? |
| 2747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2748 | rm -f conftest.er1 |
| 2749 | cat conftest.err >&5 |
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2751 | (exit $ac_status); } && { |
| 2752 | test -z "$ac_c_werror_flag" || |
| 2753 | test ! -s conftest.err |
| 2754 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2755 | : |
| 2756 | else |
| 2757 | echo "$as_me: failed program was:" >&5 |
| 2758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2759 | |
| 2760 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2761 | CFLAGS="-g" |
| 2762 | cat >conftest.$ac_ext <<_ACEOF |
| 2763 | /* confdefs.h. */ |
| 2764 | _ACEOF |
| 2765 | cat confdefs.h >>conftest.$ac_ext |
| 2766 | cat >>conftest.$ac_ext <<_ACEOF |
| 2767 | /* end confdefs.h. */ |
| 2768 | |
| 2769 | int |
| 2770 | main () |
| 2771 | { |
| 2772 | |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (ac_try="$ac_compile" |
| 2779 | case "(($ac_try" in |
| 2780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2781 | *) ac_try_echo=$ac_try;; |
| 2782 | esac |
| 2783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2784 | (eval "$ac_compile") 2>conftest.er1 |
| 2785 | ac_status=$? |
| 2786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2787 | rm -f conftest.er1 |
| 2788 | cat conftest.err >&5 |
| 2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2790 | (exit $ac_status); } && { |
| 2791 | test -z "$ac_c_werror_flag" || |
| 2792 | test ! -s conftest.err |
| 2793 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2794 | ac_cv_prog_cc_g=yes |
| 2795 | else |
| 2796 | echo "$as_me: failed program was:" >&5 |
| 2797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2798 | |
| 2799 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2800 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2801 | |
| 2802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2804 | |
| 2805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2806 | fi |
| 2807 | |
| 2808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2809 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2810 | fi |
| 2811 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2812 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2813 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2814 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2815 | elif test $ac_cv_prog_cc_g = yes; then |
| 2816 | if test "$GCC" = yes; then |
| 2817 | CFLAGS="-g -O2" |
| 2818 | else |
| 2819 | CFLAGS="-g" |
| 2820 | fi |
| 2821 | else |
| 2822 | if test "$GCC" = yes; then |
| 2823 | CFLAGS="-O2" |
| 2824 | else |
| 2825 | CFLAGS= |
| 2826 | fi |
| 2827 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2828 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2829 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2830 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2832 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2833 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2834 | ac_save_CC=$CC |
| 2835 | cat >conftest.$ac_ext <<_ACEOF |
| 2836 | /* confdefs.h. */ |
| 2837 | _ACEOF |
| 2838 | cat confdefs.h >>conftest.$ac_ext |
| 2839 | cat >>conftest.$ac_ext <<_ACEOF |
| 2840 | /* end confdefs.h. */ |
| 2841 | #include <stdarg.h> |
| 2842 | #include <stdio.h> |
| 2843 | #include <sys/types.h> |
| 2844 | #include <sys/stat.h> |
| 2845 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2846 | struct buf { int x; }; |
| 2847 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2848 | static char *e (p, i) |
| 2849 | char **p; |
| 2850 | int i; |
| 2851 | { |
| 2852 | return p[i]; |
| 2853 | } |
| 2854 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2855 | { |
| 2856 | char *s; |
| 2857 | va_list v; |
| 2858 | va_start (v,p); |
| 2859 | s = g (p, va_arg (v,int)); |
| 2860 | va_end (v); |
| 2861 | return s; |
| 2862 | } |
| 2863 | |
| 2864 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2865 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2866 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2867 | 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] | 2868 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2869 | 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] | 2870 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2873 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2874 | inside strings and character constants. */ |
| 2875 | #define FOO(x) 'x' |
| 2876 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2877 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2878 | int test (int i, double x); |
| 2879 | struct s1 {int (*f) (int a);}; |
| 2880 | struct s2 {int (*f) (double a);}; |
| 2881 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2882 | int argc; |
| 2883 | char **argv; |
| 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2892 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2893 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2894 | do |
| 2895 | CC="$ac_save_CC $ac_arg" |
| 2896 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2897 | if { (ac_try="$ac_compile" |
| 2898 | case "(($ac_try" in |
| 2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2900 | *) ac_try_echo=$ac_try;; |
| 2901 | esac |
| 2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2903 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2904 | ac_status=$? |
| 2905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2906 | rm -f conftest.er1 |
| 2907 | cat conftest.err >&5 |
| 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2909 | (exit $ac_status); } && { |
| 2910 | test -z "$ac_c_werror_flag" || |
| 2911 | test ! -s conftest.err |
| 2912 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2914 | else |
| 2915 | echo "$as_me: failed program was:" >&5 |
| 2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2918 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2920 | |
| 2921 | rm -f core conftest.err conftest.$ac_objext |
| 2922 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2923 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2924 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2925 | CC=$ac_save_CC |
| 2926 | |
| 2927 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2928 | # AC_CACHE_VAL |
| 2929 | case "x$ac_cv_prog_cc_c89" in |
| 2930 | x) |
| 2931 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2932 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2933 | xno) |
| 2934 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2935 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2937 | CC="$CC $ac_cv_prog_cc_c89" |
| 2938 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2939 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2940 | esac |
| 2941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2942 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2943 | ac_ext=c |
| 2944 | ac_cpp='$CPP $CPPFLAGS' |
| 2945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2948 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2949 | ac_ext=c |
| 2950 | ac_cpp='$CPP $CPPFLAGS' |
| 2951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2954 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2955 | 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] | 2956 | # On Suns, sometimes $CPP names a directory. |
| 2957 | if test -n "$CPP" && test -d "$CPP"; then |
| 2958 | CPP= |
| 2959 | fi |
| 2960 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2963 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2964 | # Double quotes because CPP needs to be expanded |
| 2965 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2966 | do |
| 2967 | ac_preproc_ok=false |
| 2968 | for ac_c_preproc_warn_flag in '' yes |
| 2969 | do |
| 2970 | # Use a header file that comes with gcc, so configuring glibc |
| 2971 | # with a fresh cross-compiler works. |
| 2972 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2973 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2974 | # 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] | 2975 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2976 | cat >conftest.$ac_ext <<_ACEOF |
| 2977 | /* confdefs.h. */ |
| 2978 | _ACEOF |
| 2979 | cat confdefs.h >>conftest.$ac_ext |
| 2980 | cat >>conftest.$ac_ext <<_ACEOF |
| 2981 | /* end confdefs.h. */ |
| 2982 | #ifdef __STDC__ |
| 2983 | # include <limits.h> |
| 2984 | #else |
| 2985 | # include <assert.h> |
| 2986 | #endif |
| 2987 | Syntax error |
| 2988 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2990 | case "(($ac_try" in |
| 2991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2992 | *) ac_try_echo=$ac_try;; |
| 2993 | esac |
| 2994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2996 | ac_status=$? |
| 2997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2998 | rm -f conftest.er1 |
| 2999 | cat conftest.err >&5 |
| 3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3001 | (exit $ac_status); } >/dev/null && { |
| 3002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3003 | test ! -s conftest.err |
| 3004 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3005 | : |
| 3006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | echo "$as_me: failed program was:" >&5 |
| 3008 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | # Broken: fails on valid input. |
| 3011 | continue |
| 3012 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3013 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3014 | rm -f conftest.err conftest.$ac_ext |
| 3015 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3016 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3017 | # can be detected and how. |
| 3018 | cat >conftest.$ac_ext <<_ACEOF |
| 3019 | /* confdefs.h. */ |
| 3020 | _ACEOF |
| 3021 | cat confdefs.h >>conftest.$ac_ext |
| 3022 | cat >>conftest.$ac_ext <<_ACEOF |
| 3023 | /* end confdefs.h. */ |
| 3024 | #include <ac_nonexistent.h> |
| 3025 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3026 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
| 3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3032 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3033 | ac_status=$? |
| 3034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3035 | rm -f conftest.er1 |
| 3036 | cat conftest.err >&5 |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3038 | (exit $ac_status); } >/dev/null && { |
| 3039 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3040 | test ! -s conftest.err |
| 3041 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | # Broken: success on invalid input. |
| 3043 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3044 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3045 | echo "$as_me: failed program was:" >&5 |
| 3046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3047 | |
| 3048 | # Passes both tests. |
| 3049 | ac_preproc_ok=: |
| 3050 | break |
| 3051 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3052 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | rm -f conftest.err conftest.$ac_ext |
| 3054 | |
| 3055 | done |
| 3056 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3057 | rm -f conftest.err conftest.$ac_ext |
| 3058 | if $ac_preproc_ok; then |
| 3059 | break |
| 3060 | fi |
| 3061 | |
| 3062 | done |
| 3063 | ac_cv_prog_CPP=$CPP |
| 3064 | |
| 3065 | fi |
| 3066 | CPP=$ac_cv_prog_CPP |
| 3067 | else |
| 3068 | ac_cv_prog_CPP=$CPP |
| 3069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3070 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3071 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3072 | ac_preproc_ok=false |
| 3073 | for ac_c_preproc_warn_flag in '' yes |
| 3074 | do |
| 3075 | # Use a header file that comes with gcc, so configuring glibc |
| 3076 | # with a fresh cross-compiler works. |
| 3077 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3078 | # <limits.h> exists even on freestanding compilers. |
| 3079 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3080 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3081 | cat >conftest.$ac_ext <<_ACEOF |
| 3082 | /* confdefs.h. */ |
| 3083 | _ACEOF |
| 3084 | cat confdefs.h >>conftest.$ac_ext |
| 3085 | cat >>conftest.$ac_ext <<_ACEOF |
| 3086 | /* end confdefs.h. */ |
| 3087 | #ifdef __STDC__ |
| 3088 | # include <limits.h> |
| 3089 | #else |
| 3090 | # include <assert.h> |
| 3091 | #endif |
| 3092 | Syntax error |
| 3093 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3095 | case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3101 | ac_status=$? |
| 3102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3103 | rm -f conftest.er1 |
| 3104 | cat conftest.err >&5 |
| 3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3106 | (exit $ac_status); } >/dev/null && { |
| 3107 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3108 | test ! -s conftest.err |
| 3109 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3110 | : |
| 3111 | else |
| 3112 | echo "$as_me: failed program was:" >&5 |
| 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3114 | |
| 3115 | # Broken: fails on valid input. |
| 3116 | continue |
| 3117 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | rm -f conftest.err conftest.$ac_ext |
| 3120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3121 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3122 | # can be detected and how. |
| 3123 | cat >conftest.$ac_ext <<_ACEOF |
| 3124 | /* confdefs.h. */ |
| 3125 | _ACEOF |
| 3126 | cat confdefs.h >>conftest.$ac_ext |
| 3127 | cat >>conftest.$ac_ext <<_ACEOF |
| 3128 | /* end confdefs.h. */ |
| 3129 | #include <ac_nonexistent.h> |
| 3130 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3131 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3132 | case "(($ac_try" in |
| 3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3134 | *) ac_try_echo=$ac_try;; |
| 3135 | esac |
| 3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3137 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3138 | ac_status=$? |
| 3139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3140 | rm -f conftest.er1 |
| 3141 | cat conftest.err >&5 |
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3143 | (exit $ac_status); } >/dev/null && { |
| 3144 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3145 | test ! -s conftest.err |
| 3146 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | # Broken: success on invalid input. |
| 3148 | continue |
| 3149 | else |
| 3150 | echo "$as_me: failed program was:" >&5 |
| 3151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3152 | |
| 3153 | # Passes both tests. |
| 3154 | ac_preproc_ok=: |
| 3155 | break |
| 3156 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3157 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3158 | rm -f conftest.err conftest.$ac_ext |
| 3159 | |
| 3160 | done |
| 3161 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3162 | rm -f conftest.err conftest.$ac_ext |
| 3163 | if $ac_preproc_ok; then |
| 3164 | : |
| 3165 | else |
| 3166 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3167 | See \`config.log' for more details." >&5 |
| 3168 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3169 | See \`config.log' for more details." >&2;} |
| 3170 | { (exit 1); exit 1; }; } |
| 3171 | fi |
| 3172 | |
| 3173 | ac_ext=c |
| 3174 | ac_cpp='$CPP $CPPFLAGS' |
| 3175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3178 | |
| 3179 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3180 | # Check whether --with-linker was given. |
| 3181 | if test "${with_linker+set}" = set; then |
| 3182 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3183 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3184 | LD=$withval |
| 3185 | else |
| 3186 | if test -z "$LD" ; then LD=$CC; fi |
| 3187 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3188 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3189 | fi |
| 3190 | export LD |
| 3191 | |
| 3192 | |
| 3193 | # Check whether --with-ccopts was given. |
| 3194 | if test "${with_ccopts+set}" = set; then |
| 3195 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3196 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3197 | CFLAGS=$withval |
| 3198 | fi |
| 3199 | |
| 3200 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3201 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3202 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3203 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3205 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3206 | # Extract the first word of "grep ggrep" to use in msg output |
| 3207 | if test -z "$GREP"; then |
| 3208 | set dummy grep ggrep; ac_prog_name=$2 |
| 3209 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3211 | else |
| 3212 | ac_path_GREP_found=false |
| 3213 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3215 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3216 | do |
| 3217 | IFS=$as_save_IFS |
| 3218 | test -z "$as_dir" && as_dir=. |
| 3219 | for ac_prog in grep ggrep; do |
| 3220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3221 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3222 | { 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] | 3223 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3224 | # Check for GNU $ac_path_GREP |
| 3225 | case `"$ac_path_GREP" --version 2>&1` in |
| 3226 | *GNU*) |
| 3227 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3228 | *) |
| 3229 | ac_count=0 |
| 3230 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3231 | while : |
| 3232 | do |
| 3233 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3234 | mv "conftest.tmp" "conftest.in" |
| 3235 | cp "conftest.in" "conftest.nl" |
| 3236 | echo 'GREP' >> "conftest.nl" |
| 3237 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3238 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3239 | ac_count=`expr $ac_count + 1` |
| 3240 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3241 | # Best one so far, save it but keep looking for a better one |
| 3242 | ac_cv_path_GREP="$ac_path_GREP" |
| 3243 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3244 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3245 | # 10*(2^10) chars as input seems more than enough |
| 3246 | test $ac_count -gt 10 && break |
| 3247 | done |
| 3248 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3249 | esac |
| 3250 | |
| 3251 | |
| 3252 | $ac_path_GREP_found && break 3 |
| 3253 | done |
| 3254 | done |
| 3255 | |
| 3256 | done |
| 3257 | IFS=$as_save_IFS |
| 3258 | |
| 3259 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3261 | |
| 3262 | GREP="$ac_cv_path_GREP" |
| 3263 | if test -z "$GREP"; then |
| 3264 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3265 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3266 | { (exit 1); exit 1; }; } |
| 3267 | fi |
| 3268 | |
| 3269 | else |
| 3270 | ac_cv_path_GREP=$GREP |
| 3271 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3272 | |
| 3273 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3274 | fi |
| 3275 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3276 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3277 | GREP="$ac_cv_path_GREP" |
| 3278 | |
| 3279 | |
| 3280 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3281 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3282 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3284 | else |
| 3285 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3286 | then ac_cv_path_EGREP="$GREP -E" |
| 3287 | else |
| 3288 | # Extract the first word of "egrep" to use in msg output |
| 3289 | if test -z "$EGREP"; then |
| 3290 | set dummy egrep; ac_prog_name=$2 |
| 3291 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3293 | else |
| 3294 | ac_path_EGREP_found=false |
| 3295 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3297 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3298 | do |
| 3299 | IFS=$as_save_IFS |
| 3300 | test -z "$as_dir" && as_dir=. |
| 3301 | for ac_prog in egrep; do |
| 3302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3303 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3304 | { 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] | 3305 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3306 | # Check for GNU $ac_path_EGREP |
| 3307 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3308 | *GNU*) |
| 3309 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3310 | *) |
| 3311 | ac_count=0 |
| 3312 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3313 | while : |
| 3314 | do |
| 3315 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3316 | mv "conftest.tmp" "conftest.in" |
| 3317 | cp "conftest.in" "conftest.nl" |
| 3318 | echo 'EGREP' >> "conftest.nl" |
| 3319 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3320 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3321 | ac_count=`expr $ac_count + 1` |
| 3322 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3323 | # Best one so far, save it but keep looking for a better one |
| 3324 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3325 | ac_path_EGREP_max=$ac_count |
| 3326 | fi |
| 3327 | # 10*(2^10) chars as input seems more than enough |
| 3328 | test $ac_count -gt 10 && break |
| 3329 | done |
| 3330 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3331 | esac |
| 3332 | |
| 3333 | |
| 3334 | $ac_path_EGREP_found && break 3 |
| 3335 | done |
| 3336 | done |
| 3337 | |
| 3338 | done |
| 3339 | IFS=$as_save_IFS |
| 3340 | |
| 3341 | |
| 3342 | fi |
| 3343 | |
| 3344 | EGREP="$ac_cv_path_EGREP" |
| 3345 | if test -z "$EGREP"; then |
| 3346 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3347 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3348 | { (exit 1); exit 1; }; } |
| 3349 | fi |
| 3350 | |
| 3351 | else |
| 3352 | ac_cv_path_EGREP=$EGREP |
| 3353 | fi |
| 3354 | |
| 3355 | |
| 3356 | fi |
| 3357 | fi |
| 3358 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3359 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3360 | EGREP="$ac_cv_path_EGREP" |
| 3361 | |
| 3362 | |
| 3363 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3364 | 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] | 3365 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3367 | else |
| 3368 | cat >conftest.$ac_ext <<_ACEOF |
| 3369 | /* confdefs.h. */ |
| 3370 | _ACEOF |
| 3371 | cat confdefs.h >>conftest.$ac_ext |
| 3372 | cat >>conftest.$ac_ext <<_ACEOF |
| 3373 | /* end confdefs.h. */ |
| 3374 | #include <stdlib.h> |
| 3375 | #include <stdarg.h> |
| 3376 | #include <string.h> |
| 3377 | #include <float.h> |
| 3378 | |
| 3379 | int |
| 3380 | main () |
| 3381 | { |
| 3382 | |
| 3383 | ; |
| 3384 | return 0; |
| 3385 | } |
| 3386 | _ACEOF |
| 3387 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3388 | if { (ac_try="$ac_compile" |
| 3389 | case "(($ac_try" in |
| 3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3391 | *) ac_try_echo=$ac_try;; |
| 3392 | esac |
| 3393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3394 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3395 | ac_status=$? |
| 3396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3397 | rm -f conftest.er1 |
| 3398 | cat conftest.err >&5 |
| 3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3400 | (exit $ac_status); } && { |
| 3401 | test -z "$ac_c_werror_flag" || |
| 3402 | test ! -s conftest.err |
| 3403 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3404 | ac_cv_header_stdc=yes |
| 3405 | else |
| 3406 | echo "$as_me: failed program was:" >&5 |
| 3407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3408 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3409 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3410 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3411 | |
| 3412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3413 | |
| 3414 | if test $ac_cv_header_stdc = yes; then |
| 3415 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3416 | cat >conftest.$ac_ext <<_ACEOF |
| 3417 | /* confdefs.h. */ |
| 3418 | _ACEOF |
| 3419 | cat confdefs.h >>conftest.$ac_ext |
| 3420 | cat >>conftest.$ac_ext <<_ACEOF |
| 3421 | /* end confdefs.h. */ |
| 3422 | #include <string.h> |
| 3423 | |
| 3424 | _ACEOF |
| 3425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3426 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3427 | : |
| 3428 | else |
| 3429 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3430 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3431 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3432 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3433 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3434 | |
| 3435 | if test $ac_cv_header_stdc = yes; then |
| 3436 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3437 | cat >conftest.$ac_ext <<_ACEOF |
| 3438 | /* confdefs.h. */ |
| 3439 | _ACEOF |
| 3440 | cat confdefs.h >>conftest.$ac_ext |
| 3441 | cat >>conftest.$ac_ext <<_ACEOF |
| 3442 | /* end confdefs.h. */ |
| 3443 | #include <stdlib.h> |
| 3444 | |
| 3445 | _ACEOF |
| 3446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3447 | $EGREP "free" >/dev/null 2>&1; then |
| 3448 | : |
| 3449 | else |
| 3450 | ac_cv_header_stdc=no |
| 3451 | fi |
| 3452 | rm -f conftest* |
| 3453 | |
| 3454 | fi |
| 3455 | |
| 3456 | if test $ac_cv_header_stdc = yes; then |
| 3457 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3458 | if test "$cross_compiling" = yes; then |
| 3459 | : |
| 3460 | else |
| 3461 | cat >conftest.$ac_ext <<_ACEOF |
| 3462 | /* confdefs.h. */ |
| 3463 | _ACEOF |
| 3464 | cat confdefs.h >>conftest.$ac_ext |
| 3465 | cat >>conftest.$ac_ext <<_ACEOF |
| 3466 | /* end confdefs.h. */ |
| 3467 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3468 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3469 | #if ((' ' & 0x0FF) == 0x020) |
| 3470 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3471 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3472 | #else |
| 3473 | # define ISLOWER(c) \ |
| 3474 | (('a' <= (c) && (c) <= 'i') \ |
| 3475 | || ('j' <= (c) && (c) <= 'r') \ |
| 3476 | || ('s' <= (c) && (c) <= 'z')) |
| 3477 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3478 | #endif |
| 3479 | |
| 3480 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3481 | int |
| 3482 | main () |
| 3483 | { |
| 3484 | int i; |
| 3485 | for (i = 0; i < 256; i++) |
| 3486 | if (XOR (islower (i), ISLOWER (i)) |
| 3487 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3488 | return 2; |
| 3489 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3490 | } |
| 3491 | _ACEOF |
| 3492 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3493 | if { (ac_try="$ac_link" |
| 3494 | case "(($ac_try" in |
| 3495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3496 | *) ac_try_echo=$ac_try;; |
| 3497 | esac |
| 3498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3499 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3500 | ac_status=$? |
| 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3503 | { (case "(($ac_try" in |
| 3504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3505 | *) ac_try_echo=$ac_try;; |
| 3506 | esac |
| 3507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3508 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3509 | ac_status=$? |
| 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3511 | (exit $ac_status); }; }; then |
| 3512 | : |
| 3513 | else |
| 3514 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3515 | echo "$as_me: failed program was:" >&5 |
| 3516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3517 | |
| 3518 | ( exit $ac_status ) |
| 3519 | ac_cv_header_stdc=no |
| 3520 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3522 | fi |
| 3523 | |
| 3524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3525 | fi |
| 3526 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3527 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3528 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3529 | if test $ac_cv_header_stdc = yes; then |
| 3530 | |
| 3531 | cat >>confdefs.h <<\_ACEOF |
| 3532 | #define STDC_HEADERS 1 |
| 3533 | _ACEOF |
| 3534 | |
| 3535 | fi |
| 3536 | |
| 3537 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3538 | |
| 3539 | |
| 3540 | |
| 3541 | |
| 3542 | |
| 3543 | |
| 3544 | |
| 3545 | |
| 3546 | |
| 3547 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3548 | inttypes.h stdint.h unistd.h |
| 3549 | do |
| 3550 | 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] | 3551 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3553 | 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] | 3554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3555 | else |
| 3556 | cat >conftest.$ac_ext <<_ACEOF |
| 3557 | /* confdefs.h. */ |
| 3558 | _ACEOF |
| 3559 | cat confdefs.h >>conftest.$ac_ext |
| 3560 | cat >>conftest.$ac_ext <<_ACEOF |
| 3561 | /* end confdefs.h. */ |
| 3562 | $ac_includes_default |
| 3563 | |
| 3564 | #include <$ac_header> |
| 3565 | _ACEOF |
| 3566 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3567 | if { (ac_try="$ac_compile" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
| 3572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3573 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3574 | ac_status=$? |
| 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
| 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3579 | (exit $ac_status); } && { |
| 3580 | test -z "$ac_c_werror_flag" || |
| 3581 | test ! -s conftest.err |
| 3582 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3583 | eval "$as_ac_Header=yes" |
| 3584 | else |
| 3585 | echo "$as_me: failed program was:" >&5 |
| 3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3588 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3590 | |
| 3591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3593 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3595 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3596 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3597 | cat >>confdefs.h <<_ACEOF |
| 3598 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3599 | _ACEOF |
| 3600 | |
| 3601 | fi |
| 3602 | |
| 3603 | done |
| 3604 | |
| 3605 | |
| 3606 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3607 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3608 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3609 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3612 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3613 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3614 | else |
| 3615 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3616 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3617 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3618 | cat >conftest.$ac_ext <<_ACEOF |
| 3619 | /* confdefs.h. */ |
| 3620 | _ACEOF |
| 3621 | cat confdefs.h >>conftest.$ac_ext |
| 3622 | cat >>conftest.$ac_ext <<_ACEOF |
| 3623 | /* end confdefs.h. */ |
| 3624 | $ac_includes_default |
| 3625 | #include <linux/fs.h> |
| 3626 | _ACEOF |
| 3627 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3628 | if { (ac_try="$ac_compile" |
| 3629 | case "(($ac_try" in |
| 3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3631 | *) ac_try_echo=$ac_try;; |
| 3632 | esac |
| 3633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3634 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3635 | ac_status=$? |
| 3636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3637 | rm -f conftest.er1 |
| 3638 | cat conftest.err >&5 |
| 3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3640 | (exit $ac_status); } && { |
| 3641 | test -z "$ac_c_werror_flag" || |
| 3642 | test ! -s conftest.err |
| 3643 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3644 | ac_header_compiler=yes |
| 3645 | else |
| 3646 | echo "$as_me: failed program was:" >&5 |
| 3647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3649 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3650 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | |
| 3652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3654 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3655 | |
| 3656 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3657 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3658 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3659 | cat >conftest.$ac_ext <<_ACEOF |
| 3660 | /* confdefs.h. */ |
| 3661 | _ACEOF |
| 3662 | cat confdefs.h >>conftest.$ac_ext |
| 3663 | cat >>conftest.$ac_ext <<_ACEOF |
| 3664 | /* end confdefs.h. */ |
| 3665 | #include <linux/fs.h> |
| 3666 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3668 | case "(($ac_try" in |
| 3669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3670 | *) ac_try_echo=$ac_try;; |
| 3671 | esac |
| 3672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3674 | ac_status=$? |
| 3675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3676 | rm -f conftest.er1 |
| 3677 | cat conftest.err >&5 |
| 3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3679 | (exit $ac_status); } >/dev/null && { |
| 3680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3681 | test ! -s conftest.err |
| 3682 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3683 | ac_header_preproc=yes |
| 3684 | else |
| 3685 | echo "$as_me: failed program was:" >&5 |
| 3686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3687 | |
| 3688 | ac_header_preproc=no |
| 3689 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3690 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3691 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3692 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3693 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3694 | |
| 3695 | # So? What about this header? |
| 3696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3697 | yes:no: ) |
| 3698 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3699 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3700 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3701 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3702 | ac_header_preproc=yes |
| 3703 | ;; |
| 3704 | no:yes:* ) |
| 3705 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3706 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3707 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3708 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3709 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3710 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3711 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3712 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3713 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3714 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3715 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3716 | 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] | 3717 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3718 | ;; |
| 3719 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3720 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3721 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3722 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3724 | else |
| 3725 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3727 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3728 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3729 | |
| 3730 | fi |
| 3731 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3732 | linux_headers=yes |
| 3733 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3734 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3737 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3738 | if test "$linux_headers" != yes; then |
| 3739 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3742 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3743 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3744 | if test "$GCC" = yes |
| 3745 | then |
| 3746 | case "$host_cpu" in |
| 3747 | alpha) addcflags="-mieee" ;; |
| 3748 | esac |
| 3749 | fi |
| 3750 | if test "x$addcflags" != x |
| 3751 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3752 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3753 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3754 | CFLAGS="$addcflags $CFLAGS" |
| 3755 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3756 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3757 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3758 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3759 | LIB_EXT=.a |
| 3760 | STATIC_LIB_EXT=.a |
| 3761 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3762 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3763 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3764 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3765 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3766 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3767 | LDFLAGS=$withval |
| 3768 | else |
| 3769 | LDFLAGS= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3770 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3772 | |
| 3773 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3774 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3775 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3776 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3777 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3778 | fi |
| 3779 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3780 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3781 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3782 | then |
| 3783 | MAINTAINER_CMT=# |
| 3784 | echo "Disabling maintainer mode" |
| 3785 | else |
| 3786 | MAINTAINER_CMT= |
| 3787 | echo "Enabling maintainer mode" |
| 3788 | fi |
| 3789 | |
| 3790 | else |
| 3791 | MAINTAINER_CMT=# |
| 3792 | echo "Disabling maintainer mode by default" |
| 3793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3794 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3796 | |
| 3797 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3798 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3799 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3800 | then |
| 3801 | echo "Disabling compression support" |
| 3802 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3803 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3804 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3805 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3806 | |
| 3807 | echo "Enabling compression support" |
| 3808 | echo "WARNING: Compression support is experimental" |
| 3809 | fi |
| 3810 | |
| 3811 | else |
| 3812 | echo "Disabling compression support by default" |
| 3813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3814 | fi |
| 3815 | |
| 3816 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3817 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3818 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3819 | then |
| 3820 | HTREE_CMT=# |
| 3821 | echo "Disabling htree directory support" |
| 3822 | else |
| 3823 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3824 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3825 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3826 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3827 | |
| 3828 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3829 | fi |
| 3830 | |
| 3831 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3832 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3833 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3834 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3835 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3836 | |
| 3837 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3838 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3839 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3840 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3841 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3842 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3843 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3844 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3845 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3846 | then |
| 3847 | ELF_CMT=# |
| 3848 | MAKEFILE_ELF=/dev/null |
| 3849 | echo "Disabling ELF shared libraries" |
| 3850 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3851 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3852 | ELF_CMT= |
| 3853 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3854 | case "$host_os" in |
| 3855 | solaris2.*) |
| 3856 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3857 | ;; |
| 3858 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3859 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3860 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3861 | echo "Enabling ELF shared libraries" |
| 3862 | fi |
| 3863 | |
| 3864 | else |
| 3865 | MAKEFILE_ELF=/dev/null |
| 3866 | ELF_CMT=# |
| 3867 | echo "Disabling ELF shared libraries by default" |
| 3868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3869 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3870 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3871 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3872 | |
| 3873 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3874 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3875 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3876 | then |
| 3877 | BSDLIB_CMT=# |
| 3878 | MAKEFILE_BSDLIB=/dev/null |
| 3879 | echo "Disabling BSD shared libraries" |
| 3880 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3881 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3882 | BSDLIB_CMT= |
| 3883 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3884 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3885 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3886 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3887 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3888 | LIB_EXT=.dylib |
| 3889 | ;; |
| 3890 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3891 | echo "Enabling BSD shared libraries" |
| 3892 | fi |
| 3893 | |
| 3894 | else |
| 3895 | MAKEFILE_BSDLIB=/dev/null |
| 3896 | BSDLIB_CMT=# |
| 3897 | echo "Disabling BSD shared libraries by default" |
| 3898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3899 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3900 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3901 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3902 | |
| 3903 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3904 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3905 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3906 | then |
| 3907 | PROFILE_CMT=# |
| 3908 | MAKEFILE_PROFILE=/dev/null |
| 3909 | echo "Disabling profiling libraries" |
| 3910 | else |
| 3911 | PROFILE_CMT= |
| 3912 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3913 | PROFILED_LIB_EXT=_p.a |
| 3914 | echo "Building profiling libraries" |
| 3915 | fi |
| 3916 | |
| 3917 | else |
| 3918 | PROFILE_CMT=# |
| 3919 | MAKEFILE_PROFILE=/dev/null |
| 3920 | echo "Disabling profiling libraries by default" |
| 3921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3922 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3923 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3925 | |
| 3926 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3927 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3928 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3929 | then |
| 3930 | CHECKER_CMT=# |
| 3931 | MAKEFILE_CHECKER=/dev/null |
| 3932 | echo "Disabling checker libraries" |
| 3933 | else |
| 3934 | CHECKER_CMT= |
| 3935 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3936 | echo "Building checker libraries" |
| 3937 | fi |
| 3938 | |
| 3939 | else |
| 3940 | CHECKER_CMT=# |
| 3941 | MAKEFILE_CHECKER=/dev/null |
| 3942 | echo "Disabling checker libraries by default" |
| 3943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3944 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3950 | |
| 3951 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3952 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3953 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3954 | then |
| 3955 | echo "Disabling journal debugging" |
| 3956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3957 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3958 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3959 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3960 | |
| 3961 | echo "Enabling journal debugging" |
| 3962 | fi |
| 3963 | |
| 3964 | else |
| 3965 | echo "Disabling journal debugging by default" |
| 3966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3967 | fi |
| 3968 | |
| 3969 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3970 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3971 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3972 | then |
| 3973 | echo "Disabling blkid debugging" |
| 3974 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3975 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3976 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3977 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3978 | |
| 3979 | echo "Enabling blkid debugging" |
| 3980 | fi |
| 3981 | |
| 3982 | else |
| 3983 | echo "Disabling blkid debugging by default" |
| 3984 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3985 | fi |
| 3986 | |
| 3987 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3988 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3989 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3990 | then |
| 3991 | echo "Disabling testio debugging" |
| 3992 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3993 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3994 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3995 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3996 | |
| 3997 | echo "Enabling testio debugging" |
| 3998 | fi |
| 3999 | |
| 4000 | else |
| 4001 | echo "Disabling testio debugging by default" |
| 4002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4003 | fi |
| 4004 | |
| 4005 | # Check whether --enable-swapfs was given. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4006 | if test "${enable_swapfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4007 | enableval=$enable_swapfs; if test "$enableval" = "no" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4008 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4009 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4010 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4011 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4012 | SWAPFS_CMT= |
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 | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4017 | echo "Enabling swapfs support" |
| 4018 | fi |
| 4019 | |
| 4020 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4021 | SWAPFS_CMT= |
| 4022 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4023 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4024 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4025 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 4026 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4028 | fi |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 4029 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4030 | |
| 4031 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4032 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4033 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4034 | then |
| 4035 | echo "Disabling debugfs support" |
| 4036 | DEBUGFS_CMT="#" |
| 4037 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4038 | DEBUGFS_CMT= |
| 4039 | echo "Enabling debugfs support" |
| 4040 | fi |
| 4041 | |
| 4042 | else |
| 4043 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4044 | DEBUGFS_CMT= |
| 4045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4046 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4048 | |
| 4049 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4050 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4051 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4052 | then |
| 4053 | echo "Disabling e2image support" |
| 4054 | IMAGER_CMT="#" |
| 4055 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4056 | IMAGER_CMT= |
| 4057 | echo "Enabling e2image support" |
| 4058 | fi |
| 4059 | |
| 4060 | else |
| 4061 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4062 | IMAGER_CMT= |
| 4063 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4064 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4066 | |
| 4067 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4068 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4069 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4070 | then |
| 4071 | echo "Disabling e2resize support" |
| 4072 | RESIZER_CMT="#" |
| 4073 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4074 | RESIZER_CMT= |
| 4075 | echo "Enabling e2resize support" |
| 4076 | fi |
| 4077 | |
| 4078 | else |
| 4079 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4080 | RESIZER_CMT= |
| 4081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4082 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4084 | |
| 4085 | # Check whether --enable-dynamic-e2fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4086 | if test "${enable_dynamic_e2fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4087 | enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4088 | then |
| 4089 | E2FSCK_TYPE=static |
| 4090 | echo "Building e2fsck statically" |
| 4091 | else |
| 4092 | E2FSCK_TYPE=shared |
| 4093 | echo "Building e2fsck dynamically" |
| 4094 | fi |
| 4095 | |
| 4096 | else |
| 4097 | E2FSCK_TYPE=static |
| 4098 | echo "Building e2fsck statically by default" |
| 4099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4100 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4102 | |
| 4103 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4104 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4105 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4106 | then |
| 4107 | FSCK_PROG='' FSCK_MAN='' |
| 4108 | echo "Not building fsck wrapper" |
| 4109 | else |
| 4110 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4111 | echo "Building fsck wrapper" |
| 4112 | fi |
| 4113 | |
| 4114 | else |
| 4115 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4116 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4117 | FSCK_PROG='' FSCK_MAN='' |
| 4118 | echo "Not building fsck wrapper by default" |
| 4119 | ;; |
| 4120 | *) |
| 4121 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 4122 | echo "Building fsck wrapper by default" |
| 4123 | esac |
| 4124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4125 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4126 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4128 | |
| 4129 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4130 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4131 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4132 | then |
| 4133 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 4134 | echo "Not building e2initrd helper" |
| 4135 | else |
| 4136 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4137 | echo "Building e2initrd helper" |
| 4138 | fi |
| 4139 | |
| 4140 | else |
| 4141 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 4142 | echo "Building e2initrd helper by default" |
| 4143 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4144 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4145 | |
| 4146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4147 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4148 | STATIC_BLKID_DEVMAPPER_LIBS='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4149 | # Check whether --enable-blkid-devmapper was given. |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4150 | if test "${enable_blkid_devmapper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4151 | enableval=$enable_blkid_devmapper; if test "$enableval" = "no" |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4152 | then |
| 4153 | echo "Disabling device-mapper support" |
| 4154 | DEVMAPPER_REQ='' |
| 4155 | DEVMAPPER_LIBS='' |
| 4156 | STATIC_DEVMAPPER_LIBS='' |
| 4157 | else |
| 4158 | cat >>confdefs.h <<\_ACEOF |
| 4159 | #define HAVE_DEVMAPPER 1 |
| 4160 | _ACEOF |
| 4161 | |
| 4162 | echo "Enabling device-mapper support" |
| 4163 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4164 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4165 | |
| 4166 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4167 | if test -n "$ac_tool_prefix"; then |
| 4168 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4169 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4172 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4174 | else |
| 4175 | case $PKG_CONFIG in |
| 4176 | [\\/]* | ?:[\\/]*) |
| 4177 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4178 | ;; |
| 4179 | *) |
| 4180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4181 | for as_dir in $PATH |
| 4182 | do |
| 4183 | IFS=$as_save_IFS |
| 4184 | test -z "$as_dir" && as_dir=. |
| 4185 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4187 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4189 | break 2 |
| 4190 | fi |
| 4191 | done |
| 4192 | done |
| 4193 | IFS=$as_save_IFS |
| 4194 | |
| 4195 | ;; |
| 4196 | esac |
| 4197 | fi |
| 4198 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4199 | if test -n "$PKG_CONFIG"; then |
| 4200 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4201 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 4202 | else |
| 4203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4204 | echo "${ECHO_T}no" >&6; } |
| 4205 | fi |
| 4206 | |
| 4207 | |
| 4208 | fi |
| 4209 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4210 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4211 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4212 | set dummy pkg-config; ac_word=$2 |
| 4213 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4215 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4217 | else |
| 4218 | case $ac_pt_PKG_CONFIG in |
| 4219 | [\\/]* | ?:[\\/]*) |
| 4220 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4221 | ;; |
| 4222 | *) |
| 4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4224 | for as_dir in $PATH |
| 4225 | do |
| 4226 | IFS=$as_save_IFS |
| 4227 | test -z "$as_dir" && as_dir=. |
| 4228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4230 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4232 | break 2 |
| 4233 | fi |
| 4234 | done |
| 4235 | done |
| 4236 | IFS=$as_save_IFS |
| 4237 | |
| 4238 | ;; |
| 4239 | esac |
| 4240 | fi |
| 4241 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4242 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4243 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4244 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 4245 | else |
| 4246 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4247 | echo "${ECHO_T}no" >&6; } |
| 4248 | fi |
| 4249 | |
| 4250 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4251 | PKG_CONFIG="" |
| 4252 | else |
| 4253 | case $cross_compiling:$ac_tool_warned in |
| 4254 | yes:) |
| 4255 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4256 | whose name does not start with the host triplet. If you think this |
| 4257 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4258 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4259 | whose name does not start with the host triplet. If you think this |
| 4260 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4261 | ac_tool_warned=yes ;; |
| 4262 | esac |
| 4263 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4264 | fi |
| 4265 | else |
| 4266 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4267 | fi |
| 4268 | |
| 4269 | fi |
| 4270 | if test -n "$PKG_CONFIG"; then |
| 4271 | _pkg_min_version=0.9.0 |
| 4272 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4273 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 4274 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4275 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4276 | echo "${ECHO_T}yes" >&6; } |
| 4277 | else |
| 4278 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4279 | echo "${ECHO_T}no" >&6; } |
| 4280 | PKG_CONFIG="" |
| 4281 | fi |
| 4282 | |
| 4283 | fi |
| 4284 | |
| 4285 | if test -z "$PKG_CONFIG"; then |
| 4286 | echo "pkg-config not installed; please install it." |
| 4287 | exit 1; |
| 4288 | fi |
| 4289 | |
| 4290 | { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5 |
| 4291 | echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; } |
| 4292 | if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then |
| 4293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4294 | else |
| 4295 | ac_check_lib_save_LIBS=$LIBS |
| 4296 | LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS" |
| 4297 | cat >conftest.$ac_ext <<_ACEOF |
| 4298 | /* confdefs.h. */ |
| 4299 | _ACEOF |
| 4300 | cat confdefs.h >>conftest.$ac_ext |
| 4301 | cat >>conftest.$ac_ext <<_ACEOF |
| 4302 | /* end confdefs.h. */ |
| 4303 | |
| 4304 | /* Override any GCC internal prototype to avoid an error. |
| 4305 | Use char because int might match the return type of a GCC |
| 4306 | builtin and then its argument prototype would still apply. */ |
| 4307 | #ifdef __cplusplus |
| 4308 | extern "C" |
| 4309 | #endif |
| 4310 | char dm_tree_create (); |
| 4311 | int |
| 4312 | main () |
| 4313 | { |
| 4314 | return dm_tree_create (); |
| 4315 | ; |
| 4316 | return 0; |
| 4317 | } |
| 4318 | _ACEOF |
| 4319 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4320 | if { (ac_try="$ac_link" |
| 4321 | case "(($ac_try" in |
| 4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4323 | *) ac_try_echo=$ac_try;; |
| 4324 | esac |
| 4325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4326 | (eval "$ac_link") 2>conftest.er1 |
| 4327 | ac_status=$? |
| 4328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4329 | rm -f conftest.er1 |
| 4330 | cat conftest.err >&5 |
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4332 | (exit $ac_status); } && { |
| 4333 | test -z "$ac_c_werror_flag" || |
| 4334 | test ! -s conftest.err |
| 4335 | } && test -s conftest$ac_exeext && |
| 4336 | $as_test_x conftest$ac_exeext; then |
| 4337 | ac_cv_lib_devmapper_dm_tree_create=yes |
| 4338 | else |
| 4339 | echo "$as_me: failed program was:" >&5 |
| 4340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4341 | |
| 4342 | ac_cv_lib_devmapper_dm_tree_create=no |
| 4343 | fi |
| 4344 | |
| 4345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4346 | conftest$ac_exeext conftest.$ac_ext |
| 4347 | LIBS=$ac_check_lib_save_LIBS |
| 4348 | fi |
| 4349 | { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5 |
| 4350 | echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; } |
| 4351 | if test $ac_cv_lib_devmapper_dm_tree_create = yes; then |
| 4352 | DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`; |
| 4353 | STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`; |
| 4354 | DEVMAPPER_REQ="devmapper"; |
| 4355 | DEVMAPPER_PC_LIBS="-ldevmapper" |
| 4356 | else |
| 4357 | { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5 |
| 4358 | echo "$as_me: error: device-mapper library not found" >&2;} |
| 4359 | { (exit 1); exit 1; }; } |
| 4360 | fi |
| 4361 | |
| 4362 | # work around stupid devmapper.pc bug in Debian |
| 4363 | case "$STATIC_DEVMAPPER_LIBS" in |
| 4364 | *pthread*) |
| 4365 | ;; |
| 4366 | *) |
| 4367 | echo "Working around Debian bug #390243..." |
| 4368 | STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS" |
| 4369 | ;; |
| 4370 | esac |
| 4371 | if test "$E2_PKG_CONFIG_STATIC" = "--static"; then |
| 4372 | DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4373 | STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" |
| 4374 | fi |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4375 | fi |
| 4376 | |
| 4377 | else |
| 4378 | echo "Disabling device-mapper support by default" |
| 4379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4380 | fi |
| 4381 | |
Karel Zak | 4db2f59 | 2006-03-08 14:17:28 -0500 | [diff] [blame] | 4382 | |
| 4383 | |
| 4384 | |
| 4385 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4386 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4387 | # Check whether --enable-tls was given. |
| 4388 | if test "${enable_tls+set}" = set; then |
| 4389 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4390 | then |
| 4391 | try_tls="" |
| 4392 | echo "Disabling thread local support" |
| 4393 | else |
| 4394 | try_tls="yes" |
| 4395 | echo "Enabling thread local support" |
| 4396 | fi |
| 4397 | |
| 4398 | else |
| 4399 | try_tls="yes" |
| 4400 | echo "Try using thread local support by default" |
| 4401 | |
| 4402 | fi |
| 4403 | |
| 4404 | if test "$try_tls" = "yes" |
| 4405 | then |
| 4406 | |
| 4407 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4408 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4409 | if test "${ac_cv_tls+set}" = set; then |
| 4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4411 | else |
| 4412 | |
| 4413 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4414 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4415 | case $ax_tls_keyword in |
| 4416 | none) ac_cv_tls=none ; break ;; |
| 4417 | *) |
| 4418 | cat >conftest.$ac_ext <<_ACEOF |
| 4419 | /* confdefs.h. */ |
| 4420 | _ACEOF |
| 4421 | cat confdefs.h >>conftest.$ac_ext |
| 4422 | cat >>conftest.$ac_ext <<_ACEOF |
| 4423 | /* end confdefs.h. */ |
| 4424 | #include <stdlib.h> |
| 4425 | static void |
| 4426 | foo(void) { |
| 4427 | static $ax_tls_keyword int bar; |
| 4428 | exit(1); |
| 4429 | } |
| 4430 | int |
| 4431 | main () |
| 4432 | { |
| 4433 | |
| 4434 | ; |
| 4435 | return 0; |
| 4436 | } |
| 4437 | _ACEOF |
| 4438 | rm -f conftest.$ac_objext |
| 4439 | if { (ac_try="$ac_compile" |
| 4440 | case "(($ac_try" in |
| 4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4442 | *) ac_try_echo=$ac_try;; |
| 4443 | esac |
| 4444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4445 | (eval "$ac_compile") 2>conftest.er1 |
| 4446 | ac_status=$? |
| 4447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4448 | rm -f conftest.er1 |
| 4449 | cat conftest.err >&5 |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); } && { |
| 4452 | test -z "$ac_c_werror_flag" || |
| 4453 | test ! -s conftest.err |
| 4454 | } && test -s conftest.$ac_objext; then |
| 4455 | ac_cv_tls=$ax_tls_keyword ; break |
| 4456 | else |
| 4457 | echo "$as_me: failed program was:" >&5 |
| 4458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4459 | |
| 4460 | ac_cv_tls=none |
| 4461 | |
| 4462 | fi |
| 4463 | |
| 4464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4465 | esac |
| 4466 | done |
| 4467 | |
| 4468 | fi |
| 4469 | |
| 4470 | |
| 4471 | if test "$ac_cv_tls" != "none"; then |
| 4472 | |
| 4473 | cat >>confdefs.h <<_ACEOF |
| 4474 | #define TLS $ac_cv_tls |
| 4475 | _ACEOF |
| 4476 | |
| 4477 | fi |
| 4478 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4479 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4480 | |
| 4481 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4482 | # Check whether --enable-uuidd was given. |
| 4483 | if test "${enable_uuidd+set}" = set; then |
| 4484 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4485 | then |
| 4486 | echo "Not building uuidd" |
| 4487 | UUIDD_CMT="#" |
| 4488 | else |
| 4489 | cat >>confdefs.h <<\_ACEOF |
| 4490 | #define USE_UUIDD 1 |
| 4491 | _ACEOF |
| 4492 | |
| 4493 | UUIDD_CMT="" |
| 4494 | echo "Building uuidd" |
| 4495 | fi |
| 4496 | |
| 4497 | else |
| 4498 | cat >>confdefs.h <<\_ACEOF |
| 4499 | #define USE_UUIDD 1 |
| 4500 | _ACEOF |
| 4501 | |
| 4502 | UUIDD_CMT="" |
| 4503 | echo "Building uuidd by default" |
| 4504 | |
| 4505 | fi |
| 4506 | |
| 4507 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4508 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4510 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4511 | PACKAGE=e2fsprogs |
| 4512 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4513 | VERSION=0.14.1 |
| 4514 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4515 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4516 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4517 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4518 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4519 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4520 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4521 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4526 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4527 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4528 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4529 | 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] | 4530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4531 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4532 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4533 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4534 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4535 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4536 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4537 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4538 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4539 | *@@@%%%=?*=@@@%%%*) |
| 4540 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4541 | *) |
| 4542 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4543 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4544 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4545 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4546 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4547 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4548 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4549 | SET_MAKE= |
| 4550 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4552 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4553 | SET_MAKE="MAKE=${MAKE-make}" |
| 4554 | fi |
| 4555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4556 | # Find a good install program. We prefer a C program (faster), |
| 4557 | # so one script is as good as another. But avoid the broken or |
| 4558 | # incompatible versions: |
| 4559 | # SysV /etc/install, /usr/sbin/install |
| 4560 | # SunOS /usr/etc/install |
| 4561 | # IRIX /sbin/install |
| 4562 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4563 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4564 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4565 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4566 | # 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] | 4567 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4568 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4569 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4570 | 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] | 4571 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4572 | if test "${ac_cv_path_install+set}" = set; then |
| 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4574 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4576 | for as_dir in $PATH |
| 4577 | do |
| 4578 | IFS=$as_save_IFS |
| 4579 | test -z "$as_dir" && as_dir=. |
| 4580 | # Account for people who put trailing slashes in PATH elements. |
| 4581 | case $as_dir/ in |
| 4582 | ./ | .// | /cC/* | \ |
| 4583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4584 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4585 | /usr/ucb/* ) ;; |
| 4586 | *) |
| 4587 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4588 | # Don't use installbsd from OSF since it installs stuff as root |
| 4589 | # by default. |
| 4590 | for ac_prog in ginstall scoinst install; do |
| 4591 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4592 | 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] | 4593 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4594 | 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] | 4595 | # AIX install. It has an incompatible calling convention. |
| 4596 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4597 | elif test $ac_prog = install && |
| 4598 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4599 | # program-specific install script used by HP pwplus--don't use. |
| 4600 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4601 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4602 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4603 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4604 | fi |
| 4605 | fi |
| 4606 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4607 | done |
| 4608 | ;; |
| 4609 | esac |
| 4610 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4611 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4612 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4613 | |
| 4614 | fi |
| 4615 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4616 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4617 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4618 | # As a last resort, use the slow shell script. Don't cache a |
| 4619 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4620 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4621 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4622 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4623 | fi |
| 4624 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4625 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4626 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4627 | |
| 4628 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4629 | # It thinks the first close brace ends the variable substitution. |
| 4630 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4631 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4632 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4633 | |
| 4634 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4635 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4636 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4637 | MKINSTALLDIRS= |
| 4638 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4639 | case "$ac_aux_dir" in |
| 4640 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4641 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4642 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4643 | fi |
| 4644 | if test -z "$MKINSTALLDIRS"; then |
| 4645 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4646 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4648 | |
| 4649 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4651 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4652 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4653 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4654 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4655 | else |
| 4656 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4657 | fi |
| 4658 | |
| 4659 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4660 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | # Prepare PATH_SEPARATOR. |
| 4668 | # The user is always right. |
| 4669 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4670 | echo "#! /bin/sh" >conf$$.sh |
| 4671 | echo "exit 0" >>conf$$.sh |
| 4672 | chmod +x conf$$.sh |
| 4673 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4674 | PATH_SEPARATOR=';' |
| 4675 | else |
| 4676 | PATH_SEPARATOR=: |
| 4677 | fi |
| 4678 | rm -f conf$$.sh |
| 4679 | fi |
| 4680 | |
| 4681 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4682 | # as systems may use methods other than mode bits to determine executability. |
| 4683 | cat >conf$$.file <<_ASEOF |
| 4684 | #! /bin/sh |
| 4685 | exit 0 |
| 4686 | _ASEOF |
| 4687 | chmod +x conf$$.file |
| 4688 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4689 | ac_executable_p="test -x" |
| 4690 | else |
| 4691 | ac_executable_p="test -f" |
| 4692 | fi |
| 4693 | rm -f conf$$.file |
| 4694 | |
| 4695 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4696 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4697 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4699 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4701 | else |
| 4702 | case "$MSGFMT" in |
| 4703 | [\\/]* | ?:[\\/]*) |
| 4704 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4705 | ;; |
| 4706 | *) |
| 4707 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4708 | for ac_dir in $PATH; do |
| 4709 | IFS="$ac_save_IFS" |
| 4710 | test -z "$ac_dir" && ac_dir=. |
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4712 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4713 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4714 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4715 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4716 | break 2 |
| 4717 | fi |
| 4718 | fi |
| 4719 | done |
| 4720 | done |
| 4721 | IFS="$ac_save_IFS" |
| 4722 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4723 | ;; |
| 4724 | esac |
| 4725 | fi |
| 4726 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4727 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4729 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4730 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4732 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4733 | fi |
| 4734 | |
| 4735 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4736 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4739 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4741 | else |
| 4742 | case $GMSGFMT in |
| 4743 | [\\/]* | ?:[\\/]*) |
| 4744 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4745 | ;; |
| 4746 | *) |
| 4747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4748 | for as_dir in $PATH |
| 4749 | do |
| 4750 | IFS=$as_save_IFS |
| 4751 | test -z "$as_dir" && as_dir=. |
| 4752 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4753 | 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] | 4754 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4756 | break 2 |
| 4757 | fi |
| 4758 | done |
| 4759 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4760 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4761 | |
| 4762 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4763 | ;; |
| 4764 | esac |
| 4765 | fi |
| 4766 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4767 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4768 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4769 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4770 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4772 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4773 | fi |
| 4774 | |
| 4775 | |
| 4776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4778 | # Prepare PATH_SEPARATOR. |
| 4779 | # The user is always right. |
| 4780 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4781 | echo "#! /bin/sh" >conf$$.sh |
| 4782 | echo "exit 0" >>conf$$.sh |
| 4783 | chmod +x conf$$.sh |
| 4784 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4785 | PATH_SEPARATOR=';' |
| 4786 | else |
| 4787 | PATH_SEPARATOR=: |
| 4788 | fi |
| 4789 | rm -f conf$$.sh |
| 4790 | fi |
| 4791 | |
| 4792 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4793 | # as systems may use methods other than mode bits to determine executability. |
| 4794 | cat >conf$$.file <<_ASEOF |
| 4795 | #! /bin/sh |
| 4796 | exit 0 |
| 4797 | _ASEOF |
| 4798 | chmod +x conf$$.file |
| 4799 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4800 | ac_executable_p="test -x" |
| 4801 | else |
| 4802 | ac_executable_p="test -f" |
| 4803 | fi |
| 4804 | rm -f conf$$.file |
| 4805 | |
| 4806 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4807 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4808 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4810 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4812 | else |
| 4813 | case "$XGETTEXT" in |
| 4814 | [\\/]* | ?:[\\/]*) |
| 4815 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4816 | ;; |
| 4817 | *) |
| 4818 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4819 | for ac_dir in $PATH; do |
| 4820 | IFS="$ac_save_IFS" |
| 4821 | test -z "$ac_dir" && ac_dir=. |
| 4822 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4823 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4824 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4825 | (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 |
| 4826 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4827 | break 2 |
| 4828 | fi |
| 4829 | fi |
| 4830 | done |
| 4831 | done |
| 4832 | IFS="$ac_save_IFS" |
| 4833 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4834 | ;; |
| 4835 | esac |
| 4836 | fi |
| 4837 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4838 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4839 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4840 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4841 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4842 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4843 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4844 | fi |
| 4845 | |
| 4846 | rm -f messages.po |
| 4847 | |
| 4848 | |
| 4849 | # Prepare PATH_SEPARATOR. |
| 4850 | # The user is always right. |
| 4851 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4852 | echo "#! /bin/sh" >conf$$.sh |
| 4853 | echo "exit 0" >>conf$$.sh |
| 4854 | chmod +x conf$$.sh |
| 4855 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4856 | PATH_SEPARATOR=';' |
| 4857 | else |
| 4858 | PATH_SEPARATOR=: |
| 4859 | fi |
| 4860 | rm -f conf$$.sh |
| 4861 | fi |
| 4862 | |
| 4863 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4864 | # as systems may use methods other than mode bits to determine executability. |
| 4865 | cat >conf$$.file <<_ASEOF |
| 4866 | #! /bin/sh |
| 4867 | exit 0 |
| 4868 | _ASEOF |
| 4869 | chmod +x conf$$.file |
| 4870 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4871 | ac_executable_p="test -x" |
| 4872 | else |
| 4873 | ac_executable_p="test -f" |
| 4874 | fi |
| 4875 | rm -f conf$$.file |
| 4876 | |
| 4877 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4878 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4879 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4881 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4883 | else |
| 4884 | case "$MSGMERGE" in |
| 4885 | [\\/]* | ?:[\\/]*) |
| 4886 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4887 | ;; |
| 4888 | *) |
| 4889 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4890 | for ac_dir in $PATH; do |
| 4891 | IFS="$ac_save_IFS" |
| 4892 | test -z "$ac_dir" && ac_dir=. |
| 4893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4894 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4895 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4896 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4897 | break 2 |
| 4898 | fi |
| 4899 | fi |
| 4900 | done |
| 4901 | done |
| 4902 | IFS="$ac_save_IFS" |
| 4903 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4904 | ;; |
| 4905 | esac |
| 4906 | fi |
| 4907 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4908 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4909 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4910 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4911 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4913 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4914 | fi |
| 4915 | |
| 4916 | |
| 4917 | if test "$GMSGFMT" != ":"; then |
| 4918 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4919 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4920 | : ; |
| 4921 | else |
| 4922 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4923 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4924 | 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] | 4925 | GMSGFMT=":" |
| 4926 | fi |
| 4927 | fi |
| 4928 | |
| 4929 | if test "$XGETTEXT" != ":"; then |
| 4930 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4931 | (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 |
| 4932 | : ; |
| 4933 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4934 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4935 | 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] | 4936 | XGETTEXT=":" |
| 4937 | fi |
| 4938 | rm -f messages.po |
| 4939 | fi |
| 4940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4941 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4942 | |
| 4943 | |
| 4944 | if test -n "$ac_tool_prefix"; then |
| 4945 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4946 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4949 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4951 | else |
| 4952 | if test -n "$RANLIB"; then |
| 4953 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4954 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4956 | for as_dir in $PATH |
| 4957 | do |
| 4958 | IFS=$as_save_IFS |
| 4959 | test -z "$as_dir" && as_dir=. |
| 4960 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4961 | 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] | 4962 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4964 | break 2 |
| 4965 | fi |
| 4966 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4967 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4968 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4969 | |
| 4970 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4971 | fi |
| 4972 | RANLIB=$ac_cv_prog_RANLIB |
| 4973 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4974 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4975 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4976 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4978 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4979 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4981 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4982 | fi |
| 4983 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4984 | ac_ct_RANLIB=$RANLIB |
| 4985 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4986 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4989 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4991 | else |
| 4992 | if test -n "$ac_ct_RANLIB"; then |
| 4993 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4994 | else |
| 4995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4996 | for as_dir in $PATH |
| 4997 | do |
| 4998 | IFS=$as_save_IFS |
| 4999 | test -z "$as_dir" && as_dir=. |
| 5000 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5001 | 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] | 5002 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5004 | break 2 |
| 5005 | fi |
| 5006 | done |
| 5007 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5008 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5010 | fi |
| 5011 | fi |
| 5012 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5013 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5014 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5015 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5016 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5018 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5019 | fi |
| 5020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5021 | if test "x$ac_ct_RANLIB" = x; then |
| 5022 | RANLIB=":" |
| 5023 | else |
| 5024 | case $cross_compiling:$ac_tool_warned in |
| 5025 | yes:) |
| 5026 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5027 | whose name does not start with the host triplet. If you think this |
| 5028 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5029 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5030 | whose name does not start with the host triplet. If you think this |
| 5031 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5032 | ac_tool_warned=yes ;; |
| 5033 | esac |
| 5034 | RANLIB=$ac_ct_RANLIB |
| 5035 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5036 | else |
| 5037 | RANLIB="$ac_cv_prog_RANLIB" |
| 5038 | fi |
| 5039 | |
| 5040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5041 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5042 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5043 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 5044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5045 | else |
| 5046 | ac_check_lib_save_LIBS=$LIBS |
| 5047 | LIBS="-lcposix $LIBS" |
| 5048 | cat >conftest.$ac_ext <<_ACEOF |
| 5049 | /* confdefs.h. */ |
| 5050 | _ACEOF |
| 5051 | cat confdefs.h >>conftest.$ac_ext |
| 5052 | cat >>conftest.$ac_ext <<_ACEOF |
| 5053 | /* end confdefs.h. */ |
| 5054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5055 | /* Override any GCC internal prototype to avoid an error. |
| 5056 | Use char because int might match the return type of a GCC |
| 5057 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5058 | #ifdef __cplusplus |
| 5059 | extern "C" |
| 5060 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5061 | char strerror (); |
| 5062 | int |
| 5063 | main () |
| 5064 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5065 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5066 | ; |
| 5067 | return 0; |
| 5068 | } |
| 5069 | _ACEOF |
| 5070 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5071 | if { (ac_try="$ac_link" |
| 5072 | case "(($ac_try" in |
| 5073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5074 | *) ac_try_echo=$ac_try;; |
| 5075 | esac |
| 5076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5077 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5078 | ac_status=$? |
| 5079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5080 | rm -f conftest.er1 |
| 5081 | cat conftest.err >&5 |
| 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5083 | (exit $ac_status); } && { |
| 5084 | test -z "$ac_c_werror_flag" || |
| 5085 | test ! -s conftest.err |
| 5086 | } && test -s conftest$ac_exeext && |
| 5087 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5088 | ac_cv_lib_cposix_strerror=yes |
| 5089 | else |
| 5090 | echo "$as_me: failed program was:" >&5 |
| 5091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5092 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5093 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5094 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5095 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5096 | 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] | 5097 | conftest$ac_exeext conftest.$ac_ext |
| 5098 | LIBS=$ac_check_lib_save_LIBS |
| 5099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5100 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5101 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5102 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5103 | LIBS="$LIBS -lcposix" |
| 5104 | fi |
| 5105 | |
| 5106 | |
| 5107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5108 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5109 | 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] | 5110 | if test "${ac_cv_c_const+set}" = set; then |
| 5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5112 | else |
| 5113 | cat >conftest.$ac_ext <<_ACEOF |
| 5114 | /* confdefs.h. */ |
| 5115 | _ACEOF |
| 5116 | cat confdefs.h >>conftest.$ac_ext |
| 5117 | cat >>conftest.$ac_ext <<_ACEOF |
| 5118 | /* end confdefs.h. */ |
| 5119 | |
| 5120 | int |
| 5121 | main () |
| 5122 | { |
| 5123 | /* FIXME: Include the comments suggested by Paul. */ |
| 5124 | #ifndef __cplusplus |
| 5125 | /* Ultrix mips cc rejects this. */ |
| 5126 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5127 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5128 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5129 | char const *const *pcpcc; |
| 5130 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5131 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5132 | struct point {int x, y;}; |
| 5133 | static struct point const zero = {0,0}; |
| 5134 | /* AIX XL C 1.02.0.0 rejects this. |
| 5135 | It does not let you subtract one const X* pointer from another in |
| 5136 | an arm of an if-expression whose if-part is not a constant |
| 5137 | expression */ |
| 5138 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5139 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5140 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5141 | ++pcpcc; |
| 5142 | ppc = (char**) pcpcc; |
| 5143 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5144 | { /* SCO 3.2v4 cc rejects this. */ |
| 5145 | char *t; |
| 5146 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5147 | |
| 5148 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5149 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5150 | } |
| 5151 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5152 | int x[] = {25, 17}; |
| 5153 | const int *foo = &x[0]; |
| 5154 | ++foo; |
| 5155 | } |
| 5156 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5157 | typedef const int *iptr; |
| 5158 | iptr p = 0; |
| 5159 | ++p; |
| 5160 | } |
| 5161 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5162 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5163 | struct s { int j; const int *ap[3]; }; |
| 5164 | struct s *b; b->j = 5; |
| 5165 | } |
| 5166 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5167 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5168 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5169 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5170 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5171 | #endif |
| 5172 | |
| 5173 | ; |
| 5174 | return 0; |
| 5175 | } |
| 5176 | _ACEOF |
| 5177 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5178 | if { (ac_try="$ac_compile" |
| 5179 | case "(($ac_try" in |
| 5180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5181 | *) ac_try_echo=$ac_try;; |
| 5182 | esac |
| 5183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5184 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5185 | ac_status=$? |
| 5186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5187 | rm -f conftest.er1 |
| 5188 | cat conftest.err >&5 |
| 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5190 | (exit $ac_status); } && { |
| 5191 | test -z "$ac_c_werror_flag" || |
| 5192 | test ! -s conftest.err |
| 5193 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5194 | ac_cv_c_const=yes |
| 5195 | else |
| 5196 | echo "$as_me: failed program was:" >&5 |
| 5197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5198 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5199 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5200 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5201 | |
| 5202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5203 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5204 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5205 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5206 | if test $ac_cv_c_const = no; then |
| 5207 | |
| 5208 | cat >>confdefs.h <<\_ACEOF |
| 5209 | #define const |
| 5210 | _ACEOF |
| 5211 | |
| 5212 | fi |
| 5213 | |
| 5214 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5215 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5216 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5217 | if test "${bh_cv_c_signed+set}" = set; then |
| 5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5219 | else |
| 5220 | cat >conftest.$ac_ext <<_ACEOF |
| 5221 | /* confdefs.h. */ |
| 5222 | _ACEOF |
| 5223 | cat confdefs.h >>conftest.$ac_ext |
| 5224 | cat >>conftest.$ac_ext <<_ACEOF |
| 5225 | /* end confdefs.h. */ |
| 5226 | |
| 5227 | int |
| 5228 | main () |
| 5229 | { |
| 5230 | signed char x; |
| 5231 | ; |
| 5232 | return 0; |
| 5233 | } |
| 5234 | _ACEOF |
| 5235 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5236 | if { (ac_try="$ac_compile" |
| 5237 | case "(($ac_try" in |
| 5238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5239 | *) ac_try_echo=$ac_try;; |
| 5240 | esac |
| 5241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5242 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5243 | ac_status=$? |
| 5244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5245 | rm -f conftest.er1 |
| 5246 | cat conftest.err >&5 |
| 5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5248 | (exit $ac_status); } && { |
| 5249 | test -z "$ac_c_werror_flag" || |
| 5250 | test ! -s conftest.err |
| 5251 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5252 | bh_cv_c_signed=yes |
| 5253 | else |
| 5254 | echo "$as_me: failed program was:" >&5 |
| 5255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5257 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5259 | |
| 5260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5261 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5262 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5263 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5264 | if test $bh_cv_c_signed = no; then |
| 5265 | |
| 5266 | cat >>confdefs.h <<\_ACEOF |
| 5267 | #define signed |
| 5268 | _ACEOF |
| 5269 | |
| 5270 | fi |
| 5271 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5272 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5273 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5274 | if test "${ac_cv_c_inline+set}" = set; then |
| 5275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5276 | else |
| 5277 | ac_cv_c_inline=no |
| 5278 | for ac_kw in inline __inline__ __inline; do |
| 5279 | cat >conftest.$ac_ext <<_ACEOF |
| 5280 | /* confdefs.h. */ |
| 5281 | _ACEOF |
| 5282 | cat confdefs.h >>conftest.$ac_ext |
| 5283 | cat >>conftest.$ac_ext <<_ACEOF |
| 5284 | /* end confdefs.h. */ |
| 5285 | #ifndef __cplusplus |
| 5286 | typedef int foo_t; |
| 5287 | static $ac_kw foo_t static_foo () {return 0; } |
| 5288 | $ac_kw foo_t foo () {return 0; } |
| 5289 | #endif |
| 5290 | |
| 5291 | _ACEOF |
| 5292 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5293 | if { (ac_try="$ac_compile" |
| 5294 | case "(($ac_try" in |
| 5295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5296 | *) ac_try_echo=$ac_try;; |
| 5297 | esac |
| 5298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5299 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5300 | ac_status=$? |
| 5301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5302 | rm -f conftest.er1 |
| 5303 | cat conftest.err >&5 |
| 5304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5305 | (exit $ac_status); } && { |
| 5306 | test -z "$ac_c_werror_flag" || |
| 5307 | test ! -s conftest.err |
| 5308 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5309 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5310 | else |
| 5311 | echo "$as_me: failed program was:" >&5 |
| 5312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5313 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5314 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5315 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5316 | |
| 5317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5318 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5319 | done |
| 5320 | |
| 5321 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5322 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5323 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5324 | |
| 5325 | |
| 5326 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5327 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5328 | *) |
| 5329 | case $ac_cv_c_inline in |
| 5330 | no) ac_val=;; |
| 5331 | *) ac_val=$ac_cv_c_inline;; |
| 5332 | esac |
| 5333 | cat >>confdefs.h <<_ACEOF |
| 5334 | #ifndef __cplusplus |
| 5335 | #define inline $ac_val |
| 5336 | #endif |
| 5337 | _ACEOF |
| 5338 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5339 | esac |
| 5340 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5341 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5342 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5343 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5345 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5346 | cat >conftest.$ac_ext <<_ACEOF |
| 5347 | /* confdefs.h. */ |
| 5348 | _ACEOF |
| 5349 | cat confdefs.h >>conftest.$ac_ext |
| 5350 | cat >>conftest.$ac_ext <<_ACEOF |
| 5351 | /* end confdefs.h. */ |
| 5352 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5354 | int |
| 5355 | main () |
| 5356 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5357 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5358 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5359 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5360 | return 0; |
| 5361 | ; |
| 5362 | return 0; |
| 5363 | } |
| 5364 | _ACEOF |
| 5365 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5366 | if { (ac_try="$ac_compile" |
| 5367 | case "(($ac_try" in |
| 5368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5369 | *) ac_try_echo=$ac_try;; |
| 5370 | esac |
| 5371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5372 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5373 | ac_status=$? |
| 5374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5375 | rm -f conftest.er1 |
| 5376 | cat conftest.err >&5 |
| 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5378 | (exit $ac_status); } && { |
| 5379 | test -z "$ac_c_werror_flag" || |
| 5380 | test ! -s conftest.err |
| 5381 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5382 | ac_cv_type_off_t=yes |
| 5383 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5384 | echo "$as_me: failed program was:" >&5 |
| 5385 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5386 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5387 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5388 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5389 | |
| 5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5391 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5392 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5393 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5394 | if test $ac_cv_type_off_t = yes; then |
| 5395 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5396 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5397 | |
| 5398 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5399 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5400 | _ACEOF |
| 5401 | |
| 5402 | fi |
| 5403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5404 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5405 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5406 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5408 | else |
| 5409 | cat >conftest.$ac_ext <<_ACEOF |
| 5410 | /* confdefs.h. */ |
| 5411 | _ACEOF |
| 5412 | cat confdefs.h >>conftest.$ac_ext |
| 5413 | cat >>conftest.$ac_ext <<_ACEOF |
| 5414 | /* end confdefs.h. */ |
| 5415 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5416 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5417 | int |
| 5418 | main () |
| 5419 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5420 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5421 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5422 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5423 | return 0; |
| 5424 | ; |
| 5425 | return 0; |
| 5426 | } |
| 5427 | _ACEOF |
| 5428 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5429 | if { (ac_try="$ac_compile" |
| 5430 | case "(($ac_try" in |
| 5431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5432 | *) ac_try_echo=$ac_try;; |
| 5433 | esac |
| 5434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5435 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5436 | ac_status=$? |
| 5437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5438 | rm -f conftest.er1 |
| 5439 | cat conftest.err >&5 |
| 5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5441 | (exit $ac_status); } && { |
| 5442 | test -z "$ac_c_werror_flag" || |
| 5443 | test ! -s conftest.err |
| 5444 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5445 | ac_cv_type_size_t=yes |
| 5446 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5447 | echo "$as_me: failed program was:" >&5 |
| 5448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5449 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5450 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5451 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5452 | |
| 5453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5454 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5455 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5456 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5457 | if test $ac_cv_type_size_t = yes; then |
| 5458 | : |
| 5459 | else |
| 5460 | |
| 5461 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5462 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5463 | _ACEOF |
| 5464 | |
| 5465 | fi |
| 5466 | |
| 5467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5468 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5469 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5470 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5472 | else |
| 5473 | cat >conftest.$ac_ext <<_ACEOF |
| 5474 | /* confdefs.h. */ |
| 5475 | _ACEOF |
| 5476 | cat confdefs.h >>conftest.$ac_ext |
| 5477 | cat >>conftest.$ac_ext <<_ACEOF |
| 5478 | /* end confdefs.h. */ |
| 5479 | long long ll = 1LL; int i = 63; |
| 5480 | int |
| 5481 | main () |
| 5482 | { |
| 5483 | long long llmax = (long long) -1; |
| 5484 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5485 | ; |
| 5486 | return 0; |
| 5487 | } |
| 5488 | _ACEOF |
| 5489 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5490 | if { (ac_try="$ac_link" |
| 5491 | case "(($ac_try" in |
| 5492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5493 | *) ac_try_echo=$ac_try;; |
| 5494 | esac |
| 5495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5496 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5497 | ac_status=$? |
| 5498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5499 | rm -f conftest.er1 |
| 5500 | cat conftest.err >&5 |
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5502 | (exit $ac_status); } && { |
| 5503 | test -z "$ac_c_werror_flag" || |
| 5504 | test ! -s conftest.err |
| 5505 | } && test -s conftest$ac_exeext && |
| 5506 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5507 | ac_cv_type_long_long=yes |
| 5508 | else |
| 5509 | echo "$as_me: failed program was:" >&5 |
| 5510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5511 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5512 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5514 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5515 | 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] | 5516 | conftest$ac_exeext conftest.$ac_ext |
| 5517 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5518 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5519 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5520 | if test $ac_cv_type_long_long = yes; then |
| 5521 | |
| 5522 | cat >>confdefs.h <<\_ACEOF |
| 5523 | #define HAVE_LONG_LONG 1 |
| 5524 | _ACEOF |
| 5525 | |
| 5526 | fi |
| 5527 | |
| 5528 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5529 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5530 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5531 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5533 | else |
| 5534 | if test "$GCC" = yes; then |
| 5535 | gt_cv_c_long_double=yes |
| 5536 | else |
| 5537 | cat >conftest.$ac_ext <<_ACEOF |
| 5538 | /* confdefs.h. */ |
| 5539 | _ACEOF |
| 5540 | cat confdefs.h >>conftest.$ac_ext |
| 5541 | cat >>conftest.$ac_ext <<_ACEOF |
| 5542 | /* end confdefs.h. */ |
| 5543 | |
| 5544 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5545 | long double foo = 0.0; |
| 5546 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5547 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5548 | |
| 5549 | int |
| 5550 | main () |
| 5551 | { |
| 5552 | |
| 5553 | ; |
| 5554 | return 0; |
| 5555 | } |
| 5556 | _ACEOF |
| 5557 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5558 | if { (ac_try="$ac_compile" |
| 5559 | case "(($ac_try" in |
| 5560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5561 | *) ac_try_echo=$ac_try;; |
| 5562 | esac |
| 5563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5564 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5565 | ac_status=$? |
| 5566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5567 | rm -f conftest.er1 |
| 5568 | cat conftest.err >&5 |
| 5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5570 | (exit $ac_status); } && { |
| 5571 | test -z "$ac_c_werror_flag" || |
| 5572 | test ! -s conftest.err |
| 5573 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5574 | gt_cv_c_long_double=yes |
| 5575 | else |
| 5576 | echo "$as_me: failed program was:" >&5 |
| 5577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5578 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5579 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5581 | |
| 5582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5583 | fi |
| 5584 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5585 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5586 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5587 | if test $gt_cv_c_long_double = yes; then |
| 5588 | |
| 5589 | cat >>confdefs.h <<\_ACEOF |
| 5590 | #define HAVE_LONG_DOUBLE 1 |
| 5591 | _ACEOF |
| 5592 | |
| 5593 | fi |
| 5594 | |
| 5595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5596 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5597 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5598 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5600 | else |
| 5601 | cat >conftest.$ac_ext <<_ACEOF |
| 5602 | /* confdefs.h. */ |
| 5603 | _ACEOF |
| 5604 | cat confdefs.h >>conftest.$ac_ext |
| 5605 | cat >>conftest.$ac_ext <<_ACEOF |
| 5606 | /* end confdefs.h. */ |
| 5607 | #include <stddef.h> |
| 5608 | wchar_t foo = (wchar_t)'\0'; |
| 5609 | int |
| 5610 | main () |
| 5611 | { |
| 5612 | |
| 5613 | ; |
| 5614 | return 0; |
| 5615 | } |
| 5616 | _ACEOF |
| 5617 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5618 | if { (ac_try="$ac_compile" |
| 5619 | case "(($ac_try" in |
| 5620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5621 | *) ac_try_echo=$ac_try;; |
| 5622 | esac |
| 5623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5624 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5625 | ac_status=$? |
| 5626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5627 | rm -f conftest.er1 |
| 5628 | cat conftest.err >&5 |
| 5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5630 | (exit $ac_status); } && { |
| 5631 | test -z "$ac_c_werror_flag" || |
| 5632 | test ! -s conftest.err |
| 5633 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5634 | gt_cv_c_wchar_t=yes |
| 5635 | else |
| 5636 | echo "$as_me: failed program was:" >&5 |
| 5637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5638 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5639 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5641 | |
| 5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5644 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5645 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | if test $gt_cv_c_wchar_t = yes; then |
| 5647 | |
| 5648 | cat >>confdefs.h <<\_ACEOF |
| 5649 | #define HAVE_WCHAR_T 1 |
| 5650 | _ACEOF |
| 5651 | |
| 5652 | fi |
| 5653 | |
| 5654 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5656 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5657 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5659 | else |
| 5660 | cat >conftest.$ac_ext <<_ACEOF |
| 5661 | /* confdefs.h. */ |
| 5662 | _ACEOF |
| 5663 | cat confdefs.h >>conftest.$ac_ext |
| 5664 | cat >>conftest.$ac_ext <<_ACEOF |
| 5665 | /* end confdefs.h. */ |
| 5666 | #include <wchar.h> |
| 5667 | wint_t foo = (wchar_t)'\0'; |
| 5668 | int |
| 5669 | main () |
| 5670 | { |
| 5671 | |
| 5672 | ; |
| 5673 | return 0; |
| 5674 | } |
| 5675 | _ACEOF |
| 5676 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | if { (ac_try="$ac_compile" |
| 5678 | case "(($ac_try" in |
| 5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5680 | *) ac_try_echo=$ac_try;; |
| 5681 | esac |
| 5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5683 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5684 | ac_status=$? |
| 5685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5686 | rm -f conftest.er1 |
| 5687 | cat conftest.err >&5 |
| 5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5689 | (exit $ac_status); } && { |
| 5690 | test -z "$ac_c_werror_flag" || |
| 5691 | test ! -s conftest.err |
| 5692 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5693 | gt_cv_c_wint_t=yes |
| 5694 | else |
| 5695 | echo "$as_me: failed program was:" >&5 |
| 5696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5698 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5699 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5700 | |
| 5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5703 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5704 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5705 | if test $gt_cv_c_wint_t = yes; then |
| 5706 | |
| 5707 | cat >>confdefs.h <<\_ACEOF |
| 5708 | #define HAVE_WINT_T 1 |
| 5709 | _ACEOF |
| 5710 | |
| 5711 | fi |
| 5712 | |
| 5713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5715 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5716 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5718 | else |
| 5719 | cat >conftest.$ac_ext <<_ACEOF |
| 5720 | /* confdefs.h. */ |
| 5721 | _ACEOF |
| 5722 | cat confdefs.h >>conftest.$ac_ext |
| 5723 | cat >>conftest.$ac_ext <<_ACEOF |
| 5724 | /* end confdefs.h. */ |
| 5725 | #include <sys/types.h> |
| 5726 | #include <inttypes.h> |
| 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | uintmax_t i = (uintmax_t) -1; |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5736 | if { (ac_try="$ac_compile" |
| 5737 | case "(($ac_try" in |
| 5738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5739 | *) ac_try_echo=$ac_try;; |
| 5740 | esac |
| 5741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5742 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5743 | ac_status=$? |
| 5744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5745 | rm -f conftest.er1 |
| 5746 | cat conftest.err >&5 |
| 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5748 | (exit $ac_status); } && { |
| 5749 | test -z "$ac_c_werror_flag" || |
| 5750 | test ! -s conftest.err |
| 5751 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5752 | jm_ac_cv_header_inttypes_h=yes |
| 5753 | else |
| 5754 | echo "$as_me: failed program was:" >&5 |
| 5755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5758 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5759 | |
| 5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5761 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5762 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5763 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5764 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5765 | |
| 5766 | cat >>confdefs.h <<_ACEOF |
| 5767 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5768 | _ACEOF |
| 5769 | |
| 5770 | fi |
| 5771 | |
| 5772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5773 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5774 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5775 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5777 | else |
| 5778 | cat >conftest.$ac_ext <<_ACEOF |
| 5779 | /* confdefs.h. */ |
| 5780 | _ACEOF |
| 5781 | cat confdefs.h >>conftest.$ac_ext |
| 5782 | cat >>conftest.$ac_ext <<_ACEOF |
| 5783 | /* end confdefs.h. */ |
| 5784 | #include <sys/types.h> |
| 5785 | #include <stdint.h> |
| 5786 | int |
| 5787 | main () |
| 5788 | { |
| 5789 | uintmax_t i = (uintmax_t) -1; |
| 5790 | ; |
| 5791 | return 0; |
| 5792 | } |
| 5793 | _ACEOF |
| 5794 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5795 | if { (ac_try="$ac_compile" |
| 5796 | case "(($ac_try" in |
| 5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5798 | *) ac_try_echo=$ac_try;; |
| 5799 | esac |
| 5800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5801 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5802 | ac_status=$? |
| 5803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5804 | rm -f conftest.er1 |
| 5805 | cat conftest.err >&5 |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5807 | (exit $ac_status); } && { |
| 5808 | test -z "$ac_c_werror_flag" || |
| 5809 | test ! -s conftest.err |
| 5810 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5811 | jm_ac_cv_header_stdint_h=yes |
| 5812 | else |
| 5813 | echo "$as_me: failed program was:" >&5 |
| 5814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5816 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5818 | |
| 5819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5821 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5822 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5823 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5824 | |
| 5825 | cat >>confdefs.h <<_ACEOF |
| 5826 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5827 | _ACEOF |
| 5828 | |
| 5829 | fi |
| 5830 | |
| 5831 | |
| 5832 | |
| 5833 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5834 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5835 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5836 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5838 | else |
| 5839 | cat >conftest.$ac_ext <<_ACEOF |
| 5840 | /* confdefs.h. */ |
| 5841 | _ACEOF |
| 5842 | cat confdefs.h >>conftest.$ac_ext |
| 5843 | cat >>conftest.$ac_ext <<_ACEOF |
| 5844 | /* end confdefs.h. */ |
| 5845 | |
| 5846 | #include <stddef.h> |
| 5847 | #include <stdlib.h> |
| 5848 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5849 | #include <stdint.h> |
| 5850 | #endif |
| 5851 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5852 | #include <inttypes.h> |
| 5853 | #endif |
| 5854 | |
| 5855 | int |
| 5856 | main () |
| 5857 | { |
| 5858 | intmax_t x = -1; |
| 5859 | ; |
| 5860 | return 0; |
| 5861 | } |
| 5862 | _ACEOF |
| 5863 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5864 | if { (ac_try="$ac_compile" |
| 5865 | case "(($ac_try" in |
| 5866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5867 | *) ac_try_echo=$ac_try;; |
| 5868 | esac |
| 5869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5870 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5871 | ac_status=$? |
| 5872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5873 | rm -f conftest.er1 |
| 5874 | cat conftest.err >&5 |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5876 | (exit $ac_status); } && { |
| 5877 | test -z "$ac_c_werror_flag" || |
| 5878 | test ! -s conftest.err |
| 5879 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5880 | gt_cv_c_intmax_t=yes |
| 5881 | else |
| 5882 | echo "$as_me: failed program was:" >&5 |
| 5883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5884 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5885 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5886 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5887 | |
| 5888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5889 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5890 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5891 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5892 | if test $gt_cv_c_intmax_t = yes; then |
| 5893 | |
| 5894 | cat >>confdefs.h <<\_ACEOF |
| 5895 | #define HAVE_INTMAX_T 1 |
| 5896 | _ACEOF |
| 5897 | |
| 5898 | fi |
| 5899 | |
| 5900 | |
| 5901 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5902 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5903 | 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] | 5904 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5906 | else |
| 5907 | |
| 5908 | if test "$cross_compiling" = yes; then |
| 5909 | |
| 5910 | cat >conftest.$ac_ext <<_ACEOF |
| 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
| 5915 | /* end confdefs.h. */ |
| 5916 | |
| 5917 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5918 | notposix |
| 5919 | #endif |
| 5920 | |
| 5921 | _ACEOF |
| 5922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5923 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5924 | gt_cv_func_printf_posix="guessing no" |
| 5925 | else |
| 5926 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5927 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5928 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5929 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5930 | |
| 5931 | else |
| 5932 | cat >conftest.$ac_ext <<_ACEOF |
| 5933 | /* confdefs.h. */ |
| 5934 | _ACEOF |
| 5935 | cat confdefs.h >>conftest.$ac_ext |
| 5936 | cat >>conftest.$ac_ext <<_ACEOF |
| 5937 | /* end confdefs.h. */ |
| 5938 | |
| 5939 | #include <stdio.h> |
| 5940 | #include <string.h> |
| 5941 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5942 | dollar expansion (possibly an autoconf bug). */ |
| 5943 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5944 | static char buf[100]; |
| 5945 | int main () |
| 5946 | { |
| 5947 | sprintf (buf, format, 33, 55); |
| 5948 | return (strcmp (buf, "55 33") != 0); |
| 5949 | } |
| 5950 | _ACEOF |
| 5951 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5952 | if { (ac_try="$ac_link" |
| 5953 | case "(($ac_try" in |
| 5954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5955 | *) ac_try_echo=$ac_try;; |
| 5956 | esac |
| 5957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5958 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5959 | ac_status=$? |
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5962 | { (case "(($ac_try" in |
| 5963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5964 | *) ac_try_echo=$ac_try;; |
| 5965 | esac |
| 5966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5967 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5968 | ac_status=$? |
| 5969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5970 | (exit $ac_status); }; }; then |
| 5971 | gt_cv_func_printf_posix=yes |
| 5972 | else |
| 5973 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5974 | echo "$as_me: failed program was:" >&5 |
| 5975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5976 | |
| 5977 | ( exit $ac_status ) |
| 5978 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5979 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5980 | 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] | 5981 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5983 | |
| 5984 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5985 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5986 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5987 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5988 | case $gt_cv_func_printf_posix in |
| 5989 | *yes) |
| 5990 | |
| 5991 | cat >>confdefs.h <<\_ACEOF |
| 5992 | #define HAVE_POSIX_PRINTF 1 |
| 5993 | _ACEOF |
| 5994 | |
| 5995 | ;; |
| 5996 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5997 | |
| 5998 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5999 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6000 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6001 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6002 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 6003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6004 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6005 | cat >conftest.$ac_ext <<_ACEOF |
| 6006 | /* confdefs.h. */ |
| 6007 | _ACEOF |
| 6008 | cat confdefs.h >>conftest.$ac_ext |
| 6009 | cat >>conftest.$ac_ext <<_ACEOF |
| 6010 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6011 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6012 | int |
| 6013 | main () |
| 6014 | { |
| 6015 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6016 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6017 | ; |
| 6018 | return 0; |
| 6019 | } |
| 6020 | _ACEOF |
| 6021 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6022 | if { (ac_try="$ac_link" |
| 6023 | case "(($ac_try" in |
| 6024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6025 | *) ac_try_echo=$ac_try;; |
| 6026 | esac |
| 6027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6028 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | ac_status=$? |
| 6030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6031 | rm -f conftest.er1 |
| 6032 | cat conftest.err >&5 |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6034 | (exit $ac_status); } && { |
| 6035 | test -z "$ac_c_werror_flag" || |
| 6036 | test ! -s conftest.err |
| 6037 | } && test -s conftest$ac_exeext && |
| 6038 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6039 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6041 | echo "$as_me: failed program was:" >&5 |
| 6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6043 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6044 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6045 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6046 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6047 | 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] | 6048 | conftest$ac_exeext conftest.$ac_ext |
| 6049 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6050 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6051 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6052 | if test $ac_cv_working_alloca_h = yes; then |
| 6053 | |
| 6054 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6055 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6056 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6057 | |
| 6058 | fi |
| 6059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6060 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6061 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6062 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6064 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | cat >conftest.$ac_ext <<_ACEOF |
| 6066 | /* confdefs.h. */ |
| 6067 | _ACEOF |
| 6068 | cat confdefs.h >>conftest.$ac_ext |
| 6069 | cat >>conftest.$ac_ext <<_ACEOF |
| 6070 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6071 | #ifdef __GNUC__ |
| 6072 | # define alloca __builtin_alloca |
| 6073 | #else |
| 6074 | # ifdef _MSC_VER |
| 6075 | # include <malloc.h> |
| 6076 | # define alloca _alloca |
| 6077 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6078 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6079 | # include <alloca.h> |
| 6080 | # else |
| 6081 | # ifdef _AIX |
| 6082 | #pragma alloca |
| 6083 | # else |
| 6084 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6085 | char *alloca (); |
| 6086 | # endif |
| 6087 | # endif |
| 6088 | # endif |
| 6089 | # endif |
| 6090 | #endif |
| 6091 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6092 | int |
| 6093 | main () |
| 6094 | { |
| 6095 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6096 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | ; |
| 6098 | return 0; |
| 6099 | } |
| 6100 | _ACEOF |
| 6101 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6102 | if { (ac_try="$ac_link" |
| 6103 | case "(($ac_try" in |
| 6104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6105 | *) ac_try_echo=$ac_try;; |
| 6106 | esac |
| 6107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6108 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | ac_status=$? |
| 6110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6111 | rm -f conftest.er1 |
| 6112 | cat conftest.err >&5 |
| 6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6114 | (exit $ac_status); } && { |
| 6115 | test -z "$ac_c_werror_flag" || |
| 6116 | test ! -s conftest.err |
| 6117 | } && test -s conftest$ac_exeext && |
| 6118 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6119 | ac_cv_func_alloca_works=yes |
| 6120 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6121 | echo "$as_me: failed program was:" >&5 |
| 6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6123 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6124 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6126 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6127 | 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] | 6128 | conftest$ac_exeext conftest.$ac_ext |
| 6129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6130 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6131 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6132 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6133 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6134 | |
| 6135 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6136 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6137 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6138 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6140 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6141 | # that cause trouble. Some versions do not even contain alloca or |
| 6142 | # contain a buggy version. If you still want to use their alloca, |
| 6143 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6145 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6146 | |
| 6147 | cat >>confdefs.h <<\_ACEOF |
| 6148 | #define C_ALLOCA 1 |
| 6149 | _ACEOF |
| 6150 | |
| 6151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6152 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6153 | 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] | 6154 | if test "${ac_cv_os_cray+set}" = set; then |
| 6155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6156 | else |
| 6157 | cat >conftest.$ac_ext <<_ACEOF |
| 6158 | /* confdefs.h. */ |
| 6159 | _ACEOF |
| 6160 | cat confdefs.h >>conftest.$ac_ext |
| 6161 | cat >>conftest.$ac_ext <<_ACEOF |
| 6162 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6163 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6164 | webecray |
| 6165 | #else |
| 6166 | wenotbecray |
| 6167 | #endif |
| 6168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6169 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6171 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6172 | ac_cv_os_cray=yes |
| 6173 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6174 | ac_cv_os_cray=no |
| 6175 | fi |
| 6176 | rm -f conftest* |
| 6177 | |
| 6178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6180 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6181 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | for ac_func in _getb67 GETB67 getb67; do |
| 6183 | 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] | 6184 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6186 | 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] | 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6188 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6189 | cat >conftest.$ac_ext <<_ACEOF |
| 6190 | /* confdefs.h. */ |
| 6191 | _ACEOF |
| 6192 | cat confdefs.h >>conftest.$ac_ext |
| 6193 | cat >>conftest.$ac_ext <<_ACEOF |
| 6194 | /* end confdefs.h. */ |
| 6195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6197 | #define $ac_func innocuous_$ac_func |
| 6198 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6199 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6200 | which can conflict with char $ac_func (); below. |
| 6201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6202 | <limits.h> exists even on freestanding compilers. */ |
| 6203 | |
| 6204 | #ifdef __STDC__ |
| 6205 | # include <limits.h> |
| 6206 | #else |
| 6207 | # include <assert.h> |
| 6208 | #endif |
| 6209 | |
| 6210 | #undef $ac_func |
| 6211 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6212 | /* Override any GCC internal prototype to avoid an error. |
| 6213 | Use char because int might match the return type of a GCC |
| 6214 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6215 | #ifdef __cplusplus |
| 6216 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6217 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6218 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6219 | /* The GNU C library defines this for functions which it implements |
| 6220 | to always fail with ENOSYS. Some functions are actually named |
| 6221 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6222 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6223 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6224 | #endif |
| 6225 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6226 | int |
| 6227 | main () |
| 6228 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6229 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6230 | ; |
| 6231 | return 0; |
| 6232 | } |
| 6233 | _ACEOF |
| 6234 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6235 | if { (ac_try="$ac_link" |
| 6236 | case "(($ac_try" in |
| 6237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6238 | *) ac_try_echo=$ac_try;; |
| 6239 | esac |
| 6240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6241 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6242 | ac_status=$? |
| 6243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6244 | rm -f conftest.er1 |
| 6245 | cat conftest.err >&5 |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6247 | (exit $ac_status); } && { |
| 6248 | test -z "$ac_c_werror_flag" || |
| 6249 | test ! -s conftest.err |
| 6250 | } && test -s conftest$ac_exeext && |
| 6251 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6252 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6253 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6254 | echo "$as_me: failed program was:" >&5 |
| 6255 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6257 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6259 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6260 | 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] | 6261 | conftest$ac_exeext conftest.$ac_ext |
| 6262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6263 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6264 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6265 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6266 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6267 | |
| 6268 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6269 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6270 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6272 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6273 | fi |
| 6274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6276 | fi |
| 6277 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6278 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6279 | 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] | 6280 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6282 | else |
| 6283 | if test "$cross_compiling" = yes; then |
| 6284 | ac_cv_c_stack_direction=0 |
| 6285 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6286 | cat >conftest.$ac_ext <<_ACEOF |
| 6287 | /* confdefs.h. */ |
| 6288 | _ACEOF |
| 6289 | cat confdefs.h >>conftest.$ac_ext |
| 6290 | cat >>conftest.$ac_ext <<_ACEOF |
| 6291 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6292 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6293 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6294 | find_stack_direction () |
| 6295 | { |
| 6296 | static char *addr = 0; |
| 6297 | auto char dummy; |
| 6298 | if (addr == 0) |
| 6299 | { |
| 6300 | addr = &dummy; |
| 6301 | return find_stack_direction (); |
| 6302 | } |
| 6303 | else |
| 6304 | return (&dummy > addr) ? 1 : -1; |
| 6305 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6306 | |
| 6307 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6308 | main () |
| 6309 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6310 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6311 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6312 | _ACEOF |
| 6313 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6314 | if { (ac_try="$ac_link" |
| 6315 | case "(($ac_try" in |
| 6316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6317 | *) ac_try_echo=$ac_try;; |
| 6318 | esac |
| 6319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6320 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6321 | ac_status=$? |
| 6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6324 | { (case "(($ac_try" in |
| 6325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6326 | *) ac_try_echo=$ac_try;; |
| 6327 | esac |
| 6328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6329 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6333 | ac_cv_c_stack_direction=1 |
| 6334 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6335 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6336 | echo "$as_me: failed program was:" >&5 |
| 6337 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6338 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6339 | ( exit $ac_status ) |
| 6340 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6341 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6342 | 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] | 6343 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6344 | |
| 6345 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6347 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6348 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6349 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6351 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6352 | _ACEOF |
| 6353 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6354 | |
| 6355 | fi |
| 6356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6357 | |
| 6358 | |
| 6359 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6360 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | 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] | 6362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6363 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6365 | 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] | 6366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6367 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6368 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6370 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6371 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6372 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6373 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6375 | cat >conftest.$ac_ext <<_ACEOF |
| 6376 | /* confdefs.h. */ |
| 6377 | _ACEOF |
| 6378 | cat confdefs.h >>conftest.$ac_ext |
| 6379 | cat >>conftest.$ac_ext <<_ACEOF |
| 6380 | /* end confdefs.h. */ |
| 6381 | $ac_includes_default |
| 6382 | #include <$ac_header> |
| 6383 | _ACEOF |
| 6384 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6385 | if { (ac_try="$ac_compile" |
| 6386 | case "(($ac_try" in |
| 6387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6388 | *) ac_try_echo=$ac_try;; |
| 6389 | esac |
| 6390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6391 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6392 | ac_status=$? |
| 6393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6394 | rm -f conftest.er1 |
| 6395 | cat conftest.err >&5 |
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6397 | (exit $ac_status); } && { |
| 6398 | test -z "$ac_c_werror_flag" || |
| 6399 | test ! -s conftest.err |
| 6400 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6401 | ac_header_compiler=yes |
| 6402 | else |
| 6403 | echo "$as_me: failed program was:" >&5 |
| 6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6406 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6407 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6408 | |
| 6409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6410 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6411 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6412 | |
| 6413 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6414 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | cat >conftest.$ac_ext <<_ACEOF |
| 6417 | /* confdefs.h. */ |
| 6418 | _ACEOF |
| 6419 | cat confdefs.h >>conftest.$ac_ext |
| 6420 | cat >>conftest.$ac_ext <<_ACEOF |
| 6421 | /* end confdefs.h. */ |
| 6422 | #include <$ac_header> |
| 6423 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6424 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6425 | case "(($ac_try" in |
| 6426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6427 | *) ac_try_echo=$ac_try;; |
| 6428 | esac |
| 6429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6431 | ac_status=$? |
| 6432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6433 | rm -f conftest.er1 |
| 6434 | cat conftest.err >&5 |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6436 | (exit $ac_status); } >/dev/null && { |
| 6437 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6438 | test ! -s conftest.err |
| 6439 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6440 | ac_header_preproc=yes |
| 6441 | else |
| 6442 | echo "$as_me: failed program was:" >&5 |
| 6443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6444 | |
| 6445 | ac_header_preproc=no |
| 6446 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6448 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6449 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6450 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | |
| 6452 | # So? What about this header? |
| 6453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6454 | yes:no: ) |
| 6455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6458 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6459 | ac_header_preproc=yes |
| 6460 | ;; |
| 6461 | no:yes:* ) |
| 6462 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6463 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6465 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6467 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6469 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6471 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6473 | 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] | 6474 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6475 | ;; |
| 6476 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6477 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6479 | 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] | 6480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6481 | else |
| 6482 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6483 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6484 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6485 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6486 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6487 | |
| 6488 | fi |
| 6489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6490 | cat >>confdefs.h <<_ACEOF |
| 6491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6492 | _ACEOF |
| 6493 | |
| 6494 | fi |
| 6495 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6496 | done |
| 6497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6498 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6499 | for ac_func in getpagesize |
| 6500 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | 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] | 6502 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6504 | 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] | 6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6506 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6507 | cat >conftest.$ac_ext <<_ACEOF |
| 6508 | /* confdefs.h. */ |
| 6509 | _ACEOF |
| 6510 | cat confdefs.h >>conftest.$ac_ext |
| 6511 | cat >>conftest.$ac_ext <<_ACEOF |
| 6512 | /* end confdefs.h. */ |
| 6513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6515 | #define $ac_func innocuous_$ac_func |
| 6516 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6517 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6518 | which can conflict with char $ac_func (); below. |
| 6519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6520 | <limits.h> exists even on freestanding compilers. */ |
| 6521 | |
| 6522 | #ifdef __STDC__ |
| 6523 | # include <limits.h> |
| 6524 | #else |
| 6525 | # include <assert.h> |
| 6526 | #endif |
| 6527 | |
| 6528 | #undef $ac_func |
| 6529 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6530 | /* Override any GCC internal prototype to avoid an error. |
| 6531 | Use char because int might match the return type of a GCC |
| 6532 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | #ifdef __cplusplus |
| 6534 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6537 | /* The GNU C library defines this for functions which it implements |
| 6538 | to always fail with ENOSYS. Some functions are actually named |
| 6539 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6540 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6541 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6542 | #endif |
| 6543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6544 | int |
| 6545 | main () |
| 6546 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6547 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6548 | ; |
| 6549 | return 0; |
| 6550 | } |
| 6551 | _ACEOF |
| 6552 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6553 | if { (ac_try="$ac_link" |
| 6554 | case "(($ac_try" in |
| 6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6556 | *) ac_try_echo=$ac_try;; |
| 6557 | esac |
| 6558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6559 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6560 | ac_status=$? |
| 6561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6562 | rm -f conftest.er1 |
| 6563 | cat conftest.err >&5 |
| 6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6565 | (exit $ac_status); } && { |
| 6566 | test -z "$ac_c_werror_flag" || |
| 6567 | test ! -s conftest.err |
| 6568 | } && test -s conftest$ac_exeext && |
| 6569 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6570 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6571 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6572 | echo "$as_me: failed program was:" >&5 |
| 6573 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6575 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6577 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6578 | 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] | 6579 | conftest$ac_exeext conftest.$ac_ext |
| 6580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6581 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6583 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6584 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6585 | cat >>confdefs.h <<_ACEOF |
| 6586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6587 | _ACEOF |
| 6588 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6589 | fi |
| 6590 | done |
| 6591 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6592 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6593 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6594 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6596 | else |
| 6597 | if test "$cross_compiling" = yes; then |
| 6598 | ac_cv_func_mmap_fixed_mapped=no |
| 6599 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6600 | cat >conftest.$ac_ext <<_ACEOF |
| 6601 | /* confdefs.h. */ |
| 6602 | _ACEOF |
| 6603 | cat confdefs.h >>conftest.$ac_ext |
| 6604 | cat >>conftest.$ac_ext <<_ACEOF |
| 6605 | /* end confdefs.h. */ |
| 6606 | $ac_includes_default |
| 6607 | /* malloc might have been renamed as rpl_malloc. */ |
| 6608 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6609 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6610 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6611 | Here is a matrix of mmap possibilities: |
| 6612 | mmap private not fixed |
| 6613 | mmap private fixed at somewhere currently unmapped |
| 6614 | mmap private fixed at somewhere already mapped |
| 6615 | mmap shared not fixed |
| 6616 | mmap shared fixed at somewhere currently unmapped |
| 6617 | mmap shared fixed at somewhere already mapped |
| 6618 | For private mappings, we should verify that changes cannot be read() |
| 6619 | back from the file, nor mmap's back from the file at a different |
| 6620 | address. (There have been systems where private was not correctly |
| 6621 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6622 | 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] | 6623 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6624 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6625 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6626 | |
| 6627 | Grep wants private fixed already mapped. |
| 6628 | The main things grep needs to know about mmap are: |
| 6629 | * does it exist and is it safe to write into the mmap'd area |
| 6630 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6632 | #include <fcntl.h> |
| 6633 | #include <sys/mman.h> |
| 6634 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6635 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6636 | char *malloc (); |
| 6637 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6639 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6640 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6641 | /* 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] | 6642 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6643 | # define HAVE_SYS_PARAM_H 1 |
| 6644 | # endif |
| 6645 | |
| 6646 | # ifdef _SC_PAGESIZE |
| 6647 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6648 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6649 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6650 | # include <sys/param.h> |
| 6651 | # ifdef EXEC_PAGESIZE |
| 6652 | # define getpagesize() EXEC_PAGESIZE |
| 6653 | # else /* no EXEC_PAGESIZE */ |
| 6654 | # ifdef NBPG |
| 6655 | # define getpagesize() NBPG * CLSIZE |
| 6656 | # ifndef CLSIZE |
| 6657 | # define CLSIZE 1 |
| 6658 | # endif /* no CLSIZE */ |
| 6659 | # else /* no NBPG */ |
| 6660 | # ifdef NBPC |
| 6661 | # define getpagesize() NBPC |
| 6662 | # else /* no NBPC */ |
| 6663 | # ifdef PAGESIZE |
| 6664 | # define getpagesize() PAGESIZE |
| 6665 | # endif /* PAGESIZE */ |
| 6666 | # endif /* no NBPC */ |
| 6667 | # endif /* no NBPG */ |
| 6668 | # endif /* no EXEC_PAGESIZE */ |
| 6669 | # else /* no HAVE_SYS_PARAM_H */ |
| 6670 | # define getpagesize() 8192 /* punt totally */ |
| 6671 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6672 | # endif /* no _SC_PAGESIZE */ |
| 6673 | |
| 6674 | #endif /* no HAVE_GETPAGESIZE */ |
| 6675 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6676 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6678 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6679 | char *data, *data2, *data3; |
| 6680 | int i, pagesize; |
| 6681 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6682 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6684 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | /* First, make a file with some known garbage in it. */ |
| 6686 | data = (char *) malloc (pagesize); |
| 6687 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6688 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6689 | for (i = 0; i < pagesize; ++i) |
| 6690 | *(data + i) = rand (); |
| 6691 | umask (0); |
| 6692 | fd = creat ("conftest.mmap", 0600); |
| 6693 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6694 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6695 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6696 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | /* Next, try to mmap the file at a fixed address which already has |
| 6700 | something else allocated at it. If we can, also make sure that |
| 6701 | we see the same garbage. */ |
| 6702 | fd = open ("conftest.mmap", O_RDWR); |
| 6703 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6704 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | data2 = (char *) malloc (2 * pagesize); |
| 6706 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6707 | return 1; |
| 6708 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6709 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6710 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6711 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6712 | for (i = 0; i < pagesize; ++i) |
| 6713 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6714 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6715 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6716 | /* Finally, make sure that changes to the mapped area do not |
| 6717 | percolate back to the file as seen by read(). (This is a bug on |
| 6718 | some variants of i386 svr4.0.) */ |
| 6719 | for (i = 0; i < pagesize; ++i) |
| 6720 | *(data2 + i) = *(data2 + i) + 1; |
| 6721 | data3 = (char *) malloc (pagesize); |
| 6722 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6723 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6724 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6725 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6726 | for (i = 0; i < pagesize; ++i) |
| 6727 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6728 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6730 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6731 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6732 | _ACEOF |
| 6733 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6734 | if { (ac_try="$ac_link" |
| 6735 | case "(($ac_try" in |
| 6736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6737 | *) ac_try_echo=$ac_try;; |
| 6738 | esac |
| 6739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6740 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6741 | ac_status=$? |
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6744 | { (case "(($ac_try" in |
| 6745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6746 | *) ac_try_echo=$ac_try;; |
| 6747 | esac |
| 6748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6749 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | ac_status=$? |
| 6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6752 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6753 | ac_cv_func_mmap_fixed_mapped=yes |
| 6754 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6755 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6756 | echo "$as_me: failed program was:" >&5 |
| 6757 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6758 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6759 | ( exit $ac_status ) |
| 6760 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6761 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6762 | 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] | 6763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6764 | |
| 6765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6768 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6769 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | |
| 6771 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6772 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6774 | |
| 6775 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6776 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6777 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6778 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6779 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6780 | 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] | 6781 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6783 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | cat >conftest.$ac_ext <<_ACEOF |
| 6785 | /* confdefs.h. */ |
| 6786 | _ACEOF |
| 6787 | cat confdefs.h >>conftest.$ac_ext |
| 6788 | cat >>conftest.$ac_ext <<_ACEOF |
| 6789 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6790 | |
| 6791 | #include <features.h> |
| 6792 | #ifdef __GNU_LIBRARY__ |
| 6793 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6794 | Lucky GNU user |
| 6795 | #endif |
| 6796 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6797 | |
| 6798 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6801 | ac_cv_gnu_library_2_1=yes |
| 6802 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6803 | ac_cv_gnu_library_2_1=no |
| 6804 | fi |
| 6805 | rm -f conftest* |
| 6806 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | |
| 6808 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6809 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6810 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6811 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6812 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6813 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6814 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | |
| 6817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6818 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6819 | 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] | 6820 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6822 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6823 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6824 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6826 | # Guess based on the CPU. |
| 6827 | case "$host_cpu" in |
| 6828 | alpha* | i3456786 | m68k | s390*) |
| 6829 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6830 | *) |
| 6831 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6832 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6834 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | cat >conftest.$ac_ext <<_ACEOF |
| 6836 | /* confdefs.h. */ |
| 6837 | _ACEOF |
| 6838 | cat confdefs.h >>conftest.$ac_ext |
| 6839 | cat >>conftest.$ac_ext <<_ACEOF |
| 6840 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6841 | |
| 6842 | #include <stdlib.h> |
| 6843 | #include <signal.h> |
| 6844 | |
| 6845 | static void |
| 6846 | #ifdef __cplusplus |
| 6847 | sigfpe_handler (int sig) |
| 6848 | #else |
| 6849 | sigfpe_handler (sig) int sig; |
| 6850 | #endif |
| 6851 | { |
| 6852 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6853 | exit (sig != SIGFPE); |
| 6854 | } |
| 6855 | |
| 6856 | int x = 1; |
| 6857 | int y = 0; |
| 6858 | int z; |
| 6859 | int nan; |
| 6860 | |
| 6861 | int main () |
| 6862 | { |
| 6863 | signal (SIGFPE, sigfpe_handler); |
| 6864 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6865 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6866 | signal (SIGTRAP, sigfpe_handler); |
| 6867 | #endif |
| 6868 | /* Linux/SPARC yields signal SIGILL. */ |
| 6869 | #if defined (__sparc__) && defined (__linux__) |
| 6870 | signal (SIGILL, sigfpe_handler); |
| 6871 | #endif |
| 6872 | |
| 6873 | z = x / y; |
| 6874 | nan = y / y; |
| 6875 | exit (1); |
| 6876 | } |
| 6877 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | _ACEOF |
| 6879 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6880 | if { (ac_try="$ac_link" |
| 6881 | case "(($ac_try" in |
| 6882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6883 | *) ac_try_echo=$ac_try;; |
| 6884 | esac |
| 6885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6886 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6890 | { (case "(($ac_try" in |
| 6891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6892 | *) ac_try_echo=$ac_try;; |
| 6893 | esac |
| 6894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6895 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6896 | ac_status=$? |
| 6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6898 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6899 | gt_cv_int_divbyzero_sigfpe=yes |
| 6900 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6902 | echo "$as_me: failed program was:" >&5 |
| 6903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6904 | |
| 6905 | ( exit $ac_status ) |
| 6906 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6907 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6908 | 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] | 6909 | fi |
| 6910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6911 | |
| 6912 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6913 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6914 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6915 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6916 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6917 | *yes) value=1;; |
| 6918 | *) value=0;; |
| 6919 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6920 | |
| 6921 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6922 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6924 | |
| 6925 | |
| 6926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6927 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6928 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6931 | else |
| 6932 | cat >conftest.$ac_ext <<_ACEOF |
| 6933 | /* confdefs.h. */ |
| 6934 | _ACEOF |
| 6935 | cat confdefs.h >>conftest.$ac_ext |
| 6936 | cat >>conftest.$ac_ext <<_ACEOF |
| 6937 | /* end confdefs.h. */ |
| 6938 | unsigned long long ull = 1ULL; int i = 63; |
| 6939 | int |
| 6940 | main () |
| 6941 | { |
| 6942 | unsigned long long ullmax = (unsigned long long) -1; |
| 6943 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6944 | ; |
| 6945 | return 0; |
| 6946 | } |
| 6947 | _ACEOF |
| 6948 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6949 | if { (ac_try="$ac_link" |
| 6950 | case "(($ac_try" in |
| 6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6952 | *) ac_try_echo=$ac_try;; |
| 6953 | esac |
| 6954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6955 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | ac_status=$? |
| 6957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6958 | rm -f conftest.er1 |
| 6959 | cat conftest.err >&5 |
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6961 | (exit $ac_status); } && { |
| 6962 | test -z "$ac_c_werror_flag" || |
| 6963 | test ! -s conftest.err |
| 6964 | } && test -s conftest$ac_exeext && |
| 6965 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6966 | ac_cv_type_unsigned_long_long=yes |
| 6967 | else |
| 6968 | echo "$as_me: failed program was:" >&5 |
| 6969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6970 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6971 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6972 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6973 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6974 | 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] | 6975 | conftest$ac_exeext conftest.$ac_ext |
| 6976 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6977 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6978 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6980 | |
| 6981 | cat >>confdefs.h <<\_ACEOF |
| 6982 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6983 | _ACEOF |
| 6984 | |
| 6985 | fi |
| 6986 | |
| 6987 | |
| 6988 | |
| 6989 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6990 | 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] | 6991 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6992 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6993 | && ac_type='unsigned long long' \ |
| 6994 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | |
| 6996 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6997 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6998 | _ACEOF |
| 6999 | |
| 7000 | else |
| 7001 | |
| 7002 | cat >>confdefs.h <<\_ACEOF |
| 7003 | #define HAVE_UINTMAX_T 1 |
| 7004 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7005 | |
| 7006 | fi |
| 7007 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7009 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7010 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7011 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 7012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7013 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7014 | |
| 7015 | cat >conftest.$ac_ext <<_ACEOF |
| 7016 | /* confdefs.h. */ |
| 7017 | _ACEOF |
| 7018 | cat confdefs.h >>conftest.$ac_ext |
| 7019 | cat >>conftest.$ac_ext <<_ACEOF |
| 7020 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7021 | #include <sys/types.h> |
| 7022 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | int |
| 7024 | main () |
| 7025 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | ; |
| 7028 | return 0; |
| 7029 | } |
| 7030 | _ACEOF |
| 7031 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7032 | if { (ac_try="$ac_compile" |
| 7033 | case "(($ac_try" in |
| 7034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7035 | *) ac_try_echo=$ac_try;; |
| 7036 | esac |
| 7037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7038 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | ac_status=$? |
| 7040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7041 | rm -f conftest.er1 |
| 7042 | cat conftest.err >&5 |
| 7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7044 | (exit $ac_status); } && { |
| 7045 | test -z "$ac_c_werror_flag" || |
| 7046 | test ! -s conftest.err |
| 7047 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7048 | gt_cv_header_inttypes_h=yes |
| 7049 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7050 | echo "$as_me: failed program was:" >&5 |
| 7051 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7052 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7053 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7054 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7055 | |
| 7056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | |
| 7058 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7059 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7060 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7061 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7062 | |
| 7063 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7064 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7065 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7066 | |
| 7067 | fi |
| 7068 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7069 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7070 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7071 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7072 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7073 | 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] | 7074 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7076 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7077 | |
| 7078 | cat >conftest.$ac_ext <<_ACEOF |
| 7079 | /* confdefs.h. */ |
| 7080 | _ACEOF |
| 7081 | cat confdefs.h >>conftest.$ac_ext |
| 7082 | cat >>conftest.$ac_ext <<_ACEOF |
| 7083 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7084 | #include <inttypes.h> |
| 7085 | #ifdef PRId32 |
| 7086 | char *p = PRId32; |
| 7087 | #endif |
| 7088 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | int |
| 7090 | main () |
| 7091 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7092 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7093 | ; |
| 7094 | return 0; |
| 7095 | } |
| 7096 | _ACEOF |
| 7097 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7098 | if { (ac_try="$ac_compile" |
| 7099 | case "(($ac_try" in |
| 7100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7101 | *) ac_try_echo=$ac_try;; |
| 7102 | esac |
| 7103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7104 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7105 | ac_status=$? |
| 7106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7107 | rm -f conftest.er1 |
| 7108 | cat conftest.err >&5 |
| 7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7110 | (exit $ac_status); } && { |
| 7111 | test -z "$ac_c_werror_flag" || |
| 7112 | test ! -s conftest.err |
| 7113 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7114 | gt_cv_inttypes_pri_broken=no |
| 7115 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7116 | echo "$as_me: failed program was:" >&5 |
| 7117 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7119 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7120 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7121 | |
| 7122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | |
| 7124 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7125 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7126 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7127 | fi |
| 7128 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7129 | |
| 7130 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7131 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7133 | |
| 7134 | fi |
| 7135 | |
| 7136 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | for ac_header in stdint.h |
| 7139 | do |
| 7140 | 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] | 7141 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7142 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7144 | 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] | 7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7146 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7147 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7148 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7149 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7150 | else |
| 7151 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7152 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7153 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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 | $ac_includes_default |
| 7161 | #include <$ac_header> |
| 7162 | _ACEOF |
| 7163 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7164 | if { (ac_try="$ac_compile" |
| 7165 | case "(($ac_try" in |
| 7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7167 | *) ac_try_echo=$ac_try;; |
| 7168 | esac |
| 7169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7170 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7171 | ac_status=$? |
| 7172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7173 | rm -f conftest.er1 |
| 7174 | cat conftest.err >&5 |
| 7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7176 | (exit $ac_status); } && { |
| 7177 | test -z "$ac_c_werror_flag" || |
| 7178 | test ! -s conftest.err |
| 7179 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | ac_header_compiler=yes |
| 7181 | else |
| 7182 | echo "$as_me: failed program was:" >&5 |
| 7183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7185 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7186 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7187 | |
| 7188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7189 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7190 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7191 | |
| 7192 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7193 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7194 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7195 | cat >conftest.$ac_ext <<_ACEOF |
| 7196 | /* confdefs.h. */ |
| 7197 | _ACEOF |
| 7198 | cat confdefs.h >>conftest.$ac_ext |
| 7199 | cat >>conftest.$ac_ext <<_ACEOF |
| 7200 | /* end confdefs.h. */ |
| 7201 | #include <$ac_header> |
| 7202 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7203 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7204 | case "(($ac_try" in |
| 7205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7206 | *) ac_try_echo=$ac_try;; |
| 7207 | esac |
| 7208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7209 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7210 | ac_status=$? |
| 7211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7212 | rm -f conftest.er1 |
| 7213 | cat conftest.err >&5 |
| 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7215 | (exit $ac_status); } >/dev/null && { |
| 7216 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7217 | test ! -s conftest.err |
| 7218 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7219 | ac_header_preproc=yes |
| 7220 | else |
| 7221 | echo "$as_me: failed program was:" >&5 |
| 7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7223 | |
| 7224 | ac_header_preproc=no |
| 7225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7226 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7227 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7228 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7229 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7230 | |
| 7231 | # So? What about this header? |
| 7232 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7233 | yes:no: ) |
| 7234 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7235 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7237 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7238 | ac_header_preproc=yes |
| 7239 | ;; |
| 7240 | no:yes:* ) |
| 7241 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7242 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7244 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7245 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7246 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7247 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7248 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7250 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7251 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7252 | 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] | 7253 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7254 | ;; |
| 7255 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7256 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7258 | 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] | 7259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7260 | else |
| 7261 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7262 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7263 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7264 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7265 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7266 | |
| 7267 | fi |
| 7268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7269 | cat >>confdefs.h <<_ACEOF |
| 7270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7271 | _ACEOF |
| 7272 | |
| 7273 | fi |
| 7274 | |
| 7275 | done |
| 7276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7277 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7278 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7279 | result= |
| 7280 | cat >conftest.$ac_ext <<_ACEOF |
| 7281 | /* confdefs.h. */ |
| 7282 | _ACEOF |
| 7283 | cat confdefs.h >>conftest.$ac_ext |
| 7284 | cat >>conftest.$ac_ext <<_ACEOF |
| 7285 | /* end confdefs.h. */ |
| 7286 | |
| 7287 | #include <limits.h> |
| 7288 | #if HAVE_STDINT_H |
| 7289 | #include <stdint.h> |
| 7290 | #endif |
| 7291 | #ifdef SIZE_MAX |
| 7292 | Found it |
| 7293 | #endif |
| 7294 | |
| 7295 | _ACEOF |
| 7296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7297 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7298 | result=yes |
| 7299 | fi |
| 7300 | rm -f conftest* |
| 7301 | |
| 7302 | if test -z "$result"; then |
| 7303 | if test "$cross_compiling" = yes; then |
| 7304 | # Depending upon the size, compute the lo and hi bounds. |
| 7305 | cat >conftest.$ac_ext <<_ACEOF |
| 7306 | /* confdefs.h. */ |
| 7307 | _ACEOF |
| 7308 | cat confdefs.h >>conftest.$ac_ext |
| 7309 | cat >>conftest.$ac_ext <<_ACEOF |
| 7310 | /* end confdefs.h. */ |
| 7311 | #include <stddef.h> |
| 7312 | int |
| 7313 | main () |
| 7314 | { |
| 7315 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7316 | test_array [0] = 0 |
| 7317 | |
| 7318 | ; |
| 7319 | return 0; |
| 7320 | } |
| 7321 | _ACEOF |
| 7322 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7323 | if { (ac_try="$ac_compile" |
| 7324 | case "(($ac_try" in |
| 7325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7326 | *) ac_try_echo=$ac_try;; |
| 7327 | esac |
| 7328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7329 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7330 | ac_status=$? |
| 7331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7332 | rm -f conftest.er1 |
| 7333 | cat conftest.err >&5 |
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7335 | (exit $ac_status); } && { |
| 7336 | test -z "$ac_c_werror_flag" || |
| 7337 | test ! -s conftest.err |
| 7338 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | ac_lo=0 ac_mid=0 |
| 7340 | while :; do |
| 7341 | cat >conftest.$ac_ext <<_ACEOF |
| 7342 | /* confdefs.h. */ |
| 7343 | _ACEOF |
| 7344 | cat confdefs.h >>conftest.$ac_ext |
| 7345 | cat >>conftest.$ac_ext <<_ACEOF |
| 7346 | /* end confdefs.h. */ |
| 7347 | #include <stddef.h> |
| 7348 | int |
| 7349 | main () |
| 7350 | { |
| 7351 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7352 | test_array [0] = 0 |
| 7353 | |
| 7354 | ; |
| 7355 | return 0; |
| 7356 | } |
| 7357 | _ACEOF |
| 7358 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7359 | if { (ac_try="$ac_compile" |
| 7360 | case "(($ac_try" in |
| 7361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7362 | *) ac_try_echo=$ac_try;; |
| 7363 | esac |
| 7364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7365 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7366 | ac_status=$? |
| 7367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7368 | rm -f conftest.er1 |
| 7369 | cat conftest.err >&5 |
| 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7371 | (exit $ac_status); } && { |
| 7372 | test -z "$ac_c_werror_flag" || |
| 7373 | test ! -s conftest.err |
| 7374 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7375 | ac_hi=$ac_mid; break |
| 7376 | else |
| 7377 | echo "$as_me: failed program was:" >&5 |
| 7378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7379 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7380 | ac_lo=`expr $ac_mid + 1` |
| 7381 | if test $ac_lo -le $ac_mid; then |
| 7382 | ac_lo= ac_hi= |
| 7383 | break |
| 7384 | fi |
| 7385 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7386 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7387 | |
| 7388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7389 | done |
| 7390 | else |
| 7391 | echo "$as_me: failed program was:" >&5 |
| 7392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7394 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7395 | /* confdefs.h. */ |
| 7396 | _ACEOF |
| 7397 | cat confdefs.h >>conftest.$ac_ext |
| 7398 | cat >>conftest.$ac_ext <<_ACEOF |
| 7399 | /* end confdefs.h. */ |
| 7400 | #include <stddef.h> |
| 7401 | int |
| 7402 | main () |
| 7403 | { |
| 7404 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7405 | test_array [0] = 0 |
| 7406 | |
| 7407 | ; |
| 7408 | return 0; |
| 7409 | } |
| 7410 | _ACEOF |
| 7411 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7412 | if { (ac_try="$ac_compile" |
| 7413 | case "(($ac_try" in |
| 7414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7415 | *) ac_try_echo=$ac_try;; |
| 7416 | esac |
| 7417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7418 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7419 | ac_status=$? |
| 7420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7421 | rm -f conftest.er1 |
| 7422 | cat conftest.err >&5 |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7424 | (exit $ac_status); } && { |
| 7425 | test -z "$ac_c_werror_flag" || |
| 7426 | test ! -s conftest.err |
| 7427 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7428 | ac_hi=-1 ac_mid=-1 |
| 7429 | while :; do |
| 7430 | cat >conftest.$ac_ext <<_ACEOF |
| 7431 | /* confdefs.h. */ |
| 7432 | _ACEOF |
| 7433 | cat confdefs.h >>conftest.$ac_ext |
| 7434 | cat >>conftest.$ac_ext <<_ACEOF |
| 7435 | /* end confdefs.h. */ |
| 7436 | #include <stddef.h> |
| 7437 | int |
| 7438 | main () |
| 7439 | { |
| 7440 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7441 | test_array [0] = 0 |
| 7442 | |
| 7443 | ; |
| 7444 | return 0; |
| 7445 | } |
| 7446 | _ACEOF |
| 7447 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7448 | if { (ac_try="$ac_compile" |
| 7449 | case "(($ac_try" in |
| 7450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7451 | *) ac_try_echo=$ac_try;; |
| 7452 | esac |
| 7453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7454 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | ac_status=$? |
| 7456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7457 | rm -f conftest.er1 |
| 7458 | cat conftest.err >&5 |
| 7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7460 | (exit $ac_status); } && { |
| 7461 | test -z "$ac_c_werror_flag" || |
| 7462 | test ! -s conftest.err |
| 7463 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | ac_lo=$ac_mid; break |
| 7465 | else |
| 7466 | echo "$as_me: failed program was:" >&5 |
| 7467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7468 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7469 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7470 | if test $ac_mid -le $ac_hi; then |
| 7471 | ac_lo= ac_hi= |
| 7472 | break |
| 7473 | fi |
| 7474 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7475 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7476 | |
| 7477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7478 | done |
| 7479 | else |
| 7480 | echo "$as_me: failed program was:" >&5 |
| 7481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7483 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7485 | |
| 7486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7487 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7488 | |
| 7489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7490 | # Binary search between lo and hi bounds. |
| 7491 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7492 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7493 | cat >conftest.$ac_ext <<_ACEOF |
| 7494 | /* confdefs.h. */ |
| 7495 | _ACEOF |
| 7496 | cat confdefs.h >>conftest.$ac_ext |
| 7497 | cat >>conftest.$ac_ext <<_ACEOF |
| 7498 | /* end confdefs.h. */ |
| 7499 | #include <stddef.h> |
| 7500 | int |
| 7501 | main () |
| 7502 | { |
| 7503 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7504 | test_array [0] = 0 |
| 7505 | |
| 7506 | ; |
| 7507 | return 0; |
| 7508 | } |
| 7509 | _ACEOF |
| 7510 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7511 | if { (ac_try="$ac_compile" |
| 7512 | case "(($ac_try" in |
| 7513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7514 | *) ac_try_echo=$ac_try;; |
| 7515 | esac |
| 7516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7517 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7518 | ac_status=$? |
| 7519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7520 | rm -f conftest.er1 |
| 7521 | cat conftest.err >&5 |
| 7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7523 | (exit $ac_status); } && { |
| 7524 | test -z "$ac_c_werror_flag" || |
| 7525 | test ! -s conftest.err |
| 7526 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7527 | ac_hi=$ac_mid |
| 7528 | else |
| 7529 | echo "$as_me: failed program was:" >&5 |
| 7530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7532 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7533 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7534 | |
| 7535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7536 | done |
| 7537 | case $ac_lo in |
| 7538 | ?*) res_hi=$ac_lo;; |
| 7539 | '') result=? ;; |
| 7540 | esac |
| 7541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | cat >conftest.$ac_ext <<_ACEOF |
| 7543 | /* confdefs.h. */ |
| 7544 | _ACEOF |
| 7545 | cat confdefs.h >>conftest.$ac_ext |
| 7546 | cat >>conftest.$ac_ext <<_ACEOF |
| 7547 | /* end confdefs.h. */ |
| 7548 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7549 | static long int longval () { return ~(size_t)0 / 10; } |
| 7550 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7551 | #include <stdio.h> |
| 7552 | #include <stdlib.h> |
| 7553 | int |
| 7554 | main () |
| 7555 | { |
| 7556 | |
| 7557 | FILE *f = fopen ("conftest.val", "w"); |
| 7558 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7559 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7560 | if ((~(size_t)0 / 10) < 0) |
| 7561 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7562 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7563 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7564 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | fprintf (f, "%ld\n", i); |
| 7566 | } |
| 7567 | else |
| 7568 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7569 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7571 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7572 | fprintf (f, "%lu\n", i); |
| 7573 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7574 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7575 | |
| 7576 | ; |
| 7577 | return 0; |
| 7578 | } |
| 7579 | _ACEOF |
| 7580 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7581 | if { (ac_try="$ac_link" |
| 7582 | case "(($ac_try" in |
| 7583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7584 | *) ac_try_echo=$ac_try;; |
| 7585 | esac |
| 7586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7587 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7588 | ac_status=$? |
| 7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7591 | { (case "(($ac_try" in |
| 7592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7593 | *) ac_try_echo=$ac_try;; |
| 7594 | esac |
| 7595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7596 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | ac_status=$? |
| 7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7599 | (exit $ac_status); }; }; then |
| 7600 | res_hi=`cat conftest.val` |
| 7601 | else |
| 7602 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7603 | echo "$as_me: failed program was:" >&5 |
| 7604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7605 | |
| 7606 | ( exit $ac_status ) |
| 7607 | result=? |
| 7608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7609 | 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] | 7610 | fi |
| 7611 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7612 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7613 | if test "$cross_compiling" = yes; then |
| 7614 | # Depending upon the size, compute the lo and hi bounds. |
| 7615 | cat >conftest.$ac_ext <<_ACEOF |
| 7616 | /* confdefs.h. */ |
| 7617 | _ACEOF |
| 7618 | cat confdefs.h >>conftest.$ac_ext |
| 7619 | cat >>conftest.$ac_ext <<_ACEOF |
| 7620 | /* end confdefs.h. */ |
| 7621 | #include <stddef.h> |
| 7622 | int |
| 7623 | main () |
| 7624 | { |
| 7625 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7626 | test_array [0] = 0 |
| 7627 | |
| 7628 | ; |
| 7629 | return 0; |
| 7630 | } |
| 7631 | _ACEOF |
| 7632 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7633 | if { (ac_try="$ac_compile" |
| 7634 | case "(($ac_try" in |
| 7635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7636 | *) ac_try_echo=$ac_try;; |
| 7637 | esac |
| 7638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7639 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7640 | ac_status=$? |
| 7641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7642 | rm -f conftest.er1 |
| 7643 | cat conftest.err >&5 |
| 7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7645 | (exit $ac_status); } && { |
| 7646 | test -z "$ac_c_werror_flag" || |
| 7647 | test ! -s conftest.err |
| 7648 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | ac_lo=0 ac_mid=0 |
| 7650 | while :; do |
| 7651 | cat >conftest.$ac_ext <<_ACEOF |
| 7652 | /* confdefs.h. */ |
| 7653 | _ACEOF |
| 7654 | cat confdefs.h >>conftest.$ac_ext |
| 7655 | cat >>conftest.$ac_ext <<_ACEOF |
| 7656 | /* end confdefs.h. */ |
| 7657 | #include <stddef.h> |
| 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7662 | test_array [0] = 0 |
| 7663 | |
| 7664 | ; |
| 7665 | return 0; |
| 7666 | } |
| 7667 | _ACEOF |
| 7668 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7669 | if { (ac_try="$ac_compile" |
| 7670 | case "(($ac_try" in |
| 7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7672 | *) ac_try_echo=$ac_try;; |
| 7673 | esac |
| 7674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7675 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7676 | ac_status=$? |
| 7677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7678 | rm -f conftest.er1 |
| 7679 | cat conftest.err >&5 |
| 7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7681 | (exit $ac_status); } && { |
| 7682 | test -z "$ac_c_werror_flag" || |
| 7683 | test ! -s conftest.err |
| 7684 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7685 | ac_hi=$ac_mid; break |
| 7686 | else |
| 7687 | echo "$as_me: failed program was:" >&5 |
| 7688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7689 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7690 | ac_lo=`expr $ac_mid + 1` |
| 7691 | if test $ac_lo -le $ac_mid; then |
| 7692 | ac_lo= ac_hi= |
| 7693 | break |
| 7694 | fi |
| 7695 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7696 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7697 | |
| 7698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7699 | done |
| 7700 | else |
| 7701 | echo "$as_me: failed program was:" >&5 |
| 7702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7703 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7704 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7705 | /* confdefs.h. */ |
| 7706 | _ACEOF |
| 7707 | cat confdefs.h >>conftest.$ac_ext |
| 7708 | cat >>conftest.$ac_ext <<_ACEOF |
| 7709 | /* end confdefs.h. */ |
| 7710 | #include <stddef.h> |
| 7711 | int |
| 7712 | main () |
| 7713 | { |
| 7714 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7715 | test_array [0] = 0 |
| 7716 | |
| 7717 | ; |
| 7718 | return 0; |
| 7719 | } |
| 7720 | _ACEOF |
| 7721 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7722 | if { (ac_try="$ac_compile" |
| 7723 | case "(($ac_try" in |
| 7724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7725 | *) ac_try_echo=$ac_try;; |
| 7726 | esac |
| 7727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7728 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7729 | ac_status=$? |
| 7730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7731 | rm -f conftest.er1 |
| 7732 | cat conftest.err >&5 |
| 7733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7734 | (exit $ac_status); } && { |
| 7735 | test -z "$ac_c_werror_flag" || |
| 7736 | test ! -s conftest.err |
| 7737 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7738 | ac_hi=-1 ac_mid=-1 |
| 7739 | while :; do |
| 7740 | cat >conftest.$ac_ext <<_ACEOF |
| 7741 | /* confdefs.h. */ |
| 7742 | _ACEOF |
| 7743 | cat confdefs.h >>conftest.$ac_ext |
| 7744 | cat >>conftest.$ac_ext <<_ACEOF |
| 7745 | /* end confdefs.h. */ |
| 7746 | #include <stddef.h> |
| 7747 | int |
| 7748 | main () |
| 7749 | { |
| 7750 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7751 | test_array [0] = 0 |
| 7752 | |
| 7753 | ; |
| 7754 | return 0; |
| 7755 | } |
| 7756 | _ACEOF |
| 7757 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7758 | if { (ac_try="$ac_compile" |
| 7759 | case "(($ac_try" in |
| 7760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7761 | *) ac_try_echo=$ac_try;; |
| 7762 | esac |
| 7763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7764 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7765 | ac_status=$? |
| 7766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7767 | rm -f conftest.er1 |
| 7768 | cat conftest.err >&5 |
| 7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7770 | (exit $ac_status); } && { |
| 7771 | test -z "$ac_c_werror_flag" || |
| 7772 | test ! -s conftest.err |
| 7773 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | ac_lo=$ac_mid; break |
| 7775 | else |
| 7776 | echo "$as_me: failed program was:" >&5 |
| 7777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7778 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7779 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7780 | if test $ac_mid -le $ac_hi; then |
| 7781 | ac_lo= ac_hi= |
| 7782 | break |
| 7783 | fi |
| 7784 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7785 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7786 | |
| 7787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7788 | done |
| 7789 | else |
| 7790 | echo "$as_me: failed program was:" >&5 |
| 7791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7792 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7793 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7794 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7795 | |
| 7796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7797 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7798 | |
| 7799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7800 | # Binary search between lo and hi bounds. |
| 7801 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7802 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7803 | cat >conftest.$ac_ext <<_ACEOF |
| 7804 | /* confdefs.h. */ |
| 7805 | _ACEOF |
| 7806 | cat confdefs.h >>conftest.$ac_ext |
| 7807 | cat >>conftest.$ac_ext <<_ACEOF |
| 7808 | /* end confdefs.h. */ |
| 7809 | #include <stddef.h> |
| 7810 | int |
| 7811 | main () |
| 7812 | { |
| 7813 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7814 | test_array [0] = 0 |
| 7815 | |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
| 7820 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7821 | if { (ac_try="$ac_compile" |
| 7822 | case "(($ac_try" in |
| 7823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7824 | *) ac_try_echo=$ac_try;; |
| 7825 | esac |
| 7826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7827 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7828 | ac_status=$? |
| 7829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7830 | rm -f conftest.er1 |
| 7831 | cat conftest.err >&5 |
| 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7833 | (exit $ac_status); } && { |
| 7834 | test -z "$ac_c_werror_flag" || |
| 7835 | test ! -s conftest.err |
| 7836 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7837 | ac_hi=$ac_mid |
| 7838 | else |
| 7839 | echo "$as_me: failed program was:" >&5 |
| 7840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7842 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7844 | |
| 7845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7846 | done |
| 7847 | case $ac_lo in |
| 7848 | ?*) res_lo=$ac_lo;; |
| 7849 | '') result=? ;; |
| 7850 | esac |
| 7851 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | cat >conftest.$ac_ext <<_ACEOF |
| 7853 | /* confdefs.h. */ |
| 7854 | _ACEOF |
| 7855 | cat confdefs.h >>conftest.$ac_ext |
| 7856 | cat >>conftest.$ac_ext <<_ACEOF |
| 7857 | /* end confdefs.h. */ |
| 7858 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7859 | static long int longval () { return ~(size_t)0 % 10; } |
| 7860 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7861 | #include <stdio.h> |
| 7862 | #include <stdlib.h> |
| 7863 | int |
| 7864 | main () |
| 7865 | { |
| 7866 | |
| 7867 | FILE *f = fopen ("conftest.val", "w"); |
| 7868 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7869 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7870 | if ((~(size_t)0 % 10) < 0) |
| 7871 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7872 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7873 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7874 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7875 | fprintf (f, "%ld\n", i); |
| 7876 | } |
| 7877 | else |
| 7878 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7879 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7880 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7881 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7882 | fprintf (f, "%lu\n", i); |
| 7883 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7884 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7885 | |
| 7886 | ; |
| 7887 | return 0; |
| 7888 | } |
| 7889 | _ACEOF |
| 7890 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7891 | if { (ac_try="$ac_link" |
| 7892 | case "(($ac_try" in |
| 7893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7894 | *) ac_try_echo=$ac_try;; |
| 7895 | esac |
| 7896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7897 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7898 | ac_status=$? |
| 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7901 | { (case "(($ac_try" in |
| 7902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7903 | *) ac_try_echo=$ac_try;; |
| 7904 | esac |
| 7905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7906 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7907 | ac_status=$? |
| 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); }; }; then |
| 7910 | res_lo=`cat conftest.val` |
| 7911 | else |
| 7912 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7913 | echo "$as_me: failed program was:" >&5 |
| 7914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7915 | |
| 7916 | ( exit $ac_status ) |
| 7917 | result=? |
| 7918 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7919 | 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] | 7920 | fi |
| 7921 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7923 | if test "$cross_compiling" = yes; then |
| 7924 | # Depending upon the size, compute the lo and hi bounds. |
| 7925 | cat >conftest.$ac_ext <<_ACEOF |
| 7926 | /* confdefs.h. */ |
| 7927 | _ACEOF |
| 7928 | cat confdefs.h >>conftest.$ac_ext |
| 7929 | cat >>conftest.$ac_ext <<_ACEOF |
| 7930 | /* end confdefs.h. */ |
| 7931 | #include <stddef.h> |
| 7932 | int |
| 7933 | main () |
| 7934 | { |
| 7935 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7936 | test_array [0] = 0 |
| 7937 | |
| 7938 | ; |
| 7939 | return 0; |
| 7940 | } |
| 7941 | _ACEOF |
| 7942 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7943 | if { (ac_try="$ac_compile" |
| 7944 | case "(($ac_try" in |
| 7945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7946 | *) ac_try_echo=$ac_try;; |
| 7947 | esac |
| 7948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7949 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7950 | ac_status=$? |
| 7951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7952 | rm -f conftest.er1 |
| 7953 | cat conftest.err >&5 |
| 7954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7955 | (exit $ac_status); } && { |
| 7956 | test -z "$ac_c_werror_flag" || |
| 7957 | test ! -s conftest.err |
| 7958 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7959 | ac_lo=0 ac_mid=0 |
| 7960 | while :; do |
| 7961 | cat >conftest.$ac_ext <<_ACEOF |
| 7962 | /* confdefs.h. */ |
| 7963 | _ACEOF |
| 7964 | cat confdefs.h >>conftest.$ac_ext |
| 7965 | cat >>conftest.$ac_ext <<_ACEOF |
| 7966 | /* end confdefs.h. */ |
| 7967 | #include <stddef.h> |
| 7968 | int |
| 7969 | main () |
| 7970 | { |
| 7971 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7972 | test_array [0] = 0 |
| 7973 | |
| 7974 | ; |
| 7975 | return 0; |
| 7976 | } |
| 7977 | _ACEOF |
| 7978 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7979 | if { (ac_try="$ac_compile" |
| 7980 | case "(($ac_try" in |
| 7981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7982 | *) ac_try_echo=$ac_try;; |
| 7983 | esac |
| 7984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7985 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7986 | ac_status=$? |
| 7987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7988 | rm -f conftest.er1 |
| 7989 | cat conftest.err >&5 |
| 7990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7991 | (exit $ac_status); } && { |
| 7992 | test -z "$ac_c_werror_flag" || |
| 7993 | test ! -s conftest.err |
| 7994 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7995 | ac_hi=$ac_mid; break |
| 7996 | else |
| 7997 | echo "$as_me: failed program was:" >&5 |
| 7998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8000 | ac_lo=`expr $ac_mid + 1` |
| 8001 | if test $ac_lo -le $ac_mid; then |
| 8002 | ac_lo= ac_hi= |
| 8003 | break |
| 8004 | fi |
| 8005 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8006 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8007 | |
| 8008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8009 | done |
| 8010 | else |
| 8011 | echo "$as_me: failed program was:" >&5 |
| 8012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8014 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8015 | /* confdefs.h. */ |
| 8016 | _ACEOF |
| 8017 | cat confdefs.h >>conftest.$ac_ext |
| 8018 | cat >>conftest.$ac_ext <<_ACEOF |
| 8019 | /* end confdefs.h. */ |
| 8020 | #include <stddef.h> |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8025 | test_array [0] = 0 |
| 8026 | |
| 8027 | ; |
| 8028 | return 0; |
| 8029 | } |
| 8030 | _ACEOF |
| 8031 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8032 | if { (ac_try="$ac_compile" |
| 8033 | case "(($ac_try" in |
| 8034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8035 | *) ac_try_echo=$ac_try;; |
| 8036 | esac |
| 8037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8038 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8039 | ac_status=$? |
| 8040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8041 | rm -f conftest.er1 |
| 8042 | cat conftest.err >&5 |
| 8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8044 | (exit $ac_status); } && { |
| 8045 | test -z "$ac_c_werror_flag" || |
| 8046 | test ! -s conftest.err |
| 8047 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8048 | ac_hi=-1 ac_mid=-1 |
| 8049 | while :; do |
| 8050 | cat >conftest.$ac_ext <<_ACEOF |
| 8051 | /* confdefs.h. */ |
| 8052 | _ACEOF |
| 8053 | cat confdefs.h >>conftest.$ac_ext |
| 8054 | cat >>conftest.$ac_ext <<_ACEOF |
| 8055 | /* end confdefs.h. */ |
| 8056 | #include <stddef.h> |
| 8057 | int |
| 8058 | main () |
| 8059 | { |
| 8060 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8061 | test_array [0] = 0 |
| 8062 | |
| 8063 | ; |
| 8064 | return 0; |
| 8065 | } |
| 8066 | _ACEOF |
| 8067 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8068 | if { (ac_try="$ac_compile" |
| 8069 | case "(($ac_try" in |
| 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8071 | *) ac_try_echo=$ac_try;; |
| 8072 | esac |
| 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8074 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8075 | ac_status=$? |
| 8076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8077 | rm -f conftest.er1 |
| 8078 | cat conftest.err >&5 |
| 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8080 | (exit $ac_status); } && { |
| 8081 | test -z "$ac_c_werror_flag" || |
| 8082 | test ! -s conftest.err |
| 8083 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8084 | ac_lo=$ac_mid; break |
| 8085 | else |
| 8086 | echo "$as_me: failed program was:" >&5 |
| 8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8088 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8089 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8090 | if test $ac_mid -le $ac_hi; then |
| 8091 | ac_lo= ac_hi= |
| 8092 | break |
| 8093 | fi |
| 8094 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8096 | |
| 8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8098 | done |
| 8099 | else |
| 8100 | echo "$as_me: failed program was:" >&5 |
| 8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8103 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8105 | |
| 8106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8107 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8108 | |
| 8109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8110 | # Binary search between lo and hi bounds. |
| 8111 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8112 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8113 | cat >conftest.$ac_ext <<_ACEOF |
| 8114 | /* confdefs.h. */ |
| 8115 | _ACEOF |
| 8116 | cat confdefs.h >>conftest.$ac_ext |
| 8117 | cat >>conftest.$ac_ext <<_ACEOF |
| 8118 | /* end confdefs.h. */ |
| 8119 | #include <stddef.h> |
| 8120 | int |
| 8121 | main () |
| 8122 | { |
| 8123 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8124 | test_array [0] = 0 |
| 8125 | |
| 8126 | ; |
| 8127 | return 0; |
| 8128 | } |
| 8129 | _ACEOF |
| 8130 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8131 | if { (ac_try="$ac_compile" |
| 8132 | case "(($ac_try" in |
| 8133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8134 | *) ac_try_echo=$ac_try;; |
| 8135 | esac |
| 8136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8137 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8138 | ac_status=$? |
| 8139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8140 | rm -f conftest.er1 |
| 8141 | cat conftest.err >&5 |
| 8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8143 | (exit $ac_status); } && { |
| 8144 | test -z "$ac_c_werror_flag" || |
| 8145 | test ! -s conftest.err |
| 8146 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8147 | ac_hi=$ac_mid |
| 8148 | else |
| 8149 | echo "$as_me: failed program was:" >&5 |
| 8150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8152 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8153 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8154 | |
| 8155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8156 | done |
| 8157 | case $ac_lo in |
| 8158 | ?*) fits_in_uint=$ac_lo;; |
| 8159 | '') result=? ;; |
| 8160 | esac |
| 8161 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8162 | cat >conftest.$ac_ext <<_ACEOF |
| 8163 | /* confdefs.h. */ |
| 8164 | _ACEOF |
| 8165 | cat confdefs.h >>conftest.$ac_ext |
| 8166 | cat >>conftest.$ac_ext <<_ACEOF |
| 8167 | /* end confdefs.h. */ |
| 8168 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8169 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8170 | 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] | 8171 | #include <stdio.h> |
| 8172 | #include <stdlib.h> |
| 8173 | int |
| 8174 | main () |
| 8175 | { |
| 8176 | |
| 8177 | FILE *f = fopen ("conftest.val", "w"); |
| 8178 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8179 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8180 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8181 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8182 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8183 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8184 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8185 | fprintf (f, "%ld\n", i); |
| 8186 | } |
| 8187 | else |
| 8188 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8189 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8190 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8191 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8192 | fprintf (f, "%lu\n", i); |
| 8193 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8194 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8195 | |
| 8196 | ; |
| 8197 | return 0; |
| 8198 | } |
| 8199 | _ACEOF |
| 8200 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8201 | if { (ac_try="$ac_link" |
| 8202 | case "(($ac_try" in |
| 8203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8204 | *) ac_try_echo=$ac_try;; |
| 8205 | esac |
| 8206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8207 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8208 | ac_status=$? |
| 8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8211 | { (case "(($ac_try" in |
| 8212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8213 | *) ac_try_echo=$ac_try;; |
| 8214 | esac |
| 8215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8216 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8217 | ac_status=$? |
| 8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8219 | (exit $ac_status); }; }; then |
| 8220 | fits_in_uint=`cat conftest.val` |
| 8221 | else |
| 8222 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8223 | echo "$as_me: failed program was:" >&5 |
| 8224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8225 | |
| 8226 | ( exit $ac_status ) |
| 8227 | result=? |
| 8228 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8229 | 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] | 8230 | fi |
| 8231 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8232 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8233 | if test "$fits_in_uint" = 1; then |
| 8234 | cat >conftest.$ac_ext <<_ACEOF |
| 8235 | /* confdefs.h. */ |
| 8236 | _ACEOF |
| 8237 | cat confdefs.h >>conftest.$ac_ext |
| 8238 | cat >>conftest.$ac_ext <<_ACEOF |
| 8239 | /* end confdefs.h. */ |
| 8240 | #include <stddef.h> |
| 8241 | extern size_t foo; |
| 8242 | extern unsigned long foo; |
| 8243 | |
| 8244 | int |
| 8245 | main () |
| 8246 | { |
| 8247 | |
| 8248 | ; |
| 8249 | return 0; |
| 8250 | } |
| 8251 | _ACEOF |
| 8252 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8253 | if { (ac_try="$ac_compile" |
| 8254 | case "(($ac_try" in |
| 8255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8256 | *) ac_try_echo=$ac_try;; |
| 8257 | esac |
| 8258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8259 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8260 | ac_status=$? |
| 8261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8262 | rm -f conftest.er1 |
| 8263 | cat conftest.err >&5 |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8265 | (exit $ac_status); } && { |
| 8266 | test -z "$ac_c_werror_flag" || |
| 8267 | test ! -s conftest.err |
| 8268 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8269 | fits_in_uint=0 |
| 8270 | else |
| 8271 | echo "$as_me: failed program was:" >&5 |
| 8272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8273 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8275 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8276 | |
| 8277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8278 | fi |
| 8279 | if test -z "$result"; then |
| 8280 | if test "$fits_in_uint" = 1; then |
| 8281 | result="$res_hi$res_lo"U |
| 8282 | else |
| 8283 | result="$res_hi$res_lo"UL |
| 8284 | fi |
| 8285 | else |
| 8286 | result='~(size_t)0' |
| 8287 | fi |
| 8288 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8289 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8290 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8291 | if test "$result" != yes; then |
| 8292 | |
| 8293 | cat >>confdefs.h <<_ACEOF |
| 8294 | #define SIZE_MAX $result |
| 8295 | _ACEOF |
| 8296 | |
| 8297 | fi |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | for ac_header in stdint.h |
| 8303 | do |
| 8304 | 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] | 8305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8306 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8308 | 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] | 8309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8310 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8311 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8312 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8313 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8314 | else |
| 8315 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8316 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8317 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8318 | cat >conftest.$ac_ext <<_ACEOF |
| 8319 | /* confdefs.h. */ |
| 8320 | _ACEOF |
| 8321 | cat confdefs.h >>conftest.$ac_ext |
| 8322 | cat >>conftest.$ac_ext <<_ACEOF |
| 8323 | /* end confdefs.h. */ |
| 8324 | $ac_includes_default |
| 8325 | #include <$ac_header> |
| 8326 | _ACEOF |
| 8327 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8328 | if { (ac_try="$ac_compile" |
| 8329 | case "(($ac_try" in |
| 8330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8331 | *) ac_try_echo=$ac_try;; |
| 8332 | esac |
| 8333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8334 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8335 | ac_status=$? |
| 8336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8337 | rm -f conftest.er1 |
| 8338 | cat conftest.err >&5 |
| 8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8340 | (exit $ac_status); } && { |
| 8341 | test -z "$ac_c_werror_flag" || |
| 8342 | test ! -s conftest.err |
| 8343 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8344 | ac_header_compiler=yes |
| 8345 | else |
| 8346 | echo "$as_me: failed program was:" >&5 |
| 8347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8348 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8349 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8351 | |
| 8352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8353 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8354 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | |
| 8356 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8357 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8358 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8359 | cat >conftest.$ac_ext <<_ACEOF |
| 8360 | /* confdefs.h. */ |
| 8361 | _ACEOF |
| 8362 | cat confdefs.h >>conftest.$ac_ext |
| 8363 | cat >>conftest.$ac_ext <<_ACEOF |
| 8364 | /* end confdefs.h. */ |
| 8365 | #include <$ac_header> |
| 8366 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8367 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8368 | case "(($ac_try" in |
| 8369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8370 | *) ac_try_echo=$ac_try;; |
| 8371 | esac |
| 8372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8374 | ac_status=$? |
| 8375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8376 | rm -f conftest.er1 |
| 8377 | cat conftest.err >&5 |
| 8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8379 | (exit $ac_status); } >/dev/null && { |
| 8380 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8381 | test ! -s conftest.err |
| 8382 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8383 | ac_header_preproc=yes |
| 8384 | else |
| 8385 | echo "$as_me: failed program was:" >&5 |
| 8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8387 | |
| 8388 | ac_header_preproc=no |
| 8389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8390 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8391 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8392 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8393 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8394 | |
| 8395 | # So? What about this header? |
| 8396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8397 | yes:no: ) |
| 8398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8401 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8402 | ac_header_preproc=yes |
| 8403 | ;; |
| 8404 | no:yes:* ) |
| 8405 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8406 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8407 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8408 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8409 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8410 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8411 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8412 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8416 | 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] | 8417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8418 | ;; |
| 8419 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8420 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8422 | 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] | 8423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8424 | else |
| 8425 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8427 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8429 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8430 | |
| 8431 | fi |
| 8432 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8433 | cat >>confdefs.h <<_ACEOF |
| 8434 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8435 | _ACEOF |
| 8436 | |
| 8437 | fi |
| 8438 | |
| 8439 | done |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | if test "X$prefix" = "XNONE"; then |
| 8444 | acl_final_prefix="$ac_default_prefix" |
| 8445 | else |
| 8446 | acl_final_prefix="$prefix" |
| 8447 | fi |
| 8448 | if test "X$exec_prefix" = "XNONE"; then |
| 8449 | acl_final_exec_prefix='${prefix}' |
| 8450 | else |
| 8451 | acl_final_exec_prefix="$exec_prefix" |
| 8452 | fi |
| 8453 | acl_save_prefix="$prefix" |
| 8454 | prefix="$acl_final_prefix" |
| 8455 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8456 | prefix="$acl_save_prefix" |
| 8457 | |
| 8458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8459 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8460 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8461 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8462 | else |
| 8463 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8464 | fi |
| 8465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8466 | # Prepare PATH_SEPARATOR. |
| 8467 | # The user is always right. |
| 8468 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8469 | echo "#! /bin/sh" >conf$$.sh |
| 8470 | echo "exit 0" >>conf$$.sh |
| 8471 | chmod +x conf$$.sh |
| 8472 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8473 | PATH_SEPARATOR=';' |
| 8474 | else |
| 8475 | PATH_SEPARATOR=: |
| 8476 | fi |
| 8477 | rm -f conf$$.sh |
| 8478 | fi |
| 8479 | ac_prog=ld |
| 8480 | if test "$GCC" = yes; then |
| 8481 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8482 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8483 | 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] | 8484 | case $host in |
| 8485 | *-*-mingw*) |
| 8486 | # gcc leaves a trailing carriage return which upsets mingw |
| 8487 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8488 | *) |
| 8489 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8490 | esac |
| 8491 | case $ac_prog in |
| 8492 | # Accept absolute paths. |
| 8493 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8494 | re_direlt='/[^/][^/]*/\.\./' |
| 8495 | # Canonicalize the path of ld |
| 8496 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8497 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8498 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8499 | done |
| 8500 | test -z "$LD" && LD="$ac_prog" |
| 8501 | ;; |
| 8502 | "") |
| 8503 | # If it fails, then pretend we aren't using GCC. |
| 8504 | ac_prog=ld |
| 8505 | ;; |
| 8506 | *) |
| 8507 | # If it is relative, then search for the first ld in PATH. |
| 8508 | with_gnu_ld=unknown |
| 8509 | ;; |
| 8510 | esac |
| 8511 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8512 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8513 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8514 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8515 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8516 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8517 | fi |
| 8518 | if test "${acl_cv_path_LD+set}" = set; then |
| 8519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8520 | else |
| 8521 | if test -z "$LD"; then |
| 8522 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8523 | for ac_dir in $PATH; do |
| 8524 | test -z "$ac_dir" && ac_dir=. |
| 8525 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8526 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8527 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8528 | # but apparently some GNU ld's only accept -v. |
| 8529 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8530 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8531 | *GNU* | *'with BFD'*) |
| 8532 | test "$with_gnu_ld" != no && break ;; |
| 8533 | *) |
| 8534 | test "$with_gnu_ld" != yes && break ;; |
| 8535 | esac |
| 8536 | fi |
| 8537 | done |
| 8538 | IFS="$ac_save_ifs" |
| 8539 | else |
| 8540 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8541 | fi |
| 8542 | fi |
| 8543 | |
| 8544 | LD="$acl_cv_path_LD" |
| 8545 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8546 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8547 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8548 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8549 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8550 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8551 | fi |
| 8552 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8553 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8554 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8555 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8556 | 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] | 8557 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8559 | else |
| 8560 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8561 | case `$LD -v 2>&1 </dev/null` in |
| 8562 | *GNU* | *'with BFD'*) |
| 8563 | acl_cv_prog_gnu_ld=yes ;; |
| 8564 | *) |
| 8565 | acl_cv_prog_gnu_ld=no ;; |
| 8566 | esac |
| 8567 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8568 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8569 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8570 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8571 | |
| 8572 | |
| 8573 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8574 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8575 | 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] | 8576 | if test "${acl_cv_rpath+set}" = set; then |
| 8577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8578 | else |
| 8579 | |
| 8580 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8581 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8582 | . ./conftest.sh |
| 8583 | rm -f ./conftest.sh |
| 8584 | acl_cv_rpath=done |
| 8585 | |
| 8586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8587 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8588 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | wl="$acl_cv_wl" |
| 8590 | libext="$acl_cv_libext" |
| 8591 | shlibext="$acl_cv_shlibext" |
| 8592 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8593 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8594 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8595 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8596 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8597 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8598 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8599 | else |
| 8600 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8601 | fi |
| 8602 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8603 | |
| 8604 | |
| 8605 | |
| 8606 | |
| 8607 | |
| 8608 | |
| 8609 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8610 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8611 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8612 | acl_save_prefix="$prefix" |
| 8613 | prefix="$acl_final_prefix" |
| 8614 | acl_save_exec_prefix="$exec_prefix" |
| 8615 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8616 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8617 | eval additional_includedir=\"$includedir\" |
| 8618 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8619 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8620 | exec_prefix="$acl_save_exec_prefix" |
| 8621 | prefix="$acl_save_prefix" |
| 8622 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8623 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8624 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8625 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8626 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8627 | if test "X$withval" = "Xno"; then |
| 8628 | use_additional=no |
| 8629 | else |
| 8630 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8631 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8632 | acl_save_prefix="$prefix" |
| 8633 | prefix="$acl_final_prefix" |
| 8634 | acl_save_exec_prefix="$exec_prefix" |
| 8635 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8636 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8637 | eval additional_includedir=\"$includedir\" |
| 8638 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8639 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8640 | exec_prefix="$acl_save_exec_prefix" |
| 8641 | prefix="$acl_save_prefix" |
| 8642 | |
| 8643 | else |
| 8644 | additional_includedir="$withval/include" |
| 8645 | additional_libdir="$withval/lib" |
| 8646 | fi |
| 8647 | fi |
| 8648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8649 | fi |
| 8650 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8651 | LIBICONV= |
| 8652 | LTLIBICONV= |
| 8653 | INCICONV= |
| 8654 | rpathdirs= |
| 8655 | ltrpathdirs= |
| 8656 | names_already_handled= |
| 8657 | names_next_round='iconv ' |
| 8658 | while test -n "$names_next_round"; do |
| 8659 | names_this_round="$names_next_round" |
| 8660 | names_next_round= |
| 8661 | for name in $names_this_round; do |
| 8662 | already_handled= |
| 8663 | for n in $names_already_handled; do |
| 8664 | if test "$n" = "$name"; then |
| 8665 | already_handled=yes |
| 8666 | break |
| 8667 | fi |
| 8668 | done |
| 8669 | if test -z "$already_handled"; then |
| 8670 | names_already_handled="$names_already_handled $name" |
| 8671 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8672 | eval value=\"\$HAVE_LIB$uppername\" |
| 8673 | if test -n "$value"; then |
| 8674 | if test "$value" = yes; then |
| 8675 | eval value=\"\$LIB$uppername\" |
| 8676 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8677 | eval value=\"\$LTLIB$uppername\" |
| 8678 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8679 | else |
| 8680 | : |
| 8681 | fi |
| 8682 | else |
| 8683 | found_dir= |
| 8684 | found_la= |
| 8685 | found_so= |
| 8686 | found_a= |
| 8687 | if test $use_additional = yes; then |
| 8688 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8689 | found_dir="$additional_libdir" |
| 8690 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8691 | if test -f "$additional_libdir/lib$name.la"; then |
| 8692 | found_la="$additional_libdir/lib$name.la" |
| 8693 | fi |
| 8694 | else |
| 8695 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8696 | found_dir="$additional_libdir" |
| 8697 | found_a="$additional_libdir/lib$name.$libext" |
| 8698 | if test -f "$additional_libdir/lib$name.la"; then |
| 8699 | found_la="$additional_libdir/lib$name.la" |
| 8700 | fi |
| 8701 | fi |
| 8702 | fi |
| 8703 | fi |
| 8704 | if test "X$found_dir" = "X"; then |
| 8705 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8706 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8707 | acl_save_prefix="$prefix" |
| 8708 | prefix="$acl_final_prefix" |
| 8709 | acl_save_exec_prefix="$exec_prefix" |
| 8710 | exec_prefix="$acl_final_exec_prefix" |
| 8711 | eval x=\"$x\" |
| 8712 | exec_prefix="$acl_save_exec_prefix" |
| 8713 | prefix="$acl_save_prefix" |
| 8714 | |
| 8715 | case "$x" in |
| 8716 | -L*) |
| 8717 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8718 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8719 | found_dir="$dir" |
| 8720 | found_so="$dir/lib$name.$shlibext" |
| 8721 | if test -f "$dir/lib$name.la"; then |
| 8722 | found_la="$dir/lib$name.la" |
| 8723 | fi |
| 8724 | else |
| 8725 | if test -f "$dir/lib$name.$libext"; then |
| 8726 | found_dir="$dir" |
| 8727 | found_a="$dir/lib$name.$libext" |
| 8728 | if test -f "$dir/lib$name.la"; then |
| 8729 | found_la="$dir/lib$name.la" |
| 8730 | fi |
| 8731 | fi |
| 8732 | fi |
| 8733 | ;; |
| 8734 | esac |
| 8735 | if test "X$found_dir" != "X"; then |
| 8736 | break |
| 8737 | fi |
| 8738 | done |
| 8739 | fi |
| 8740 | if test "X$found_dir" != "X"; then |
| 8741 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8742 | if test "X$found_so" != "X"; then |
| 8743 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8744 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8745 | else |
| 8746 | haveit= |
| 8747 | for x in $ltrpathdirs; do |
| 8748 | if test "X$x" = "X$found_dir"; then |
| 8749 | haveit=yes |
| 8750 | break |
| 8751 | fi |
| 8752 | done |
| 8753 | if test -z "$haveit"; then |
| 8754 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8755 | fi |
| 8756 | if test "$hardcode_direct" = yes; then |
| 8757 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8758 | else |
| 8759 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8760 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8761 | haveit= |
| 8762 | for x in $rpathdirs; do |
| 8763 | if test "X$x" = "X$found_dir"; then |
| 8764 | haveit=yes |
| 8765 | break |
| 8766 | fi |
| 8767 | done |
| 8768 | if test -z "$haveit"; then |
| 8769 | rpathdirs="$rpathdirs $found_dir" |
| 8770 | fi |
| 8771 | else |
| 8772 | haveit= |
| 8773 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8774 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8775 | acl_save_prefix="$prefix" |
| 8776 | prefix="$acl_final_prefix" |
| 8777 | acl_save_exec_prefix="$exec_prefix" |
| 8778 | exec_prefix="$acl_final_exec_prefix" |
| 8779 | eval x=\"$x\" |
| 8780 | exec_prefix="$acl_save_exec_prefix" |
| 8781 | prefix="$acl_save_prefix" |
| 8782 | |
| 8783 | if test "X$x" = "X-L$found_dir"; then |
| 8784 | haveit=yes |
| 8785 | break |
| 8786 | fi |
| 8787 | done |
| 8788 | if test -z "$haveit"; then |
| 8789 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8790 | fi |
| 8791 | if test "$hardcode_minus_L" != no; then |
| 8792 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8793 | else |
| 8794 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8795 | fi |
| 8796 | fi |
| 8797 | fi |
| 8798 | fi |
| 8799 | else |
| 8800 | if test "X$found_a" != "X"; then |
| 8801 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8802 | else |
| 8803 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8804 | fi |
| 8805 | fi |
| 8806 | additional_includedir= |
| 8807 | case "$found_dir" in |
| 8808 | */lib | */lib/) |
| 8809 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8810 | additional_includedir="$basedir/include" |
| 8811 | ;; |
| 8812 | esac |
| 8813 | if test "X$additional_includedir" != "X"; then |
| 8814 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8815 | haveit= |
| 8816 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8817 | if test -n "$GCC"; then |
| 8818 | case $host_os in |
| 8819 | linux*) haveit=yes;; |
| 8820 | esac |
| 8821 | fi |
| 8822 | fi |
| 8823 | if test -z "$haveit"; then |
| 8824 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8825 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8826 | acl_save_prefix="$prefix" |
| 8827 | prefix="$acl_final_prefix" |
| 8828 | acl_save_exec_prefix="$exec_prefix" |
| 8829 | exec_prefix="$acl_final_exec_prefix" |
| 8830 | eval x=\"$x\" |
| 8831 | exec_prefix="$acl_save_exec_prefix" |
| 8832 | prefix="$acl_save_prefix" |
| 8833 | |
| 8834 | if test "X$x" = "X-I$additional_includedir"; then |
| 8835 | haveit=yes |
| 8836 | break |
| 8837 | fi |
| 8838 | done |
| 8839 | if test -z "$haveit"; then |
| 8840 | if test -d "$additional_includedir"; then |
| 8841 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8842 | fi |
| 8843 | fi |
| 8844 | fi |
| 8845 | fi |
| 8846 | fi |
| 8847 | if test -n "$found_la"; then |
| 8848 | save_libdir="$libdir" |
| 8849 | case "$found_la" in |
| 8850 | */* | *\\*) . "$found_la" ;; |
| 8851 | *) . "./$found_la" ;; |
| 8852 | esac |
| 8853 | libdir="$save_libdir" |
| 8854 | for dep in $dependency_libs; do |
| 8855 | case "$dep" in |
| 8856 | -L*) |
| 8857 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8858 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8859 | haveit= |
| 8860 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8861 | if test -n "$GCC"; then |
| 8862 | case $host_os in |
| 8863 | linux*) haveit=yes;; |
| 8864 | esac |
| 8865 | fi |
| 8866 | fi |
| 8867 | if test -z "$haveit"; then |
| 8868 | haveit= |
| 8869 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8871 | acl_save_prefix="$prefix" |
| 8872 | prefix="$acl_final_prefix" |
| 8873 | acl_save_exec_prefix="$exec_prefix" |
| 8874 | exec_prefix="$acl_final_exec_prefix" |
| 8875 | eval x=\"$x\" |
| 8876 | exec_prefix="$acl_save_exec_prefix" |
| 8877 | prefix="$acl_save_prefix" |
| 8878 | |
| 8879 | if test "X$x" = "X-L$additional_libdir"; then |
| 8880 | haveit=yes |
| 8881 | break |
| 8882 | fi |
| 8883 | done |
| 8884 | if test -z "$haveit"; then |
| 8885 | if test -d "$additional_libdir"; then |
| 8886 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8887 | fi |
| 8888 | fi |
| 8889 | haveit= |
| 8890 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8891 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8892 | acl_save_prefix="$prefix" |
| 8893 | prefix="$acl_final_prefix" |
| 8894 | acl_save_exec_prefix="$exec_prefix" |
| 8895 | exec_prefix="$acl_final_exec_prefix" |
| 8896 | eval x=\"$x\" |
| 8897 | exec_prefix="$acl_save_exec_prefix" |
| 8898 | prefix="$acl_save_prefix" |
| 8899 | |
| 8900 | if test "X$x" = "X-L$additional_libdir"; then |
| 8901 | haveit=yes |
| 8902 | break |
| 8903 | fi |
| 8904 | done |
| 8905 | if test -z "$haveit"; then |
| 8906 | if test -d "$additional_libdir"; then |
| 8907 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8908 | fi |
| 8909 | fi |
| 8910 | fi |
| 8911 | fi |
| 8912 | ;; |
| 8913 | -R*) |
| 8914 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8915 | if test "$enable_rpath" != no; then |
| 8916 | haveit= |
| 8917 | for x in $rpathdirs; do |
| 8918 | if test "X$x" = "X$dir"; then |
| 8919 | haveit=yes |
| 8920 | break |
| 8921 | fi |
| 8922 | done |
| 8923 | if test -z "$haveit"; then |
| 8924 | rpathdirs="$rpathdirs $dir" |
| 8925 | fi |
| 8926 | haveit= |
| 8927 | for x in $ltrpathdirs; do |
| 8928 | if test "X$x" = "X$dir"; then |
| 8929 | haveit=yes |
| 8930 | break |
| 8931 | fi |
| 8932 | done |
| 8933 | if test -z "$haveit"; then |
| 8934 | ltrpathdirs="$ltrpathdirs $dir" |
| 8935 | fi |
| 8936 | fi |
| 8937 | ;; |
| 8938 | -l*) |
| 8939 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8940 | ;; |
| 8941 | *.la) |
| 8942 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8943 | ;; |
| 8944 | *) |
| 8945 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8946 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8947 | ;; |
| 8948 | esac |
| 8949 | done |
| 8950 | fi |
| 8951 | else |
| 8952 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8953 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8954 | fi |
| 8955 | fi |
| 8956 | fi |
| 8957 | done |
| 8958 | done |
| 8959 | if test "X$rpathdirs" != "X"; then |
| 8960 | if test -n "$hardcode_libdir_separator"; then |
| 8961 | alldirs= |
| 8962 | for found_dir in $rpathdirs; do |
| 8963 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8964 | done |
| 8965 | acl_save_libdir="$libdir" |
| 8966 | libdir="$alldirs" |
| 8967 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8968 | libdir="$acl_save_libdir" |
| 8969 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8970 | else |
| 8971 | for found_dir in $rpathdirs; do |
| 8972 | acl_save_libdir="$libdir" |
| 8973 | libdir="$found_dir" |
| 8974 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8975 | libdir="$acl_save_libdir" |
| 8976 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8977 | done |
| 8978 | fi |
| 8979 | fi |
| 8980 | if test "X$ltrpathdirs" != "X"; then |
| 8981 | for found_dir in $ltrpathdirs; do |
| 8982 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8983 | done |
| 8984 | fi |
| 8985 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8986 | |
| 8987 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8988 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8989 | |
| 8990 | |
| 8991 | |
| 8992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8993 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8994 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8995 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8997 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8998 | cat >conftest.$ac_ext <<_ACEOF |
| 8999 | /* confdefs.h. */ |
| 9000 | _ACEOF |
| 9001 | cat confdefs.h >>conftest.$ac_ext |
| 9002 | cat >>conftest.$ac_ext <<_ACEOF |
| 9003 | /* end confdefs.h. */ |
| 9004 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9005 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9006 | int |
| 9007 | main () |
| 9008 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9009 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9010 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9011 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9012 | return 0; |
| 9013 | ; |
| 9014 | return 0; |
| 9015 | } |
| 9016 | _ACEOF |
| 9017 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9018 | if { (ac_try="$ac_compile" |
| 9019 | case "(($ac_try" in |
| 9020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9021 | *) ac_try_echo=$ac_try;; |
| 9022 | esac |
| 9023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9024 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9025 | ac_status=$? |
| 9026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9027 | rm -f conftest.er1 |
| 9028 | cat conftest.err >&5 |
| 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9030 | (exit $ac_status); } && { |
| 9031 | test -z "$ac_c_werror_flag" || |
| 9032 | test ! -s conftest.err |
| 9033 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9034 | ac_cv_type_ptrdiff_t=yes |
| 9035 | else |
| 9036 | echo "$as_me: failed program was:" >&5 |
| 9037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9039 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9040 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9041 | |
| 9042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9043 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9044 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9045 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9046 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9047 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9049 | |
| 9050 | cat >>confdefs.h <<\_ACEOF |
| 9051 | #define ptrdiff_t long |
| 9052 | _ACEOF |
| 9053 | |
| 9054 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9055 | fi |
| 9056 | |
| 9057 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9058 | |
| 9059 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9060 | |
| 9061 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9062 | |
| 9063 | |
| 9064 | |
| 9065 | |
| 9066 | |
| 9067 | 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] | 9068 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9069 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9070 | 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] | 9071 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9072 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9074 | 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] | 9075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9076 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9079 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9080 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9081 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9082 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9083 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | cat >conftest.$ac_ext <<_ACEOF |
| 9085 | /* confdefs.h. */ |
| 9086 | _ACEOF |
| 9087 | cat confdefs.h >>conftest.$ac_ext |
| 9088 | cat >>conftest.$ac_ext <<_ACEOF |
| 9089 | /* end confdefs.h. */ |
| 9090 | $ac_includes_default |
| 9091 | #include <$ac_header> |
| 9092 | _ACEOF |
| 9093 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9094 | if { (ac_try="$ac_compile" |
| 9095 | case "(($ac_try" in |
| 9096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9097 | *) ac_try_echo=$ac_try;; |
| 9098 | esac |
| 9099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9100 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9101 | ac_status=$? |
| 9102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9103 | rm -f conftest.er1 |
| 9104 | cat conftest.err >&5 |
| 9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9106 | (exit $ac_status); } && { |
| 9107 | test -z "$ac_c_werror_flag" || |
| 9108 | test ! -s conftest.err |
| 9109 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9110 | ac_header_compiler=yes |
| 9111 | else |
| 9112 | echo "$as_me: failed program was:" >&5 |
| 9113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9114 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9115 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9116 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9117 | |
| 9118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9119 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9120 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9121 | |
| 9122 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9123 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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 <$ac_header> |
| 9132 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9133 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9134 | case "(($ac_try" in |
| 9135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9136 | *) ac_try_echo=$ac_try;; |
| 9137 | esac |
| 9138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9139 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9140 | ac_status=$? |
| 9141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9142 | rm -f conftest.er1 |
| 9143 | cat conftest.err >&5 |
| 9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9145 | (exit $ac_status); } >/dev/null && { |
| 9146 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9147 | test ! -s conftest.err |
| 9148 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9149 | ac_header_preproc=yes |
| 9150 | else |
| 9151 | echo "$as_me: failed program was:" >&5 |
| 9152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9153 | |
| 9154 | ac_header_preproc=no |
| 9155 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9156 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9157 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9158 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9159 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9160 | |
| 9161 | # So? What about this header? |
| 9162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9163 | yes:no: ) |
| 9164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9168 | ac_header_preproc=yes |
| 9169 | ;; |
| 9170 | no:yes:* ) |
| 9171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9182 | 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] | 9183 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9184 | ;; |
| 9185 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9186 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9188 | 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] | 9189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9190 | else |
| 9191 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9192 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9193 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9194 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9195 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9196 | |
| 9197 | fi |
| 9198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9199 | cat >>confdefs.h <<_ACEOF |
| 9200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9201 | _ACEOF |
| 9202 | |
| 9203 | fi |
| 9204 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9205 | done |
| 9206 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | |
| 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9231 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9232 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9233 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9234 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9235 | 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] | 9236 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9238 | 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] | 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9240 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9241 | cat >conftest.$ac_ext <<_ACEOF |
| 9242 | /* confdefs.h. */ |
| 9243 | _ACEOF |
| 9244 | cat confdefs.h >>conftest.$ac_ext |
| 9245 | cat >>conftest.$ac_ext <<_ACEOF |
| 9246 | /* end confdefs.h. */ |
| 9247 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9249 | #define $ac_func innocuous_$ac_func |
| 9250 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9251 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9252 | which can conflict with char $ac_func (); below. |
| 9253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9254 | <limits.h> exists even on freestanding compilers. */ |
| 9255 | |
| 9256 | #ifdef __STDC__ |
| 9257 | # include <limits.h> |
| 9258 | #else |
| 9259 | # include <assert.h> |
| 9260 | #endif |
| 9261 | |
| 9262 | #undef $ac_func |
| 9263 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9264 | /* Override any GCC internal prototype to avoid an error. |
| 9265 | Use char because int might match the return type of a GCC |
| 9266 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9267 | #ifdef __cplusplus |
| 9268 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9269 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9270 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9271 | /* The GNU C library defines this for functions which it implements |
| 9272 | to always fail with ENOSYS. Some functions are actually named |
| 9273 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9274 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9275 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9276 | #endif |
| 9277 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9278 | int |
| 9279 | main () |
| 9280 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9281 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9282 | ; |
| 9283 | return 0; |
| 9284 | } |
| 9285 | _ACEOF |
| 9286 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9287 | if { (ac_try="$ac_link" |
| 9288 | case "(($ac_try" in |
| 9289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9290 | *) ac_try_echo=$ac_try;; |
| 9291 | esac |
| 9292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9293 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9294 | ac_status=$? |
| 9295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9296 | rm -f conftest.er1 |
| 9297 | cat conftest.err >&5 |
| 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9299 | (exit $ac_status); } && { |
| 9300 | test -z "$ac_c_werror_flag" || |
| 9301 | test ! -s conftest.err |
| 9302 | } && test -s conftest$ac_exeext && |
| 9303 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9304 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9305 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9306 | echo "$as_me: failed program was:" >&5 |
| 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9309 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9310 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9311 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9312 | 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] | 9313 | conftest$ac_exeext conftest.$ac_ext |
| 9314 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9315 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9316 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9317 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9318 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9319 | cat >>confdefs.h <<_ACEOF |
| 9320 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9321 | _ACEOF |
| 9322 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9323 | fi |
| 9324 | done |
| 9325 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9327 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9328 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9329 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9330 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9332 | else |
| 9333 | cat >conftest.$ac_ext <<_ACEOF |
| 9334 | /* confdefs.h. */ |
| 9335 | _ACEOF |
| 9336 | cat confdefs.h >>conftest.$ac_ext |
| 9337 | cat >>conftest.$ac_ext <<_ACEOF |
| 9338 | /* end confdefs.h. */ |
| 9339 | #include <stdio.h> |
| 9340 | int |
| 9341 | main () |
| 9342 | { |
| 9343 | |
| 9344 | #ifndef _snprintf |
| 9345 | char *p = (char *) _snprintf; |
| 9346 | #endif |
| 9347 | |
| 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
| 9351 | _ACEOF |
| 9352 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9353 | if { (ac_try="$ac_compile" |
| 9354 | case "(($ac_try" in |
| 9355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9356 | *) ac_try_echo=$ac_try;; |
| 9357 | esac |
| 9358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9359 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9360 | ac_status=$? |
| 9361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9362 | rm -f conftest.er1 |
| 9363 | cat conftest.err >&5 |
| 9364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9365 | (exit $ac_status); } && { |
| 9366 | test -z "$ac_c_werror_flag" || |
| 9367 | test ! -s conftest.err |
| 9368 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9369 | ac_cv_have_decl__snprintf=yes |
| 9370 | else |
| 9371 | echo "$as_me: failed program was:" >&5 |
| 9372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9373 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9374 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9375 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9376 | |
| 9377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9378 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9379 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9380 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9381 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9382 | gt_value=1 |
| 9383 | else |
| 9384 | gt_value=0 |
| 9385 | fi |
| 9386 | |
| 9387 | cat >>confdefs.h <<_ACEOF |
| 9388 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9389 | _ACEOF |
| 9390 | |
| 9391 | |
| 9392 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9393 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9394 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9395 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9397 | else |
| 9398 | cat >conftest.$ac_ext <<_ACEOF |
| 9399 | /* confdefs.h. */ |
| 9400 | _ACEOF |
| 9401 | cat confdefs.h >>conftest.$ac_ext |
| 9402 | cat >>conftest.$ac_ext <<_ACEOF |
| 9403 | /* end confdefs.h. */ |
| 9404 | #include <stdio.h> |
| 9405 | int |
| 9406 | main () |
| 9407 | { |
| 9408 | |
| 9409 | #ifndef _snwprintf |
| 9410 | char *p = (char *) _snwprintf; |
| 9411 | #endif |
| 9412 | |
| 9413 | ; |
| 9414 | return 0; |
| 9415 | } |
| 9416 | _ACEOF |
| 9417 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9418 | if { (ac_try="$ac_compile" |
| 9419 | case "(($ac_try" in |
| 9420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9421 | *) ac_try_echo=$ac_try;; |
| 9422 | esac |
| 9423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9424 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9425 | ac_status=$? |
| 9426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9427 | rm -f conftest.er1 |
| 9428 | cat conftest.err >&5 |
| 9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9430 | (exit $ac_status); } && { |
| 9431 | test -z "$ac_c_werror_flag" || |
| 9432 | test ! -s conftest.err |
| 9433 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9434 | ac_cv_have_decl__snwprintf=yes |
| 9435 | else |
| 9436 | echo "$as_me: failed program was:" >&5 |
| 9437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9438 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9439 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9440 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9441 | |
| 9442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9444 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9445 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9446 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9447 | gt_value=1 |
| 9448 | else |
| 9449 | gt_value=0 |
| 9450 | fi |
| 9451 | |
| 9452 | cat >>confdefs.h <<_ACEOF |
| 9453 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9454 | _ACEOF |
| 9455 | |
| 9456 | |
| 9457 | |
| 9458 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9459 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9460 | 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] | 9461 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9463 | else |
| 9464 | cat >conftest.$ac_ext <<_ACEOF |
| 9465 | /* confdefs.h. */ |
| 9466 | _ACEOF |
| 9467 | cat confdefs.h >>conftest.$ac_ext |
| 9468 | cat >>conftest.$ac_ext <<_ACEOF |
| 9469 | /* end confdefs.h. */ |
| 9470 | #include <stdio.h> |
| 9471 | int |
| 9472 | main () |
| 9473 | { |
| 9474 | |
| 9475 | #ifndef feof_unlocked |
| 9476 | char *p = (char *) feof_unlocked; |
| 9477 | #endif |
| 9478 | |
| 9479 | ; |
| 9480 | return 0; |
| 9481 | } |
| 9482 | _ACEOF |
| 9483 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9484 | if { (ac_try="$ac_compile" |
| 9485 | case "(($ac_try" in |
| 9486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9487 | *) ac_try_echo=$ac_try;; |
| 9488 | esac |
| 9489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9490 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9491 | ac_status=$? |
| 9492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9493 | rm -f conftest.er1 |
| 9494 | cat conftest.err >&5 |
| 9495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9496 | (exit $ac_status); } && { |
| 9497 | test -z "$ac_c_werror_flag" || |
| 9498 | test ! -s conftest.err |
| 9499 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9500 | ac_cv_have_decl_feof_unlocked=yes |
| 9501 | else |
| 9502 | echo "$as_me: failed program was:" >&5 |
| 9503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9505 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9506 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9507 | |
| 9508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9509 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9510 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9511 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9512 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9513 | gt_value=1 |
| 9514 | else |
| 9515 | gt_value=0 |
| 9516 | fi |
| 9517 | |
| 9518 | cat >>confdefs.h <<_ACEOF |
| 9519 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9520 | _ACEOF |
| 9521 | |
| 9522 | |
| 9523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9524 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9525 | 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] | 9526 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9528 | else |
| 9529 | cat >conftest.$ac_ext <<_ACEOF |
| 9530 | /* confdefs.h. */ |
| 9531 | _ACEOF |
| 9532 | cat confdefs.h >>conftest.$ac_ext |
| 9533 | cat >>conftest.$ac_ext <<_ACEOF |
| 9534 | /* end confdefs.h. */ |
| 9535 | #include <stdio.h> |
| 9536 | int |
| 9537 | main () |
| 9538 | { |
| 9539 | |
| 9540 | #ifndef fgets_unlocked |
| 9541 | char *p = (char *) fgets_unlocked; |
| 9542 | #endif |
| 9543 | |
| 9544 | ; |
| 9545 | return 0; |
| 9546 | } |
| 9547 | _ACEOF |
| 9548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9549 | if { (ac_try="$ac_compile" |
| 9550 | case "(($ac_try" in |
| 9551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9552 | *) ac_try_echo=$ac_try;; |
| 9553 | esac |
| 9554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9555 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9556 | ac_status=$? |
| 9557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9558 | rm -f conftest.er1 |
| 9559 | cat conftest.err >&5 |
| 9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9561 | (exit $ac_status); } && { |
| 9562 | test -z "$ac_c_werror_flag" || |
| 9563 | test ! -s conftest.err |
| 9564 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9565 | ac_cv_have_decl_fgets_unlocked=yes |
| 9566 | else |
| 9567 | echo "$as_me: failed program was:" >&5 |
| 9568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9570 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9572 | |
| 9573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9575 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9576 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9578 | gt_value=1 |
| 9579 | else |
| 9580 | gt_value=0 |
| 9581 | fi |
| 9582 | |
| 9583 | cat >>confdefs.h <<_ACEOF |
| 9584 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9585 | _ACEOF |
| 9586 | |
| 9587 | |
| 9588 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9589 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9590 | 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] | 9591 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9593 | else |
| 9594 | cat >conftest.$ac_ext <<_ACEOF |
| 9595 | /* confdefs.h. */ |
| 9596 | _ACEOF |
| 9597 | cat confdefs.h >>conftest.$ac_ext |
| 9598 | cat >>conftest.$ac_ext <<_ACEOF |
| 9599 | /* end confdefs.h. */ |
| 9600 | #include <stdio.h> |
| 9601 | int |
| 9602 | main () |
| 9603 | { |
| 9604 | |
| 9605 | #ifndef getc_unlocked |
| 9606 | char *p = (char *) getc_unlocked; |
| 9607 | #endif |
| 9608 | |
| 9609 | ; |
| 9610 | return 0; |
| 9611 | } |
| 9612 | _ACEOF |
| 9613 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9614 | if { (ac_try="$ac_compile" |
| 9615 | case "(($ac_try" in |
| 9616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9617 | *) ac_try_echo=$ac_try;; |
| 9618 | esac |
| 9619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9620 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9621 | ac_status=$? |
| 9622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9623 | rm -f conftest.er1 |
| 9624 | cat conftest.err >&5 |
| 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9626 | (exit $ac_status); } && { |
| 9627 | test -z "$ac_c_werror_flag" || |
| 9628 | test ! -s conftest.err |
| 9629 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9630 | ac_cv_have_decl_getc_unlocked=yes |
| 9631 | else |
| 9632 | echo "$as_me: failed program was:" >&5 |
| 9633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9635 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9636 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9637 | |
| 9638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9639 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9640 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9641 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9642 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9643 | gt_value=1 |
| 9644 | else |
| 9645 | gt_value=0 |
| 9646 | fi |
| 9647 | |
| 9648 | cat >>confdefs.h <<_ACEOF |
| 9649 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9650 | _ACEOF |
| 9651 | |
| 9652 | |
| 9653 | |
| 9654 | case $gt_cv_func_printf_posix in |
| 9655 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9656 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9657 | esac |
| 9658 | |
| 9659 | if test "$ac_cv_func_asprintf" = yes; then |
| 9660 | HAVE_ASPRINTF=1 |
| 9661 | else |
| 9662 | HAVE_ASPRINTF=0 |
| 9663 | fi |
| 9664 | |
| 9665 | if test "$ac_cv_func_snprintf" = yes; then |
| 9666 | HAVE_SNPRINTF=1 |
| 9667 | else |
| 9668 | HAVE_SNPRINTF=0 |
| 9669 | fi |
| 9670 | |
| 9671 | if test "$ac_cv_func_wprintf" = yes; then |
| 9672 | HAVE_WPRINTF=1 |
| 9673 | else |
| 9674 | HAVE_WPRINTF=0 |
| 9675 | fi |
| 9676 | |
| 9677 | |
| 9678 | |
| 9679 | |
| 9680 | |
| 9681 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9682 | |
| 9683 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9684 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9685 | for element in $INCICONV; do |
| 9686 | haveit= |
| 9687 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9688 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9689 | acl_save_prefix="$prefix" |
| 9690 | prefix="$acl_final_prefix" |
| 9691 | acl_save_exec_prefix="$exec_prefix" |
| 9692 | exec_prefix="$acl_final_exec_prefix" |
| 9693 | eval x=\"$x\" |
| 9694 | exec_prefix="$acl_save_exec_prefix" |
| 9695 | prefix="$acl_save_prefix" |
| 9696 | |
| 9697 | if test "X$x" = "X$element"; then |
| 9698 | haveit=yes |
| 9699 | break |
| 9700 | fi |
| 9701 | done |
| 9702 | if test -z "$haveit"; then |
| 9703 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9704 | fi |
| 9705 | done |
| 9706 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9707 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9708 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9709 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9710 | if test "${am_cv_func_iconv+set}" = set; then |
| 9711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9712 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9713 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9714 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9715 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9716 | cat >conftest.$ac_ext <<_ACEOF |
| 9717 | /* confdefs.h. */ |
| 9718 | _ACEOF |
| 9719 | cat confdefs.h >>conftest.$ac_ext |
| 9720 | cat >>conftest.$ac_ext <<_ACEOF |
| 9721 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9722 | #include <stdlib.h> |
| 9723 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9724 | int |
| 9725 | main () |
| 9726 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9727 | iconv_t cd = iconv_open("",""); |
| 9728 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9729 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9730 | ; |
| 9731 | return 0; |
| 9732 | } |
| 9733 | _ACEOF |
| 9734 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9735 | if { (ac_try="$ac_link" |
| 9736 | case "(($ac_try" in |
| 9737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9738 | *) ac_try_echo=$ac_try;; |
| 9739 | esac |
| 9740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9741 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9742 | ac_status=$? |
| 9743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9744 | rm -f conftest.er1 |
| 9745 | cat conftest.err >&5 |
| 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9747 | (exit $ac_status); } && { |
| 9748 | test -z "$ac_c_werror_flag" || |
| 9749 | test ! -s conftest.err |
| 9750 | } && test -s conftest$ac_exeext && |
| 9751 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9752 | am_cv_func_iconv=yes |
| 9753 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9754 | echo "$as_me: failed program was:" >&5 |
| 9755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9757 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9758 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9759 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9760 | 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] | 9761 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9762 | if test "$am_cv_func_iconv" != yes; then |
| 9763 | am_save_LIBS="$LIBS" |
| 9764 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9765 | cat >conftest.$ac_ext <<_ACEOF |
| 9766 | /* confdefs.h. */ |
| 9767 | _ACEOF |
| 9768 | cat confdefs.h >>conftest.$ac_ext |
| 9769 | cat >>conftest.$ac_ext <<_ACEOF |
| 9770 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9771 | #include <stdlib.h> |
| 9772 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | int |
| 9774 | main () |
| 9775 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9776 | iconv_t cd = iconv_open("",""); |
| 9777 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9778 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9779 | ; |
| 9780 | return 0; |
| 9781 | } |
| 9782 | _ACEOF |
| 9783 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9784 | if { (ac_try="$ac_link" |
| 9785 | case "(($ac_try" in |
| 9786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9787 | *) ac_try_echo=$ac_try;; |
| 9788 | esac |
| 9789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9790 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9791 | ac_status=$? |
| 9792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9793 | rm -f conftest.er1 |
| 9794 | cat conftest.err >&5 |
| 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9796 | (exit $ac_status); } && { |
| 9797 | test -z "$ac_c_werror_flag" || |
| 9798 | test ! -s conftest.err |
| 9799 | } && test -s conftest$ac_exeext && |
| 9800 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9801 | am_cv_lib_iconv=yes |
| 9802 | am_cv_func_iconv=yes |
| 9803 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9804 | echo "$as_me: failed program was:" >&5 |
| 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9806 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9807 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9809 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9810 | 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] | 9811 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9812 | LIBS="$am_save_LIBS" |
| 9813 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9814 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9815 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9816 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9817 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9818 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9819 | |
| 9820 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9821 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9822 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9823 | |
| 9824 | fi |
| 9825 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9826 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9827 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9828 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9829 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9830 | else |
| 9831 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9832 | LIBICONV= |
| 9833 | LTLIBICONV= |
| 9834 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9835 | |
| 9836 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9837 | |
| 9838 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9839 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9840 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9841 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9843 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9844 | |
| 9845 | cat >conftest.$ac_ext <<_ACEOF |
| 9846 | /* confdefs.h. */ |
| 9847 | _ACEOF |
| 9848 | cat confdefs.h >>conftest.$ac_ext |
| 9849 | cat >>conftest.$ac_ext <<_ACEOF |
| 9850 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9851 | |
| 9852 | #include <stdlib.h> |
| 9853 | #include <iconv.h> |
| 9854 | extern |
| 9855 | #ifdef __cplusplus |
| 9856 | "C" |
| 9857 | #endif |
| 9858 | #if defined(__STDC__) || defined(__cplusplus) |
| 9859 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9860 | #else |
| 9861 | size_t iconv(); |
| 9862 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9863 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9864 | int |
| 9865 | main () |
| 9866 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9867 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9868 | ; |
| 9869 | return 0; |
| 9870 | } |
| 9871 | _ACEOF |
| 9872 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9873 | if { (ac_try="$ac_compile" |
| 9874 | case "(($ac_try" in |
| 9875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9876 | *) ac_try_echo=$ac_try;; |
| 9877 | esac |
| 9878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9879 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | ac_status=$? |
| 9881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9882 | rm -f conftest.er1 |
| 9883 | cat conftest.err >&5 |
| 9884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9885 | (exit $ac_status); } && { |
| 9886 | test -z "$ac_c_werror_flag" || |
| 9887 | test ! -s conftest.err |
| 9888 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9889 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9890 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9891 | echo "$as_me: failed program was:" >&5 |
| 9892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9894 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9895 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9896 | |
| 9897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9898 | 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] | 9899 | fi |
| 9900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9901 | 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] | 9902 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9903 | }$am_cv_proto_iconv" >&5 |
| 9904 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9905 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | |
| 9907 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9908 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9909 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9910 | |
| 9911 | fi |
| 9912 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9913 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9914 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9915 | 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] | 9916 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9918 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9919 | cat >conftest.$ac_ext <<_ACEOF |
| 9920 | /* confdefs.h. */ |
| 9921 | _ACEOF |
| 9922 | cat confdefs.h >>conftest.$ac_ext |
| 9923 | cat >>conftest.$ac_ext <<_ACEOF |
| 9924 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9925 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9926 | int |
| 9927 | main () |
| 9928 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9929 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9930 | ; |
| 9931 | return 0; |
| 9932 | } |
| 9933 | _ACEOF |
| 9934 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9935 | if { (ac_try="$ac_link" |
| 9936 | case "(($ac_try" in |
| 9937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9938 | *) ac_try_echo=$ac_try;; |
| 9939 | esac |
| 9940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9941 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9942 | ac_status=$? |
| 9943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9944 | rm -f conftest.er1 |
| 9945 | cat conftest.err >&5 |
| 9946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9947 | (exit $ac_status); } && { |
| 9948 | test -z "$ac_c_werror_flag" || |
| 9949 | test ! -s conftest.err |
| 9950 | } && test -s conftest$ac_exeext && |
| 9951 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9952 | am_cv_langinfo_codeset=yes |
| 9953 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9954 | echo "$as_me: failed program was:" >&5 |
| 9955 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9957 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9959 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9960 | 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] | 9961 | conftest$ac_exeext conftest.$ac_ext |
| 9962 | |
| 9963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9964 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9965 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9966 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9967 | |
| 9968 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9969 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9970 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9971 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9972 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9973 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9974 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9976 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9977 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9978 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9980 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9981 | cat >conftest.$ac_ext <<_ACEOF |
| 9982 | /* confdefs.h. */ |
| 9983 | _ACEOF |
| 9984 | cat confdefs.h >>conftest.$ac_ext |
| 9985 | cat >>conftest.$ac_ext <<_ACEOF |
| 9986 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9987 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9988 | int |
| 9989 | main () |
| 9990 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9991 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9992 | ; |
| 9993 | return 0; |
| 9994 | } |
| 9995 | _ACEOF |
| 9996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9997 | if { (ac_try="$ac_link" |
| 9998 | case "(($ac_try" in |
| 9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10000 | *) ac_try_echo=$ac_try;; |
| 10001 | esac |
| 10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10003 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10004 | ac_status=$? |
| 10005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10006 | rm -f conftest.er1 |
| 10007 | cat conftest.err >&5 |
| 10008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10009 | (exit $ac_status); } && { |
| 10010 | test -z "$ac_c_werror_flag" || |
| 10011 | test ! -s conftest.err |
| 10012 | } && test -s conftest$ac_exeext && |
| 10013 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10014 | am_cv_val_LC_MESSAGES=yes |
| 10015 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | echo "$as_me: failed program was:" >&5 |
| 10017 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10019 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10020 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10021 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10022 | 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] | 10023 | conftest$ac_exeext conftest.$ac_ext |
| 10024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10025 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10026 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10027 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10028 | |
| 10029 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10030 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10031 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10032 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10033 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10034 | |
| 10035 | fi |
| 10036 | |
| 10037 | for ac_prog in bison |
| 10038 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10039 | # 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] | 10040 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10041 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10043 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10045 | else |
| 10046 | if test -n "$INTLBISON"; then |
| 10047 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10050 | for as_dir in $PATH |
| 10051 | do |
| 10052 | IFS=$as_save_IFS |
| 10053 | test -z "$as_dir" && as_dir=. |
| 10054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10055 | 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] | 10056 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10058 | break 2 |
| 10059 | fi |
| 10060 | done |
| 10061 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10062 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10063 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10064 | fi |
| 10065 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10066 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10067 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10068 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10069 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10070 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10071 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10072 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10073 | fi |
| 10074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10075 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10076 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10077 | done |
| 10078 | |
| 10079 | if test -z "$INTLBISON"; then |
| 10080 | ac_verc_fail=yes |
| 10081 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10082 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10083 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10084 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10085 | case $ac_prog_version in |
| 10086 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10087 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10088 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10089 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10090 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10091 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10092 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10093 | fi |
| 10094 | if test $ac_verc_fail = yes; then |
| 10095 | INTLBISON=: |
| 10096 | fi |
| 10097 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10098 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10099 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10100 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10101 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10102 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10103 | |
| 10104 | |
| 10105 | |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
| 10112 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10113 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10114 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10115 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10116 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10117 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10118 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10119 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10120 | fi |
| 10121 | |
| 10122 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10123 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10124 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | |
| 10127 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10128 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10129 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10130 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10131 | LIBINTL= |
| 10132 | LTLIBINTL= |
| 10133 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10134 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10135 | if test "$USE_NLS" = "yes"; then |
| 10136 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10138 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10139 | 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] | 10140 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10141 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10142 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10143 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10144 | else |
| 10145 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10146 | fi |
| 10147 | |
| 10148 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10149 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10150 | |
| 10151 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10152 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10159 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10160 | 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] | 10161 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10163 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10164 | cat >conftest.$ac_ext <<_ACEOF |
| 10165 | /* confdefs.h. */ |
| 10166 | _ACEOF |
| 10167 | cat confdefs.h >>conftest.$ac_ext |
| 10168 | cat >>conftest.$ac_ext <<_ACEOF |
| 10169 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10170 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10171 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10172 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10173 | int |
| 10174 | main () |
| 10175 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10176 | bindtextdomain ("", ""); |
| 10177 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | ; |
| 10179 | return 0; |
| 10180 | } |
| 10181 | _ACEOF |
| 10182 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10183 | if { (ac_try="$ac_link" |
| 10184 | case "(($ac_try" in |
| 10185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10186 | *) ac_try_echo=$ac_try;; |
| 10187 | esac |
| 10188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10189 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10190 | ac_status=$? |
| 10191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10192 | rm -f conftest.er1 |
| 10193 | cat conftest.err >&5 |
| 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10195 | (exit $ac_status); } && { |
| 10196 | test -z "$ac_c_werror_flag" || |
| 10197 | test ! -s conftest.err |
| 10198 | } && test -s conftest$ac_exeext && |
| 10199 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10200 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10201 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10202 | echo "$as_me: failed program was:" >&5 |
| 10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10204 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10205 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10206 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10207 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10208 | 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] | 10209 | conftest$ac_exeext conftest.$ac_ext |
| 10210 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10211 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10212 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10213 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10214 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10215 | |
| 10216 | |
| 10217 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10218 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10219 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10220 | acl_save_prefix="$prefix" |
| 10221 | prefix="$acl_final_prefix" |
| 10222 | acl_save_exec_prefix="$exec_prefix" |
| 10223 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10224 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10225 | eval additional_includedir=\"$includedir\" |
| 10226 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10227 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10228 | exec_prefix="$acl_save_exec_prefix" |
| 10229 | prefix="$acl_save_prefix" |
| 10230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10231 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10232 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10233 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10234 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10235 | if test "X$withval" = "Xno"; then |
| 10236 | use_additional=no |
| 10237 | else |
| 10238 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10239 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10240 | acl_save_prefix="$prefix" |
| 10241 | prefix="$acl_final_prefix" |
| 10242 | acl_save_exec_prefix="$exec_prefix" |
| 10243 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10244 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10245 | eval additional_includedir=\"$includedir\" |
| 10246 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10248 | exec_prefix="$acl_save_exec_prefix" |
| 10249 | prefix="$acl_save_prefix" |
| 10250 | |
| 10251 | else |
| 10252 | additional_includedir="$withval/include" |
| 10253 | additional_libdir="$withval/lib" |
| 10254 | fi |
| 10255 | fi |
| 10256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10257 | fi |
| 10258 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10259 | LIBINTL= |
| 10260 | LTLIBINTL= |
| 10261 | INCINTL= |
| 10262 | rpathdirs= |
| 10263 | ltrpathdirs= |
| 10264 | names_already_handled= |
| 10265 | names_next_round='intl ' |
| 10266 | while test -n "$names_next_round"; do |
| 10267 | names_this_round="$names_next_round" |
| 10268 | names_next_round= |
| 10269 | for name in $names_this_round; do |
| 10270 | already_handled= |
| 10271 | for n in $names_already_handled; do |
| 10272 | if test "$n" = "$name"; then |
| 10273 | already_handled=yes |
| 10274 | break |
| 10275 | fi |
| 10276 | done |
| 10277 | if test -z "$already_handled"; then |
| 10278 | names_already_handled="$names_already_handled $name" |
| 10279 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10280 | eval value=\"\$HAVE_LIB$uppername\" |
| 10281 | if test -n "$value"; then |
| 10282 | if test "$value" = yes; then |
| 10283 | eval value=\"\$LIB$uppername\" |
| 10284 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10285 | eval value=\"\$LTLIB$uppername\" |
| 10286 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10287 | else |
| 10288 | : |
| 10289 | fi |
| 10290 | else |
| 10291 | found_dir= |
| 10292 | found_la= |
| 10293 | found_so= |
| 10294 | found_a= |
| 10295 | if test $use_additional = yes; then |
| 10296 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10297 | found_dir="$additional_libdir" |
| 10298 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10299 | if test -f "$additional_libdir/lib$name.la"; then |
| 10300 | found_la="$additional_libdir/lib$name.la" |
| 10301 | fi |
| 10302 | else |
| 10303 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10304 | found_dir="$additional_libdir" |
| 10305 | found_a="$additional_libdir/lib$name.$libext" |
| 10306 | if test -f "$additional_libdir/lib$name.la"; then |
| 10307 | found_la="$additional_libdir/lib$name.la" |
| 10308 | fi |
| 10309 | fi |
| 10310 | fi |
| 10311 | fi |
| 10312 | if test "X$found_dir" = "X"; then |
| 10313 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10314 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10315 | acl_save_prefix="$prefix" |
| 10316 | prefix="$acl_final_prefix" |
| 10317 | acl_save_exec_prefix="$exec_prefix" |
| 10318 | exec_prefix="$acl_final_exec_prefix" |
| 10319 | eval x=\"$x\" |
| 10320 | exec_prefix="$acl_save_exec_prefix" |
| 10321 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10322 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10323 | case "$x" in |
| 10324 | -L*) |
| 10325 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10326 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10327 | found_dir="$dir" |
| 10328 | found_so="$dir/lib$name.$shlibext" |
| 10329 | if test -f "$dir/lib$name.la"; then |
| 10330 | found_la="$dir/lib$name.la" |
| 10331 | fi |
| 10332 | else |
| 10333 | if test -f "$dir/lib$name.$libext"; then |
| 10334 | found_dir="$dir" |
| 10335 | found_a="$dir/lib$name.$libext" |
| 10336 | if test -f "$dir/lib$name.la"; then |
| 10337 | found_la="$dir/lib$name.la" |
| 10338 | fi |
| 10339 | fi |
| 10340 | fi |
| 10341 | ;; |
| 10342 | esac |
| 10343 | if test "X$found_dir" != "X"; then |
| 10344 | break |
| 10345 | fi |
| 10346 | done |
| 10347 | fi |
| 10348 | if test "X$found_dir" != "X"; then |
| 10349 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10350 | if test "X$found_so" != "X"; then |
| 10351 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10352 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10353 | else |
| 10354 | haveit= |
| 10355 | for x in $ltrpathdirs; do |
| 10356 | if test "X$x" = "X$found_dir"; then |
| 10357 | haveit=yes |
| 10358 | break |
| 10359 | fi |
| 10360 | done |
| 10361 | if test -z "$haveit"; then |
| 10362 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10363 | fi |
| 10364 | if test "$hardcode_direct" = yes; then |
| 10365 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10366 | else |
| 10367 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10368 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10369 | haveit= |
| 10370 | for x in $rpathdirs; do |
| 10371 | if test "X$x" = "X$found_dir"; then |
| 10372 | haveit=yes |
| 10373 | break |
| 10374 | fi |
| 10375 | done |
| 10376 | if test -z "$haveit"; then |
| 10377 | rpathdirs="$rpathdirs $found_dir" |
| 10378 | fi |
| 10379 | else |
| 10380 | haveit= |
| 10381 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10382 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10383 | acl_save_prefix="$prefix" |
| 10384 | prefix="$acl_final_prefix" |
| 10385 | acl_save_exec_prefix="$exec_prefix" |
| 10386 | exec_prefix="$acl_final_exec_prefix" |
| 10387 | eval x=\"$x\" |
| 10388 | exec_prefix="$acl_save_exec_prefix" |
| 10389 | prefix="$acl_save_prefix" |
| 10390 | |
| 10391 | if test "X$x" = "X-L$found_dir"; then |
| 10392 | haveit=yes |
| 10393 | break |
| 10394 | fi |
| 10395 | done |
| 10396 | if test -z "$haveit"; then |
| 10397 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10398 | fi |
| 10399 | if test "$hardcode_minus_L" != no; then |
| 10400 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10401 | else |
| 10402 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10403 | fi |
| 10404 | fi |
| 10405 | fi |
| 10406 | fi |
| 10407 | else |
| 10408 | if test "X$found_a" != "X"; then |
| 10409 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10410 | else |
| 10411 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10412 | fi |
| 10413 | fi |
| 10414 | additional_includedir= |
| 10415 | case "$found_dir" in |
| 10416 | */lib | */lib/) |
| 10417 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10418 | additional_includedir="$basedir/include" |
| 10419 | ;; |
| 10420 | esac |
| 10421 | if test "X$additional_includedir" != "X"; then |
| 10422 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10423 | haveit= |
| 10424 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10425 | if test -n "$GCC"; then |
| 10426 | case $host_os in |
| 10427 | linux*) haveit=yes;; |
| 10428 | esac |
| 10429 | fi |
| 10430 | fi |
| 10431 | if test -z "$haveit"; then |
| 10432 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10433 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10434 | acl_save_prefix="$prefix" |
| 10435 | prefix="$acl_final_prefix" |
| 10436 | acl_save_exec_prefix="$exec_prefix" |
| 10437 | exec_prefix="$acl_final_exec_prefix" |
| 10438 | eval x=\"$x\" |
| 10439 | exec_prefix="$acl_save_exec_prefix" |
| 10440 | prefix="$acl_save_prefix" |
| 10441 | |
| 10442 | if test "X$x" = "X-I$additional_includedir"; then |
| 10443 | haveit=yes |
| 10444 | break |
| 10445 | fi |
| 10446 | done |
| 10447 | if test -z "$haveit"; then |
| 10448 | if test -d "$additional_includedir"; then |
| 10449 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10450 | fi |
| 10451 | fi |
| 10452 | fi |
| 10453 | fi |
| 10454 | fi |
| 10455 | if test -n "$found_la"; then |
| 10456 | save_libdir="$libdir" |
| 10457 | case "$found_la" in |
| 10458 | */* | *\\*) . "$found_la" ;; |
| 10459 | *) . "./$found_la" ;; |
| 10460 | esac |
| 10461 | libdir="$save_libdir" |
| 10462 | for dep in $dependency_libs; do |
| 10463 | case "$dep" in |
| 10464 | -L*) |
| 10465 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10466 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10467 | haveit= |
| 10468 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10469 | if test -n "$GCC"; then |
| 10470 | case $host_os in |
| 10471 | linux*) haveit=yes;; |
| 10472 | esac |
| 10473 | fi |
| 10474 | fi |
| 10475 | if test -z "$haveit"; then |
| 10476 | haveit= |
| 10477 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10478 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10479 | acl_save_prefix="$prefix" |
| 10480 | prefix="$acl_final_prefix" |
| 10481 | acl_save_exec_prefix="$exec_prefix" |
| 10482 | exec_prefix="$acl_final_exec_prefix" |
| 10483 | eval x=\"$x\" |
| 10484 | exec_prefix="$acl_save_exec_prefix" |
| 10485 | prefix="$acl_save_prefix" |
| 10486 | |
| 10487 | if test "X$x" = "X-L$additional_libdir"; then |
| 10488 | haveit=yes |
| 10489 | break |
| 10490 | fi |
| 10491 | done |
| 10492 | if test -z "$haveit"; then |
| 10493 | if test -d "$additional_libdir"; then |
| 10494 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10495 | fi |
| 10496 | fi |
| 10497 | haveit= |
| 10498 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10499 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10500 | acl_save_prefix="$prefix" |
| 10501 | prefix="$acl_final_prefix" |
| 10502 | acl_save_exec_prefix="$exec_prefix" |
| 10503 | exec_prefix="$acl_final_exec_prefix" |
| 10504 | eval x=\"$x\" |
| 10505 | exec_prefix="$acl_save_exec_prefix" |
| 10506 | prefix="$acl_save_prefix" |
| 10507 | |
| 10508 | if test "X$x" = "X-L$additional_libdir"; then |
| 10509 | haveit=yes |
| 10510 | break |
| 10511 | fi |
| 10512 | done |
| 10513 | if test -z "$haveit"; then |
| 10514 | if test -d "$additional_libdir"; then |
| 10515 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10516 | fi |
| 10517 | fi |
| 10518 | fi |
| 10519 | fi |
| 10520 | ;; |
| 10521 | -R*) |
| 10522 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10523 | if test "$enable_rpath" != no; then |
| 10524 | haveit= |
| 10525 | for x in $rpathdirs; do |
| 10526 | if test "X$x" = "X$dir"; then |
| 10527 | haveit=yes |
| 10528 | break |
| 10529 | fi |
| 10530 | done |
| 10531 | if test -z "$haveit"; then |
| 10532 | rpathdirs="$rpathdirs $dir" |
| 10533 | fi |
| 10534 | haveit= |
| 10535 | for x in $ltrpathdirs; do |
| 10536 | if test "X$x" = "X$dir"; then |
| 10537 | haveit=yes |
| 10538 | break |
| 10539 | fi |
| 10540 | done |
| 10541 | if test -z "$haveit"; then |
| 10542 | ltrpathdirs="$ltrpathdirs $dir" |
| 10543 | fi |
| 10544 | fi |
| 10545 | ;; |
| 10546 | -l*) |
| 10547 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10548 | ;; |
| 10549 | *.la) |
| 10550 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10551 | ;; |
| 10552 | *) |
| 10553 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10554 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10555 | ;; |
| 10556 | esac |
| 10557 | done |
| 10558 | fi |
| 10559 | else |
| 10560 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10561 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10562 | fi |
| 10563 | fi |
| 10564 | fi |
| 10565 | done |
| 10566 | done |
| 10567 | if test "X$rpathdirs" != "X"; then |
| 10568 | if test -n "$hardcode_libdir_separator"; then |
| 10569 | alldirs= |
| 10570 | for found_dir in $rpathdirs; do |
| 10571 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10572 | done |
| 10573 | acl_save_libdir="$libdir" |
| 10574 | libdir="$alldirs" |
| 10575 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10576 | libdir="$acl_save_libdir" |
| 10577 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10578 | else |
| 10579 | for found_dir in $rpathdirs; do |
| 10580 | acl_save_libdir="$libdir" |
| 10581 | libdir="$found_dir" |
| 10582 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10583 | libdir="$acl_save_libdir" |
| 10584 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10585 | done |
| 10586 | fi |
| 10587 | fi |
| 10588 | if test "X$ltrpathdirs" != "X"; then |
| 10589 | for found_dir in $ltrpathdirs; do |
| 10590 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10591 | done |
| 10592 | fi |
| 10593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10594 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10595 | 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] | 10596 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10598 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10599 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10600 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10601 | gt_save_LIBS="$LIBS" |
| 10602 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10603 | cat >conftest.$ac_ext <<_ACEOF |
| 10604 | /* confdefs.h. */ |
| 10605 | _ACEOF |
| 10606 | cat confdefs.h >>conftest.$ac_ext |
| 10607 | cat >>conftest.$ac_ext <<_ACEOF |
| 10608 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10609 | #include <libintl.h> |
| 10610 | extern int _nl_msg_cat_cntr; |
| 10611 | extern |
| 10612 | #ifdef __cplusplus |
| 10613 | "C" |
| 10614 | #endif |
| 10615 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10616 | int |
| 10617 | main () |
| 10618 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10619 | bindtextdomain ("", ""); |
| 10620 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10621 | ; |
| 10622 | return 0; |
| 10623 | } |
| 10624 | _ACEOF |
| 10625 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10626 | if { (ac_try="$ac_link" |
| 10627 | case "(($ac_try" in |
| 10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10629 | *) ac_try_echo=$ac_try;; |
| 10630 | esac |
| 10631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10632 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10633 | ac_status=$? |
| 10634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10635 | rm -f conftest.er1 |
| 10636 | cat conftest.err >&5 |
| 10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10638 | (exit $ac_status); } && { |
| 10639 | test -z "$ac_c_werror_flag" || |
| 10640 | test ! -s conftest.err |
| 10641 | } && test -s conftest$ac_exeext && |
| 10642 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10643 | gt_cv_func_gnugettext1_libintl=yes |
| 10644 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10645 | echo "$as_me: failed program was:" >&5 |
| 10646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10647 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10648 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10650 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10651 | 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] | 10652 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10653 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10654 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10655 | cat >conftest.$ac_ext <<_ACEOF |
| 10656 | /* confdefs.h. */ |
| 10657 | _ACEOF |
| 10658 | cat confdefs.h >>conftest.$ac_ext |
| 10659 | cat >>conftest.$ac_ext <<_ACEOF |
| 10660 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10661 | #include <libintl.h> |
| 10662 | extern int _nl_msg_cat_cntr; |
| 10663 | extern |
| 10664 | #ifdef __cplusplus |
| 10665 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10666 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10667 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10668 | int |
| 10669 | main () |
| 10670 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10671 | bindtextdomain ("", ""); |
| 10672 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10673 | ; |
| 10674 | return 0; |
| 10675 | } |
| 10676 | _ACEOF |
| 10677 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10678 | if { (ac_try="$ac_link" |
| 10679 | case "(($ac_try" in |
| 10680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10681 | *) ac_try_echo=$ac_try;; |
| 10682 | esac |
| 10683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10684 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10685 | ac_status=$? |
| 10686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10687 | rm -f conftest.er1 |
| 10688 | cat conftest.err >&5 |
| 10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10690 | (exit $ac_status); } && { |
| 10691 | test -z "$ac_c_werror_flag" || |
| 10692 | test ! -s conftest.err |
| 10693 | } && test -s conftest$ac_exeext && |
| 10694 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10695 | LIBINTL="$LIBINTL $LIBICONV" |
| 10696 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10697 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10698 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10699 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10700 | echo "$as_me: failed program was:" >&5 |
| 10701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10702 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10703 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10704 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10705 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10706 | 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] | 10707 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10708 | fi |
| 10709 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10710 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10712 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10713 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10714 | fi |
| 10715 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10716 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10717 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10718 | && test "$PACKAGE" != gettext-runtime \ |
| 10719 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10720 | gt_use_preinstalled_gnugettext=yes |
| 10721 | else |
| 10722 | LIBINTL= |
| 10723 | LTLIBINTL= |
| 10724 | INCINTL= |
| 10725 | fi |
| 10726 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10727 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10728 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10729 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10730 | fi |
| 10731 | fi |
| 10732 | |
| 10733 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10734 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10735 | USE_INCLUDED_LIBINTL=yes |
| 10736 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10737 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10738 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10739 | fi |
| 10740 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10741 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10742 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10743 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10744 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10745 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10746 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10747 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10748 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10749 | |
| 10750 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10751 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10752 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10753 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10754 | else |
| 10755 | USE_NLS=no |
| 10756 | fi |
| 10757 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10759 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10760 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10761 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10762 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10764 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10765 | 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] | 10766 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10767 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10768 | gt_source="external libintl" |
| 10769 | else |
| 10770 | gt_source="libc" |
| 10771 | fi |
| 10772 | else |
| 10773 | gt_source="included intl directory" |
| 10774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10775 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10776 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10777 | fi |
| 10778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10779 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10780 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10781 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10782 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10783 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10784 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10785 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10786 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10787 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10788 | for element in $INCINTL; do |
| 10789 | haveit= |
| 10790 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10791 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10792 | acl_save_prefix="$prefix" |
| 10793 | prefix="$acl_final_prefix" |
| 10794 | acl_save_exec_prefix="$exec_prefix" |
| 10795 | exec_prefix="$acl_final_exec_prefix" |
| 10796 | eval x=\"$x\" |
| 10797 | exec_prefix="$acl_save_exec_prefix" |
| 10798 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10799 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10800 | if test "X$x" = "X$element"; then |
| 10801 | haveit=yes |
| 10802 | break |
| 10803 | fi |
| 10804 | done |
| 10805 | if test -z "$haveit"; then |
| 10806 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10807 | fi |
| 10808 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10809 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10810 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10811 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10812 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10813 | cat >>confdefs.h <<\_ACEOF |
| 10814 | #define HAVE_GETTEXT 1 |
| 10815 | _ACEOF |
| 10816 | |
| 10817 | |
| 10818 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10819 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10820 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10821 | |
| 10822 | fi |
| 10823 | |
| 10824 | POSUB=po |
| 10825 | fi |
| 10826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10827 | |
| 10828 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10829 | BUILD_INCLUDED_LIBINTL=yes |
| 10830 | fi |
| 10831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10832 | |
| 10833 | |
| 10834 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10836 | nls_cv_header_intl= |
| 10837 | nls_cv_header_libgt= |
| 10838 | |
| 10839 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10840 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10841 | |
| 10842 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10843 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10844 | |
| 10845 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10846 | |
| 10847 | |
| 10848 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10849 | INTLOBJS="\$(GETTOBJS)" |
| 10850 | fi |
| 10851 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10852 | |
| 10853 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10854 | |
| 10855 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10856 | |
| 10857 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10858 | |
| 10859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10865 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10866 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10867 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10868 | 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] | 10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10870 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10871 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10872 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10873 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10874 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10875 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10877 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10878 | *@@@%%%=?*=@@@%%%*) |
| 10879 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10880 | *) |
| 10881 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10882 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10883 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10885 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10886 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10887 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10888 | SET_MAKE= |
| 10889 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10890 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10891 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10892 | SET_MAKE="MAKE=${MAKE-make}" |
| 10893 | fi |
| 10894 | |
| 10895 | # Extract the first word of "ln", so it can be a program name with args. |
| 10896 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10897 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10899 | if test "${ac_cv_path_LN+set}" = set; then |
| 10900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10901 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10902 | case $LN in |
| 10903 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10904 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10905 | ;; |
| 10906 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10908 | for as_dir in $PATH |
| 10909 | do |
| 10910 | IFS=$as_save_IFS |
| 10911 | test -z "$as_dir" && as_dir=. |
| 10912 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10913 | 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] | 10914 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10916 | break 2 |
| 10917 | fi |
| 10918 | done |
| 10919 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10920 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10921 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10922 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10923 | ;; |
| 10924 | esac |
| 10925 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10927 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10928 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10929 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10930 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10931 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10932 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10933 | fi |
| 10934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10935 | |
| 10936 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10937 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10938 | LN_S=$as_ln_s |
| 10939 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10940 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10941 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10942 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10943 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10944 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10945 | fi |
| 10946 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10947 | # Extract the first word of "mv", so it can be a program name with args. |
| 10948 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10949 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10951 | if test "${ac_cv_path_MV+set}" = set; then |
| 10952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10953 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10954 | case $MV in |
| 10955 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10956 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10957 | ;; |
| 10958 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10960 | for as_dir in $PATH |
| 10961 | do |
| 10962 | IFS=$as_save_IFS |
| 10963 | test -z "$as_dir" && as_dir=. |
| 10964 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10965 | 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] | 10966 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10968 | break 2 |
| 10969 | fi |
| 10970 | done |
| 10971 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10972 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10973 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10974 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10975 | ;; |
| 10976 | esac |
| 10977 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10978 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10979 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10980 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10981 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10982 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10983 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10984 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10985 | fi |
| 10986 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10987 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10988 | # Extract the first word of "cp", so it can be a program name with args. |
| 10989 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10992 | if test "${ac_cv_path_CP+set}" = set; then |
| 10993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10994 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10995 | case $CP in |
| 10996 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10997 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10998 | ;; |
| 10999 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11001 | for as_dir in $PATH |
| 11002 | do |
| 11003 | IFS=$as_save_IFS |
| 11004 | test -z "$as_dir" && as_dir=. |
| 11005 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11006 | 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] | 11007 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 11008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11009 | break 2 |
| 11010 | fi |
| 11011 | done |
| 11012 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11013 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11014 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11015 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11016 | ;; |
| 11017 | esac |
| 11018 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11019 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11020 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11021 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 11022 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11023 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11024 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11025 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11026 | fi |
| 11027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11028 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11029 | # Extract the first word of "rm", so it can be a program name with args. |
| 11030 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11033 | if test "${ac_cv_path_RM+set}" = set; then |
| 11034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11035 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11036 | case $RM in |
| 11037 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11038 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11039 | ;; |
| 11040 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11042 | for as_dir in $PATH |
| 11043 | do |
| 11044 | IFS=$as_save_IFS |
| 11045 | test -z "$as_dir" && as_dir=. |
| 11046 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11047 | 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] | 11048 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11050 | break 2 |
| 11051 | fi |
| 11052 | done |
| 11053 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11054 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11055 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11056 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11057 | ;; |
| 11058 | esac |
| 11059 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11060 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11061 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11062 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11063 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11064 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11066 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11067 | fi |
| 11068 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11069 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11070 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11071 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11072 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11074 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11076 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11077 | case $CHMOD in |
| 11078 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11079 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11080 | ;; |
| 11081 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11083 | for as_dir in $PATH |
| 11084 | do |
| 11085 | IFS=$as_save_IFS |
| 11086 | test -z "$as_dir" && as_dir=. |
| 11087 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11088 | 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] | 11089 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11091 | break 2 |
| 11092 | fi |
| 11093 | done |
| 11094 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11095 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11096 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11097 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11098 | ;; |
| 11099 | esac |
| 11100 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11101 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11102 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11103 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11104 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11105 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11106 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11107 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11108 | fi |
| 11109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11110 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11111 | for ac_prog in gawk mawk nawk awk |
| 11112 | do |
| 11113 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11114 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11115 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11117 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11119 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11120 | if test -n "$AWK"; then |
| 11121 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11122 | else |
| 11123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11124 | for as_dir in $PATH |
| 11125 | do |
| 11126 | IFS=$as_save_IFS |
| 11127 | test -z "$as_dir" && as_dir=. |
| 11128 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11129 | 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] | 11130 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11132 | break 2 |
| 11133 | fi |
| 11134 | done |
| 11135 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11136 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11137 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11138 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11139 | fi |
| 11140 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11141 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11142 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11143 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11144 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11145 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11146 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11147 | fi |
| 11148 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11149 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11150 | test -n "$AWK" && break |
| 11151 | done |
| 11152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11153 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11154 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11155 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11157 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11158 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11159 | then ac_cv_path_EGREP="$GREP -E" |
| 11160 | else |
| 11161 | # Extract the first word of "egrep" to use in msg output |
| 11162 | if test -z "$EGREP"; then |
| 11163 | set dummy egrep; ac_prog_name=$2 |
| 11164 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11166 | else |
| 11167 | ac_path_EGREP_found=false |
| 11168 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11170 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11171 | do |
| 11172 | IFS=$as_save_IFS |
| 11173 | test -z "$as_dir" && as_dir=. |
| 11174 | for ac_prog in egrep; do |
| 11175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11176 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11177 | { 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] | 11178 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11179 | # Check for GNU $ac_path_EGREP |
| 11180 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11181 | *GNU*) |
| 11182 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11183 | *) |
| 11184 | ac_count=0 |
| 11185 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11186 | while : |
| 11187 | do |
| 11188 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11189 | mv "conftest.tmp" "conftest.in" |
| 11190 | cp "conftest.in" "conftest.nl" |
| 11191 | echo 'EGREP' >> "conftest.nl" |
| 11192 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11193 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11194 | ac_count=`expr $ac_count + 1` |
| 11195 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11196 | # Best one so far, save it but keep looking for a better one |
| 11197 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11198 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11199 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11200 | # 10*(2^10) chars as input seems more than enough |
| 11201 | test $ac_count -gt 10 && break |
| 11202 | done |
| 11203 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11204 | esac |
| 11205 | |
| 11206 | |
| 11207 | $ac_path_EGREP_found && break 3 |
| 11208 | done |
| 11209 | done |
| 11210 | |
| 11211 | done |
| 11212 | IFS=$as_save_IFS |
| 11213 | |
| 11214 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11215 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11216 | |
| 11217 | EGREP="$ac_cv_path_EGREP" |
| 11218 | if test -z "$EGREP"; then |
| 11219 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11220 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11221 | { (exit 1); exit 1; }; } |
| 11222 | fi |
| 11223 | |
| 11224 | else |
| 11225 | ac_cv_path_EGREP=$EGREP |
| 11226 | fi |
| 11227 | |
| 11228 | |
| 11229 | fi |
| 11230 | fi |
| 11231 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11232 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11233 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11234 | |
| 11235 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11236 | # Extract the first word of "sed", so it can be a program name with args. |
| 11237 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11238 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11240 | if test "${ac_cv_path_SED+set}" = set; then |
| 11241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11242 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11243 | case $SED in |
| 11244 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11245 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11246 | ;; |
| 11247 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11249 | for as_dir in $PATH |
| 11250 | do |
| 11251 | IFS=$as_save_IFS |
| 11252 | test -z "$as_dir" && as_dir=. |
| 11253 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11254 | 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] | 11255 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11257 | break 2 |
| 11258 | fi |
| 11259 | done |
| 11260 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11261 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11262 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11263 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11264 | ;; |
| 11265 | esac |
| 11266 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11267 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11268 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11269 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11270 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11271 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11273 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11274 | fi |
| 11275 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11276 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11277 | # Extract the first word of "perl", so it can be a program name with args. |
| 11278 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11281 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11283 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11284 | case $PERL in |
| 11285 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11286 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11287 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11288 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11290 | for as_dir in $PATH |
| 11291 | do |
| 11292 | IFS=$as_save_IFS |
| 11293 | test -z "$as_dir" && as_dir=. |
| 11294 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11295 | 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] | 11296 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11298 | break 2 |
| 11299 | fi |
| 11300 | done |
| 11301 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11302 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11303 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11304 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11305 | ;; |
| 11306 | esac |
| 11307 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11309 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11310 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11311 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11312 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11313 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11314 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11315 | fi |
| 11316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11317 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11318 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11319 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11320 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11322 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11324 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11325 | case $LDCONFIG in |
| 11326 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11327 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11328 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11329 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11331 | for as_dir in $PATH |
| 11332 | do |
| 11333 | IFS=$as_save_IFS |
| 11334 | test -z "$as_dir" && as_dir=. |
| 11335 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11337 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11339 | break 2 |
| 11340 | fi |
| 11341 | done |
| 11342 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11343 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11344 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11345 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11346 | ;; |
| 11347 | esac |
| 11348 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11349 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11350 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11351 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11352 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11353 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11355 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11356 | fi |
| 11357 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11358 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | if test -n "$ac_tool_prefix"; then |
| 11360 | # 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] | 11361 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11364 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11366 | else |
| 11367 | if test -n "$AR"; then |
| 11368 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11369 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11371 | for as_dir in $PATH |
| 11372 | do |
| 11373 | IFS=$as_save_IFS |
| 11374 | test -z "$as_dir" && as_dir=. |
| 11375 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11377 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11379 | break 2 |
| 11380 | fi |
| 11381 | done |
| 11382 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11383 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11384 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11385 | fi |
| 11386 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11387 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11388 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11389 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11390 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11391 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11393 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11394 | fi |
| 11395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11396 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11397 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11398 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11399 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11400 | # Extract the first word of "ar", so it can be a program name with args. |
| 11401 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11406 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11407 | if test -n "$ac_ct_AR"; then |
| 11408 | 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] | 11409 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11411 | for as_dir in $PATH |
| 11412 | do |
| 11413 | IFS=$as_save_IFS |
| 11414 | test -z "$as_dir" && as_dir=. |
| 11415 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11416 | 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] | 11417 | ac_cv_prog_ac_ct_AR="ar" |
| 11418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11419 | break 2 |
| 11420 | fi |
| 11421 | done |
| 11422 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11423 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11425 | fi |
| 11426 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11427 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11428 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11429 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11430 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11431 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11432 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11433 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11434 | fi |
| 11435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11436 | if test "x$ac_ct_AR" = x; then |
| 11437 | AR="ar" |
| 11438 | else |
| 11439 | case $cross_compiling:$ac_tool_warned in |
| 11440 | yes:) |
| 11441 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11442 | whose name does not start with the host triplet. If you think this |
| 11443 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11444 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11445 | whose name does not start with the host triplet. If you think this |
| 11446 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11447 | ac_tool_warned=yes ;; |
| 11448 | esac |
| 11449 | AR=$ac_ct_AR |
| 11450 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11451 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11452 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11453 | fi |
| 11454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | if test -n "$ac_tool_prefix"; then |
| 11456 | # 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] | 11457 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11458 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11460 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11462 | else |
| 11463 | if test -n "$RANLIB"; then |
| 11464 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11465 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11467 | for as_dir in $PATH |
| 11468 | do |
| 11469 | IFS=$as_save_IFS |
| 11470 | test -z "$as_dir" && as_dir=. |
| 11471 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11472 | 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] | 11473 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11475 | break 2 |
| 11476 | fi |
| 11477 | done |
| 11478 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11479 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11480 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11481 | fi |
| 11482 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11484 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11485 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11486 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11487 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11489 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11490 | fi |
| 11491 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11493 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11494 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11495 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11496 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11497 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11498 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11500 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11502 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11503 | if test -n "$ac_ct_RANLIB"; then |
| 11504 | 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] | 11505 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11507 | for as_dir in $PATH |
| 11508 | do |
| 11509 | IFS=$as_save_IFS |
| 11510 | test -z "$as_dir" && as_dir=. |
| 11511 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11512 | 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] | 11513 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11515 | break 2 |
| 11516 | fi |
| 11517 | done |
| 11518 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11519 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11520 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11521 | fi |
| 11522 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11524 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11525 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11526 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11527 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11529 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11530 | fi |
| 11531 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11532 | if test "x$ac_ct_RANLIB" = x; then |
| 11533 | RANLIB=":" |
| 11534 | else |
| 11535 | case $cross_compiling:$ac_tool_warned in |
| 11536 | yes:) |
| 11537 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11538 | whose name does not start with the host triplet. If you think this |
| 11539 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11540 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11541 | whose name does not start with the host triplet. If you think this |
| 11542 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11543 | ac_tool_warned=yes ;; |
| 11544 | esac |
| 11545 | RANLIB=$ac_ct_RANLIB |
| 11546 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11547 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11548 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11549 | fi |
| 11550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11551 | if test -n "$ac_tool_prefix"; then |
| 11552 | # 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] | 11553 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11556 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11558 | else |
| 11559 | if test -n "$STRIP"; then |
| 11560 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11561 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11563 | for as_dir in $PATH |
| 11564 | do |
| 11565 | IFS=$as_save_IFS |
| 11566 | test -z "$as_dir" && as_dir=. |
| 11567 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11568 | 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] | 11569 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11571 | break 2 |
| 11572 | fi |
| 11573 | done |
| 11574 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11575 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11576 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11577 | fi |
| 11578 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11579 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11580 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11581 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11582 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11583 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11585 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11586 | fi |
| 11587 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11590 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11591 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11592 | # Extract the first word of "strip", so it can be a program name with args. |
| 11593 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11598 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11599 | if test -n "$ac_ct_STRIP"; then |
| 11600 | 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] | 11601 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11603 | for as_dir in $PATH |
| 11604 | do |
| 11605 | IFS=$as_save_IFS |
| 11606 | test -z "$as_dir" && as_dir=. |
| 11607 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11608 | 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] | 11609 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11611 | break 2 |
| 11612 | fi |
| 11613 | done |
| 11614 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11615 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11616 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11617 | fi |
| 11618 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11619 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11620 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11621 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11622 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11623 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11624 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11625 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11626 | fi |
| 11627 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11628 | if test "x$ac_ct_STRIP" = x; then |
| 11629 | STRIP=":" |
| 11630 | else |
| 11631 | case $cross_compiling:$ac_tool_warned in |
| 11632 | yes:) |
| 11633 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11634 | whose name does not start with the host triplet. If you think this |
| 11635 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11636 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11637 | whose name does not start with the host triplet. If you think this |
| 11638 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11639 | ac_tool_warned=yes ;; |
| 11640 | esac |
| 11641 | STRIP=$ac_ct_STRIP |
| 11642 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11643 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11644 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11645 | fi |
| 11646 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11647 | # Find a good install program. We prefer a C program (faster), |
| 11648 | # so one script is as good as another. But avoid the broken or |
| 11649 | # incompatible versions: |
| 11650 | # SysV /etc/install, /usr/sbin/install |
| 11651 | # SunOS /usr/etc/install |
| 11652 | # IRIX /sbin/install |
| 11653 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11654 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11655 | # 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] | 11656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11657 | # 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] | 11658 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11659 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11660 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11661 | 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] | 11662 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11663 | if test "${ac_cv_path_install+set}" = set; then |
| 11664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11665 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11667 | for as_dir in $PATH |
| 11668 | do |
| 11669 | IFS=$as_save_IFS |
| 11670 | test -z "$as_dir" && as_dir=. |
| 11671 | # Account for people who put trailing slashes in PATH elements. |
| 11672 | case $as_dir/ in |
| 11673 | ./ | .// | /cC/* | \ |
| 11674 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11675 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11676 | /usr/ucb/* ) ;; |
| 11677 | *) |
| 11678 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11679 | # Don't use installbsd from OSF since it installs stuff as root |
| 11680 | # by default. |
| 11681 | for ac_prog in ginstall scoinst install; do |
| 11682 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11683 | 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] | 11684 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11685 | 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] | 11686 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11687 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11688 | elif test $ac_prog = install && |
| 11689 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11690 | # program-specific install script used by HP pwplus--don't use. |
| 11691 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11692 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11694 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11695 | fi |
| 11696 | fi |
| 11697 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | done |
| 11699 | ;; |
| 11700 | esac |
| 11701 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11702 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11703 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11704 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11705 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11706 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11708 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11709 | # As a last resort, use the slow shell script. Don't cache a |
| 11710 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11711 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11712 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11713 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11714 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11716 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11717 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11718 | |
| 11719 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11720 | # It thinks the first close brace ends the variable substitution. |
| 11721 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11722 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11723 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11724 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11725 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11726 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11727 | # See if we need a separate native compiler. |
| 11728 | if test $cross_compiling = no; then |
| 11729 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11730 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11731 | else |
| 11732 | for ac_prog in gcc cc |
| 11733 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11734 | # 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] | 11735 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11736 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11738 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11740 | else |
| 11741 | if test -n "$BUILD_CC"; then |
| 11742 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11743 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11745 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11746 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11747 | IFS=$as_save_IFS |
| 11748 | test -z "$as_dir" && as_dir=. |
| 11749 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11750 | 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] | 11751 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11753 | break 2 |
| 11754 | fi |
| 11755 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11756 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11757 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11758 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11759 | fi |
| 11760 | fi |
| 11761 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11762 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11763 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11764 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11765 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11766 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11767 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11768 | fi |
| 11769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11770 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11771 | test -n "$BUILD_CC" && break |
| 11772 | done |
| 11773 | |
| 11774 | fi |
| 11775 | |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | |
| 11780 | |
| 11781 | |
| 11782 | |
| 11783 | |
| 11784 | |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | |
| 11789 | |
| 11790 | |
| 11791 | |
| 11792 | |
| 11793 | |
| 11794 | |
| 11795 | |
| 11796 | |
| 11797 | |
| 11798 | |
| 11799 | |
| 11800 | |
| 11801 | |
| 11802 | |
| 11803 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11804 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11805 | |
| 11806 | |
Theodore Ts'o | 29dd9d1 | 2007-12-31 14:36:48 -0500 | [diff] [blame] | 11807 | |
| 11808 | 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 sys/syscall.h net/if_dl.h netinet/in.h utime.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11809 | do |
| 11810 | 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] | 11811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11812 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11814 | 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] | 11815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11816 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11817 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11818 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11819 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11820 | else |
| 11821 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11822 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11823 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11824 | cat >conftest.$ac_ext <<_ACEOF |
| 11825 | /* confdefs.h. */ |
| 11826 | _ACEOF |
| 11827 | cat confdefs.h >>conftest.$ac_ext |
| 11828 | cat >>conftest.$ac_ext <<_ACEOF |
| 11829 | /* end confdefs.h. */ |
| 11830 | $ac_includes_default |
| 11831 | #include <$ac_header> |
| 11832 | _ACEOF |
| 11833 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11834 | if { (ac_try="$ac_compile" |
| 11835 | case "(($ac_try" in |
| 11836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11837 | *) ac_try_echo=$ac_try;; |
| 11838 | esac |
| 11839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11840 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11841 | ac_status=$? |
| 11842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11843 | rm -f conftest.er1 |
| 11844 | cat conftest.err >&5 |
| 11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11846 | (exit $ac_status); } && { |
| 11847 | test -z "$ac_c_werror_flag" || |
| 11848 | test ! -s conftest.err |
| 11849 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11850 | ac_header_compiler=yes |
| 11851 | else |
| 11852 | echo "$as_me: failed program was:" >&5 |
| 11853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11855 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11856 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11857 | |
| 11858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11859 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11860 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11861 | |
| 11862 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11863 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11864 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11865 | cat >conftest.$ac_ext <<_ACEOF |
| 11866 | /* confdefs.h. */ |
| 11867 | _ACEOF |
| 11868 | cat confdefs.h >>conftest.$ac_ext |
| 11869 | cat >>conftest.$ac_ext <<_ACEOF |
| 11870 | /* end confdefs.h. */ |
| 11871 | #include <$ac_header> |
| 11872 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11873 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11874 | case "(($ac_try" in |
| 11875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11876 | *) ac_try_echo=$ac_try;; |
| 11877 | esac |
| 11878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11879 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | ac_status=$? |
| 11881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11882 | rm -f conftest.er1 |
| 11883 | cat conftest.err >&5 |
| 11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11885 | (exit $ac_status); } >/dev/null && { |
| 11886 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11887 | test ! -s conftest.err |
| 11888 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11889 | ac_header_preproc=yes |
| 11890 | else |
| 11891 | echo "$as_me: failed program was:" >&5 |
| 11892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11893 | |
| 11894 | ac_header_preproc=no |
| 11895 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11896 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11897 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11898 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11899 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11900 | |
| 11901 | # So? What about this header? |
| 11902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11903 | yes:no: ) |
| 11904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11908 | ac_header_preproc=yes |
| 11909 | ;; |
| 11910 | no:yes:* ) |
| 11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11922 | 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] | 11923 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11924 | ;; |
| 11925 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11926 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11928 | 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] | 11929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11930 | else |
| 11931 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11932 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11933 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11934 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11935 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11936 | |
| 11937 | fi |
| 11938 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11939 | cat >>confdefs.h <<_ACEOF |
| 11940 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11941 | _ACEOF |
| 11942 | |
| 11943 | fi |
| 11944 | |
| 11945 | done |
| 11946 | |
| 11947 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11948 | |
| 11949 | for ac_header in sys/disk.h sys/mount.h |
| 11950 | do |
| 11951 | 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] | 11952 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11954 | 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] | 11955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11956 | else |
| 11957 | cat >conftest.$ac_ext <<_ACEOF |
| 11958 | /* confdefs.h. */ |
| 11959 | _ACEOF |
| 11960 | cat confdefs.h >>conftest.$ac_ext |
| 11961 | cat >>conftest.$ac_ext <<_ACEOF |
| 11962 | /* end confdefs.h. */ |
| 11963 | |
| 11964 | #if HAVE_SYS_QUEUE_H |
| 11965 | #include <sys/queue.h> |
| 11966 | #endif |
| 11967 | |
| 11968 | |
| 11969 | #include <$ac_header> |
| 11970 | _ACEOF |
| 11971 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11972 | if { (ac_try="$ac_compile" |
| 11973 | case "(($ac_try" in |
| 11974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11975 | *) ac_try_echo=$ac_try;; |
| 11976 | esac |
| 11977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11978 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11979 | ac_status=$? |
| 11980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11981 | rm -f conftest.er1 |
| 11982 | cat conftest.err >&5 |
| 11983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11984 | (exit $ac_status); } && { |
| 11985 | test -z "$ac_c_werror_flag" || |
| 11986 | test ! -s conftest.err |
| 11987 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11988 | eval "$as_ac_Header=yes" |
| 11989 | else |
| 11990 | echo "$as_me: failed program was:" >&5 |
| 11991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11992 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11993 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11994 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | |
| 11996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11997 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11998 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11999 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12000 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12001 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12002 | cat >>confdefs.h <<_ACEOF |
| 12003 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12004 | _ACEOF |
| 12005 | |
| 12006 | fi |
| 12007 | |
| 12008 | done |
| 12009 | |
| 12010 | |
| 12011 | for ac_header in net/if.h |
| 12012 | do |
| 12013 | 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] | 12014 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12016 | 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] | 12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12018 | else |
| 12019 | cat >conftest.$ac_ext <<_ACEOF |
| 12020 | /* confdefs.h. */ |
| 12021 | _ACEOF |
| 12022 | cat confdefs.h >>conftest.$ac_ext |
| 12023 | cat >>conftest.$ac_ext <<_ACEOF |
| 12024 | /* end confdefs.h. */ |
| 12025 | |
| 12026 | #if HAVE_SYS_TYPES_H |
| 12027 | #include <sys/types.h> |
| 12028 | #endif |
| 12029 | #if HAVE_SYS_SOCKET |
| 12030 | #include <sys/socket.h> |
| 12031 | #endif |
| 12032 | |
| 12033 | |
| 12034 | #include <$ac_header> |
| 12035 | _ACEOF |
| 12036 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12037 | if { (ac_try="$ac_compile" |
| 12038 | case "(($ac_try" in |
| 12039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12040 | *) ac_try_echo=$ac_try;; |
| 12041 | esac |
| 12042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12043 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12044 | ac_status=$? |
| 12045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12046 | rm -f conftest.er1 |
| 12047 | cat conftest.err >&5 |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12049 | (exit $ac_status); } && { |
| 12050 | test -z "$ac_c_werror_flag" || |
| 12051 | test ! -s conftest.err |
| 12052 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12053 | eval "$as_ac_Header=yes" |
| 12054 | else |
| 12055 | echo "$as_me: failed program was:" >&5 |
| 12056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12058 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12059 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12060 | |
| 12061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12062 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12063 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12065 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12067 | cat >>confdefs.h <<_ACEOF |
| 12068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12069 | _ACEOF |
| 12070 | |
| 12071 | fi |
| 12072 | |
| 12073 | done |
| 12074 | |
| 12075 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12076 | for ac_func in vprintf |
| 12077 | do |
| 12078 | 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] | 12079 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12081 | 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] | 12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12083 | else |
| 12084 | cat >conftest.$ac_ext <<_ACEOF |
| 12085 | /* confdefs.h. */ |
| 12086 | _ACEOF |
| 12087 | cat confdefs.h >>conftest.$ac_ext |
| 12088 | cat >>conftest.$ac_ext <<_ACEOF |
| 12089 | /* end confdefs.h. */ |
| 12090 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12092 | #define $ac_func innocuous_$ac_func |
| 12093 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12094 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12095 | which can conflict with char $ac_func (); below. |
| 12096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12097 | <limits.h> exists even on freestanding compilers. */ |
| 12098 | |
| 12099 | #ifdef __STDC__ |
| 12100 | # include <limits.h> |
| 12101 | #else |
| 12102 | # include <assert.h> |
| 12103 | #endif |
| 12104 | |
| 12105 | #undef $ac_func |
| 12106 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | /* Override any GCC internal prototype to avoid an error. |
| 12108 | Use char because int might match the return type of a GCC |
| 12109 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12110 | #ifdef __cplusplus |
| 12111 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12112 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12113 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12114 | /* The GNU C library defines this for functions which it implements |
| 12115 | to always fail with ENOSYS. Some functions are actually named |
| 12116 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12117 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12118 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12119 | #endif |
| 12120 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12121 | int |
| 12122 | main () |
| 12123 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12124 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
| 12129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12130 | if { (ac_try="$ac_link" |
| 12131 | case "(($ac_try" in |
| 12132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12133 | *) ac_try_echo=$ac_try;; |
| 12134 | esac |
| 12135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12136 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12137 | ac_status=$? |
| 12138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12139 | rm -f conftest.er1 |
| 12140 | cat conftest.err >&5 |
| 12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12142 | (exit $ac_status); } && { |
| 12143 | test -z "$ac_c_werror_flag" || |
| 12144 | test ! -s conftest.err |
| 12145 | } && test -s conftest$ac_exeext && |
| 12146 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12148 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12149 | echo "$as_me: failed program was:" >&5 |
| 12150 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12152 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12153 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12154 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12155 | 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] | 12156 | conftest$ac_exeext conftest.$ac_ext |
| 12157 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12158 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12159 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12160 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12161 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12162 | cat >>confdefs.h <<_ACEOF |
| 12163 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12164 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12165 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12166 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12167 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12168 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12170 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12171 | cat >conftest.$ac_ext <<_ACEOF |
| 12172 | /* confdefs.h. */ |
| 12173 | _ACEOF |
| 12174 | cat confdefs.h >>conftest.$ac_ext |
| 12175 | cat >>conftest.$ac_ext <<_ACEOF |
| 12176 | /* end confdefs.h. */ |
| 12177 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12179 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12180 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12181 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12182 | which can conflict with char _doprnt (); below. |
| 12183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12184 | <limits.h> exists even on freestanding compilers. */ |
| 12185 | |
| 12186 | #ifdef __STDC__ |
| 12187 | # include <limits.h> |
| 12188 | #else |
| 12189 | # include <assert.h> |
| 12190 | #endif |
| 12191 | |
| 12192 | #undef _doprnt |
| 12193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12194 | /* Override any GCC internal prototype to avoid an error. |
| 12195 | Use char because int might match the return type of a GCC |
| 12196 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12197 | #ifdef __cplusplus |
| 12198 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12200 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12201 | /* The GNU C library defines this for functions which it implements |
| 12202 | to always fail with ENOSYS. Some functions are actually named |
| 12203 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12204 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12205 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12206 | #endif |
| 12207 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12208 | int |
| 12209 | main () |
| 12210 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12212 | ; |
| 12213 | return 0; |
| 12214 | } |
| 12215 | _ACEOF |
| 12216 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12217 | if { (ac_try="$ac_link" |
| 12218 | case "(($ac_try" in |
| 12219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12220 | *) ac_try_echo=$ac_try;; |
| 12221 | esac |
| 12222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12223 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12224 | ac_status=$? |
| 12225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12226 | rm -f conftest.er1 |
| 12227 | cat conftest.err >&5 |
| 12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12229 | (exit $ac_status); } && { |
| 12230 | test -z "$ac_c_werror_flag" || |
| 12231 | test ! -s conftest.err |
| 12232 | } && test -s conftest$ac_exeext && |
| 12233 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12234 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12236 | echo "$as_me: failed program was:" >&5 |
| 12237 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12238 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12239 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12240 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12241 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12242 | 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] | 12243 | conftest$ac_exeext conftest.$ac_ext |
| 12244 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12245 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12246 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12247 | if test $ac_cv_func__doprnt = yes; then |
| 12248 | |
| 12249 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12250 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12252 | |
| 12253 | fi |
| 12254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12255 | fi |
| 12256 | done |
| 12257 | |
| 12258 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12259 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12260 | 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] | 12261 | 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] | 12262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12263 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12264 | cat >conftest.$ac_ext <<_ACEOF |
| 12265 | /* confdefs.h. */ |
| 12266 | _ACEOF |
| 12267 | cat confdefs.h >>conftest.$ac_ext |
| 12268 | cat >>conftest.$ac_ext <<_ACEOF |
| 12269 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12270 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12272 | int |
| 12273 | main () |
| 12274 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12275 | static struct dirent ac_aggr; |
| 12276 | if (ac_aggr.d_reclen) |
| 12277 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12278 | ; |
| 12279 | return 0; |
| 12280 | } |
| 12281 | _ACEOF |
| 12282 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12283 | if { (ac_try="$ac_compile" |
| 12284 | case "(($ac_try" in |
| 12285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12286 | *) ac_try_echo=$ac_try;; |
| 12287 | esac |
| 12288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12289 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12290 | ac_status=$? |
| 12291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12292 | rm -f conftest.er1 |
| 12293 | cat conftest.err >&5 |
| 12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12295 | (exit $ac_status); } && { |
| 12296 | test -z "$ac_c_werror_flag" || |
| 12297 | test ! -s conftest.err |
| 12298 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12299 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12300 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | echo "$as_me: failed program was:" >&5 |
| 12302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12303 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12304 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12305 | /* confdefs.h. */ |
| 12306 | _ACEOF |
| 12307 | cat confdefs.h >>conftest.$ac_ext |
| 12308 | cat >>conftest.$ac_ext <<_ACEOF |
| 12309 | /* end confdefs.h. */ |
| 12310 | #include <dirent.h> |
| 12311 | |
| 12312 | int |
| 12313 | main () |
| 12314 | { |
| 12315 | static struct dirent ac_aggr; |
| 12316 | if (sizeof ac_aggr.d_reclen) |
| 12317 | return 0; |
| 12318 | ; |
| 12319 | return 0; |
| 12320 | } |
| 12321 | _ACEOF |
| 12322 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12323 | if { (ac_try="$ac_compile" |
| 12324 | case "(($ac_try" in |
| 12325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12326 | *) ac_try_echo=$ac_try;; |
| 12327 | esac |
| 12328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12329 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12330 | ac_status=$? |
| 12331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12332 | rm -f conftest.er1 |
| 12333 | cat conftest.err >&5 |
| 12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12335 | (exit $ac_status); } && { |
| 12336 | test -z "$ac_c_werror_flag" || |
| 12337 | test ! -s conftest.err |
| 12338 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12339 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12340 | else |
| 12341 | echo "$as_me: failed program was:" >&5 |
| 12342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12344 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12345 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12346 | |
| 12347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12349 | |
| 12350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12351 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12352 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12353 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12354 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12355 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12356 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12357 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12358 | |
| 12359 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12360 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12361 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12362 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12363 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12365 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12366 | cat >conftest.$ac_ext <<_ACEOF |
| 12367 | /* confdefs.h. */ |
| 12368 | _ACEOF |
| 12369 | cat confdefs.h >>conftest.$ac_ext |
| 12370 | cat >>conftest.$ac_ext <<_ACEOF |
| 12371 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12372 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12373 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12374 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12375 | int |
| 12376 | main () |
| 12377 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12378 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12379 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12380 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12381 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12382 | ; |
| 12383 | return 0; |
| 12384 | } |
| 12385 | _ACEOF |
| 12386 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12387 | if { (ac_try="$ac_compile" |
| 12388 | case "(($ac_try" in |
| 12389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12390 | *) ac_try_echo=$ac_try;; |
| 12391 | esac |
| 12392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12393 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12394 | ac_status=$? |
| 12395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12396 | rm -f conftest.er1 |
| 12397 | cat conftest.err >&5 |
| 12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12399 | (exit $ac_status); } && { |
| 12400 | test -z "$ac_c_werror_flag" || |
| 12401 | test ! -s conftest.err |
| 12402 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12403 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12404 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12405 | echo "$as_me: failed program was:" >&5 |
| 12406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12407 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12408 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12409 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12410 | |
| 12411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12412 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12413 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12414 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12415 | if test $ac_cv_type_ssize_t = yes; then |
| 12416 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12417 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12418 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12419 | |
| 12420 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12422 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12423 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12424 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12426 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12427 | cat >conftest.$ac_ext <<_ACEOF |
| 12428 | /* confdefs.h. */ |
| 12429 | _ACEOF |
| 12430 | cat confdefs.h >>conftest.$ac_ext |
| 12431 | cat >>conftest.$ac_ext <<_ACEOF |
| 12432 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12433 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12434 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12435 | int |
| 12436 | main () |
| 12437 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12438 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12439 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12440 | #endif |
| 12441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12442 | ; |
| 12443 | return 0; |
| 12444 | } |
| 12445 | _ACEOF |
| 12446 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12447 | if { (ac_try="$ac_compile" |
| 12448 | case "(($ac_try" in |
| 12449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12450 | *) ac_try_echo=$ac_try;; |
| 12451 | esac |
| 12452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12453 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12454 | ac_status=$? |
| 12455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12456 | rm -f conftest.er1 |
| 12457 | cat conftest.err >&5 |
| 12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12459 | (exit $ac_status); } && { |
| 12460 | test -z "$ac_c_werror_flag" || |
| 12461 | test ! -s conftest.err |
| 12462 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12463 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12464 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12465 | echo "$as_me: failed program was:" >&5 |
| 12466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12468 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12469 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12470 | |
| 12471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12472 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12473 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12474 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12475 | if test $ac_cv_have_decl_llseek = yes; then |
| 12476 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12477 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12478 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12479 | |
| 12480 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12481 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12482 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12483 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12484 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12486 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12487 | cat >conftest.$ac_ext <<_ACEOF |
| 12488 | /* confdefs.h. */ |
| 12489 | _ACEOF |
| 12490 | cat confdefs.h >>conftest.$ac_ext |
| 12491 | cat >>conftest.$ac_ext <<_ACEOF |
| 12492 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12493 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12494 | #define _LARGEFILE64_SOURCE |
| 12495 | #include <unistd.h> |
| 12496 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12497 | int |
| 12498 | main () |
| 12499 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12500 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12501 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12502 | #endif |
| 12503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12504 | ; |
| 12505 | return 0; |
| 12506 | } |
| 12507 | _ACEOF |
| 12508 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12509 | if { (ac_try="$ac_compile" |
| 12510 | case "(($ac_try" in |
| 12511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12512 | *) ac_try_echo=$ac_try;; |
| 12513 | esac |
| 12514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12515 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | ac_status=$? |
| 12517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12518 | rm -f conftest.er1 |
| 12519 | cat conftest.err >&5 |
| 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12521 | (exit $ac_status); } && { |
| 12522 | test -z "$ac_c_werror_flag" || |
| 12523 | test ! -s conftest.err |
| 12524 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12525 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12526 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12527 | echo "$as_me: failed program was:" >&5 |
| 12528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12529 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12530 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12531 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12532 | |
| 12533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12534 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12535 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12536 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12537 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12538 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12539 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12540 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12541 | |
| 12542 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12543 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12544 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12545 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12546 | ac_cv_sizeof_short=2 |
| 12547 | ac_cv_sizeof_int=4 |
| 12548 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12549 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12550 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 12551 | 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] | 12552 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12553 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12554 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12555 | if test "${ac_cv_type_short+set}" = set; then |
| 12556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12557 | else |
| 12558 | cat >conftest.$ac_ext <<_ACEOF |
| 12559 | /* confdefs.h. */ |
| 12560 | _ACEOF |
| 12561 | cat confdefs.h >>conftest.$ac_ext |
| 12562 | cat >>conftest.$ac_ext <<_ACEOF |
| 12563 | /* end confdefs.h. */ |
| 12564 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12565 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12566 | int |
| 12567 | main () |
| 12568 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12569 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12570 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12571 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12572 | return 0; |
| 12573 | ; |
| 12574 | return 0; |
| 12575 | } |
| 12576 | _ACEOF |
| 12577 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12578 | if { (ac_try="$ac_compile" |
| 12579 | case "(($ac_try" in |
| 12580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12581 | *) ac_try_echo=$ac_try;; |
| 12582 | esac |
| 12583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12584 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12585 | ac_status=$? |
| 12586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12587 | rm -f conftest.er1 |
| 12588 | cat conftest.err >&5 |
| 12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12590 | (exit $ac_status); } && { |
| 12591 | test -z "$ac_c_werror_flag" || |
| 12592 | test ! -s conftest.err |
| 12593 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12594 | ac_cv_type_short=yes |
| 12595 | else |
| 12596 | echo "$as_me: failed program was:" >&5 |
| 12597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12598 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12599 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12600 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12603 | fi |
| 12604 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12605 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12606 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12607 | # The cast to long int works around a bug in the HP C Compiler |
| 12608 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12609 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12610 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12611 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12612 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12613 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12615 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12616 | if test "$cross_compiling" = yes; then |
| 12617 | # Depending upon the size, compute the lo and hi bounds. |
| 12618 | cat >conftest.$ac_ext <<_ACEOF |
| 12619 | /* confdefs.h. */ |
| 12620 | _ACEOF |
| 12621 | cat confdefs.h >>conftest.$ac_ext |
| 12622 | cat >>conftest.$ac_ext <<_ACEOF |
| 12623 | /* end confdefs.h. */ |
| 12624 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12625 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12626 | int |
| 12627 | main () |
| 12628 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12629 | 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] | 12630 | test_array [0] = 0 |
| 12631 | |
| 12632 | ; |
| 12633 | return 0; |
| 12634 | } |
| 12635 | _ACEOF |
| 12636 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12637 | if { (ac_try="$ac_compile" |
| 12638 | case "(($ac_try" in |
| 12639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12640 | *) ac_try_echo=$ac_try;; |
| 12641 | esac |
| 12642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12643 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12644 | ac_status=$? |
| 12645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12646 | rm -f conftest.er1 |
| 12647 | cat conftest.err >&5 |
| 12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12649 | (exit $ac_status); } && { |
| 12650 | test -z "$ac_c_werror_flag" || |
| 12651 | test ! -s conftest.err |
| 12652 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12653 | ac_lo=0 ac_mid=0 |
| 12654 | while :; do |
| 12655 | cat >conftest.$ac_ext <<_ACEOF |
| 12656 | /* confdefs.h. */ |
| 12657 | _ACEOF |
| 12658 | cat confdefs.h >>conftest.$ac_ext |
| 12659 | cat >>conftest.$ac_ext <<_ACEOF |
| 12660 | /* end confdefs.h. */ |
| 12661 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12662 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12663 | int |
| 12664 | main () |
| 12665 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12666 | 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] | 12667 | test_array [0] = 0 |
| 12668 | |
| 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12674 | if { (ac_try="$ac_compile" |
| 12675 | case "(($ac_try" in |
| 12676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12677 | *) ac_try_echo=$ac_try;; |
| 12678 | esac |
| 12679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12680 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12681 | ac_status=$? |
| 12682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12683 | rm -f conftest.er1 |
| 12684 | cat conftest.err >&5 |
| 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12686 | (exit $ac_status); } && { |
| 12687 | test -z "$ac_c_werror_flag" || |
| 12688 | test ! -s conftest.err |
| 12689 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | ac_hi=$ac_mid; break |
| 12691 | else |
| 12692 | echo "$as_me: failed program was:" >&5 |
| 12693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12695 | ac_lo=`expr $ac_mid + 1` |
| 12696 | if test $ac_lo -le $ac_mid; then |
| 12697 | ac_lo= ac_hi= |
| 12698 | break |
| 12699 | fi |
| 12700 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12701 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12702 | |
| 12703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12704 | done |
| 12705 | else |
| 12706 | echo "$as_me: failed program was:" >&5 |
| 12707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12709 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12710 | /* confdefs.h. */ |
| 12711 | _ACEOF |
| 12712 | cat confdefs.h >>conftest.$ac_ext |
| 12713 | cat >>conftest.$ac_ext <<_ACEOF |
| 12714 | /* end confdefs.h. */ |
| 12715 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12716 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12717 | int |
| 12718 | main () |
| 12719 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12720 | 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] | 12721 | test_array [0] = 0 |
| 12722 | |
| 12723 | ; |
| 12724 | return 0; |
| 12725 | } |
| 12726 | _ACEOF |
| 12727 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12728 | if { (ac_try="$ac_compile" |
| 12729 | case "(($ac_try" in |
| 12730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12731 | *) ac_try_echo=$ac_try;; |
| 12732 | esac |
| 12733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12734 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12735 | ac_status=$? |
| 12736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12737 | rm -f conftest.er1 |
| 12738 | cat conftest.err >&5 |
| 12739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12740 | (exit $ac_status); } && { |
| 12741 | test -z "$ac_c_werror_flag" || |
| 12742 | test ! -s conftest.err |
| 12743 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12744 | ac_hi=-1 ac_mid=-1 |
| 12745 | while :; do |
| 12746 | cat >conftest.$ac_ext <<_ACEOF |
| 12747 | /* confdefs.h. */ |
| 12748 | _ACEOF |
| 12749 | cat confdefs.h >>conftest.$ac_ext |
| 12750 | cat >>conftest.$ac_ext <<_ACEOF |
| 12751 | /* end confdefs.h. */ |
| 12752 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12753 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12754 | int |
| 12755 | main () |
| 12756 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12757 | 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] | 12758 | test_array [0] = 0 |
| 12759 | |
| 12760 | ; |
| 12761 | return 0; |
| 12762 | } |
| 12763 | _ACEOF |
| 12764 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12765 | if { (ac_try="$ac_compile" |
| 12766 | case "(($ac_try" in |
| 12767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12768 | *) ac_try_echo=$ac_try;; |
| 12769 | esac |
| 12770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12771 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12772 | ac_status=$? |
| 12773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12774 | rm -f conftest.er1 |
| 12775 | cat conftest.err >&5 |
| 12776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12777 | (exit $ac_status); } && { |
| 12778 | test -z "$ac_c_werror_flag" || |
| 12779 | test ! -s conftest.err |
| 12780 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12781 | ac_lo=$ac_mid; break |
| 12782 | else |
| 12783 | echo "$as_me: failed program was:" >&5 |
| 12784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12785 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12786 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12787 | if test $ac_mid -le $ac_hi; then |
| 12788 | ac_lo= ac_hi= |
| 12789 | break |
| 12790 | fi |
| 12791 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12792 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12793 | |
| 12794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12795 | done |
| 12796 | else |
| 12797 | echo "$as_me: failed program was:" >&5 |
| 12798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12800 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12801 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12802 | |
| 12803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12804 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12805 | |
| 12806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12807 | # Binary search between lo and hi bounds. |
| 12808 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12809 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12810 | cat >conftest.$ac_ext <<_ACEOF |
| 12811 | /* confdefs.h. */ |
| 12812 | _ACEOF |
| 12813 | cat confdefs.h >>conftest.$ac_ext |
| 12814 | cat >>conftest.$ac_ext <<_ACEOF |
| 12815 | /* end confdefs.h. */ |
| 12816 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12817 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12818 | int |
| 12819 | main () |
| 12820 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12821 | 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] | 12822 | test_array [0] = 0 |
| 12823 | |
| 12824 | ; |
| 12825 | return 0; |
| 12826 | } |
| 12827 | _ACEOF |
| 12828 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12829 | if { (ac_try="$ac_compile" |
| 12830 | case "(($ac_try" in |
| 12831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12832 | *) ac_try_echo=$ac_try;; |
| 12833 | esac |
| 12834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12835 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12836 | ac_status=$? |
| 12837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12838 | rm -f conftest.er1 |
| 12839 | cat conftest.err >&5 |
| 12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12841 | (exit $ac_status); } && { |
| 12842 | test -z "$ac_c_werror_flag" || |
| 12843 | test ! -s conftest.err |
| 12844 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12845 | ac_hi=$ac_mid |
| 12846 | else |
| 12847 | echo "$as_me: failed program was:" >&5 |
| 12848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12849 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12850 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12851 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12852 | |
| 12853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12854 | done |
| 12855 | case $ac_lo in |
| 12856 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12857 | '') if test "$ac_cv_type_short" = yes; then |
| 12858 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12859 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12860 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12861 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12862 | { (exit 77); exit 77; }; } |
| 12863 | else |
| 12864 | ac_cv_sizeof_short=0 |
| 12865 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12866 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12867 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12868 | cat >conftest.$ac_ext <<_ACEOF |
| 12869 | /* confdefs.h. */ |
| 12870 | _ACEOF |
| 12871 | cat confdefs.h >>conftest.$ac_ext |
| 12872 | cat >>conftest.$ac_ext <<_ACEOF |
| 12873 | /* end confdefs.h. */ |
| 12874 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12875 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12876 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12877 | 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] | 12878 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12879 | #include <stdlib.h> |
| 12880 | int |
| 12881 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12882 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12883 | |
| 12884 | FILE *f = fopen ("conftest.val", "w"); |
| 12885 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12886 | return 1; |
| 12887 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12888 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12889 | long int i = longval (); |
| 12890 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12891 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12892 | fprintf (f, "%ld\n", i); |
| 12893 | } |
| 12894 | else |
| 12895 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12896 | unsigned long int i = ulongval (); |
| 12897 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12898 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12899 | fprintf (f, "%lu\n", i); |
| 12900 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12901 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12902 | |
| 12903 | ; |
| 12904 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12905 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | _ACEOF |
| 12907 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12908 | if { (ac_try="$ac_link" |
| 12909 | case "(($ac_try" in |
| 12910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12911 | *) ac_try_echo=$ac_try;; |
| 12912 | esac |
| 12913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12914 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12915 | ac_status=$? |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12918 | { (case "(($ac_try" in |
| 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12920 | *) ac_try_echo=$ac_try;; |
| 12921 | esac |
| 12922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12923 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12924 | ac_status=$? |
| 12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12926 | (exit $ac_status); }; }; then |
| 12927 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12928 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12929 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12930 | echo "$as_me: failed program was:" >&5 |
| 12931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12932 | |
| 12933 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12934 | if test "$ac_cv_type_short" = yes; then |
| 12935 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12936 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12937 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12938 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12939 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12940 | else |
| 12941 | ac_cv_sizeof_short=0 |
| 12942 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12944 | 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] | 12945 | fi |
| 12946 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12947 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12948 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12949 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12950 | |
| 12951 | |
| 12952 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12953 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12954 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12955 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12956 | |
| 12957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12958 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12959 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12960 | if test "${ac_cv_type_int+set}" = set; then |
| 12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12962 | else |
| 12963 | cat >conftest.$ac_ext <<_ACEOF |
| 12964 | /* confdefs.h. */ |
| 12965 | _ACEOF |
| 12966 | cat confdefs.h >>conftest.$ac_ext |
| 12967 | cat >>conftest.$ac_ext <<_ACEOF |
| 12968 | /* end confdefs.h. */ |
| 12969 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12970 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12971 | int |
| 12972 | main () |
| 12973 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12974 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12975 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12976 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12977 | return 0; |
| 12978 | ; |
| 12979 | return 0; |
| 12980 | } |
| 12981 | _ACEOF |
| 12982 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12983 | if { (ac_try="$ac_compile" |
| 12984 | case "(($ac_try" in |
| 12985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12986 | *) ac_try_echo=$ac_try;; |
| 12987 | esac |
| 12988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12989 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12990 | ac_status=$? |
| 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12995 | (exit $ac_status); } && { |
| 12996 | test -z "$ac_c_werror_flag" || |
| 12997 | test ! -s conftest.err |
| 12998 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12999 | ac_cv_type_int=yes |
| 13000 | else |
| 13001 | echo "$as_me: failed program was:" >&5 |
| 13002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13004 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13005 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13008 | fi |
| 13009 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 13010 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 13011 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13012 | # The cast to long int works around a bug in the HP C Compiler |
| 13013 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13014 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13015 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13016 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 13017 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13018 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13020 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13021 | if test "$cross_compiling" = yes; then |
| 13022 | # Depending upon the size, compute the lo and hi bounds. |
| 13023 | cat >conftest.$ac_ext <<_ACEOF |
| 13024 | /* confdefs.h. */ |
| 13025 | _ACEOF |
| 13026 | cat confdefs.h >>conftest.$ac_ext |
| 13027 | cat >>conftest.$ac_ext <<_ACEOF |
| 13028 | /* end confdefs.h. */ |
| 13029 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13030 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13031 | int |
| 13032 | main () |
| 13033 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13034 | 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] | 13035 | test_array [0] = 0 |
| 13036 | |
| 13037 | ; |
| 13038 | return 0; |
| 13039 | } |
| 13040 | _ACEOF |
| 13041 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13042 | if { (ac_try="$ac_compile" |
| 13043 | case "(($ac_try" in |
| 13044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13045 | *) ac_try_echo=$ac_try;; |
| 13046 | esac |
| 13047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13048 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13049 | ac_status=$? |
| 13050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13051 | rm -f conftest.er1 |
| 13052 | cat conftest.err >&5 |
| 13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13054 | (exit $ac_status); } && { |
| 13055 | test -z "$ac_c_werror_flag" || |
| 13056 | test ! -s conftest.err |
| 13057 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13058 | ac_lo=0 ac_mid=0 |
| 13059 | while :; do |
| 13060 | cat >conftest.$ac_ext <<_ACEOF |
| 13061 | /* confdefs.h. */ |
| 13062 | _ACEOF |
| 13063 | cat confdefs.h >>conftest.$ac_ext |
| 13064 | cat >>conftest.$ac_ext <<_ACEOF |
| 13065 | /* end confdefs.h. */ |
| 13066 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13067 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13068 | int |
| 13069 | main () |
| 13070 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13071 | 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] | 13072 | test_array [0] = 0 |
| 13073 | |
| 13074 | ; |
| 13075 | return 0; |
| 13076 | } |
| 13077 | _ACEOF |
| 13078 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13079 | if { (ac_try="$ac_compile" |
| 13080 | case "(($ac_try" in |
| 13081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13082 | *) ac_try_echo=$ac_try;; |
| 13083 | esac |
| 13084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13085 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13086 | ac_status=$? |
| 13087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13088 | rm -f conftest.er1 |
| 13089 | cat conftest.err >&5 |
| 13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13091 | (exit $ac_status); } && { |
| 13092 | test -z "$ac_c_werror_flag" || |
| 13093 | test ! -s conftest.err |
| 13094 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13095 | ac_hi=$ac_mid; break |
| 13096 | else |
| 13097 | echo "$as_me: failed program was:" >&5 |
| 13098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13100 | ac_lo=`expr $ac_mid + 1` |
| 13101 | if test $ac_lo -le $ac_mid; then |
| 13102 | ac_lo= ac_hi= |
| 13103 | break |
| 13104 | fi |
| 13105 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13106 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13107 | |
| 13108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13109 | done |
| 13110 | else |
| 13111 | echo "$as_me: failed program was:" >&5 |
| 13112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13114 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13115 | /* confdefs.h. */ |
| 13116 | _ACEOF |
| 13117 | cat confdefs.h >>conftest.$ac_ext |
| 13118 | cat >>conftest.$ac_ext <<_ACEOF |
| 13119 | /* end confdefs.h. */ |
| 13120 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13121 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13122 | int |
| 13123 | main () |
| 13124 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13125 | 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] | 13126 | test_array [0] = 0 |
| 13127 | |
| 13128 | ; |
| 13129 | return 0; |
| 13130 | } |
| 13131 | _ACEOF |
| 13132 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13133 | if { (ac_try="$ac_compile" |
| 13134 | case "(($ac_try" in |
| 13135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13136 | *) ac_try_echo=$ac_try;; |
| 13137 | esac |
| 13138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13139 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13140 | ac_status=$? |
| 13141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13142 | rm -f conftest.er1 |
| 13143 | cat conftest.err >&5 |
| 13144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13145 | (exit $ac_status); } && { |
| 13146 | test -z "$ac_c_werror_flag" || |
| 13147 | test ! -s conftest.err |
| 13148 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13149 | ac_hi=-1 ac_mid=-1 |
| 13150 | while :; do |
| 13151 | cat >conftest.$ac_ext <<_ACEOF |
| 13152 | /* confdefs.h. */ |
| 13153 | _ACEOF |
| 13154 | cat confdefs.h >>conftest.$ac_ext |
| 13155 | cat >>conftest.$ac_ext <<_ACEOF |
| 13156 | /* end confdefs.h. */ |
| 13157 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13158 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13159 | int |
| 13160 | main () |
| 13161 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13162 | 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] | 13163 | test_array [0] = 0 |
| 13164 | |
| 13165 | ; |
| 13166 | return 0; |
| 13167 | } |
| 13168 | _ACEOF |
| 13169 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13170 | if { (ac_try="$ac_compile" |
| 13171 | case "(($ac_try" in |
| 13172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13173 | *) ac_try_echo=$ac_try;; |
| 13174 | esac |
| 13175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13176 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13177 | ac_status=$? |
| 13178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13179 | rm -f conftest.er1 |
| 13180 | cat conftest.err >&5 |
| 13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13182 | (exit $ac_status); } && { |
| 13183 | test -z "$ac_c_werror_flag" || |
| 13184 | test ! -s conftest.err |
| 13185 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13186 | ac_lo=$ac_mid; break |
| 13187 | else |
| 13188 | echo "$as_me: failed program was:" >&5 |
| 13189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13191 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13192 | if test $ac_mid -le $ac_hi; then |
| 13193 | ac_lo= ac_hi= |
| 13194 | break |
| 13195 | fi |
| 13196 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13197 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13198 | |
| 13199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13200 | done |
| 13201 | else |
| 13202 | echo "$as_me: failed program was:" >&5 |
| 13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13204 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13205 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13206 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13207 | |
| 13208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13209 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13210 | |
| 13211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13212 | # Binary search between lo and hi bounds. |
| 13213 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13214 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13215 | cat >conftest.$ac_ext <<_ACEOF |
| 13216 | /* confdefs.h. */ |
| 13217 | _ACEOF |
| 13218 | cat confdefs.h >>conftest.$ac_ext |
| 13219 | cat >>conftest.$ac_ext <<_ACEOF |
| 13220 | /* end confdefs.h. */ |
| 13221 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13222 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13223 | int |
| 13224 | main () |
| 13225 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13226 | 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] | 13227 | test_array [0] = 0 |
| 13228 | |
| 13229 | ; |
| 13230 | return 0; |
| 13231 | } |
| 13232 | _ACEOF |
| 13233 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13234 | if { (ac_try="$ac_compile" |
| 13235 | case "(($ac_try" in |
| 13236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13237 | *) ac_try_echo=$ac_try;; |
| 13238 | esac |
| 13239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13240 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13241 | ac_status=$? |
| 13242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13243 | rm -f conftest.er1 |
| 13244 | cat conftest.err >&5 |
| 13245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13246 | (exit $ac_status); } && { |
| 13247 | test -z "$ac_c_werror_flag" || |
| 13248 | test ! -s conftest.err |
| 13249 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13250 | ac_hi=$ac_mid |
| 13251 | else |
| 13252 | echo "$as_me: failed program was:" >&5 |
| 13253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13254 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13255 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13256 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13257 | |
| 13258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13259 | done |
| 13260 | case $ac_lo in |
| 13261 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13262 | '') if test "$ac_cv_type_int" = yes; then |
| 13263 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13264 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13265 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13266 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13267 | { (exit 77); exit 77; }; } |
| 13268 | else |
| 13269 | ac_cv_sizeof_int=0 |
| 13270 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13271 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13273 | cat >conftest.$ac_ext <<_ACEOF |
| 13274 | /* confdefs.h. */ |
| 13275 | _ACEOF |
| 13276 | cat confdefs.h >>conftest.$ac_ext |
| 13277 | cat >>conftest.$ac_ext <<_ACEOF |
| 13278 | /* end confdefs.h. */ |
| 13279 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13280 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13281 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13282 | 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] | 13283 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13284 | #include <stdlib.h> |
| 13285 | int |
| 13286 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13287 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13288 | |
| 13289 | FILE *f = fopen ("conftest.val", "w"); |
| 13290 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13291 | return 1; |
| 13292 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13293 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13294 | long int i = longval (); |
| 13295 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13296 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13297 | fprintf (f, "%ld\n", i); |
| 13298 | } |
| 13299 | else |
| 13300 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13301 | unsigned long int i = ulongval (); |
| 13302 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13303 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13304 | fprintf (f, "%lu\n", i); |
| 13305 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13306 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13307 | |
| 13308 | ; |
| 13309 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13310 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13311 | _ACEOF |
| 13312 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13313 | if { (ac_try="$ac_link" |
| 13314 | case "(($ac_try" in |
| 13315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13316 | *) ac_try_echo=$ac_try;; |
| 13317 | esac |
| 13318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13319 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13320 | ac_status=$? |
| 13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13323 | { (case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
| 13332 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13333 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13334 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13335 | echo "$as_me: failed program was:" >&5 |
| 13336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13337 | |
| 13338 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13339 | if test "$ac_cv_type_int" = yes; then |
| 13340 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13341 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13342 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13343 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13344 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13345 | else |
| 13346 | ac_cv_sizeof_int=0 |
| 13347 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13349 | 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] | 13350 | fi |
| 13351 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13352 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13353 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13354 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13355 | |
| 13356 | |
| 13357 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13359 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13360 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13361 | |
| 13362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13363 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13364 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13365 | if test "${ac_cv_type_long+set}" = set; then |
| 13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13367 | else |
| 13368 | cat >conftest.$ac_ext <<_ACEOF |
| 13369 | /* confdefs.h. */ |
| 13370 | _ACEOF |
| 13371 | cat confdefs.h >>conftest.$ac_ext |
| 13372 | cat >>conftest.$ac_ext <<_ACEOF |
| 13373 | /* end confdefs.h. */ |
| 13374 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13375 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13376 | int |
| 13377 | main () |
| 13378 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13379 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13380 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13381 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13382 | return 0; |
| 13383 | ; |
| 13384 | return 0; |
| 13385 | } |
| 13386 | _ACEOF |
| 13387 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13388 | if { (ac_try="$ac_compile" |
| 13389 | case "(($ac_try" in |
| 13390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13391 | *) ac_try_echo=$ac_try;; |
| 13392 | esac |
| 13393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13394 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13395 | ac_status=$? |
| 13396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13397 | rm -f conftest.er1 |
| 13398 | cat conftest.err >&5 |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13400 | (exit $ac_status); } && { |
| 13401 | test -z "$ac_c_werror_flag" || |
| 13402 | test ! -s conftest.err |
| 13403 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13404 | ac_cv_type_long=yes |
| 13405 | else |
| 13406 | echo "$as_me: failed program was:" >&5 |
| 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13408 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13409 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13410 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13411 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13413 | fi |
| 13414 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13415 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13416 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13417 | # The cast to long int works around a bug in the HP C Compiler |
| 13418 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13419 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13420 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13421 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13422 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13423 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13425 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13426 | if test "$cross_compiling" = yes; then |
| 13427 | # Depending upon the size, compute the lo and hi bounds. |
| 13428 | cat >conftest.$ac_ext <<_ACEOF |
| 13429 | /* confdefs.h. */ |
| 13430 | _ACEOF |
| 13431 | cat confdefs.h >>conftest.$ac_ext |
| 13432 | cat >>conftest.$ac_ext <<_ACEOF |
| 13433 | /* end confdefs.h. */ |
| 13434 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13435 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13436 | int |
| 13437 | main () |
| 13438 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13439 | 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] | 13440 | test_array [0] = 0 |
| 13441 | |
| 13442 | ; |
| 13443 | return 0; |
| 13444 | } |
| 13445 | _ACEOF |
| 13446 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13447 | if { (ac_try="$ac_compile" |
| 13448 | case "(($ac_try" in |
| 13449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13450 | *) ac_try_echo=$ac_try;; |
| 13451 | esac |
| 13452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13453 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13454 | ac_status=$? |
| 13455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13456 | rm -f conftest.er1 |
| 13457 | cat conftest.err >&5 |
| 13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13459 | (exit $ac_status); } && { |
| 13460 | test -z "$ac_c_werror_flag" || |
| 13461 | test ! -s conftest.err |
| 13462 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13463 | ac_lo=0 ac_mid=0 |
| 13464 | while :; do |
| 13465 | cat >conftest.$ac_ext <<_ACEOF |
| 13466 | /* confdefs.h. */ |
| 13467 | _ACEOF |
| 13468 | cat confdefs.h >>conftest.$ac_ext |
| 13469 | cat >>conftest.$ac_ext <<_ACEOF |
| 13470 | /* end confdefs.h. */ |
| 13471 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13472 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13473 | int |
| 13474 | main () |
| 13475 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13476 | 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] | 13477 | test_array [0] = 0 |
| 13478 | |
| 13479 | ; |
| 13480 | return 0; |
| 13481 | } |
| 13482 | _ACEOF |
| 13483 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13484 | if { (ac_try="$ac_compile" |
| 13485 | case "(($ac_try" in |
| 13486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13487 | *) ac_try_echo=$ac_try;; |
| 13488 | esac |
| 13489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13490 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13491 | ac_status=$? |
| 13492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13493 | rm -f conftest.er1 |
| 13494 | cat conftest.err >&5 |
| 13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13496 | (exit $ac_status); } && { |
| 13497 | test -z "$ac_c_werror_flag" || |
| 13498 | test ! -s conftest.err |
| 13499 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13500 | ac_hi=$ac_mid; break |
| 13501 | else |
| 13502 | echo "$as_me: failed program was:" >&5 |
| 13503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13505 | ac_lo=`expr $ac_mid + 1` |
| 13506 | if test $ac_lo -le $ac_mid; then |
| 13507 | ac_lo= ac_hi= |
| 13508 | break |
| 13509 | fi |
| 13510 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13511 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13512 | |
| 13513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13514 | done |
| 13515 | else |
| 13516 | echo "$as_me: failed program was:" >&5 |
| 13517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13518 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13519 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13520 | /* confdefs.h. */ |
| 13521 | _ACEOF |
| 13522 | cat confdefs.h >>conftest.$ac_ext |
| 13523 | cat >>conftest.$ac_ext <<_ACEOF |
| 13524 | /* end confdefs.h. */ |
| 13525 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13526 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13527 | int |
| 13528 | main () |
| 13529 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13530 | 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] | 13531 | test_array [0] = 0 |
| 13532 | |
| 13533 | ; |
| 13534 | return 0; |
| 13535 | } |
| 13536 | _ACEOF |
| 13537 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13538 | if { (ac_try="$ac_compile" |
| 13539 | case "(($ac_try" in |
| 13540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13541 | *) ac_try_echo=$ac_try;; |
| 13542 | esac |
| 13543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13544 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13545 | ac_status=$? |
| 13546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13547 | rm -f conftest.er1 |
| 13548 | cat conftest.err >&5 |
| 13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13550 | (exit $ac_status); } && { |
| 13551 | test -z "$ac_c_werror_flag" || |
| 13552 | test ! -s conftest.err |
| 13553 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13554 | ac_hi=-1 ac_mid=-1 |
| 13555 | while :; do |
| 13556 | cat >conftest.$ac_ext <<_ACEOF |
| 13557 | /* confdefs.h. */ |
| 13558 | _ACEOF |
| 13559 | cat confdefs.h >>conftest.$ac_ext |
| 13560 | cat >>conftest.$ac_ext <<_ACEOF |
| 13561 | /* end confdefs.h. */ |
| 13562 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13563 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13564 | int |
| 13565 | main () |
| 13566 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13567 | 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] | 13568 | test_array [0] = 0 |
| 13569 | |
| 13570 | ; |
| 13571 | return 0; |
| 13572 | } |
| 13573 | _ACEOF |
| 13574 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13575 | if { (ac_try="$ac_compile" |
| 13576 | case "(($ac_try" in |
| 13577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13578 | *) ac_try_echo=$ac_try;; |
| 13579 | esac |
| 13580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13581 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13582 | ac_status=$? |
| 13583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13584 | rm -f conftest.er1 |
| 13585 | cat conftest.err >&5 |
| 13586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13587 | (exit $ac_status); } && { |
| 13588 | test -z "$ac_c_werror_flag" || |
| 13589 | test ! -s conftest.err |
| 13590 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13591 | ac_lo=$ac_mid; break |
| 13592 | else |
| 13593 | echo "$as_me: failed program was:" >&5 |
| 13594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13596 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13597 | if test $ac_mid -le $ac_hi; then |
| 13598 | ac_lo= ac_hi= |
| 13599 | break |
| 13600 | fi |
| 13601 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13603 | |
| 13604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13605 | done |
| 13606 | else |
| 13607 | echo "$as_me: failed program was:" >&5 |
| 13608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13610 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13612 | |
| 13613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13614 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13615 | |
| 13616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13617 | # Binary search between lo and hi bounds. |
| 13618 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13619 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13620 | cat >conftest.$ac_ext <<_ACEOF |
| 13621 | /* confdefs.h. */ |
| 13622 | _ACEOF |
| 13623 | cat confdefs.h >>conftest.$ac_ext |
| 13624 | cat >>conftest.$ac_ext <<_ACEOF |
| 13625 | /* end confdefs.h. */ |
| 13626 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13627 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13628 | int |
| 13629 | main () |
| 13630 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13631 | 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] | 13632 | test_array [0] = 0 |
| 13633 | |
| 13634 | ; |
| 13635 | return 0; |
| 13636 | } |
| 13637 | _ACEOF |
| 13638 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13639 | if { (ac_try="$ac_compile" |
| 13640 | case "(($ac_try" in |
| 13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13642 | *) ac_try_echo=$ac_try;; |
| 13643 | esac |
| 13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13645 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13646 | ac_status=$? |
| 13647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13648 | rm -f conftest.er1 |
| 13649 | cat conftest.err >&5 |
| 13650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13651 | (exit $ac_status); } && { |
| 13652 | test -z "$ac_c_werror_flag" || |
| 13653 | test ! -s conftest.err |
| 13654 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13655 | ac_hi=$ac_mid |
| 13656 | else |
| 13657 | echo "$as_me: failed program was:" >&5 |
| 13658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13659 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13660 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13661 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13662 | |
| 13663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13664 | done |
| 13665 | case $ac_lo in |
| 13666 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13667 | '') if test "$ac_cv_type_long" = yes; then |
| 13668 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13669 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13670 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13671 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13672 | { (exit 77); exit 77; }; } |
| 13673 | else |
| 13674 | ac_cv_sizeof_long=0 |
| 13675 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13676 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13677 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13678 | cat >conftest.$ac_ext <<_ACEOF |
| 13679 | /* confdefs.h. */ |
| 13680 | _ACEOF |
| 13681 | cat confdefs.h >>conftest.$ac_ext |
| 13682 | cat >>conftest.$ac_ext <<_ACEOF |
| 13683 | /* end confdefs.h. */ |
| 13684 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13685 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13686 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13687 | 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] | 13688 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13689 | #include <stdlib.h> |
| 13690 | int |
| 13691 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13692 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13693 | |
| 13694 | FILE *f = fopen ("conftest.val", "w"); |
| 13695 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13696 | return 1; |
| 13697 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13698 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13699 | long int i = longval (); |
| 13700 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13701 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13702 | fprintf (f, "%ld\n", i); |
| 13703 | } |
| 13704 | else |
| 13705 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13706 | unsigned long int i = ulongval (); |
| 13707 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13708 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13709 | fprintf (f, "%lu\n", i); |
| 13710 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13711 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13712 | |
| 13713 | ; |
| 13714 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13715 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13716 | _ACEOF |
| 13717 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13718 | if { (ac_try="$ac_link" |
| 13719 | case "(($ac_try" in |
| 13720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13721 | *) ac_try_echo=$ac_try;; |
| 13722 | esac |
| 13723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13724 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13725 | ac_status=$? |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13728 | { (case "(($ac_try" in |
| 13729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13730 | *) ac_try_echo=$ac_try;; |
| 13731 | esac |
| 13732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13733 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13734 | ac_status=$? |
| 13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13736 | (exit $ac_status); }; }; then |
| 13737 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13738 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13739 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13740 | echo "$as_me: failed program was:" >&5 |
| 13741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13742 | |
| 13743 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13744 | if test "$ac_cv_type_long" = yes; then |
| 13745 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13746 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13747 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13748 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13749 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13750 | else |
| 13751 | ac_cv_sizeof_long=0 |
| 13752 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13753 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13754 | 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] | 13755 | fi |
| 13756 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13758 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13759 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13760 | |
| 13761 | |
| 13762 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13763 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13764 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13765 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13766 | |
| 13767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13768 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13769 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13770 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13772 | else |
| 13773 | cat >conftest.$ac_ext <<_ACEOF |
| 13774 | /* confdefs.h. */ |
| 13775 | _ACEOF |
| 13776 | cat confdefs.h >>conftest.$ac_ext |
| 13777 | cat >>conftest.$ac_ext <<_ACEOF |
| 13778 | /* end confdefs.h. */ |
| 13779 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13780 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13781 | int |
| 13782 | main () |
| 13783 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13784 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13785 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13786 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13787 | return 0; |
| 13788 | ; |
| 13789 | return 0; |
| 13790 | } |
| 13791 | _ACEOF |
| 13792 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13793 | if { (ac_try="$ac_compile" |
| 13794 | case "(($ac_try" in |
| 13795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13796 | *) ac_try_echo=$ac_try;; |
| 13797 | esac |
| 13798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13799 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13800 | ac_status=$? |
| 13801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13802 | rm -f conftest.er1 |
| 13803 | cat conftest.err >&5 |
| 13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13805 | (exit $ac_status); } && { |
| 13806 | test -z "$ac_c_werror_flag" || |
| 13807 | test ! -s conftest.err |
| 13808 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13809 | ac_cv_type_long_long=yes |
| 13810 | else |
| 13811 | echo "$as_me: failed program was:" >&5 |
| 13812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13814 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13815 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13818 | fi |
| 13819 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13820 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13821 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13822 | # The cast to long int works around a bug in the HP C Compiler |
| 13823 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13824 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13825 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13826 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13827 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13828 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13831 | if test "$cross_compiling" = yes; then |
| 13832 | # Depending upon the size, compute the lo and hi bounds. |
| 13833 | cat >conftest.$ac_ext <<_ACEOF |
| 13834 | /* confdefs.h. */ |
| 13835 | _ACEOF |
| 13836 | cat confdefs.h >>conftest.$ac_ext |
| 13837 | cat >>conftest.$ac_ext <<_ACEOF |
| 13838 | /* end confdefs.h. */ |
| 13839 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13840 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13841 | int |
| 13842 | main () |
| 13843 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13844 | 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] | 13845 | test_array [0] = 0 |
| 13846 | |
| 13847 | ; |
| 13848 | return 0; |
| 13849 | } |
| 13850 | _ACEOF |
| 13851 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13852 | if { (ac_try="$ac_compile" |
| 13853 | case "(($ac_try" in |
| 13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13855 | *) ac_try_echo=$ac_try;; |
| 13856 | esac |
| 13857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13858 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13859 | ac_status=$? |
| 13860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13861 | rm -f conftest.er1 |
| 13862 | cat conftest.err >&5 |
| 13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13864 | (exit $ac_status); } && { |
| 13865 | test -z "$ac_c_werror_flag" || |
| 13866 | test ! -s conftest.err |
| 13867 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13868 | ac_lo=0 ac_mid=0 |
| 13869 | while :; do |
| 13870 | cat >conftest.$ac_ext <<_ACEOF |
| 13871 | /* confdefs.h. */ |
| 13872 | _ACEOF |
| 13873 | cat confdefs.h >>conftest.$ac_ext |
| 13874 | cat >>conftest.$ac_ext <<_ACEOF |
| 13875 | /* end confdefs.h. */ |
| 13876 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13877 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | int |
| 13879 | main () |
| 13880 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13881 | 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] | 13882 | test_array [0] = 0 |
| 13883 | |
| 13884 | ; |
| 13885 | return 0; |
| 13886 | } |
| 13887 | _ACEOF |
| 13888 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13889 | if { (ac_try="$ac_compile" |
| 13890 | case "(($ac_try" in |
| 13891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13892 | *) ac_try_echo=$ac_try;; |
| 13893 | esac |
| 13894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13895 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13896 | ac_status=$? |
| 13897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13898 | rm -f conftest.er1 |
| 13899 | cat conftest.err >&5 |
| 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13901 | (exit $ac_status); } && { |
| 13902 | test -z "$ac_c_werror_flag" || |
| 13903 | test ! -s conftest.err |
| 13904 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13905 | ac_hi=$ac_mid; break |
| 13906 | else |
| 13907 | echo "$as_me: failed program was:" >&5 |
| 13908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13910 | ac_lo=`expr $ac_mid + 1` |
| 13911 | if test $ac_lo -le $ac_mid; then |
| 13912 | ac_lo= ac_hi= |
| 13913 | break |
| 13914 | fi |
| 13915 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13917 | |
| 13918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13919 | done |
| 13920 | else |
| 13921 | echo "$as_me: failed program was:" >&5 |
| 13922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13924 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13925 | /* confdefs.h. */ |
| 13926 | _ACEOF |
| 13927 | cat confdefs.h >>conftest.$ac_ext |
| 13928 | cat >>conftest.$ac_ext <<_ACEOF |
| 13929 | /* end confdefs.h. */ |
| 13930 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13931 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13932 | int |
| 13933 | main () |
| 13934 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13935 | 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] | 13936 | test_array [0] = 0 |
| 13937 | |
| 13938 | ; |
| 13939 | return 0; |
| 13940 | } |
| 13941 | _ACEOF |
| 13942 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13943 | if { (ac_try="$ac_compile" |
| 13944 | case "(($ac_try" in |
| 13945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13946 | *) ac_try_echo=$ac_try;; |
| 13947 | esac |
| 13948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13949 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13950 | ac_status=$? |
| 13951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13952 | rm -f conftest.er1 |
| 13953 | cat conftest.err >&5 |
| 13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13955 | (exit $ac_status); } && { |
| 13956 | test -z "$ac_c_werror_flag" || |
| 13957 | test ! -s conftest.err |
| 13958 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | ac_hi=-1 ac_mid=-1 |
| 13960 | while :; do |
| 13961 | cat >conftest.$ac_ext <<_ACEOF |
| 13962 | /* confdefs.h. */ |
| 13963 | _ACEOF |
| 13964 | cat confdefs.h >>conftest.$ac_ext |
| 13965 | cat >>conftest.$ac_ext <<_ACEOF |
| 13966 | /* end confdefs.h. */ |
| 13967 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13968 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13969 | int |
| 13970 | main () |
| 13971 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13972 | 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] | 13973 | test_array [0] = 0 |
| 13974 | |
| 13975 | ; |
| 13976 | return 0; |
| 13977 | } |
| 13978 | _ACEOF |
| 13979 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13980 | if { (ac_try="$ac_compile" |
| 13981 | case "(($ac_try" in |
| 13982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13983 | *) ac_try_echo=$ac_try;; |
| 13984 | esac |
| 13985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13986 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13987 | ac_status=$? |
| 13988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13989 | rm -f conftest.er1 |
| 13990 | cat conftest.err >&5 |
| 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13992 | (exit $ac_status); } && { |
| 13993 | test -z "$ac_c_werror_flag" || |
| 13994 | test ! -s conftest.err |
| 13995 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13996 | ac_lo=$ac_mid; break |
| 13997 | else |
| 13998 | echo "$as_me: failed program was:" >&5 |
| 13999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14000 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14001 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14002 | if test $ac_mid -le $ac_hi; then |
| 14003 | ac_lo= ac_hi= |
| 14004 | break |
| 14005 | fi |
| 14006 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14007 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14008 | |
| 14009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14010 | done |
| 14011 | else |
| 14012 | echo "$as_me: failed program was:" >&5 |
| 14013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14015 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14017 | |
| 14018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14019 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14020 | |
| 14021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14022 | # Binary search between lo and hi bounds. |
| 14023 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14024 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14025 | cat >conftest.$ac_ext <<_ACEOF |
| 14026 | /* confdefs.h. */ |
| 14027 | _ACEOF |
| 14028 | cat confdefs.h >>conftest.$ac_ext |
| 14029 | cat >>conftest.$ac_ext <<_ACEOF |
| 14030 | /* end confdefs.h. */ |
| 14031 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14032 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14033 | int |
| 14034 | main () |
| 14035 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14036 | 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] | 14037 | test_array [0] = 0 |
| 14038 | |
| 14039 | ; |
| 14040 | return 0; |
| 14041 | } |
| 14042 | _ACEOF |
| 14043 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14044 | if { (ac_try="$ac_compile" |
| 14045 | case "(($ac_try" in |
| 14046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14047 | *) ac_try_echo=$ac_try;; |
| 14048 | esac |
| 14049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14050 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14051 | ac_status=$? |
| 14052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14053 | rm -f conftest.er1 |
| 14054 | cat conftest.err >&5 |
| 14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14056 | (exit $ac_status); } && { |
| 14057 | test -z "$ac_c_werror_flag" || |
| 14058 | test ! -s conftest.err |
| 14059 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14060 | ac_hi=$ac_mid |
| 14061 | else |
| 14062 | echo "$as_me: failed program was:" >&5 |
| 14063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14065 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14066 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14067 | |
| 14068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14069 | done |
| 14070 | case $ac_lo in |
| 14071 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14072 | '') if test "$ac_cv_type_long_long" = yes; then |
| 14073 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14074 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14075 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14076 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14077 | { (exit 77); exit 77; }; } |
| 14078 | else |
| 14079 | ac_cv_sizeof_long_long=0 |
| 14080 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14081 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14082 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14083 | cat >conftest.$ac_ext <<_ACEOF |
| 14084 | /* confdefs.h. */ |
| 14085 | _ACEOF |
| 14086 | cat confdefs.h >>conftest.$ac_ext |
| 14087 | cat >>conftest.$ac_ext <<_ACEOF |
| 14088 | /* end confdefs.h. */ |
| 14089 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14090 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14091 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14092 | 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] | 14093 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14094 | #include <stdlib.h> |
| 14095 | int |
| 14096 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14097 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14098 | |
| 14099 | FILE *f = fopen ("conftest.val", "w"); |
| 14100 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14101 | return 1; |
| 14102 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14103 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14104 | long int i = longval (); |
| 14105 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14106 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14107 | fprintf (f, "%ld\n", i); |
| 14108 | } |
| 14109 | else |
| 14110 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14111 | unsigned long int i = ulongval (); |
| 14112 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14113 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14114 | fprintf (f, "%lu\n", i); |
| 14115 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14116 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14117 | |
| 14118 | ; |
| 14119 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14120 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14121 | _ACEOF |
| 14122 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14123 | if { (ac_try="$ac_link" |
| 14124 | case "(($ac_try" in |
| 14125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14126 | *) ac_try_echo=$ac_try;; |
| 14127 | esac |
| 14128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14129 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14130 | ac_status=$? |
| 14131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14133 | { (case "(($ac_try" in |
| 14134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14135 | *) ac_try_echo=$ac_try;; |
| 14136 | esac |
| 14137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14138 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14139 | ac_status=$? |
| 14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14141 | (exit $ac_status); }; }; then |
| 14142 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14143 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14144 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14145 | echo "$as_me: failed program was:" >&5 |
| 14146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14147 | |
| 14148 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14149 | if test "$ac_cv_type_long_long" = yes; then |
| 14150 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14151 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14152 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14154 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14155 | else |
| 14156 | ac_cv_sizeof_long_long=0 |
| 14157 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14158 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14159 | 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] | 14160 | fi |
| 14161 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14162 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14163 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14164 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14165 | |
| 14166 | |
| 14167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14168 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14169 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14170 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14171 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14172 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14173 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14174 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14175 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14176 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14177 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14178 | |
| 14179 | |
| 14180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14181 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14182 | 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] | 14183 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14185 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14186 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14187 | cat >conftest.$ac_ext <<_ACEOF |
| 14188 | /* confdefs.h. */ |
| 14189 | _ACEOF |
| 14190 | cat confdefs.h >>conftest.$ac_ext |
| 14191 | cat >>conftest.$ac_ext <<_ACEOF |
| 14192 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14193 | #include <sys/types.h> |
| 14194 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14195 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14196 | int |
| 14197 | main () |
| 14198 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14199 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14200 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14201 | bogus endian macros |
| 14202 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14203 | |
| 14204 | ; |
| 14205 | return 0; |
| 14206 | } |
| 14207 | _ACEOF |
| 14208 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14209 | if { (ac_try="$ac_compile" |
| 14210 | case "(($ac_try" in |
| 14211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14212 | *) ac_try_echo=$ac_try;; |
| 14213 | esac |
| 14214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14215 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14216 | ac_status=$? |
| 14217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14218 | rm -f conftest.er1 |
| 14219 | cat conftest.err >&5 |
| 14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14221 | (exit $ac_status); } && { |
| 14222 | test -z "$ac_c_werror_flag" || |
| 14223 | test ! -s conftest.err |
| 14224 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14225 | # 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] | 14226 | cat >conftest.$ac_ext <<_ACEOF |
| 14227 | /* confdefs.h. */ |
| 14228 | _ACEOF |
| 14229 | cat confdefs.h >>conftest.$ac_ext |
| 14230 | cat >>conftest.$ac_ext <<_ACEOF |
| 14231 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14232 | #include <sys/types.h> |
| 14233 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14235 | int |
| 14236 | main () |
| 14237 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14238 | #if BYTE_ORDER != BIG_ENDIAN |
| 14239 | not big endian |
| 14240 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14241 | |
| 14242 | ; |
| 14243 | return 0; |
| 14244 | } |
| 14245 | _ACEOF |
| 14246 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14247 | if { (ac_try="$ac_compile" |
| 14248 | case "(($ac_try" in |
| 14249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14250 | *) ac_try_echo=$ac_try;; |
| 14251 | esac |
| 14252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14253 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14254 | ac_status=$? |
| 14255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14256 | rm -f conftest.er1 |
| 14257 | cat conftest.err >&5 |
| 14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14259 | (exit $ac_status); } && { |
| 14260 | test -z "$ac_c_werror_flag" || |
| 14261 | test ! -s conftest.err |
| 14262 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14263 | ac_cv_c_bigendian=yes |
| 14264 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14265 | echo "$as_me: failed program was:" >&5 |
| 14266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14268 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14270 | |
| 14271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14273 | echo "$as_me: failed program was:" >&5 |
| 14274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14275 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14276 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14277 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14278 | # try to guess the endianness by grepping values into an object file |
| 14279 | ac_cv_c_bigendian=unknown |
| 14280 | cat >conftest.$ac_ext <<_ACEOF |
| 14281 | /* confdefs.h. */ |
| 14282 | _ACEOF |
| 14283 | cat confdefs.h >>conftest.$ac_ext |
| 14284 | cat >>conftest.$ac_ext <<_ACEOF |
| 14285 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14286 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14287 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14288 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14289 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14290 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14291 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14292 | int |
| 14293 | main () |
| 14294 | { |
| 14295 | _ascii (); _ebcdic (); |
| 14296 | ; |
| 14297 | return 0; |
| 14298 | } |
| 14299 | _ACEOF |
| 14300 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14301 | if { (ac_try="$ac_compile" |
| 14302 | case "(($ac_try" in |
| 14303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14304 | *) ac_try_echo=$ac_try;; |
| 14305 | esac |
| 14306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14307 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14308 | ac_status=$? |
| 14309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14310 | rm -f conftest.er1 |
| 14311 | cat conftest.err >&5 |
| 14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14313 | (exit $ac_status); } && { |
| 14314 | test -z "$ac_c_werror_flag" || |
| 14315 | test ! -s conftest.err |
| 14316 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14317 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14318 | ac_cv_c_bigendian=yes |
| 14319 | fi |
| 14320 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14321 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14322 | ac_cv_c_bigendian=no |
| 14323 | else |
| 14324 | # finding both strings is unlikely to happen, but who knows? |
| 14325 | ac_cv_c_bigendian=unknown |
| 14326 | fi |
| 14327 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14328 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14329 | echo "$as_me: failed program was:" >&5 |
| 14330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14331 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14332 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14333 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14334 | |
| 14335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14336 | else |
| 14337 | cat >conftest.$ac_ext <<_ACEOF |
| 14338 | /* confdefs.h. */ |
| 14339 | _ACEOF |
| 14340 | cat confdefs.h >>conftest.$ac_ext |
| 14341 | cat >>conftest.$ac_ext <<_ACEOF |
| 14342 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14343 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14344 | int |
| 14345 | main () |
| 14346 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14347 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14348 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14349 | union |
| 14350 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14351 | long int l; |
| 14352 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14353 | } u; |
| 14354 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14355 | return u.c[sizeof (long int) - 1] == 1; |
| 14356 | |
| 14357 | ; |
| 14358 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14359 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14360 | _ACEOF |
| 14361 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14362 | if { (ac_try="$ac_link" |
| 14363 | case "(($ac_try" in |
| 14364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14365 | *) ac_try_echo=$ac_try;; |
| 14366 | esac |
| 14367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14368 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14369 | ac_status=$? |
| 14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14372 | { (case "(($ac_try" in |
| 14373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14374 | *) ac_try_echo=$ac_try;; |
| 14375 | esac |
| 14376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14377 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14378 | ac_status=$? |
| 14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14380 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14381 | ac_cv_c_bigendian=no |
| 14382 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14383 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14384 | echo "$as_me: failed program was:" >&5 |
| 14385 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14386 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14387 | ( exit $ac_status ) |
| 14388 | ac_cv_c_bigendian=yes |
| 14389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | 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] | 14391 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14392 | |
| 14393 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14394 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14395 | |
| 14396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14397 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14398 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14399 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14400 | case $ac_cv_c_bigendian in |
| 14401 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14402 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14403 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14404 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14405 | _ACEOF |
| 14406 | ;; |
| 14407 | no) |
| 14408 | ;; |
| 14409 | *) |
| 14410 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14411 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14412 | echo "$as_me: error: unknown endianness |
| 14413 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14414 | { (exit 1); exit 1; }; } ;; |
| 14415 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14416 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14417 | 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] | 14418 | ASM_TYPES_HEADER=./asm_types.h |
| 14419 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14420 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14421 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14422 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14423 | 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] | 14424 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14425 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14427 | 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] | 14428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14429 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14430 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14432 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14433 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14434 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14435 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14436 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14437 | cat >conftest.$ac_ext <<_ACEOF |
| 14438 | /* confdefs.h. */ |
| 14439 | _ACEOF |
| 14440 | cat confdefs.h >>conftest.$ac_ext |
| 14441 | cat >>conftest.$ac_ext <<_ACEOF |
| 14442 | /* end confdefs.h. */ |
| 14443 | $ac_includes_default |
| 14444 | #include <$ac_header> |
| 14445 | _ACEOF |
| 14446 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14447 | if { (ac_try="$ac_compile" |
| 14448 | case "(($ac_try" in |
| 14449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14450 | *) ac_try_echo=$ac_try;; |
| 14451 | esac |
| 14452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14453 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14454 | ac_status=$? |
| 14455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14456 | rm -f conftest.er1 |
| 14457 | cat conftest.err >&5 |
| 14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14459 | (exit $ac_status); } && { |
| 14460 | test -z "$ac_c_werror_flag" || |
| 14461 | test ! -s conftest.err |
| 14462 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14463 | ac_header_compiler=yes |
| 14464 | else |
| 14465 | echo "$as_me: failed program was:" >&5 |
| 14466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14468 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14469 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14470 | |
| 14471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14472 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14473 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14474 | |
| 14475 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14476 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14477 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14478 | cat >conftest.$ac_ext <<_ACEOF |
| 14479 | /* confdefs.h. */ |
| 14480 | _ACEOF |
| 14481 | cat confdefs.h >>conftest.$ac_ext |
| 14482 | cat >>conftest.$ac_ext <<_ACEOF |
| 14483 | /* end confdefs.h. */ |
| 14484 | #include <$ac_header> |
| 14485 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14486 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14487 | case "(($ac_try" in |
| 14488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14489 | *) ac_try_echo=$ac_try;; |
| 14490 | esac |
| 14491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14492 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14493 | ac_status=$? |
| 14494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14495 | rm -f conftest.er1 |
| 14496 | cat conftest.err >&5 |
| 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14498 | (exit $ac_status); } >/dev/null && { |
| 14499 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14500 | test ! -s conftest.err |
| 14501 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14502 | ac_header_preproc=yes |
| 14503 | else |
| 14504 | echo "$as_me: failed program was:" >&5 |
| 14505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14506 | |
| 14507 | ac_header_preproc=no |
| 14508 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14510 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14511 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14512 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14513 | |
| 14514 | # So? What about this header? |
| 14515 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14516 | yes:no: ) |
| 14517 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14518 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14520 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14521 | ac_header_preproc=yes |
| 14522 | ;; |
| 14523 | no:yes:* ) |
| 14524 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14525 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14526 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14527 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14528 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14529 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14530 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14531 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14533 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14534 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14535 | 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] | 14536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14537 | ;; |
| 14538 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14539 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14541 | 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] | 14542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14543 | else |
| 14544 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14545 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14546 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14548 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14549 | |
| 14550 | fi |
| 14551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14552 | cat >>confdefs.h <<_ACEOF |
| 14553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14554 | _ACEOF |
| 14555 | |
| 14556 | fi |
| 14557 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14558 | done |
| 14559 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14560 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14561 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14562 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14564 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14565 | cat >conftest.$ac_ext <<_ACEOF |
| 14566 | /* confdefs.h. */ |
| 14567 | _ACEOF |
| 14568 | cat confdefs.h >>conftest.$ac_ext |
| 14569 | cat >>conftest.$ac_ext <<_ACEOF |
| 14570 | /* end confdefs.h. */ |
| 14571 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14572 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14573 | int |
| 14574 | main () |
| 14575 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14576 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14577 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14578 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14579 | return 0; |
| 14580 | ; |
| 14581 | return 0; |
| 14582 | } |
| 14583 | _ACEOF |
| 14584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | if { (ac_try="$ac_compile" |
| 14586 | case "(($ac_try" in |
| 14587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14588 | *) ac_try_echo=$ac_try;; |
| 14589 | esac |
| 14590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | ac_status=$? |
| 14593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14594 | rm -f conftest.er1 |
| 14595 | cat conftest.err >&5 |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14597 | (exit $ac_status); } && { |
| 14598 | test -z "$ac_c_werror_flag" || |
| 14599 | test ! -s conftest.err |
| 14600 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14601 | ac_cv_type_intptr_t=yes |
| 14602 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14603 | echo "$as_me: failed program was:" >&5 |
| 14604 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14606 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14608 | |
| 14609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14611 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14612 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14613 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14614 | |
| 14615 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14616 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14617 | _ACEOF |
| 14618 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14619 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14620 | fi |
| 14621 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14622 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14623 | 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] | 14624 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14626 | else |
| 14627 | cat >conftest.$ac_ext <<_ACEOF |
| 14628 | /* confdefs.h. */ |
| 14629 | _ACEOF |
| 14630 | cat confdefs.h >>conftest.$ac_ext |
| 14631 | cat >>conftest.$ac_ext <<_ACEOF |
| 14632 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14633 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14634 | int |
| 14635 | main () |
| 14636 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14637 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14638 | ; |
| 14639 | return 0; |
| 14640 | } |
| 14641 | _ACEOF |
| 14642 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14643 | if { (ac_try="$ac_compile" |
| 14644 | case "(($ac_try" in |
| 14645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14646 | *) ac_try_echo=$ac_try;; |
| 14647 | esac |
| 14648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14649 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14650 | ac_status=$? |
| 14651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14652 | rm -f conftest.er1 |
| 14653 | cat conftest.err >&5 |
| 14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14655 | (exit $ac_status); } && { |
| 14656 | test -z "$ac_c_werror_flag" || |
| 14657 | test ! -s conftest.err |
| 14658 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14659 | e2fsprogs_cv_struct_st_flags=yes |
| 14660 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14661 | echo "$as_me: failed program was:" >&5 |
| 14662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14663 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14664 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14665 | fi |
| 14666 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14668 | fi |
| 14669 | |
| 14670 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14671 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14672 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14673 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14674 | 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] | 14675 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14677 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14678 | cat >conftest.$ac_ext <<_ACEOF |
| 14679 | /* confdefs.h. */ |
| 14680 | _ACEOF |
| 14681 | cat confdefs.h >>conftest.$ac_ext |
| 14682 | cat >>conftest.$ac_ext <<_ACEOF |
| 14683 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14684 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14685 | int |
| 14686 | main () |
| 14687 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14688 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14689 | ; |
| 14690 | return 0; |
| 14691 | } |
| 14692 | _ACEOF |
| 14693 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14694 | if { (ac_try="$ac_compile" |
| 14695 | case "(($ac_try" in |
| 14696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14697 | *) ac_try_echo=$ac_try;; |
| 14698 | esac |
| 14699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14700 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14701 | ac_status=$? |
| 14702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14703 | rm -f conftest.er1 |
| 14704 | cat conftest.err >&5 |
| 14705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14706 | (exit $ac_status); } && { |
| 14707 | test -z "$ac_c_werror_flag" || |
| 14708 | test ! -s conftest.err |
| 14709 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14710 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14711 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14712 | echo "$as_me: failed program was:" >&5 |
| 14713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14714 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14715 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14716 | fi |
| 14717 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14719 | fi |
| 14720 | |
| 14721 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14722 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14723 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14724 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14725 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14726 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14727 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14728 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14729 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14730 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14731 | 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] | 14732 | 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] | 14733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14734 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14735 | cat >conftest.$ac_ext <<_ACEOF |
| 14736 | /* confdefs.h. */ |
| 14737 | _ACEOF |
| 14738 | cat confdefs.h >>conftest.$ac_ext |
| 14739 | cat >>conftest.$ac_ext <<_ACEOF |
| 14740 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14741 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14742 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14743 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14744 | int |
| 14745 | main () |
| 14746 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14747 | static struct sockaddr ac_aggr; |
| 14748 | if (ac_aggr.sa_len) |
| 14749 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14750 | ; |
| 14751 | return 0; |
| 14752 | } |
| 14753 | _ACEOF |
| 14754 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14755 | if { (ac_try="$ac_compile" |
| 14756 | case "(($ac_try" in |
| 14757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14758 | *) ac_try_echo=$ac_try;; |
| 14759 | esac |
| 14760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14761 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14762 | ac_status=$? |
| 14763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14764 | rm -f conftest.er1 |
| 14765 | cat conftest.err >&5 |
| 14766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14767 | (exit $ac_status); } && { |
| 14768 | test -z "$ac_c_werror_flag" || |
| 14769 | test ! -s conftest.err |
| 14770 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14771 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14772 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14773 | echo "$as_me: failed program was:" >&5 |
| 14774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14776 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14777 | /* confdefs.h. */ |
| 14778 | _ACEOF |
| 14779 | cat confdefs.h >>conftest.$ac_ext |
| 14780 | cat >>conftest.$ac_ext <<_ACEOF |
| 14781 | /* end confdefs.h. */ |
| 14782 | #include <sys/types.h> |
| 14783 | #include <sys/socket.h> |
| 14784 | |
| 14785 | int |
| 14786 | main () |
| 14787 | { |
| 14788 | static struct sockaddr ac_aggr; |
| 14789 | if (sizeof ac_aggr.sa_len) |
| 14790 | return 0; |
| 14791 | ; |
| 14792 | return 0; |
| 14793 | } |
| 14794 | _ACEOF |
| 14795 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14796 | if { (ac_try="$ac_compile" |
| 14797 | case "(($ac_try" in |
| 14798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14799 | *) ac_try_echo=$ac_try;; |
| 14800 | esac |
| 14801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14802 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14803 | ac_status=$? |
| 14804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14805 | rm -f conftest.er1 |
| 14806 | cat conftest.err >&5 |
| 14807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14808 | (exit $ac_status); } && { |
| 14809 | test -z "$ac_c_werror_flag" || |
| 14810 | test ! -s conftest.err |
| 14811 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14812 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14813 | else |
| 14814 | echo "$as_me: failed program was:" >&5 |
| 14815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14817 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14818 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14819 | |
| 14820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14821 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14822 | |
| 14823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14824 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14825 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14826 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14827 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14828 | |
| 14829 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14830 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14831 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14832 | |
| 14833 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | |
| 14844 | |
| 14845 | |
| 14846 | |
| 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14853 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14854 | |
| 14855 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14856 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14857 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14858 | |
| 14859 | |
| 14860 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14861 | |
| 14862 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14863 | |
| 14864 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14865 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14866 | 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] | 14867 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14869 | 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] | 14870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14871 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14872 | cat >conftest.$ac_ext <<_ACEOF |
| 14873 | /* confdefs.h. */ |
| 14874 | _ACEOF |
| 14875 | cat confdefs.h >>conftest.$ac_ext |
| 14876 | cat >>conftest.$ac_ext <<_ACEOF |
| 14877 | /* end confdefs.h. */ |
| 14878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14880 | #define $ac_func innocuous_$ac_func |
| 14881 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14882 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14883 | which can conflict with char $ac_func (); below. |
| 14884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14885 | <limits.h> exists even on freestanding compilers. */ |
| 14886 | |
| 14887 | #ifdef __STDC__ |
| 14888 | # include <limits.h> |
| 14889 | #else |
| 14890 | # include <assert.h> |
| 14891 | #endif |
| 14892 | |
| 14893 | #undef $ac_func |
| 14894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14895 | /* Override any GCC internal prototype to avoid an error. |
| 14896 | Use char because int might match the return type of a GCC |
| 14897 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14898 | #ifdef __cplusplus |
| 14899 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14900 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14901 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14902 | /* The GNU C library defines this for functions which it implements |
| 14903 | to always fail with ENOSYS. Some functions are actually named |
| 14904 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14905 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14906 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14907 | #endif |
| 14908 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14909 | int |
| 14910 | main () |
| 14911 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14912 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14913 | ; |
| 14914 | return 0; |
| 14915 | } |
| 14916 | _ACEOF |
| 14917 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14918 | if { (ac_try="$ac_link" |
| 14919 | case "(($ac_try" in |
| 14920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14921 | *) ac_try_echo=$ac_try;; |
| 14922 | esac |
| 14923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14924 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14925 | ac_status=$? |
| 14926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14927 | rm -f conftest.er1 |
| 14928 | cat conftest.err >&5 |
| 14929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14930 | (exit $ac_status); } && { |
| 14931 | test -z "$ac_c_werror_flag" || |
| 14932 | test ! -s conftest.err |
| 14933 | } && test -s conftest$ac_exeext && |
| 14934 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14935 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14936 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14937 | echo "$as_me: failed program was:" >&5 |
| 14938 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14940 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14941 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14942 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14943 | 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] | 14944 | conftest$ac_exeext conftest.$ac_ext |
| 14945 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14946 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14947 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14948 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14949 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14950 | cat >>confdefs.h <<_ACEOF |
| 14951 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14952 | _ACEOF |
| 14953 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14954 | fi |
| 14955 | done |
| 14956 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14957 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14958 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14959 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14960 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14962 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14963 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14964 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14965 | cat >conftest.$ac_ext <<_ACEOF |
| 14966 | /* confdefs.h. */ |
| 14967 | _ACEOF |
| 14968 | cat confdefs.h >>conftest.$ac_ext |
| 14969 | cat >>conftest.$ac_ext <<_ACEOF |
| 14970 | /* end confdefs.h. */ |
| 14971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14972 | /* Override any GCC internal prototype to avoid an error. |
| 14973 | Use char because int might match the return type of a GCC |
| 14974 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14975 | #ifdef __cplusplus |
| 14976 | extern "C" |
| 14977 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14978 | char socket (); |
| 14979 | int |
| 14980 | main () |
| 14981 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14982 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14983 | ; |
| 14984 | return 0; |
| 14985 | } |
| 14986 | _ACEOF |
| 14987 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14988 | if { (ac_try="$ac_link" |
| 14989 | case "(($ac_try" in |
| 14990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14991 | *) ac_try_echo=$ac_try;; |
| 14992 | esac |
| 14993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14994 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14995 | ac_status=$? |
| 14996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14997 | rm -f conftest.er1 |
| 14998 | cat conftest.err >&5 |
| 14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15000 | (exit $ac_status); } && { |
| 15001 | test -z "$ac_c_werror_flag" || |
| 15002 | test ! -s conftest.err |
| 15003 | } && test -s conftest$ac_exeext && |
| 15004 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15005 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15007 | echo "$as_me: failed program was:" >&5 |
| 15008 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15010 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15012 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15013 | 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] | 15014 | conftest$ac_exeext conftest.$ac_ext |
| 15015 | LIBS=$ac_check_lib_save_LIBS |
| 15016 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15017 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15018 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15019 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15020 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15021 | fi |
| 15022 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15023 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15024 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15025 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15026 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15027 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15029 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15030 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15031 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15032 | cat >conftest.$ac_ext <<_ACEOF |
| 15033 | /* confdefs.h. */ |
| 15034 | _ACEOF |
| 15035 | cat confdefs.h >>conftest.$ac_ext |
| 15036 | cat >>conftest.$ac_ext <<_ACEOF |
| 15037 | /* end confdefs.h. */ |
| 15038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15039 | /* Override any GCC internal prototype to avoid an error. |
| 15040 | Use char because int might match the return type of a GCC |
| 15041 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15042 | #ifdef __cplusplus |
| 15043 | extern "C" |
| 15044 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15045 | char dlopen (); |
| 15046 | int |
| 15047 | main () |
| 15048 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15049 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15050 | ; |
| 15051 | return 0; |
| 15052 | } |
| 15053 | _ACEOF |
| 15054 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15055 | if { (ac_try="$ac_link" |
| 15056 | case "(($ac_try" in |
| 15057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15058 | *) ac_try_echo=$ac_try;; |
| 15059 | esac |
| 15060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15061 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15062 | ac_status=$? |
| 15063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15064 | rm -f conftest.er1 |
| 15065 | cat conftest.err >&5 |
| 15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15067 | (exit $ac_status); } && { |
| 15068 | test -z "$ac_c_werror_flag" || |
| 15069 | test ! -s conftest.err |
| 15070 | } && test -s conftest$ac_exeext && |
| 15071 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15072 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15073 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15074 | echo "$as_me: failed program was:" >&5 |
| 15075 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15077 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15079 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15080 | 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] | 15081 | conftest$ac_exeext conftest.$ac_ext |
| 15082 | LIBS=$ac_check_lib_save_LIBS |
| 15083 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15085 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15086 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15087 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15088 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15089 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15090 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15091 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15092 | fi |
| 15093 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15095 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 15096 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15097 | if test "${ac_cv_have_optreset+set}" = set; then |
| 15098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15099 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15100 | cat >conftest.$ac_ext <<_ACEOF |
| 15101 | /* confdefs.h. */ |
| 15102 | _ACEOF |
| 15103 | cat confdefs.h >>conftest.$ac_ext |
| 15104 | cat >>conftest.$ac_ext <<_ACEOF |
| 15105 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15106 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15107 | |
| 15108 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15110 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15111 | ac_cv_have_optreset=yes |
| 15112 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15113 | ac_cv_have_optreset=no |
| 15114 | fi |
| 15115 | rm -f conftest* |
| 15116 | |
| 15117 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15118 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 15119 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15120 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15121 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15122 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15123 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15124 | |
| 15125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15126 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 15127 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15128 | if diff -u $0 $0 >& /dev/null ; then |
| 15129 | UNI_DIFF_OPTS=-u |
| 15130 | else |
| 15131 | UNI_DIFF_OPTS=-c |
| 15132 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15133 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 15134 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15135 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15136 | case "$host_os" in |
| 15137 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15138 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15139 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15140 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15141 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15142 | ;; |
| 15143 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15144 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15145 | CYGWIN_CMT="#" |
| 15146 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15147 | case "$host_os" in |
| 15148 | linux*) |
| 15149 | LINUX_CMT= |
| 15150 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15151 | cygwin) |
| 15152 | CYGWIN_CMT= |
| 15153 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15154 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15155 | esac |
| 15156 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15157 | |
| 15158 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15159 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15160 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15161 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 15162 | root_prefix=""; |
| 15163 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15164 | fi |
| 15165 | ;; |
| 15166 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15167 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15168 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15169 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15170 | prefix="/usr"; |
| 15171 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15172 | if test "$mandir" = '${prefix}/man' ; then |
| 15173 | echo "...and mandir defaults to /usr/share/man" |
| 15174 | mandir=/usr/share/man |
| 15175 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15176 | fi |
| 15177 | ;; |
| 15178 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15179 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15180 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15181 | root_prefix="$ac_default_prefix" |
| 15182 | else |
| 15183 | root_prefix="$prefix" |
| 15184 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15185 | root_bindir=$bindir |
| 15186 | root_sbindir=$sbindir |
| 15187 | root_libdir=$libdir |
| 15188 | root_sysconfdir=$sysconfdir |
| 15189 | else |
| 15190 | root_bindir='${root_prefix}/bin' |
| 15191 | root_sbindir='${root_prefix}/sbin' |
| 15192 | root_libdir='${root_prefix}/lib' |
| 15193 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15194 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15195 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15196 | root_bindir=$bindir |
| 15197 | echo "Setting root_bindir to $root_bindir" |
| 15198 | fi |
| 15199 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15200 | root_sbindir=$sbindir |
| 15201 | echo "Setting root_sbindir to $root_sbindir" |
| 15202 | fi |
| 15203 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15204 | root_libdir=$libdir |
| 15205 | echo "Setting root_libdir to $root_libdir" |
| 15206 | fi |
| 15207 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15208 | root_sysconfdir=$sysconfdir |
| 15209 | echo "Setting root_sysconfdir to $root_sysconfdir" |
| 15210 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15211 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15212 | |
| 15213 | |
| 15214 | |
| 15215 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15216 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15217 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15218 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15220 | else |
| 15221 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15222 | cat >conftest.$ac_ext <<_ACEOF |
| 15223 | /* confdefs.h. */ |
| 15224 | _ACEOF |
| 15225 | cat confdefs.h >>conftest.$ac_ext |
| 15226 | cat >>conftest.$ac_ext <<_ACEOF |
| 15227 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15228 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15229 | int |
| 15230 | main () |
| 15231 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15232 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15233 | ; |
| 15234 | return 0; |
| 15235 | } |
| 15236 | _ACEOF |
| 15237 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15238 | if { (ac_try="$ac_link" |
| 15239 | case "(($ac_try" in |
| 15240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15241 | *) ac_try_echo=$ac_try;; |
| 15242 | esac |
| 15243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15244 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15245 | ac_status=$? |
| 15246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15247 | rm -f conftest.er1 |
| 15248 | cat conftest.err >&5 |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15250 | (exit $ac_status); } && { |
| 15251 | test -z "$ac_c_werror_flag" || |
| 15252 | test ! -s conftest.err |
| 15253 | } && test -s conftest$ac_exeext && |
| 15254 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15255 | ac_cv_e2fsprogs_use_static=yes |
| 15256 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15257 | echo "$as_me: failed program was:" >&5 |
| 15258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15260 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15261 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15262 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15263 | 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] | 15264 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15265 | LDFLAGS=$SAVE_LDFLAGS |
| 15266 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15267 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15268 | case "$host_os" in |
| 15269 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15270 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15271 | ;; |
| 15272 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15273 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15274 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15275 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15276 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15277 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15278 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15279 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15280 | case "$host_os" in |
| 15281 | darwin*) |
| 15282 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15283 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15284 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15285 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15286 | |
| 15287 | ;; |
| 15288 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15289 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15290 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15291 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15292 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15293 | if test "$cross_compiling" = yes ; then |
| 15294 | DO_TEST_SUITE= |
| 15295 | else |
| 15296 | DO_TEST_SUITE=check |
| 15297 | fi |
| 15298 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15299 | INTL_FLAGS= |
| 15300 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15301 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15302 | fi |
| 15303 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15304 | if test $cross_compiling = no; then |
| 15305 | BUILD_CFLAGS="$CFLAGS" |
| 15306 | BUILD_LDFLAGS="$LDFLAGS" |
| 15307 | else |
| 15308 | BUILD_CFLAGS= |
| 15309 | BUILD_LDFLAGS= |
| 15310 | fi |
| 15311 | |
| 15312 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15313 | test -d lib || mkdir lib |
| 15314 | test -d include || mkdir include |
| 15315 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15316 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15317 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15318 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15319 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15320 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15321 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15322 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15323 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15324 | 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] | 15325 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15326 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15327 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15328 | if test -d `dirname ${srcdir}/$i` ; then |
| 15329 | outlist="$outlist $i" |
| 15330 | fi |
| 15331 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15332 | ac_config_files="$ac_config_files $outlist" |
| 15333 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15334 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15335 | # This file is a shell script that caches the results of configure |
| 15336 | # 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] | 15337 | # scripts and configure runs, see configure's option --config-cache. |
| 15338 | # It is not useful on other systems. If it contains results you don't |
| 15339 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15340 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15341 | # config.status only pays attention to the cache file if you give it |
| 15342 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15343 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15344 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15345 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15346 | # following values. |
| 15347 | |
| 15348 | _ACEOF |
| 15349 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15350 | # The following way of writing the cache mishandles newlines in values, |
| 15351 | # 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] | 15352 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15353 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15354 | # 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] | 15355 | ( |
| 15356 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15357 | eval ac_val=\$$ac_var |
| 15358 | case $ac_val in #( |
| 15359 | *${as_nl}*) |
| 15360 | case $ac_var in #( |
| 15361 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15362 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15363 | esac |
| 15364 | case $ac_var in #( |
| 15365 | _ | IFS | as_nl) ;; #( |
| 15366 | *) $as_unset $ac_var ;; |
| 15367 | esac ;; |
| 15368 | esac |
| 15369 | done |
| 15370 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15371 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15372 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15373 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15374 | # `set' does not quote correctly, so add quotes (double-quote |
| 15375 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15376 | sed -n \ |
| 15377 | "s/'/'\\\\''/g; |
| 15378 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15379 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15380 | *) |
| 15381 | # `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] | 15382 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15383 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15384 | esac | |
| 15385 | sort |
| 15386 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15387 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15388 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15389 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15390 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15391 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15392 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15393 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15394 | :end' >>confcache |
| 15395 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15396 | if test -w "$cache_file"; then |
| 15397 | test "x$cache_file" != "x/dev/null" && |
| 15398 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15399 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15400 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15401 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15402 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15403 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15404 | fi |
| 15405 | fi |
| 15406 | rm -f confcache |
| 15407 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15408 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15409 | # Let make expand exec_prefix. |
| 15410 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15411 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15412 | # Transform confdefs.h into DEFS. |
| 15413 | # Protect against shell expansion while executing Makefile rules. |
| 15414 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15415 | # |
| 15416 | # 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] | 15417 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15418 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15419 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15420 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15421 | :clear |
| 15422 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15423 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15424 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15425 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15426 | b any |
| 15427 | :quote |
| 15428 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15429 | s/\[/\\&/g |
| 15430 | s/\]/\\&/g |
| 15431 | s/\$/$$/g |
| 15432 | H |
| 15433 | :any |
| 15434 | ${ |
| 15435 | g |
| 15436 | s/^\n// |
| 15437 | s/\n/ /g |
| 15438 | p |
| 15439 | } |
| 15440 | ' |
| 15441 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15442 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15443 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15444 | ac_libobjs= |
| 15445 | ac_ltlibobjs= |
| 15446 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15447 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15448 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15449 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15450 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15451 | # will be set to the directory where LIBOBJS objects are built. |
| 15452 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15453 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15454 | done |
| 15455 | LIBOBJS=$ac_libobjs |
| 15456 | |
| 15457 | LTLIBOBJS=$ac_ltlibobjs |
| 15458 | |
| 15459 | |
| 15460 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15461 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15462 | ac_clean_files_save=$ac_clean_files |
| 15463 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15464 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15465 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15466 | cat >$CONFIG_STATUS <<_ACEOF |
| 15467 | #! $SHELL |
| 15468 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15469 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15470 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15471 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15473 | debug=false |
| 15474 | ac_cs_recheck=false |
| 15475 | ac_cs_silent=false |
| 15476 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15477 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15479 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15480 | ## --------------------- ## |
| 15481 | ## M4sh Initialization. ## |
| 15482 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15483 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15484 | # Be more Bourne compatible |
| 15485 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15486 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15487 | emulate sh |
| 15488 | NULLCMD=: |
| 15489 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15490 | # is contrary to our usage. Disable this feature. |
| 15491 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15492 | setopt NO_GLOB_SUBST |
| 15493 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15494 | case `(set -o) 2>/dev/null` in |
| 15495 | *posix*) set -o posix ;; |
| 15496 | esac |
| 15497 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15498 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15499 | |
| 15500 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15501 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15503 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15504 | # Avoid depending upon Character Ranges. |
| 15505 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15506 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15507 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15508 | as_cr_digits='0123456789' |
| 15509 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15510 | |
| 15511 | # The user is always right. |
| 15512 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15513 | echo "#! /bin/sh" >conf$$.sh |
| 15514 | echo "exit 0" >>conf$$.sh |
| 15515 | chmod +x conf$$.sh |
| 15516 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15517 | PATH_SEPARATOR=';' |
| 15518 | else |
| 15519 | PATH_SEPARATOR=: |
| 15520 | fi |
| 15521 | rm -f conf$$.sh |
| 15522 | fi |
| 15523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15524 | # Support unset when possible. |
| 15525 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15526 | as_unset=unset |
| 15527 | else |
| 15528 | as_unset=false |
| 15529 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15531 | |
| 15532 | # IFS |
| 15533 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15534 | # there to prevent editors from complaining about space-tab. |
| 15535 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15536 | # splitting by setting IFS to empty value.) |
| 15537 | as_nl=' |
| 15538 | ' |
| 15539 | IFS=" "" $as_nl" |
| 15540 | |
| 15541 | # Find who we are. Look in the path if we contain no directory separator. |
| 15542 | case $0 in |
| 15543 | *[\\/]* ) as_myself=$0 ;; |
| 15544 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15545 | for as_dir in $PATH |
| 15546 | do |
| 15547 | IFS=$as_save_IFS |
| 15548 | test -z "$as_dir" && as_dir=. |
| 15549 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15550 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15551 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15553 | ;; |
| 15554 | esac |
| 15555 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15556 | # in which case we are not to be found in the path. |
| 15557 | if test "x$as_myself" = x; then |
| 15558 | as_myself=$0 |
| 15559 | fi |
| 15560 | if test ! -f "$as_myself"; then |
| 15561 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15562 | { (exit 1); exit 1; } |
| 15563 | fi |
| 15564 | |
| 15565 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15566 | for as_var in ENV MAIL MAILPATH |
| 15567 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15568 | done |
| 15569 | PS1='$ ' |
| 15570 | PS2='> ' |
| 15571 | PS4='+ ' |
| 15572 | |
| 15573 | # NLS nuisances. |
| 15574 | for as_var in \ |
| 15575 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15576 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15577 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15578 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15579 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15580 | eval $as_var=C; export $as_var |
| 15581 | else |
| 15582 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15583 | fi |
| 15584 | done |
| 15585 | |
| 15586 | # Required to use basename. |
| 15587 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15588 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15589 | as_expr=expr |
| 15590 | else |
| 15591 | as_expr=false |
| 15592 | fi |
| 15593 | |
| 15594 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15595 | as_basename=basename |
| 15596 | else |
| 15597 | as_basename=false |
| 15598 | fi |
| 15599 | |
| 15600 | |
| 15601 | # Name of the executable. |
| 15602 | as_me=`$as_basename -- "$0" || |
| 15603 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15604 | X"$0" : 'X\(//\)$' \| \ |
| 15605 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15606 | echo X/"$0" | |
| 15607 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15608 | s//\1/ |
| 15609 | q |
| 15610 | } |
| 15611 | /^X\/\(\/\/\)$/{ |
| 15612 | s//\1/ |
| 15613 | q |
| 15614 | } |
| 15615 | /^X\/\(\/\).*/{ |
| 15616 | s//\1/ |
| 15617 | q |
| 15618 | } |
| 15619 | s/.*/./; q'` |
| 15620 | |
| 15621 | # CDPATH. |
| 15622 | $as_unset CDPATH |
| 15623 | |
| 15624 | |
| 15625 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15626 | as_lineno_1=$LINENO |
| 15627 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15628 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15629 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15630 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15631 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15632 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15633 | # line-number line after each line using $LINENO; the second 'sed' |
| 15634 | # does the real work. The second script uses 'N' to pair each |
| 15635 | # line-number line with the line containing $LINENO, and appends |
| 15636 | # trailing '-' during substitution so that $LINENO is not a special |
| 15637 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15638 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15639 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15640 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15641 | sed -n ' |
| 15642 | p |
| 15643 | /[$]LINENO/= |
| 15644 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15645 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15646 | s/[$]LINENO.*/&-/ |
| 15647 | t lineno |
| 15648 | b |
| 15649 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15650 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15651 | :loop |
| 15652 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15653 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15654 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15655 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15656 | chmod +x "$as_me.lineno" || |
| 15657 | { 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] | 15658 | { (exit 1); exit 1; }; } |
| 15659 | |
| 15660 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15661 | # (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] | 15662 | # original and so on. Autoconf is especially sensitive to this). |
| 15663 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15664 | # Exit status is that of the last command. |
| 15665 | exit |
| 15666 | } |
| 15667 | |
| 15668 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15669 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15670 | as_dirname=dirname |
| 15671 | else |
| 15672 | as_dirname=false |
| 15673 | fi |
| 15674 | |
| 15675 | ECHO_C= ECHO_N= ECHO_T= |
| 15676 | case `echo -n x` in |
| 15677 | -n*) |
| 15678 | case `echo 'x\c'` in |
| 15679 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15680 | *) ECHO_C='\c';; |
| 15681 | esac;; |
| 15682 | *) |
| 15683 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15684 | esac |
| 15685 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15686 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15687 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15688 | as_expr=expr |
| 15689 | else |
| 15690 | as_expr=false |
| 15691 | fi |
| 15692 | |
| 15693 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15694 | if test -d conf$$.dir; then |
| 15695 | rm -f conf$$.dir/conf$$.file |
| 15696 | else |
| 15697 | rm -f conf$$.dir |
| 15698 | mkdir conf$$.dir |
| 15699 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15700 | echo >conf$$.file |
| 15701 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15702 | as_ln_s='ln -s' |
| 15703 | # ... but there are two gotchas: |
| 15704 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15705 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15706 | # In both cases, we have to default to `cp -p'. |
| 15707 | 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] | 15708 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15709 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15710 | as_ln_s=ln |
| 15711 | else |
| 15712 | as_ln_s='cp -p' |
| 15713 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15714 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15715 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15716 | |
| 15717 | if mkdir -p . 2>/dev/null; then |
| 15718 | as_mkdir_p=: |
| 15719 | else |
| 15720 | test -d ./-p && rmdir ./-p |
| 15721 | as_mkdir_p=false |
| 15722 | fi |
| 15723 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15724 | if test -x / >/dev/null 2>&1; then |
| 15725 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15726 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15727 | if ls -dL / >/dev/null 2>&1; then |
| 15728 | as_ls_L_option=L |
| 15729 | else |
| 15730 | as_ls_L_option= |
| 15731 | fi |
| 15732 | as_test_x=' |
| 15733 | eval sh -c '\'' |
| 15734 | if test -d "$1"; then |
| 15735 | test -d "$1/."; |
| 15736 | else |
| 15737 | case $1 in |
| 15738 | -*)set "./$1";; |
| 15739 | esac; |
| 15740 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15741 | ???[sx]*):;;*)false;;esac;fi |
| 15742 | '\'' sh |
| 15743 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15744 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15745 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15746 | |
| 15747 | # Sed expression to map a string onto a valid CPP name. |
| 15748 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15749 | |
| 15750 | # Sed expression to map a string onto a valid variable name. |
| 15751 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15752 | |
| 15753 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15754 | exec 6>&1 |
| 15755 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15756 | # 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] | 15757 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15758 | # values after options handling. |
| 15759 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15760 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15761 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15762 | |
| 15763 | CONFIG_FILES = $CONFIG_FILES |
| 15764 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15765 | CONFIG_LINKS = $CONFIG_LINKS |
| 15766 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15767 | $ $0 $@ |
| 15768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15769 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15770 | " |
| 15771 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15772 | _ACEOF |
| 15773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15774 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15775 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15776 | config_files="$ac_config_files" |
| 15777 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15778 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15779 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15780 | |
| 15781 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15782 | ac_cs_usage="\ |
| 15783 | \`$as_me' instantiates files from templates according to the |
| 15784 | current configuration. |
| 15785 | |
| 15786 | Usage: $0 [OPTIONS] [FILE]... |
| 15787 | |
| 15788 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15789 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15790 | -q, --quiet do not print progress messages |
| 15791 | -d, --debug don't remove temporary files |
| 15792 | --recheck update $as_me by reconfiguring in the same conditions |
| 15793 | --file=FILE[:TEMPLATE] |
| 15794 | instantiate the configuration file FILE |
| 15795 | |
| 15796 | Configuration files: |
| 15797 | $config_files |
| 15798 | |
| 15799 | Configuration commands: |
| 15800 | $config_commands |
| 15801 | |
| 15802 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15804 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15805 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15806 | ac_cs_version="\\ |
| 15807 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15808 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15809 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15810 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15811 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15812 | This config.status script is free software; the Free Software Foundation |
| 15813 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15814 | |
| 15815 | ac_pwd='$ac_pwd' |
| 15816 | srcdir='$srcdir' |
| 15817 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15818 | _ACEOF |
| 15819 | |
| 15820 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15821 | # If no file are specified by the user, then we need to provide default |
| 15822 | # value. By we need to know if files were specified by the user. |
| 15823 | ac_need_defaults=: |
| 15824 | while test $# != 0 |
| 15825 | do |
| 15826 | case $1 in |
| 15827 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15828 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15829 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15830 | ac_shift=: |
| 15831 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15832 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15833 | ac_option=$1 |
| 15834 | ac_optarg=$2 |
| 15835 | ac_shift=shift |
| 15836 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15837 | esac |
| 15838 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15839 | case $ac_option in |
| 15840 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15841 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15842 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15843 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15844 | echo "$ac_cs_version"; exit ;; |
| 15845 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15846 | debug=: ;; |
| 15847 | --file | --fil | --fi | --f ) |
| 15848 | $ac_shift |
| 15849 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15850 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15851 | --he | --h | --help | --hel | -h ) |
| 15852 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15853 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15854 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15855 | ac_cs_silent=: ;; |
| 15856 | |
| 15857 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15858 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15859 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15860 | { (exit 1); exit 1; }; } ;; |
| 15861 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15862 | *) ac_config_targets="$ac_config_targets $1" |
| 15863 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15864 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15865 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15866 | shift |
| 15867 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15868 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15869 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15871 | if $ac_cs_silent; then |
| 15872 | exec 6>/dev/null |
| 15873 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15874 | fi |
| 15875 | |
| 15876 | _ACEOF |
| 15877 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15878 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15879 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15880 | CONFIG_SHELL=$SHELL |
| 15881 | export CONFIG_SHELL |
| 15882 | 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] | 15883 | fi |
| 15884 | |
| 15885 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15886 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15887 | exec 5>>config.log |
| 15888 | { |
| 15889 | echo |
| 15890 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15891 | ## Running $as_me. ## |
| 15892 | _ASBOX |
| 15893 | echo "$ac_log" |
| 15894 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15895 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15896 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15897 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15898 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15899 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15900 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15901 | # 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] | 15902 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15903 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15904 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15905 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15906 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15908 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15909 | _ACEOF |
| 15910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15911 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15912 | |
| 15913 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15914 | for ac_config_target in $ac_config_targets |
| 15915 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15916 | case $ac_config_target in |
| 15917 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15918 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15919 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15920 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15921 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15922 | { (exit 1); exit 1; }; };; |
| 15923 | esac |
| 15924 | done |
| 15925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15927 | # If the user did not use the arguments to specify the items to instantiate, |
| 15928 | # then the envvar interface is used. Set only those that are not. |
| 15929 | # We use the long form for the default assignment because of an extremely |
| 15930 | # bizarre bug on SunOS 4.1.3. |
| 15931 | if $ac_need_defaults; then |
| 15932 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15933 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15934 | fi |
| 15935 | |
| 15936 | # 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] | 15937 | # 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] | 15938 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15939 | # Hook for its removal unless debugging. |
| 15940 | # Note that there is a small window in which the directory will not be cleaned: |
| 15941 | # 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] | 15942 | $debug || |
| 15943 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15944 | tmp= |
| 15945 | trap 'exit_status=$? |
| 15946 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15947 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15948 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15949 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15950 | # Create a (secure) tmp directory for tmp files. |
| 15951 | |
| 15952 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15953 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15954 | test -n "$tmp" && test -d "$tmp" |
| 15955 | } || |
| 15956 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15957 | tmp=./conf$$-$RANDOM |
| 15958 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15959 | } || |
| 15960 | { |
| 15961 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15962 | { (exit 1); exit 1; } |
| 15963 | } |
| 15964 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15965 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15966 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15967 | # |
| 15968 | |
| 15969 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15970 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15971 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15972 | |
| 15973 | _ACEOF |
| 15974 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15975 | # Create sed commands to just substitute file output variables. |
| 15976 | |
| 15977 | # Remaining file output variables are in a fragment that also has non-file |
| 15978 | # output varibles. |
| 15979 | |
| 15980 | |
| 15981 | |
| 15982 | ac_delim='%!_!# ' |
| 15983 | for ac_last_try in false false false false false :; do |
| 15984 | cat >conf$$subs.sed <<_ACEOF |
| 15985 | SHELL!$SHELL$ac_delim |
| 15986 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15987 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15988 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15989 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15990 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15991 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15992 | exec_prefix!$exec_prefix$ac_delim |
| 15993 | prefix!$prefix$ac_delim |
| 15994 | program_transform_name!$program_transform_name$ac_delim |
| 15995 | bindir!$bindir$ac_delim |
| 15996 | sbindir!$sbindir$ac_delim |
| 15997 | libexecdir!$libexecdir$ac_delim |
| 15998 | datarootdir!$datarootdir$ac_delim |
| 15999 | datadir!$datadir$ac_delim |
| 16000 | sysconfdir!$sysconfdir$ac_delim |
| 16001 | sharedstatedir!$sharedstatedir$ac_delim |
| 16002 | localstatedir!$localstatedir$ac_delim |
| 16003 | includedir!$includedir$ac_delim |
| 16004 | oldincludedir!$oldincludedir$ac_delim |
| 16005 | docdir!$docdir$ac_delim |
| 16006 | infodir!$infodir$ac_delim |
| 16007 | htmldir!$htmldir$ac_delim |
| 16008 | dvidir!$dvidir$ac_delim |
| 16009 | pdfdir!$pdfdir$ac_delim |
| 16010 | psdir!$psdir$ac_delim |
| 16011 | libdir!$libdir$ac_delim |
| 16012 | localedir!$localedir$ac_delim |
| 16013 | mandir!$mandir$ac_delim |
| 16014 | DEFS!$DEFS$ac_delim |
| 16015 | ECHO_C!$ECHO_C$ac_delim |
| 16016 | ECHO_N!$ECHO_N$ac_delim |
| 16017 | ECHO_T!$ECHO_T$ac_delim |
| 16018 | LIBS!$LIBS$ac_delim |
| 16019 | build_alias!$build_alias$ac_delim |
| 16020 | host_alias!$host_alias$ac_delim |
| 16021 | target_alias!$target_alias$ac_delim |
| 16022 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 16023 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 16024 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 16025 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 16026 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16027 | build!$build$ac_delim |
| 16028 | build_cpu!$build_cpu$ac_delim |
| 16029 | build_vendor!$build_vendor$ac_delim |
| 16030 | build_os!$build_os$ac_delim |
| 16031 | host!$host$ac_delim |
| 16032 | host_cpu!$host_cpu$ac_delim |
| 16033 | host_vendor!$host_vendor$ac_delim |
| 16034 | host_os!$host_os$ac_delim |
| 16035 | CC!$CC$ac_delim |
| 16036 | CFLAGS!$CFLAGS$ac_delim |
| 16037 | LDFLAGS!$LDFLAGS$ac_delim |
| 16038 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 16039 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 16040 | EXEEXT!$EXEEXT$ac_delim |
| 16041 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16042 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16043 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16044 | GREP!$GREP$ac_delim |
| 16045 | EGREP!$EGREP$ac_delim |
| 16046 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 16047 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 16048 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 16049 | ELF_CMT!$ELF_CMT$ac_delim |
| 16050 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 16051 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 16052 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 16053 | LIB_EXT!$LIB_EXT$ac_delim |
| 16054 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 16055 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
| 16056 | SWAPFS_CMT!$SWAPFS_CMT$ac_delim |
| 16057 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 16058 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
| 16059 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 16060 | E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16061 | _ACEOF |
| 16062 | |
| 16063 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
| 16064 | break |
| 16065 | elif $ac_last_try; then |
| 16066 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16067 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16068 | { (exit 1); exit 1; }; } |
| 16069 | else |
| 16070 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16072 | done |
| 16073 | |
| 16074 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16075 | if test -n "$ac_eof"; then |
| 16076 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16077 | ac_eof=`expr $ac_eof + 1` |
| 16078 | fi |
| 16079 | |
| 16080 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16081 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 16082 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16083 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 16084 | r $MCONFIG |
| 16085 | d |
| 16086 | } |
| 16087 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 16088 | r $MAKEFILE_ELF |
| 16089 | d |
| 16090 | } |
| 16091 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 16092 | r $MAKEFILE_BSDLIB |
| 16093 | d |
| 16094 | } |
| 16095 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 16096 | r $MAKEFILE_PROFILE |
| 16097 | d |
| 16098 | } |
| 16099 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 16100 | r $MAKEFILE_CHECKER |
| 16101 | d |
| 16102 | } |
| 16103 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 16104 | r $MAKEFILE_LIBRARY |
| 16105 | d |
| 16106 | } |
| 16107 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 16108 | r $ASM_TYPES_HEADER |
| 16109 | d |
| 16110 | } |
| 16111 | _ACEOF |
| 16112 | sed ' |
| 16113 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16114 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16115 | :n |
| 16116 | t n |
| 16117 | s/'"$ac_delim"'$/,g/; t |
| 16118 | s/$/\\/; p |
| 16119 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16120 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16121 | rm -f conf$$subs.sed |
| 16122 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16123 | CEOF$ac_eof |
| 16124 | _ACEOF |
| 16125 | |
| 16126 | |
| 16127 | ac_delim='%!_!# ' |
| 16128 | for ac_last_try in false false false false false :; do |
| 16129 | cat >conf$$subs.sed <<_ACEOF |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 16130 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16131 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 16132 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 16133 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16134 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16135 | DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim |
| 16136 | DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim |
| 16137 | DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim |
| 16138 | STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16139 | STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 16140 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16141 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 16142 | PACKAGE!$PACKAGE$ac_delim |
| 16143 | VERSION!$VERSION$ac_delim |
| 16144 | SET_MAKE!$SET_MAKE$ac_delim |
| 16145 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 16146 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 16147 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 16148 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 16149 | USE_NLS!$USE_NLS$ac_delim |
| 16150 | MSGFMT!$MSGFMT$ac_delim |
| 16151 | GMSGFMT!$GMSGFMT$ac_delim |
| 16152 | XGETTEXT!$XGETTEXT$ac_delim |
| 16153 | MSGMERGE!$MSGMERGE$ac_delim |
| 16154 | RANLIB!$RANLIB$ac_delim |
| 16155 | ALLOCA!$ALLOCA$ac_delim |
| 16156 | GLIBC21!$GLIBC21$ac_delim |
| 16157 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 16158 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 16159 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 16160 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 16161 | LIBICONV!$LIBICONV$ac_delim |
| 16162 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 16163 | INTLBISON!$INTLBISON$ac_delim |
| 16164 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16165 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16166 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16167 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16168 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16169 | GENCAT!$GENCAT$ac_delim |
| 16170 | INTLOBJS!$INTLOBJS$ac_delim |
| 16171 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16172 | INTLLIBS!$INTLLIBS$ac_delim |
| 16173 | LIBINTL!$LIBINTL$ac_delim |
| 16174 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16175 | POSUB!$POSUB$ac_delim |
| 16176 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16177 | LN!$LN$ac_delim |
| 16178 | LN_S!$LN_S$ac_delim |
| 16179 | MV!$MV$ac_delim |
| 16180 | CP!$CP$ac_delim |
| 16181 | RM!$RM$ac_delim |
| 16182 | CHMOD!$CHMOD$ac_delim |
| 16183 | AWK!$AWK$ac_delim |
| 16184 | SED!$SED$ac_delim |
| 16185 | PERL!$PERL$ac_delim |
| 16186 | LDCONFIG!$LDCONFIG$ac_delim |
| 16187 | AR!$AR$ac_delim |
| 16188 | STRIP!$STRIP$ac_delim |
| 16189 | BUILD_CC!$BUILD_CC$ac_delim |
| 16190 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16191 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16192 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16193 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16194 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16195 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 16196 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16197 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16198 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16199 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16200 | root_prefix!$root_prefix$ac_delim |
| 16201 | root_bindir!$root_bindir$ac_delim |
| 16202 | root_sbindir!$root_sbindir$ac_delim |
| 16203 | root_libdir!$root_libdir$ac_delim |
| 16204 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16205 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16206 | SS_DIR!$SS_DIR$ac_delim |
| 16207 | ET_DIR!$ET_DIR$ac_delim |
| 16208 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16209 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16210 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16211 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16212 | LIBOBJS!$LIBOBJS$ac_delim |
| 16213 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16214 | _ACEOF |
| 16215 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 16216 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16217 | break |
| 16218 | elif $ac_last_try; then |
| 16219 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16220 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16221 | { (exit 1); exit 1; }; } |
| 16222 | else |
| 16223 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16224 | fi |
| 16225 | done |
| 16226 | |
| 16227 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16228 | if test -n "$ac_eof"; then |
| 16229 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16230 | ac_eof=`expr $ac_eof + 1` |
| 16231 | fi |
| 16232 | |
| 16233 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16234 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16235 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16236 | _ACEOF |
| 16237 | sed ' |
| 16238 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16239 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16240 | :n |
| 16241 | t n |
| 16242 | s/'"$ac_delim"'$/,g/; t |
| 16243 | s/$/\\/; p |
| 16244 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16245 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16246 | rm -f conf$$subs.sed |
| 16247 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16248 | :end |
| 16249 | s/|#_!!_#|//g |
| 16250 | CEOF$ac_eof |
| 16251 | _ACEOF |
| 16252 | |
| 16253 | |
| 16254 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16255 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16256 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16257 | # (actually we leave an empty line to preserve line numbers). |
| 16258 | if test "x$srcdir" = x.; then |
| 16259 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16260 | s/:*\$(srcdir):*/:/ |
| 16261 | s/:*\${srcdir}:*/:/ |
| 16262 | s/:*@srcdir@:*/:/ |
| 16263 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16264 | s/:*$// |
| 16265 | s/^[^=]*=[ ]*$// |
| 16266 | }' |
| 16267 | fi |
| 16268 | |
| 16269 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16270 | fi # test -n "$CONFIG_FILES" |
| 16271 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16272 | |
| 16273 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16274 | do |
| 16275 | case $ac_tag in |
| 16276 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16277 | esac |
| 16278 | case $ac_mode$ac_tag in |
| 16279 | :[FHL]*:*);; |
| 16280 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16281 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16282 | { (exit 1); exit 1; }; };; |
| 16283 | :[FH]-) ac_tag=-:-;; |
| 16284 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16285 | esac |
| 16286 | ac_save_IFS=$IFS |
| 16287 | IFS=: |
| 16288 | set x $ac_tag |
| 16289 | IFS=$ac_save_IFS |
| 16290 | shift |
| 16291 | ac_file=$1 |
| 16292 | shift |
| 16293 | |
| 16294 | case $ac_mode in |
| 16295 | :L) ac_source=$1;; |
| 16296 | :[FH]) |
| 16297 | ac_file_inputs= |
| 16298 | for ac_f |
| 16299 | do |
| 16300 | case $ac_f in |
| 16301 | -) ac_f="$tmp/stdin";; |
| 16302 | *) # Look for the file first in the build tree, then in the source tree |
| 16303 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16304 | # because $ac_f cannot contain `:'. |
| 16305 | test -f "$ac_f" || |
| 16306 | case $ac_f in |
| 16307 | [\\/$]*) false;; |
| 16308 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16309 | esac || |
| 16310 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16311 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16312 | { (exit 1); exit 1; }; };; |
| 16313 | esac |
| 16314 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16315 | done |
| 16316 | |
| 16317 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16318 | # use $as_me), people would be surprised to read: |
| 16319 | # /* config.h. Generated by config.status. */ |
| 16320 | configure_input="Generated from "`IFS=: |
| 16321 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16322 | if test x"$ac_file" != x-; then |
| 16323 | configure_input="$ac_file. $configure_input" |
| 16324 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16325 | echo "$as_me: creating $ac_file" >&6;} |
| 16326 | fi |
| 16327 | |
| 16328 | case $ac_tag in |
| 16329 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16330 | esac |
| 16331 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16332 | esac |
| 16333 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16334 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16335 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16336 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16337 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16338 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16339 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16341 | s//\1/ |
| 16342 | q |
| 16343 | } |
| 16344 | /^X\(\/\/\)[^/].*/{ |
| 16345 | s//\1/ |
| 16346 | q |
| 16347 | } |
| 16348 | /^X\(\/\/\)$/{ |
| 16349 | s//\1/ |
| 16350 | q |
| 16351 | } |
| 16352 | /^X\(\/\).*/{ |
| 16353 | s//\1/ |
| 16354 | q |
| 16355 | } |
| 16356 | s/.*/./; q'` |
| 16357 | { as_dir="$ac_dir" |
| 16358 | case $as_dir in #( |
| 16359 | -*) as_dir=./$as_dir;; |
| 16360 | esac |
| 16361 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16362 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16363 | while :; do |
| 16364 | case $as_dir in #( |
| 16365 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16366 | *) as_qdir=$as_dir;; |
| 16367 | esac |
| 16368 | as_dirs="'$as_qdir' $as_dirs" |
| 16369 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16370 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16371 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16372 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16373 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16374 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16375 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16376 | s//\1/ |
| 16377 | q |
| 16378 | } |
| 16379 | /^X\(\/\/\)[^/].*/{ |
| 16380 | s//\1/ |
| 16381 | q |
| 16382 | } |
| 16383 | /^X\(\/\/\)$/{ |
| 16384 | s//\1/ |
| 16385 | q |
| 16386 | } |
| 16387 | /^X\(\/\).*/{ |
| 16388 | s//\1/ |
| 16389 | q |
| 16390 | } |
| 16391 | s/.*/./; q'` |
| 16392 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16393 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16394 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16395 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16396 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16397 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16398 | ac_builddir=. |
| 16399 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16400 | case "$ac_dir" in |
| 16401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16402 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16403 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16404 | # A ".." for each directory in $ac_dir_suffix. |
| 16405 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16406 | case $ac_top_builddir_sub in |
| 16407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16409 | esac ;; |
| 16410 | esac |
| 16411 | ac_abs_top_builddir=$ac_pwd |
| 16412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16413 | # for backward compatibility: |
| 16414 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16415 | |
| 16416 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16417 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16418 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16419 | ac_top_srcdir=$ac_top_builddir_sub |
| 16420 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16421 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16422 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16423 | ac_top_srcdir=$srcdir |
| 16424 | ac_abs_top_srcdir=$srcdir ;; |
| 16425 | *) # Relative name. |
| 16426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16427 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16429 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16431 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16432 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16433 | case $ac_mode in |
| 16434 | :F) |
| 16435 | # |
| 16436 | # CONFIG_FILE |
| 16437 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16438 | |
| 16439 | case $INSTALL in |
| 16440 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16441 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16442 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16443 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16444 | |
| 16445 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16446 | # If the template does not know about datarootdir, expand it. |
| 16447 | # FIXME: This hack should be removed a few years after 2.60. |
| 16448 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16449 | |
| 16450 | case `sed -n '/datarootdir/ { |
| 16451 | p |
| 16452 | q |
| 16453 | } |
| 16454 | /@datadir@/p |
| 16455 | /@docdir@/p |
| 16456 | /@infodir@/p |
| 16457 | /@localedir@/p |
| 16458 | /@mandir@/p |
| 16459 | ' $ac_file_inputs` in |
| 16460 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16461 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16462 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16463 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16464 | _ACEOF |
| 16465 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16466 | ac_datarootdir_hack=' |
| 16467 | s&@datadir@&$datadir&g |
| 16468 | s&@docdir@&$docdir&g |
| 16469 | s&@infodir@&$infodir&g |
| 16470 | s&@localedir@&$localedir&g |
| 16471 | s&@mandir@&$mandir&g |
| 16472 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16473 | esac |
| 16474 | _ACEOF |
| 16475 | |
| 16476 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16477 | # Shell code in configure.ac might set extrasub. |
| 16478 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16479 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16480 | sed "$ac_vpsub |
| 16481 | $extrasub |
| 16482 | _ACEOF |
| 16483 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16484 | :t |
| 16485 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16486 | s&@configure_input@&$configure_input&;t t |
| 16487 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16488 | s&@srcdir@&$ac_srcdir&;t t |
| 16489 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16490 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16491 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16492 | s&@builddir@&$ac_builddir&;t t |
| 16493 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16494 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16495 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16496 | $ac_datarootdir_hack |
| 16497 | " $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] | 16498 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16499 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16500 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16501 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16502 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16503 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16504 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16505 | 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] | 16506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16507 | rm -f "$tmp/stdin" |
| 16508 | case $ac_file in |
| 16509 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16510 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16511 | esac |
| 16512 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16513 | |
| 16514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16515 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16516 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16517 | ;; |
| 16518 | esac |
| 16519 | |
| 16520 | |
| 16521 | case $ac_file$ac_mode in |
| 16522 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16523 | for ac_file in $CONFIG_FILES; do |
| 16524 | # Support "outfile[:infile[:infile...]]" |
| 16525 | case "$ac_file" in |
| 16526 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16527 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16528 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16529 | case "$ac_file" in */Makefile.in) |
| 16530 | # Adjust a relative srcdir. |
| 16531 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16532 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16533 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16534 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16535 | # In autoconf-2.50 it is called $srcdir. |
| 16536 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16537 | case "$ac_given_srcdir" in |
| 16538 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16539 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16540 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16541 | esac |
| 16542 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16543 | rm -f "$ac_dir/POTFILES" |
| 16544 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16545 | 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] | 16546 | POMAKEFILEDEPS="POTFILES.in" |
| 16547 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16548 | # on $ac_dir but don't depend on user-specified configuration |
| 16549 | # parameters. |
| 16550 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16551 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16552 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16553 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16554 | fi |
| 16555 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16556 | # Hide the ALL_LINGUAS assigment from automake. |
| 16557 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16558 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16559 | else |
| 16560 | # The set of available languages was given in configure.in. |
| 16561 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16562 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16563 | # Compute POFILES |
| 16564 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16565 | # Compute UPDATEPOFILES |
| 16566 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16567 | # Compute DUMMYPOFILES |
| 16568 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16569 | # Compute GMOFILES |
| 16570 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16571 | case "$ac_given_srcdir" in |
| 16572 | .) srcdirpre= ;; |
| 16573 | *) srcdirpre='$(srcdir)/' ;; |
| 16574 | esac |
| 16575 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16576 | UPDATEPOFILES= |
| 16577 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16578 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16579 | for lang in $ALL_LINGUAS; do |
| 16580 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16581 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16582 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16583 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16584 | done |
| 16585 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16586 | # environment variable. |
| 16587 | INST_LINGUAS= |
| 16588 | if test -n "$ALL_LINGUAS"; then |
| 16589 | for presentlang in $ALL_LINGUAS; do |
| 16590 | useit=no |
| 16591 | if test "%UNSET%" != "$LINGUAS"; then |
| 16592 | desiredlanguages="$LINGUAS" |
| 16593 | else |
| 16594 | desiredlanguages="$ALL_LINGUAS" |
| 16595 | fi |
| 16596 | for desiredlang in $desiredlanguages; do |
| 16597 | # Use the presentlang catalog if desiredlang is |
| 16598 | # a. equal to presentlang, or |
| 16599 | # b. a variant of presentlang (because in this case, |
| 16600 | # presentlang can be used as a fallback for messages |
| 16601 | # which are not translated in the desiredlang catalog). |
| 16602 | case "$desiredlang" in |
| 16603 | "$presentlang"*) useit=yes;; |
| 16604 | esac |
| 16605 | done |
| 16606 | if test $useit = yes; then |
| 16607 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16608 | fi |
| 16609 | done |
| 16610 | fi |
| 16611 | CATALOGS= |
| 16612 | if test -n "$INST_LINGUAS"; then |
| 16613 | for lang in $INST_LINGUAS; do |
| 16614 | CATALOGS="$CATALOGS $lang.gmo" |
| 16615 | done |
| 16616 | fi |
| 16617 | 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] | 16618 | 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] | 16619 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16620 | if test -f "$f"; then |
| 16621 | case "$f" in |
| 16622 | *.orig | *.bak | *~) ;; |
| 16623 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16624 | esac |
| 16625 | fi |
| 16626 | done |
| 16627 | fi |
| 16628 | ;; |
| 16629 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16630 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16632 | esac |
| 16633 | done # for ac_tag |
| 16634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16635 | |
| 16636 | { (exit 0); exit 0; } |
| 16637 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16638 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16639 | ac_clean_files=$ac_clean_files_save |
| 16640 | |
| 16641 | |
| 16642 | # configure is writing to config.log, and then calls config.status. |
| 16643 | # config.status does its own redirection, appending to config.log. |
| 16644 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16645 | # by configure, so config.status won't be able to write to it; its |
| 16646 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16647 | # effectively closing config.log, so it can be properly (re)opened and |
| 16648 | # appended to by config.status. When coming back to configure, we |
| 16649 | # need to make the FD available again. |
| 16650 | if test "$no_create" != yes; then |
| 16651 | ac_cs_success=: |
| 16652 | ac_config_status_args= |
| 16653 | test "$silent" = yes && |
| 16654 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16655 | exec 5>/dev/null |
| 16656 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16657 | exec 5>>config.log |
| 16658 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16659 | # would make configure fail if this is the last instruction. |
| 16660 | $ac_cs_success || { (exit 1); exit 1; } |
| 16661 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16662 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16663 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16664 | |