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. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.63. |
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, |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | # Support unset when possible. |
| 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 83 | as_unset=unset |
| 84 | else |
| 85 | as_unset=false |
| 86 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 87 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 88 | |
| 89 | # IFS |
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
| 91 | # there to prevent editors from complaining about space-tab. |
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 93 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 94 | IFS=" "" $as_nl" |
| 95 | |
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
| 97 | case $0 in |
| 98 | *[\\/]* ) as_myself=$0 ;; |
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 100 | for as_dir in $PATH |
| 101 | do |
| 102 | IFS=$as_save_IFS |
| 103 | test -z "$as_dir" && as_dir=. |
| 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 105 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 106 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 108 | ;; |
| 109 | esac |
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 111 | # in which case we are not to be found in the path. |
| 112 | if test "x$as_myself" = x; then |
| 113 | as_myself=$0 |
| 114 | fi |
| 115 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 117 | { (exit 1); exit 1; } |
| 118 | fi |
| 119 | |
| 120 | # Work around bugs in pre-3.0 UWIN ksh. |
| 121 | for as_var in ENV MAIL MAILPATH |
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 133 | |
| 134 | # Required to use basename. |
| 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 137 | as_expr=expr |
| 138 | else |
| 139 | as_expr=false |
| 140 | fi |
| 141 | |
| 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 143 | as_basename=basename |
| 144 | else |
| 145 | as_basename=false |
| 146 | fi |
| 147 | |
| 148 | |
| 149 | # Name of the executable. |
| 150 | as_me=`$as_basename -- "$0" || |
| 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 152 | X"$0" : 'X\(//\)$' \| \ |
| 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 154 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 156 | s//\1/ |
| 157 | q |
| 158 | } |
| 159 | /^X\/\(\/\/\)$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\).*/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | s/.*/./; q'` |
| 168 | |
| 169 | # CDPATH. |
| 170 | $as_unset CDPATH |
| 171 | |
| 172 | |
| 173 | if test "x$CONFIG_SHELL" = x; then |
| 174 | if (eval ":") 2>/dev/null; then |
| 175 | as_have_required=yes |
| 176 | else |
| 177 | as_have_required=no |
| 178 | fi |
| 179 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 180 | if test $as_have_required = yes && (eval ": |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 181 | (as_func_return () { |
| 182 | (exit \$1) |
| 183 | } |
| 184 | as_func_success () { |
| 185 | as_func_return 0 |
| 186 | } |
| 187 | as_func_failure () { |
| 188 | as_func_return 1 |
| 189 | } |
| 190 | as_func_ret_success () { |
| 191 | return 0 |
| 192 | } |
| 193 | as_func_ret_failure () { |
| 194 | return 1 |
| 195 | } |
| 196 | |
| 197 | exitcode=0 |
| 198 | if as_func_success; then |
| 199 | : |
| 200 | else |
| 201 | exitcode=1 |
| 202 | echo as_func_success failed. |
| 203 | fi |
| 204 | |
| 205 | if as_func_failure; then |
| 206 | exitcode=1 |
| 207 | echo as_func_failure succeeded. |
| 208 | fi |
| 209 | |
| 210 | if as_func_ret_success; then |
| 211 | : |
| 212 | else |
| 213 | exitcode=1 |
| 214 | echo as_func_ret_success failed. |
| 215 | fi |
| 216 | |
| 217 | if as_func_ret_failure; then |
| 218 | exitcode=1 |
| 219 | echo as_func_ret_failure succeeded. |
| 220 | fi |
| 221 | |
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 223 | : |
| 224 | else |
| 225 | exitcode=1 |
| 226 | echo positional parameters were not saved. |
| 227 | fi |
| 228 | |
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 230 | |
| 231 | ( |
| 232 | as_lineno_1=\$LINENO |
| 233 | as_lineno_2=\$LINENO |
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 236 | ") 2> /dev/null; then |
| 237 | : |
| 238 | else |
| 239 | as_candidate_shells= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 241 | 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] | 242 | do |
| 243 | IFS=$as_save_IFS |
| 244 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 245 | case $as_dir in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 246 | /*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 247 | for as_base in sh bash ksh sh5; do |
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 249 | done;; |
| 250 | esac |
| 251 | done |
| 252 | IFS=$as_save_IFS |
| 253 | |
| 254 | |
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
| 256 | # Try only shells that exist, to save several forks. |
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 267 | case `(set -o) 2>/dev/null` in |
| 268 | *posix*) set -o posix ;; |
| 269 | esac |
| 270 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 271 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 273 | |
| 274 | : |
| 275 | _ASEOF |
| 276 | }; then |
| 277 | CONFIG_SHELL=$as_shell |
| 278 | as_have_required=yes |
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 281 | emulate sh |
| 282 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 284 | # is contrary to our usage. Disable this feature. |
| 285 | alias -g '${1+"$@"}'='"$@"' |
| 286 | setopt NO_GLOB_SUBST |
| 287 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 288 | case `(set -o) 2>/dev/null` in |
| 289 | *posix*) set -o posix ;; |
| 290 | esac |
| 291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 292 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 293 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 294 | |
| 295 | : |
| 296 | (as_func_return () { |
| 297 | (exit $1) |
| 298 | } |
| 299 | as_func_success () { |
| 300 | as_func_return 0 |
| 301 | } |
| 302 | as_func_failure () { |
| 303 | as_func_return 1 |
| 304 | } |
| 305 | as_func_ret_success () { |
| 306 | return 0 |
| 307 | } |
| 308 | as_func_ret_failure () { |
| 309 | return 1 |
| 310 | } |
| 311 | |
| 312 | exitcode=0 |
| 313 | if as_func_success; then |
| 314 | : |
| 315 | else |
| 316 | exitcode=1 |
| 317 | echo as_func_success failed. |
| 318 | fi |
| 319 | |
| 320 | if as_func_failure; then |
| 321 | exitcode=1 |
| 322 | echo as_func_failure succeeded. |
| 323 | fi |
| 324 | |
| 325 | if as_func_ret_success; then |
| 326 | : |
| 327 | else |
| 328 | exitcode=1 |
| 329 | echo as_func_ret_success failed. |
| 330 | fi |
| 331 | |
| 332 | if as_func_ret_failure; then |
| 333 | exitcode=1 |
| 334 | echo as_func_ret_failure succeeded. |
| 335 | fi |
| 336 | |
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 338 | : |
| 339 | else |
| 340 | exitcode=1 |
| 341 | echo positional parameters were not saved. |
| 342 | fi |
| 343 | |
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 345 | |
| 346 | ( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 347 | as_lineno_1=$LINENO |
| 348 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 351 | |
| 352 | _ASEOF |
| 353 | }; then |
| 354 | break |
| 355 | fi |
| 356 | |
| 357 | fi |
| 358 | |
| 359 | done |
| 360 | |
| 361 | if test "x$CONFIG_SHELL" != x; then |
| 362 | for as_var in BASH_ENV ENV |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 364 | done |
| 365 | export CONFIG_SHELL |
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 367 | fi |
| 368 | |
| 369 | |
| 370 | if test $as_have_required = no; then |
| 371 | echo This script requires a shell more modern than all the |
| 372 | echo shells that I found on your system. Please install a |
| 373 | echo modern shell, or manually run the script under such a |
| 374 | echo shell if you do have one. |
| 375 | { (exit 1); exit 1; } |
| 376 | fi |
| 377 | |
| 378 | |
| 379 | fi |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | |
| 384 | |
| 385 | (eval "as_func_return () { |
| 386 | (exit \$1) |
| 387 | } |
| 388 | as_func_success () { |
| 389 | as_func_return 0 |
| 390 | } |
| 391 | as_func_failure () { |
| 392 | as_func_return 1 |
| 393 | } |
| 394 | as_func_ret_success () { |
| 395 | return 0 |
| 396 | } |
| 397 | as_func_ret_failure () { |
| 398 | return 1 |
| 399 | } |
| 400 | |
| 401 | exitcode=0 |
| 402 | if as_func_success; then |
| 403 | : |
| 404 | else |
| 405 | exitcode=1 |
| 406 | echo as_func_success failed. |
| 407 | fi |
| 408 | |
| 409 | if as_func_failure; then |
| 410 | exitcode=1 |
| 411 | echo as_func_failure succeeded. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_success; then |
| 415 | : |
| 416 | else |
| 417 | exitcode=1 |
| 418 | echo as_func_ret_success failed. |
| 419 | fi |
| 420 | |
| 421 | if as_func_ret_failure; then |
| 422 | exitcode=1 |
| 423 | echo as_func_ret_failure succeeded. |
| 424 | fi |
| 425 | |
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 427 | : |
| 428 | else |
| 429 | exitcode=1 |
| 430 | echo positional parameters were not saved. |
| 431 | fi |
| 432 | |
| 433 | test \$exitcode = 0") || { |
| 434 | echo No shell found that supports shell functions. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 435 | echo Please tell bug-autoconf@gnu.org about your system, |
| 436 | echo including any error possibly output before this message. |
| 437 | echo This can help us improve future autoconf versions. |
| 438 | echo Configuration will now proceed without shell functions. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | } |
| 440 | |
| 441 | |
| 442 | |
| 443 | as_lineno_1=$LINENO |
| 444 | as_lineno_2=$LINENO |
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 447 | |
| 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 450 | # line-number line after each line using $LINENO; the second 'sed' |
| 451 | # does the real work. The second script uses 'N' to pair each |
| 452 | # line-number line with the line containing $LINENO, and appends |
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
| 454 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 458 | sed -n ' |
| 459 | p |
| 460 | /[$]LINENO/= |
| 461 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 462 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | s/[$]LINENO.*/&-/ |
| 464 | t lineno |
| 465 | b |
| 466 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 467 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 468 | :loop |
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 470 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 471 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 472 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 473 | chmod +x "$as_me.lineno" || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 474 | { $as_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] | 475 | { (exit 1); exit 1; }; } |
| 476 | |
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 478 | # (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] | 479 | # original and so on. Autoconf is especially sensitive to this). |
| 480 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 481 | # Exit status is that of the last command. |
| 482 | exit |
| 483 | } |
| 484 | |
| 485 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 487 | as_dirname=dirname |
| 488 | else |
| 489 | as_dirname=false |
| 490 | fi |
| 491 | |
| 492 | ECHO_C= ECHO_N= ECHO_T= |
| 493 | case `echo -n x` in |
| 494 | -n*) |
| 495 | case `echo 'x\c'` in |
| 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 497 | *) ECHO_C='\c';; |
| 498 | esac;; |
| 499 | *) |
| 500 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 501 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 504 | as_expr=expr |
| 505 | else |
| 506 | as_expr=false |
| 507 | fi |
| 508 | |
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 510 | if test -d conf$$.dir; then |
| 511 | rm -f conf$$.dir/conf$$.file |
| 512 | else |
| 513 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 514 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 515 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 516 | if (echo >conf$$.file) 2>/dev/null; then |
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 518 | as_ln_s='ln -s' |
| 519 | # ... but there are two gotchas: |
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 522 | # In both cases, we have to default to `cp -p'. |
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 524 | as_ln_s='cp -p' |
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s=ln |
| 527 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 528 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 530 | else |
| 531 | as_ln_s='cp -p' |
| 532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 534 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 535 | |
| 536 | if mkdir -p . 2>/dev/null; then |
| 537 | as_mkdir_p=: |
| 538 | else |
| 539 | test -d ./-p && rmdir ./-p |
| 540 | as_mkdir_p=false |
| 541 | fi |
| 542 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 543 | if test -x / >/dev/null 2>&1; then |
| 544 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 545 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 546 | if ls -dL / >/dev/null 2>&1; then |
| 547 | as_ls_L_option=L |
| 548 | else |
| 549 | as_ls_L_option= |
| 550 | fi |
| 551 | as_test_x=' |
| 552 | eval sh -c '\'' |
| 553 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 554 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 555 | else |
| 556 | case $1 in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 557 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 558 | esac; |
| 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 560 | ???[sx]*):;;*)false;;esac;fi |
| 561 | '\'' sh |
| 562 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 563 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | |
| 566 | # Sed expression to map a string onto a valid CPP name. |
| 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 568 | |
| 569 | # Sed expression to map a string onto a valid variable name. |
| 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 571 | |
| 572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 573 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 574 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 575 | |
| 576 | # Name of the host. |
| 577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 578 | # so uname gets run too. |
| 579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 581 | # |
| 582 | # Initializations. |
| 583 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 584 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 585 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 586 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 587 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 588 | cross_compiling=no |
| 589 | subdirs= |
| 590 | MFLAGS= |
| 591 | MAKEFLAGS= |
| 592 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 594 | # Identity of this package. |
| 595 | PACKAGE_NAME= |
| 596 | PACKAGE_TARNAME= |
| 597 | PACKAGE_VERSION= |
| 598 | PACKAGE_STRING= |
| 599 | PACKAGE_BUGREPORT= |
| 600 | |
| 601 | ac_unique_file="version.h" |
| 602 | # Factoring default headers for most tests. |
| 603 | ac_includes_default="\ |
| 604 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 605 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 606 | # include <sys/types.h> |
| 607 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 608 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 609 | # include <sys/stat.h> |
| 610 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 611 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 612 | # include <stdlib.h> |
| 613 | # include <stddef.h> |
| 614 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 616 | # include <stdlib.h> |
| 617 | # endif |
| 618 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 619 | #ifdef HAVE_STRING_H |
| 620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 621 | # include <memory.h> |
| 622 | # endif |
| 623 | # include <string.h> |
| 624 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 625 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 626 | # include <strings.h> |
| 627 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 628 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 629 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 630 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 631 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 632 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 633 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 634 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 635 | # include <unistd.h> |
| 636 | #endif" |
| 637 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 638 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 639 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 640 | BUILD_LDFLAGS |
| 641 | BUILD_CFLAGS |
| 642 | INTL_FLAGS |
| 643 | DO_TEST_SUITE |
| 644 | ET_DIR |
| 645 | SS_DIR |
| 646 | LDFLAG_STATIC |
| 647 | root_sysconfdir |
| 648 | root_libdir |
| 649 | root_sbindir |
| 650 | root_bindir |
| 651 | root_prefix |
| 652 | UNIX_CMT |
| 653 | CYGWIN_CMT |
| 654 | LINUX_CMT |
| 655 | UNI_DIFF_OPTS |
| 656 | SEM_INIT_LIB |
| 657 | DLOPEN_LIB |
| 658 | SOCKET_LIB |
| 659 | SIZEOF_LONG_LONG |
| 660 | SIZEOF_LONG |
| 661 | SIZEOF_INT |
| 662 | SIZEOF_SHORT |
| 663 | BUILD_CC |
| 664 | MAKEINFO |
| 665 | STRIP |
| 666 | AR |
| 667 | LDCONFIG |
| 668 | PERL |
| 669 | SED |
| 670 | AWK |
| 671 | CHMOD |
| 672 | RM |
| 673 | CP |
| 674 | MV |
| 675 | LN_S |
| 676 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 677 | ifNotGNUmake |
| 678 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 679 | BINARY_TYPE |
| 680 | POSUB |
| 681 | LTLIBINTL |
| 682 | LIBINTL |
| 683 | INTLLIBS |
| 684 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 685 | INTLOBJS |
| 686 | GENCAT |
| 687 | INSTOBJEXT |
| 688 | DATADIRNAME |
| 689 | CATOBJEXT |
| 690 | USE_INCLUDED_LIBINTL |
| 691 | BUILD_INCLUDED_LIBINTL |
| 692 | INTLBISON |
| 693 | LTLIBICONV |
| 694 | LIBICONV |
| 695 | HAVE_WPRINTF |
| 696 | HAVE_SNPRINTF |
| 697 | HAVE_ASPRINTF |
| 698 | HAVE_POSIX_PRINTF |
| 699 | GLIBC21 |
| 700 | ALLOCA |
| 701 | RANLIB |
| 702 | MSGMERGE |
| 703 | XGETTEXT |
| 704 | GMSGFMT |
| 705 | MSGFMT |
| 706 | USE_NLS |
| 707 | MKINSTALLDIRS |
| 708 | INSTALL_DATA |
| 709 | INSTALL_SCRIPT |
| 710 | INSTALL_PROGRAM |
| 711 | SET_MAKE |
| 712 | VERSION |
| 713 | PACKAGE |
| 714 | GETTEXT_PACKAGE |
| 715 | UUIDD_CMT |
| 716 | E2INITRD_MAN |
| 717 | E2INITRD_PROG |
| 718 | FSCK_MAN |
| 719 | FSCK_PROG |
| 720 | RESIZER_CMT |
| 721 | IMAGER_CMT |
| 722 | DEBUGFS_CMT |
| 723 | BLKID_CMT |
| 724 | DEPPROFILED_LIBBLKID |
| 725 | PROFILED_LIBBLKID |
| 726 | DEPSTATIC_LIBBLKID |
| 727 | STATIC_LIBBLKID |
| 728 | DEPLIBBLKID |
| 729 | LIBBLKID |
| 730 | UUID_CMT |
| 731 | DEPPROFILED_LIBUUID |
| 732 | PROFILED_LIBUUID |
| 733 | DEPSTATIC_LIBUUID |
| 734 | STATIC_LIBUUID |
| 735 | DEPLIBUUID |
| 736 | LIBUUID |
| 737 | PKG_CONFIG |
| 738 | TEST_IO_CMT |
| 739 | PRIVATE_LIBS_CMT |
| 740 | LDFLAG_DYNAMIC |
| 741 | PROFILED_LIB_EXT |
| 742 | STATIC_LIB_EXT |
| 743 | LIB_EXT |
| 744 | CHECKER_CMT |
| 745 | PROFILE_CMT |
| 746 | BSDLIB_CMT |
| 747 | ELF_CMT |
| 748 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 749 | Q |
| 750 | E |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 751 | MAINTAINER_CMT |
| 752 | LINUX_INCLUDE |
| 753 | EGREP |
| 754 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 755 | CPP |
| 756 | OBJEXT |
| 757 | EXEEXT |
| 758 | ac_ct_CC |
| 759 | CPPFLAGS |
| 760 | LDFLAGS |
| 761 | CFLAGS |
| 762 | CC |
| 763 | host_os |
| 764 | host_vendor |
| 765 | host_cpu |
| 766 | host |
| 767 | build_os |
| 768 | build_vendor |
| 769 | build_cpu |
| 770 | build |
| 771 | E2FSPROGS_PKGVER |
| 772 | E2FSPROGS_VERSION |
| 773 | E2FSPROGS_DAY |
| 774 | E2FSPROGS_MONTH |
| 775 | E2FSPROGS_YEAR |
| 776 | target_alias |
| 777 | host_alias |
| 778 | build_alias |
| 779 | LIBS |
| 780 | ECHO_T |
| 781 | ECHO_N |
| 782 | ECHO_C |
| 783 | DEFS |
| 784 | mandir |
| 785 | localedir |
| 786 | libdir |
| 787 | psdir |
| 788 | pdfdir |
| 789 | dvidir |
| 790 | htmldir |
| 791 | infodir |
| 792 | docdir |
| 793 | oldincludedir |
| 794 | includedir |
| 795 | localstatedir |
| 796 | sharedstatedir |
| 797 | sysconfdir |
| 798 | datadir |
| 799 | datarootdir |
| 800 | libexecdir |
| 801 | sbindir |
| 802 | bindir |
| 803 | program_transform_name |
| 804 | prefix |
| 805 | exec_prefix |
| 806 | PACKAGE_BUGREPORT |
| 807 | PACKAGE_STRING |
| 808 | PACKAGE_VERSION |
| 809 | PACKAGE_TARNAME |
| 810 | PACKAGE_NAME |
| 811 | PATH_SEPARATOR |
| 812 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 813 | ac_subst_files='MCONFIG |
| 814 | MAKEFILE_ELF |
| 815 | MAKEFILE_BSDLIB |
| 816 | MAKEFILE_PROFILE |
| 817 | MAKEFILE_CHECKER |
| 818 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 819 | ASM_TYPES_HEADER |
| 820 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 821 | ac_user_opts=' |
| 822 | enable_option_checking |
| 823 | with_diet_libc |
| 824 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 825 | with_ccopts |
| 826 | with_ldopts |
| 827 | with_root_prefix |
| 828 | enable_maintainer_mode |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 829 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 830 | enable_compression |
| 831 | enable_htree |
| 832 | enable_elf_shlibs |
| 833 | enable_bsd_shlibs |
| 834 | enable_profile |
| 835 | enable_checker |
| 836 | enable_jbd_debug |
| 837 | enable_blkid_debug |
| 838 | enable_testio_debug |
| 839 | enable_libuuid |
| 840 | enable_libblkid |
| 841 | enable_debugfs |
| 842 | enable_imager |
| 843 | enable_resizer |
| 844 | enable_fsck |
| 845 | enable_e2initrd_helper |
| 846 | enable_tls |
| 847 | enable_uuidd |
| 848 | enable_nls |
| 849 | with_gnu_ld |
| 850 | enable_rpath |
| 851 | with_libiconv_prefix |
| 852 | with_included_gettext |
| 853 | with_libintl_prefix |
| 854 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 855 | ac_precious_vars='build_alias |
| 856 | host_alias |
| 857 | target_alias |
| 858 | CC |
| 859 | CFLAGS |
| 860 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 861 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 862 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 863 | CPP |
| 864 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 865 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 866 | |
| 867 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 868 | ac_init_help= |
| 869 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 870 | ac_unrecognized_opts= |
| 871 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 872 | # The variables have the same names as the options, with |
| 873 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 874 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 875 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 876 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 877 | no_recursion= |
| 878 | prefix=NONE |
| 879 | program_prefix=NONE |
| 880 | program_suffix=NONE |
| 881 | program_transform_name=s,x,x, |
| 882 | silent= |
| 883 | site= |
| 884 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 885 | verbose= |
| 886 | x_includes=NONE |
| 887 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 888 | |
| 889 | # Installation directory options. |
| 890 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 891 | # and all the variables that are supposed to be based on exec_prefix |
| 892 | # by default will actually change. |
| 893 | # 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] | 894 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 895 | bindir='${exec_prefix}/bin' |
| 896 | sbindir='${exec_prefix}/sbin' |
| 897 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 898 | datarootdir='${prefix}/share' |
| 899 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 900 | sysconfdir='${prefix}/etc' |
| 901 | sharedstatedir='${prefix}/com' |
| 902 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 903 | includedir='${prefix}/include' |
| 904 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 905 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 906 | infodir='${datarootdir}/info' |
| 907 | htmldir='${docdir}' |
| 908 | dvidir='${docdir}' |
| 909 | pdfdir='${docdir}' |
| 910 | psdir='${docdir}' |
| 911 | libdir='${exec_prefix}/lib' |
| 912 | localedir='${datarootdir}/locale' |
| 913 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 916 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 917 | for ac_option |
| 918 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | # If the previous option needs an argument, assign it. |
| 920 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 921 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | ac_prev= |
| 923 | continue |
| 924 | fi |
| 925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 926 | case $ac_option in |
| 927 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 928 | *) ac_optarg=yes ;; |
| 929 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 930 | |
| 931 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 933 | case $ac_dashdash$ac_option in |
| 934 | --) |
| 935 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 936 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 937 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 938 | ac_prev=bindir ;; |
| 939 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 940 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 941 | |
| 942 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 943 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 944 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 945 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 946 | |
| 947 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 948 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 949 | ac_prev=cache_file ;; |
| 950 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 951 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 952 | cache_file=$ac_optarg ;; |
| 953 | |
| 954 | --config-cache | -C) |
| 955 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 957 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 958 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 959 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 960 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 962 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 963 | | --dataroo | --dataro | --datar) |
| 964 | ac_prev=datarootdir ;; |
| 965 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 966 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 967 | datarootdir=$ac_optarg ;; |
| 968 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 969 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 970 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 971 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 973 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 974 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 975 | ac_useropt_orig=$ac_useropt |
| 976 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 977 | case $ac_user_opts in |
| 978 | *" |
| 979 | "enable_$ac_useropt" |
| 980 | "*) ;; |
| 981 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 982 | ac_unrecognized_sep=', ';; |
| 983 | esac |
| 984 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 985 | |
| 986 | -docdir | --docdir | --docdi | --doc | --do) |
| 987 | ac_prev=docdir ;; |
| 988 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 989 | docdir=$ac_optarg ;; |
| 990 | |
| 991 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 992 | ac_prev=dvidir ;; |
| 993 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 994 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | |
| 996 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 997 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 998 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 999 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1000 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1001 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1002 | ac_useropt_orig=$ac_useropt |
| 1003 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1004 | case $ac_user_opts in |
| 1005 | *" |
| 1006 | "enable_$ac_useropt" |
| 1007 | "*) ;; |
| 1008 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1009 | ac_unrecognized_sep=', ';; |
| 1010 | esac |
| 1011 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1012 | |
| 1013 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1014 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1015 | | --exec | --exe | --ex) |
| 1016 | ac_prev=exec_prefix ;; |
| 1017 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1018 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1019 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1020 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1021 | |
| 1022 | -gas | --gas | --ga | --g) |
| 1023 | # Obsolete; use --with-gas. |
| 1024 | with_gas=yes ;; |
| 1025 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1026 | -help | --help | --hel | --he | -h) |
| 1027 | ac_init_help=long ;; |
| 1028 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1029 | ac_init_help=recursive ;; |
| 1030 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1031 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1032 | |
| 1033 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1034 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1035 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1036 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1038 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1039 | ac_prev=htmldir ;; |
| 1040 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1041 | | --ht=*) |
| 1042 | htmldir=$ac_optarg ;; |
| 1043 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1044 | -includedir | --includedir | --includedi | --included | --include \ |
| 1045 | | --includ | --inclu | --incl | --inc) |
| 1046 | ac_prev=includedir ;; |
| 1047 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1048 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1049 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1050 | |
| 1051 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1052 | ac_prev=infodir ;; |
| 1053 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1054 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1055 | |
| 1056 | -libdir | --libdir | --libdi | --libd) |
| 1057 | ac_prev=libdir ;; |
| 1058 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1059 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1060 | |
| 1061 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1062 | | --libexe | --libex | --libe) |
| 1063 | ac_prev=libexecdir ;; |
| 1064 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1065 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1066 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1068 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1069 | ac_prev=localedir ;; |
| 1070 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1071 | localedir=$ac_optarg ;; |
| 1072 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1073 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1074 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1075 | ac_prev=localstatedir ;; |
| 1076 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1077 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1078 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1079 | |
| 1080 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1081 | ac_prev=mandir ;; |
| 1082 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1083 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1084 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1085 | -nfp | --nfp | --nf) |
| 1086 | # Obsolete; use --without-fp. |
| 1087 | with_fp=no ;; |
| 1088 | |
| 1089 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1090 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1091 | no_create=yes ;; |
| 1092 | |
| 1093 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1094 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1095 | no_recursion=yes ;; |
| 1096 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1097 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1098 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1099 | | --oldin | --oldi | --old | --ol | --o) |
| 1100 | ac_prev=oldincludedir ;; |
| 1101 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1102 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1103 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1104 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1105 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1106 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1107 | ac_prev=prefix ;; |
| 1108 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1109 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | |
| 1111 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1112 | | --program-pre | --program-pr | --program-p) |
| 1113 | ac_prev=program_prefix ;; |
| 1114 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1115 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1116 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1117 | |
| 1118 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1119 | | --program-suf | --program-su | --program-s) |
| 1120 | ac_prev=program_suffix ;; |
| 1121 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1122 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1123 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1124 | |
| 1125 | -program-transform-name | --program-transform-name \ |
| 1126 | | --program-transform-nam | --program-transform-na \ |
| 1127 | | --program-transform-n | --program-transform- \ |
| 1128 | | --program-transform | --program-transfor \ |
| 1129 | | --program-transfo | --program-transf \ |
| 1130 | | --program-trans | --program-tran \ |
| 1131 | | --progr-tra | --program-tr | --program-t) |
| 1132 | ac_prev=program_transform_name ;; |
| 1133 | -program-transform-name=* | --program-transform-name=* \ |
| 1134 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1135 | | --program-transform-n=* | --program-transform-=* \ |
| 1136 | | --program-transform=* | --program-transfor=* \ |
| 1137 | | --program-transfo=* | --program-transf=* \ |
| 1138 | | --program-trans=* | --program-tran=* \ |
| 1139 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1140 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1141 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1142 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1143 | ac_prev=pdfdir ;; |
| 1144 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1145 | pdfdir=$ac_optarg ;; |
| 1146 | |
| 1147 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1148 | ac_prev=psdir ;; |
| 1149 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1150 | psdir=$ac_optarg ;; |
| 1151 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1152 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1153 | | -silent | --silent | --silen | --sile | --sil) |
| 1154 | silent=yes ;; |
| 1155 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1156 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1157 | ac_prev=sbindir ;; |
| 1158 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1159 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1160 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1161 | |
| 1162 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1163 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1164 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1165 | | --sha | --sh) |
| 1166 | ac_prev=sharedstatedir ;; |
| 1167 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1168 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1169 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1170 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1171 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1172 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1173 | -site | --site | --sit) |
| 1174 | ac_prev=site ;; |
| 1175 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1176 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1177 | |
| 1178 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1179 | ac_prev=srcdir ;; |
| 1180 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1181 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1182 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1183 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1184 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1185 | ac_prev=sysconfdir ;; |
| 1186 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1187 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1188 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1189 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1191 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1193 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1194 | |
| 1195 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1196 | verbose=yes ;; |
| 1197 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1198 | -version | --version | --versio | --versi | --vers | -V) |
| 1199 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1200 | |
| 1201 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1202 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1203 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1205 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1206 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1207 | ac_useropt_orig=$ac_useropt |
| 1208 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1209 | case $ac_user_opts in |
| 1210 | *" |
| 1211 | "with_$ac_useropt" |
| 1212 | "*) ;; |
| 1213 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1214 | ac_unrecognized_sep=', ';; |
| 1215 | esac |
| 1216 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1217 | |
| 1218 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1219 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1220 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1221 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1222 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1223 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1224 | ac_useropt_orig=$ac_useropt |
| 1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1226 | case $ac_user_opts in |
| 1227 | *" |
| 1228 | "with_$ac_useropt" |
| 1229 | "*) ;; |
| 1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1231 | ac_unrecognized_sep=', ';; |
| 1232 | esac |
| 1233 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1234 | |
| 1235 | --x) |
| 1236 | # Obsolete; use --with-x. |
| 1237 | with_x=yes ;; |
| 1238 | |
| 1239 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1240 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1241 | ac_prev=x_includes ;; |
| 1242 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1243 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1244 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1245 | |
| 1246 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1247 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1248 | ac_prev=x_libraries ;; |
| 1249 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1250 | | --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] | 1251 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1253 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1254 | Try \`$0 --help' for more information." >&2 |
| 1255 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1256 | ;; |
| 1257 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1258 | *=*) |
| 1259 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1260 | # Reject names that are not valid shell variable names. |
| 1261 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1262 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1263 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1264 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1265 | export $ac_envvar ;; |
| 1266 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1267 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1268 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1269 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1270 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1271 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1272 | : ${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] | 1273 | ;; |
| 1274 | |
| 1275 | esac |
| 1276 | done |
| 1277 | |
| 1278 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1279 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1280 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1281 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1282 | fi |
| 1283 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1284 | if test -n "$ac_unrecognized_opts"; then |
| 1285 | case $enable_option_checking in |
| 1286 | no) ;; |
| 1287 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1288 | { (exit 1); exit 1; }; } ;; |
| 1289 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1290 | esac |
| 1291 | fi |
| 1292 | |
| 1293 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1294 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1295 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1296 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1297 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1299 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1300 | # Remove trailing slashes. |
| 1301 | case $ac_val in |
| 1302 | */ ) |
| 1303 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1304 | eval $ac_var=\$ac_val;; |
| 1305 | esac |
| 1306 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1307 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1308 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1309 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1310 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1311 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1312 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1313 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1314 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | # There might be people who depend on the old broken behavior: `$host' |
| 1316 | # used to hold the argument of --host etc. |
| 1317 | # FIXME: To remove some day. |
| 1318 | build=$build_alias |
| 1319 | host=$host_alias |
| 1320 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1321 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1322 | # FIXME: To remove some day. |
| 1323 | if test "x$host_alias" != x; then |
| 1324 | if test "x$build_alias" = x; then |
| 1325 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1326 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1327 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1328 | elif test "x$build_alias" != "x$host_alias"; then |
| 1329 | cross_compiling=yes |
| 1330 | fi |
| 1331 | fi |
| 1332 | |
| 1333 | ac_tool_prefix= |
| 1334 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1335 | |
| 1336 | test "$silent" = yes && exec 6>/dev/null |
| 1337 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1338 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1339 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1340 | ac_ls_di=`ls -di .` && |
| 1341 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1342 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1343 | { (exit 1); exit 1; }; } |
| 1344 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1345 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1346 | { (exit 1); exit 1; }; } |
| 1347 | |
| 1348 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1349 | # Find the source files, if location was not specified. |
| 1350 | if test -z "$srcdir"; then |
| 1351 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1352 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1353 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1354 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1355 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1356 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1357 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1358 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1360 | s//\1/ |
| 1361 | q |
| 1362 | } |
| 1363 | /^X\(\/\/\)[^/].*/{ |
| 1364 | s//\1/ |
| 1365 | q |
| 1366 | } |
| 1367 | /^X\(\/\/\)$/{ |
| 1368 | s//\1/ |
| 1369 | q |
| 1370 | } |
| 1371 | /^X\(\/\).*/{ |
| 1372 | s//\1/ |
| 1373 | q |
| 1374 | } |
| 1375 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1376 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1377 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1378 | srcdir=.. |
| 1379 | fi |
| 1380 | else |
| 1381 | ac_srcdir_defaulted=no |
| 1382 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1383 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1384 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1385 | { $as_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] | 1386 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1387 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1388 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1389 | ac_abs_confdir=`( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1390 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1391 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1392 | pwd)` |
| 1393 | # When building in place, set srcdir=. |
| 1394 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1395 | srcdir=. |
| 1396 | fi |
| 1397 | # Remove unnecessary trailing slashes from srcdir. |
| 1398 | # Double slashes in file names in object file debugging info |
| 1399 | # mess up M-x gdb in Emacs. |
| 1400 | case $srcdir in |
| 1401 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1402 | esac |
| 1403 | for ac_var in $ac_precious_vars; do |
| 1404 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1405 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1406 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1407 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1408 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1409 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1410 | # |
| 1411 | # Report the --help message. |
| 1412 | # |
| 1413 | if test "$ac_init_help" = "long"; then |
| 1414 | # Omit some internal or obsolete options to make the list less imposing. |
| 1415 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1416 | cat <<_ACEOF |
| 1417 | \`configure' configures this package to adapt to many kinds of systems. |
| 1418 | |
| 1419 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1420 | |
| 1421 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1422 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1423 | |
| 1424 | Defaults for the options are specified in brackets. |
| 1425 | |
| 1426 | Configuration: |
| 1427 | -h, --help display this help and exit |
| 1428 | --help=short display options specific to this package |
| 1429 | --help=recursive display the short help of all the included packages |
| 1430 | -V, --version display version information and exit |
| 1431 | -q, --quiet, --silent do not print \`checking...' messages |
| 1432 | --cache-file=FILE cache test results in FILE [disabled] |
| 1433 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1434 | -n, --no-create do not create output files |
| 1435 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1436 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | Installation directories: |
| 1438 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1439 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1440 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1441 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1442 | |
| 1443 | By default, \`make install' will install all the files in |
| 1444 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1445 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1446 | for instance \`--prefix=\$HOME'. |
| 1447 | |
| 1448 | For better control, use the options below. |
| 1449 | |
| 1450 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1451 | --bindir=DIR user executables [EPREFIX/bin] |
| 1452 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1453 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1454 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1455 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1456 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1457 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1458 | --includedir=DIR C header files [PREFIX/include] |
| 1459 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1460 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1461 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1462 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1463 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1464 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1465 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1466 | --htmldir=DIR html documentation [DOCDIR] |
| 1467 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1468 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1469 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | _ACEOF |
| 1471 | |
| 1472 | cat <<\_ACEOF |
| 1473 | |
| 1474 | System types: |
| 1475 | --build=BUILD configure for building on BUILD [guessed] |
| 1476 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1477 | _ACEOF |
| 1478 | fi |
| 1479 | |
| 1480 | if test -n "$ac_init_help"; then |
| 1481 | |
| 1482 | cat <<\_ACEOF |
| 1483 | |
| 1484 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1485 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1486 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1487 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1488 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 1489 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1490 | --enable-compression enable EXPERIMENTAL compression support |
| 1491 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | --enable-elf-shlibs select ELF shared libraries |
| 1493 | --enable-bsd-shlibs select BSD shared libraries |
| 1494 | --enable-profile build profiling libraries |
| 1495 | --enable-checker build checker libraries |
| 1496 | --enable-jbd-debug enable journal debugging |
| 1497 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1498 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1499 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1500 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1501 | --disable-debugfs disable support of debugfs program |
| 1502 | --disable-imager disable support of e2image program |
| 1503 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1504 | --enable-fsck build fsck wrapper program |
| 1505 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1506 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1507 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1508 | --disable-nls do not use Native Language Support |
| 1509 | --disable-rpath do not hardcode runtime library paths |
| 1510 | |
| 1511 | Optional Packages: |
| 1512 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1513 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1514 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame^] | 1515 | --with-cc no longer supported, use CC= instead |
| 1516 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1517 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1518 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1519 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1520 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1521 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1522 | --with-included-gettext use the GNU gettext library included here |
| 1523 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1524 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1525 | |
| 1526 | Some influential environment variables: |
| 1527 | CC C compiler command |
| 1528 | CFLAGS C compiler flags |
| 1529 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1530 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1531 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1532 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1533 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1534 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1535 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1536 | |
| 1537 | Use these variables to override the choices made by `configure' or to help |
| 1538 | it to find libraries and programs with nonstandard names/locations. |
| 1539 | |
| 1540 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1541 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | fi |
| 1543 | |
| 1544 | if test "$ac_init_help" = "recursive"; then |
| 1545 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1547 | test -d "$ac_dir" || |
| 1548 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1549 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1550 | ac_builddir=. |
| 1551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1552 | case "$ac_dir" in |
| 1553 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1554 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1555 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1556 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1557 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1558 | case $ac_top_builddir_sub in |
| 1559 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1560 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1561 | esac ;; |
| 1562 | esac |
| 1563 | ac_abs_top_builddir=$ac_pwd |
| 1564 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1565 | # for backward compatibility: |
| 1566 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1567 | |
| 1568 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1569 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1570 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1571 | ac_top_srcdir=$ac_top_builddir_sub |
| 1572 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1573 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1575 | ac_top_srcdir=$srcdir |
| 1576 | ac_abs_top_srcdir=$srcdir ;; |
| 1577 | *) # Relative name. |
| 1578 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1579 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1580 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1581 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1582 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1584 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1585 | # Check for guested configure. |
| 1586 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1587 | echo && |
| 1588 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1589 | elif test -f "$ac_srcdir/configure"; then |
| 1590 | echo && |
| 1591 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1592 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1593 | $as_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] | 1594 | fi || ac_status=$? |
| 1595 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1596 | done |
| 1597 | fi |
| 1598 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1599 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1600 | if $ac_init_version; then |
| 1601 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1602 | configure |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1603 | generated by GNU Autoconf 2.63 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1604 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1605 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1606 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1607 | This configure script is free software; the Free Software Foundation |
| 1608 | gives unlimited permission to copy, distribute and modify it. |
| 1609 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1610 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1612 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1613 | This file contains any messages produced by compilers while |
| 1614 | running configure, to aid debugging if configure makes a mistake. |
| 1615 | |
| 1616 | It was created by $as_me, which was |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1617 | generated by GNU Autoconf 2.63. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1618 | |
| 1619 | $ $0 $@ |
| 1620 | |
| 1621 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1622 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1623 | { |
| 1624 | cat <<_ASUNAME |
| 1625 | ## --------- ## |
| 1626 | ## Platform. ## |
| 1627 | ## --------- ## |
| 1628 | |
| 1629 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1630 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1631 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1632 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1633 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1634 | |
| 1635 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1636 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1637 | |
| 1638 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1639 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1640 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1641 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1642 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1643 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1644 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1645 | |
| 1646 | _ASUNAME |
| 1647 | |
| 1648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1649 | for as_dir in $PATH |
| 1650 | do |
| 1651 | IFS=$as_save_IFS |
| 1652 | test -z "$as_dir" && as_dir=. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1653 | $as_echo "PATH: $as_dir" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1654 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1655 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1656 | |
| 1657 | } >&5 |
| 1658 | |
| 1659 | cat >&5 <<_ACEOF |
| 1660 | |
| 1661 | |
| 1662 | ## ----------- ## |
| 1663 | ## Core tests. ## |
| 1664 | ## ----------- ## |
| 1665 | |
| 1666 | _ACEOF |
| 1667 | |
| 1668 | |
| 1669 | # Keep a trace of the command line. |
| 1670 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1671 | # Strip out --silent because we don't want to record it for future runs. |
| 1672 | # Also quote any args containing shell meta-characters. |
| 1673 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1674 | ac_configure_args= |
| 1675 | ac_configure_args0= |
| 1676 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1677 | ac_must_keep_next=false |
| 1678 | for ac_pass in 1 2 |
| 1679 | do |
| 1680 | for ac_arg |
| 1681 | do |
| 1682 | case $ac_arg in |
| 1683 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1684 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1685 | | -silent | --silent | --silen | --sile | --sil) |
| 1686 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1687 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1688 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1689 | esac |
| 1690 | case $ac_pass in |
| 1691 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1692 | 2) |
| 1693 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1694 | if test $ac_must_keep_next = true; then |
| 1695 | ac_must_keep_next=false # Got value, back to normal. |
| 1696 | else |
| 1697 | case $ac_arg in |
| 1698 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1699 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1700 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1701 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1702 | case "$ac_configure_args0 " in |
| 1703 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1704 | esac |
| 1705 | ;; |
| 1706 | -* ) ac_must_keep_next=true ;; |
| 1707 | esac |
| 1708 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1709 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1710 | ;; |
| 1711 | esac |
| 1712 | done |
| 1713 | done |
| 1714 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1715 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1716 | |
| 1717 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1718 | # config.log. We remove comments because anyway the quotes in there |
| 1719 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1720 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1721 | # 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] | 1722 | trap 'exit_status=$? |
| 1723 | # Save into config.log some information that might help in debugging. |
| 1724 | { |
| 1725 | echo |
| 1726 | |
| 1727 | cat <<\_ASBOX |
| 1728 | ## ---------------- ## |
| 1729 | ## Cache variables. ## |
| 1730 | ## ---------------- ## |
| 1731 | _ASBOX |
| 1732 | echo |
| 1733 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1734 | ( |
| 1735 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1736 | eval ac_val=\$$ac_var |
| 1737 | case $ac_val in #( |
| 1738 | *${as_nl}*) |
| 1739 | case $ac_var in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1740 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1741 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1742 | esac |
| 1743 | case $ac_var in #( |
| 1744 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1745 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1746 | *) $as_unset $ac_var ;; |
| 1747 | esac ;; |
| 1748 | esac |
| 1749 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1750 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1751 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1752 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1753 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1754 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1755 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1756 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1757 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1758 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1759 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1760 | esac | |
| 1761 | sort |
| 1762 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1763 | echo |
| 1764 | |
| 1765 | cat <<\_ASBOX |
| 1766 | ## ----------------- ## |
| 1767 | ## Output variables. ## |
| 1768 | ## ----------------- ## |
| 1769 | _ASBOX |
| 1770 | echo |
| 1771 | for ac_var in $ac_subst_vars |
| 1772 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1773 | eval ac_val=\$$ac_var |
| 1774 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1775 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1776 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1777 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1778 | done | sort |
| 1779 | echo |
| 1780 | |
| 1781 | if test -n "$ac_subst_files"; then |
| 1782 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1783 | ## ------------------- ## |
| 1784 | ## File substitutions. ## |
| 1785 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1786 | _ASBOX |
| 1787 | echo |
| 1788 | for ac_var in $ac_subst_files |
| 1789 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1790 | eval ac_val=\$$ac_var |
| 1791 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1792 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1793 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1794 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1795 | done | sort |
| 1796 | echo |
| 1797 | fi |
| 1798 | |
| 1799 | if test -s confdefs.h; then |
| 1800 | cat <<\_ASBOX |
| 1801 | ## ----------- ## |
| 1802 | ## confdefs.h. ## |
| 1803 | ## ----------- ## |
| 1804 | _ASBOX |
| 1805 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1806 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1807 | echo |
| 1808 | fi |
| 1809 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1810 | $as_echo "$as_me: caught signal $ac_signal" |
| 1811 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1812 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1813 | rm -f core *.core core.conftest.* && |
| 1814 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1815 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1816 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1817 | for ac_signal in 1 2 13 15; do |
| 1818 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1819 | done |
| 1820 | ac_signal=0 |
| 1821 | |
| 1822 | # 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] | 1823 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1824 | |
| 1825 | # Predefined preprocessor variables. |
| 1826 | |
| 1827 | cat >>confdefs.h <<_ACEOF |
| 1828 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1829 | _ACEOF |
| 1830 | |
| 1831 | |
| 1832 | cat >>confdefs.h <<_ACEOF |
| 1833 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1834 | _ACEOF |
| 1835 | |
| 1836 | |
| 1837 | cat >>confdefs.h <<_ACEOF |
| 1838 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1839 | _ACEOF |
| 1840 | |
| 1841 | |
| 1842 | cat >>confdefs.h <<_ACEOF |
| 1843 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1844 | _ACEOF |
| 1845 | |
| 1846 | |
| 1847 | cat >>confdefs.h <<_ACEOF |
| 1848 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1849 | _ACEOF |
| 1850 | |
| 1851 | |
| 1852 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1853 | # Prefer an explicitly selected file to automatically selected ones. |
| 1854 | ac_site_file1=NONE |
| 1855 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1856 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1857 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1858 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1859 | ac_site_file1=$prefix/share/config.site |
| 1860 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1861 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1862 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1863 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1864 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1865 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1866 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1867 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1868 | if test -r "$ac_site_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1869 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1870 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1871 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1872 | . "$ac_site_file" |
| 1873 | fi |
| 1874 | done |
| 1875 | |
| 1876 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1877 | # Some versions of bash will fail to source /dev/null (special |
| 1878 | # files actually), so we avoid doing that. |
| 1879 | if test -f "$cache_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1880 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1881 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1882 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1883 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1884 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1885 | esac |
| 1886 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1887 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1888 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1889 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1890 | >$cache_file |
| 1891 | fi |
| 1892 | |
| 1893 | # Check that the precious variables saved in the cache have kept the same |
| 1894 | # value. |
| 1895 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1896 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1897 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1898 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1899 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1900 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1901 | case $ac_old_set,$ac_new_set in |
| 1902 | set,) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1903 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1904 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1905 | ac_cache_corrupted=: ;; |
| 1906 | ,set) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1907 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1908 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1909 | ac_cache_corrupted=: ;; |
| 1910 | ,);; |
| 1911 | *) |
| 1912 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1913 | # differences in whitespace do not lead to failure. |
| 1914 | ac_old_val_w=`echo x $ac_old_val` |
| 1915 | ac_new_val_w=`echo x $ac_new_val` |
| 1916 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1917 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1918 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1919 | ac_cache_corrupted=: |
| 1920 | else |
| 1921 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1922 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1923 | eval $ac_var=\$ac_old_val |
| 1924 | fi |
| 1925 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1926 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1927 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1928 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1929 | fi;; |
| 1930 | esac |
| 1931 | # Pass precious variables to config.status. |
| 1932 | if test "$ac_new_set" = set; then |
| 1933 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1934 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1935 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1936 | esac |
| 1937 | case " $ac_configure_args " in |
| 1938 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1939 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1940 | esac |
| 1941 | fi |
| 1942 | done |
| 1943 | if $ac_cache_corrupted; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1944 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1945 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1946 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1947 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1948 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1949 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1950 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1951 | fi |
| 1952 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | |
| 1966 | |
| 1967 | |
| 1968 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1969 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1970 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1974 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1975 | |
| 1976 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1977 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1978 | for ac_dir in config "$srcdir"/config; do |
| 1979 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1980 | ac_aux_dir=$ac_dir |
| 1981 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1982 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1983 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1984 | ac_aux_dir=$ac_dir |
| 1985 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1986 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1987 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1988 | ac_aux_dir=$ac_dir |
| 1989 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1990 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1991 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1992 | done |
| 1993 | if test -z "$ac_aux_dir"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1994 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1995 | $as_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] | 1996 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1997 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1998 | |
| 1999 | # These three variables are undocumented and unsupported, |
| 2000 | # and are intended to be withdrawn in a future Autoconf release. |
| 2001 | # They can cause serious problems if a builder's source tree is in a directory |
| 2002 | # whose full name contains unusual characters. |
| 2003 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2004 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2005 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2006 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2007 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2008 | MCONFIG=./MCONFIG |
| 2009 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2010 | BINARY_TYPE=bin |
| 2011 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2012 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2013 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2014 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2015 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2016 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2017 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2018 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2019 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2020 | E2FSPROGS_YEAR=$YEAR |
| 2021 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2022 | E2FSPROGS_YEAR=19$YEAR |
| 2023 | else |
| 2024 | E2FSPROGS_YEAR=20$YEAR |
| 2025 | fi |
| 2026 | |
| 2027 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2028 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2029 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2030 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2031 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2032 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2033 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2034 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2035 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2036 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2037 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2038 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2039 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2040 | *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
| 2041 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2042 | esac |
| 2043 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2044 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2045 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2046 | |
| 2047 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2048 | |
| 2049 | case $E2FSPROGS_VERSION in |
| 2050 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2051 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2052 | ;; |
| 2053 | *) |
| 2054 | E2FSPROGS_PKGVER="$base_ver" |
| 2055 | ;; |
| 2056 | esac |
| 2057 | |
| 2058 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2059 | { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
| 2060 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
| 2061 | { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
| 2062 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2063 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2064 | |
| 2065 | |
| 2066 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2067 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2068 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2069 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2070 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2071 | $as_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] | 2072 | { (exit 1); exit 1; }; } |
| 2073 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2074 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
| 2075 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2076 | if test "${ac_cv_build+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2077 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2078 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2079 | ac_build_alias=$build_alias |
| 2080 | test "x$ac_build_alias" = x && |
| 2081 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2082 | test "x$ac_build_alias" = x && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2083 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2084 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2085 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2086 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2087 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2088 | $as_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] | 2089 | { (exit 1); exit 1; }; } |
| 2090 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2091 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2093 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2094 | case $ac_cv_build in |
| 2095 | *-*-*) ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2096 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2097 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2098 | { (exit 1); exit 1; }; };; |
| 2099 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2100 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2101 | ac_save_IFS=$IFS; IFS='-' |
| 2102 | set x $ac_cv_build |
| 2103 | shift |
| 2104 | build_cpu=$1 |
| 2105 | build_vendor=$2 |
| 2106 | shift; shift |
| 2107 | # Remember, the first character of IFS is used to create $*, |
| 2108 | # except with old shells: |
| 2109 | build_os=$* |
| 2110 | IFS=$ac_save_IFS |
| 2111 | 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] | 2112 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2113 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2114 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 2115 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2116 | if test "${ac_cv_host+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2117 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2118 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2119 | if test "x$host_alias" = x; then |
| 2120 | ac_cv_host=$ac_cv_build |
| 2121 | else |
| 2122 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2123 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2124 | $as_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] | 2125 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2126 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2127 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2128 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2130 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2131 | case $ac_cv_host in |
| 2132 | *-*-*) ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2133 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2134 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2135 | { (exit 1); exit 1; }; };; |
| 2136 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2137 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2138 | ac_save_IFS=$IFS; IFS='-' |
| 2139 | set x $ac_cv_host |
| 2140 | shift |
| 2141 | host_cpu=$1 |
| 2142 | host_vendor=$2 |
| 2143 | shift; shift |
| 2144 | # Remember, the first character of IFS is used to create $*, |
| 2145 | # except with old shells: |
| 2146 | host_os=$* |
| 2147 | IFS=$ac_save_IFS |
| 2148 | 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] | 2149 | |
| 2150 | |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2151 | WITH_DIET_LIBC= |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2153 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2154 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2155 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2156 | WITH_DIET_LIBC=yes |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2157 | { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2158 | $as_echo "CC=$CC" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2159 | fi |
| 2160 | |
| 2161 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2162 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame^] | 2163 | withval=$with_cc; { { $as_echo "$as_me:$LINENO: error: --with-cc no longer supported; use CC= instead" >&5 |
| 2164 | $as_echo "$as_me: error: --with-cc no longer supported; use CC= instead" >&2;} |
| 2165 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2166 | fi |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame^] | 2167 | |
| 2168 | |
| 2169 | # Check whether --with-ccopts was given. |
| 2170 | if test "${with_ccopts+set}" = set; then |
| 2171 | withval=$with_ccopts; { { $as_echo "$as_me:$LINENO: error: --with-ccopts no longer supported; use CFLAGS= instead" >&5 |
| 2172 | $as_echo "$as_me: error: --with-ccopts no longer supported; use CFLAGS= instead" >&2;} |
| 2173 | { (exit 1); exit 1; }; } |
| 2174 | fi |
| 2175 | |
| 2176 | |
| 2177 | # Check whether --with-ldopts was given. |
| 2178 | if test "${with_ldopts+set}" = set; then |
| 2179 | withval=$with_ldopts; { { $as_echo "$as_me:$LINENO: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&5 |
| 2180 | $as_echo "$as_me: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&2;} |
| 2181 | { (exit 1); exit 1; }; } |
| 2182 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2183 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2184 | ac_ext=c |
| 2185 | ac_cpp='$CPP $CPPFLAGS' |
| 2186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2189 | if test -n "$ac_tool_prefix"; then |
| 2190 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2191 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2192 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2193 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2194 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2195 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2196 | else |
| 2197 | if test -n "$CC"; then |
| 2198 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2199 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2201 | for as_dir in $PATH |
| 2202 | do |
| 2203 | IFS=$as_save_IFS |
| 2204 | test -z "$as_dir" && as_dir=. |
| 2205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2206 | 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] | 2207 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2208 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2209 | break 2 |
| 2210 | fi |
| 2211 | done |
| 2212 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2213 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2214 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 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 | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2218 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2219 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2220 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2221 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2222 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2223 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [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 "$ac_cv_prog_CC"; then |
| 2229 | ac_ct_CC=$CC |
| 2230 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2231 | set dummy gcc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2232 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2233 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2234 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2235 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2236 | else |
| 2237 | if test -n "$ac_ct_CC"; then |
| 2238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2239 | else |
| 2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2241 | for as_dir in $PATH |
| 2242 | do |
| 2243 | IFS=$as_save_IFS |
| 2244 | test -z "$as_dir" && as_dir=. |
| 2245 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2246 | 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] | 2247 | ac_cv_prog_ac_ct_CC="gcc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2248 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2249 | break 2 |
| 2250 | fi |
| 2251 | done |
| 2252 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2253 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2254 | |
| 2255 | fi |
| 2256 | fi |
| 2257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2258 | if test -n "$ac_ct_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2259 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2260 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2261 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2262 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2263 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2264 | fi |
| 2265 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2266 | if test "x$ac_ct_CC" = x; then |
| 2267 | CC="" |
| 2268 | else |
| 2269 | case $cross_compiling:$ac_tool_warned in |
| 2270 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2271 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2272 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2273 | ac_tool_warned=yes ;; |
| 2274 | esac |
| 2275 | CC=$ac_ct_CC |
| 2276 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2277 | else |
| 2278 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2279 | fi |
| 2280 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2281 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2282 | if test -n "$ac_tool_prefix"; then |
| 2283 | # 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] | 2284 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2285 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2286 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2287 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2288 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2289 | else |
| 2290 | if test -n "$CC"; then |
| 2291 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2292 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2294 | for as_dir in $PATH |
| 2295 | do |
| 2296 | IFS=$as_save_IFS |
| 2297 | test -z "$as_dir" && as_dir=. |
| 2298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2299 | 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] | 2300 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2301 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2302 | break 2 |
| 2303 | fi |
| 2304 | done |
| 2305 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2306 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | |
| 2308 | fi |
| 2309 | fi |
| 2310 | CC=$ac_cv_prog_CC |
| 2311 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2312 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2313 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2314 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2315 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2316 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2317 | fi |
| 2318 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2319 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2320 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2321 | fi |
| 2322 | if test -z "$CC"; then |
| 2323 | # Extract the first word of "cc", so it can be a program name with args. |
| 2324 | set dummy cc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2325 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2326 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2327 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2328 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2329 | else |
| 2330 | if test -n "$CC"; then |
| 2331 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2332 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2333 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2335 | for as_dir in $PATH |
| 2336 | do |
| 2337 | IFS=$as_save_IFS |
| 2338 | test -z "$as_dir" && as_dir=. |
| 2339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2340 | 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] | 2341 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2342 | ac_prog_rejected=yes |
| 2343 | continue |
| 2344 | fi |
| 2345 | ac_cv_prog_CC="cc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2346 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2347 | break 2 |
| 2348 | fi |
| 2349 | done |
| 2350 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2351 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2352 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2353 | if test $ac_prog_rejected = yes; then |
| 2354 | # We found a bogon in the path, so make sure we never use it. |
| 2355 | set dummy $ac_cv_prog_CC |
| 2356 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2357 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2358 | # We chose a different compiler from the bogus one. |
| 2359 | # However, it has the same basename, so the bogon will be chosen |
| 2360 | # first if we set CC to just the basename; use the full file name. |
| 2361 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2362 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2363 | fi |
| 2364 | fi |
| 2365 | fi |
| 2366 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2367 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2368 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2369 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2370 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2371 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2372 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2373 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2374 | fi |
| 2375 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2376 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2377 | fi |
| 2378 | if test -z "$CC"; then |
| 2379 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2380 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2381 | do |
| 2382 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2383 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2384 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2385 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2386 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2387 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2388 | else |
| 2389 | if test -n "$CC"; then |
| 2390 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2391 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2393 | for as_dir in $PATH |
| 2394 | do |
| 2395 | IFS=$as_save_IFS |
| 2396 | test -z "$as_dir" && as_dir=. |
| 2397 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2398 | 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] | 2399 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2400 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2401 | break 2 |
| 2402 | fi |
| 2403 | done |
| 2404 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2405 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2406 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2407 | fi |
| 2408 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2409 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2410 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2411 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2412 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2413 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2415 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2416 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2418 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2419 | test -n "$CC" && break |
| 2420 | done |
| 2421 | fi |
| 2422 | if test -z "$CC"; then |
| 2423 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2424 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2425 | do |
| 2426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2427 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2428 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2429 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2430 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2431 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2432 | else |
| 2433 | if test -n "$ac_ct_CC"; then |
| 2434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2435 | else |
| 2436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2437 | for as_dir in $PATH |
| 2438 | do |
| 2439 | IFS=$as_save_IFS |
| 2440 | test -z "$as_dir" && as_dir=. |
| 2441 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2442 | 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] | 2443 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2444 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2445 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2446 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2447 | done |
| 2448 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2449 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2450 | |
| 2451 | fi |
| 2452 | fi |
| 2453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2454 | if test -n "$ac_ct_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2455 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2456 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2457 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2458 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2459 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2460 | fi |
| 2461 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | test -n "$ac_ct_CC" && break |
| 2464 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2466 | if test "x$ac_ct_CC" = x; then |
| 2467 | CC="" |
| 2468 | else |
| 2469 | case $cross_compiling:$ac_tool_warned in |
| 2470 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2471 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2473 | ac_tool_warned=yes ;; |
| 2474 | esac |
| 2475 | CC=$ac_ct_CC |
| 2476 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2477 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2478 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2479 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2480 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2481 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2482 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2484 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2485 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2486 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2488 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2489 | |
| 2490 | # Provide some information about the compiler. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2491 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2492 | set X $ac_compile |
| 2493 | ac_compiler=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2494 | { (ac_try="$ac_compiler --version >&5" |
| 2495 | case "(($ac_try" in |
| 2496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2497 | *) ac_try_echo=$ac_try;; |
| 2498 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2500 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2501 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2504 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2505 | { (ac_try="$ac_compiler -v >&5" |
| 2506 | case "(($ac_try" in |
| 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2508 | *) ac_try_echo=$ac_try;; |
| 2509 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2510 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2511 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2512 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2513 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2515 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2516 | { (ac_try="$ac_compiler -V >&5" |
| 2517 | case "(($ac_try" in |
| 2518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2519 | *) ac_try_echo=$ac_try;; |
| 2520 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2522 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2523 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2524 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2526 | (exit $ac_status); } |
| 2527 | |
| 2528 | cat >conftest.$ac_ext <<_ACEOF |
| 2529 | /* confdefs.h. */ |
| 2530 | _ACEOF |
| 2531 | cat confdefs.h >>conftest.$ac_ext |
| 2532 | cat >>conftest.$ac_ext <<_ACEOF |
| 2533 | /* end confdefs.h. */ |
| 2534 | |
| 2535 | int |
| 2536 | main () |
| 2537 | { |
| 2538 | |
| 2539 | ; |
| 2540 | return 0; |
| 2541 | } |
| 2542 | _ACEOF |
| 2543 | ac_clean_files_save=$ac_clean_files |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2544 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | # Try to create an executable without -o first, disregard a.out. |
| 2546 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2547 | # of exeext. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2548 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2549 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2550 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2551 | |
| 2552 | # The possible output files: |
| 2553 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2554 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2555 | ac_rmfiles= |
| 2556 | for ac_file in $ac_files |
| 2557 | do |
| 2558 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2559 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2560 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2561 | esac |
| 2562 | done |
| 2563 | rm -f $ac_rmfiles |
| 2564 | |
| 2565 | if { (ac_try="$ac_link_default" |
| 2566 | case "(($ac_try" in |
| 2567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2568 | *) ac_try_echo=$ac_try;; |
| 2569 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2571 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2572 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2573 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2575 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2576 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2577 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2578 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2579 | # so that the user can short-circuit this test for compilers unknown to |
| 2580 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2581 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2582 | do |
| 2583 | test -f "$ac_file" || continue |
| 2584 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2585 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2586 | ;; |
| 2587 | [ab].out ) |
| 2588 | # We found the default executable, but exeext='' is most |
| 2589 | # certainly right. |
| 2590 | break;; |
| 2591 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2592 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2593 | then :; else |
| 2594 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2595 | fi |
| 2596 | # We set ac_cv_exeext here because the later test for it is not |
| 2597 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2598 | # argument, so we may need to know it at that point already. |
| 2599 | # Even if this section looks crufty: it has the advantage of |
| 2600 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2601 | break;; |
| 2602 | * ) |
| 2603 | break;; |
| 2604 | esac |
| 2605 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2606 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2607 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2608 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2609 | ac_file='' |
| 2610 | fi |
| 2611 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2612 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2613 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2614 | if test -z "$ac_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2615 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2617 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2618 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2619 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2620 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2621 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2622 | $as_echo "$as_me: error: C compiler cannot create executables |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2623 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2624 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2625 | fi |
| 2626 | |
| 2627 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2629 | # 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] | 2630 | # the compiler is broken, or we cross compile. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2631 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2632 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2633 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2634 | # If not cross compiling, check that we can run a simple program. |
| 2635 | if test "$cross_compiling" != yes; then |
| 2636 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2637 | { (case "(($ac_try" in |
| 2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2639 | *) ac_try_echo=$ac_try;; |
| 2640 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2642 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2643 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2644 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2646 | (exit $ac_status); }; }; then |
| 2647 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2648 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2649 | if test "$cross_compiling" = maybe; then |
| 2650 | cross_compiling=yes |
| 2651 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2652 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2653 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2654 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2655 | If you meant to cross compile, use \`--host'. |
| 2656 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2657 | $as_echo "$as_me: error: cannot run C compiled programs. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | If you meant to cross compile, use \`--host'. |
| 2659 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2660 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2661 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2662 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2663 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2664 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2665 | $as_echo "yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2666 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2667 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2668 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2669 | # 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] | 2670 | # the compiler is broken, or we cross compile. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2671 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2672 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2673 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2674 | $as_echo "$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2675 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2676 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2677 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2678 | if { (ac_try="$ac_link" |
| 2679 | case "(($ac_try" in |
| 2680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2681 | *) ac_try_echo=$ac_try;; |
| 2682 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2684 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2685 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2686 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2688 | (exit $ac_status); }; then |
| 2689 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2690 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2691 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2692 | # `rm'. |
| 2693 | for ac_file in conftest.exe conftest conftest.*; do |
| 2694 | test -f "$ac_file" || continue |
| 2695 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2696 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2697 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2698 | break;; |
| 2699 | * ) break;; |
| 2700 | esac |
| 2701 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2702 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2703 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2704 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2705 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2706 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2707 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2708 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2709 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2710 | fi |
| 2711 | |
| 2712 | rm -f conftest$ac_cv_exeext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2713 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2714 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2715 | |
| 2716 | rm -f conftest.$ac_ext |
| 2717 | EXEEXT=$ac_cv_exeext |
| 2718 | ac_exeext=$EXEEXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2719 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2720 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2721 | if test "${ac_cv_objext+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2722 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2723 | else |
| 2724 | cat >conftest.$ac_ext <<_ACEOF |
| 2725 | /* confdefs.h. */ |
| 2726 | _ACEOF |
| 2727 | cat confdefs.h >>conftest.$ac_ext |
| 2728 | cat >>conftest.$ac_ext <<_ACEOF |
| 2729 | /* end confdefs.h. */ |
| 2730 | |
| 2731 | int |
| 2732 | main () |
| 2733 | { |
| 2734 | |
| 2735 | ; |
| 2736 | return 0; |
| 2737 | } |
| 2738 | _ACEOF |
| 2739 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2740 | if { (ac_try="$ac_compile" |
| 2741 | case "(($ac_try" in |
| 2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2743 | *) ac_try_echo=$ac_try;; |
| 2744 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2746 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2747 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2748 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2750 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2751 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2752 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2753 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2754 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2755 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2756 | break;; |
| 2757 | esac |
| 2758 | done |
| 2759 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2760 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2762 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2763 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2765 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2766 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2767 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2768 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2769 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2770 | fi |
| 2771 | |
| 2772 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2773 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2774 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2775 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2776 | OBJEXT=$ac_cv_objext |
| 2777 | ac_objext=$OBJEXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2778 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2779 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2780 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2781 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2782 | else |
| 2783 | cat >conftest.$ac_ext <<_ACEOF |
| 2784 | /* confdefs.h. */ |
| 2785 | _ACEOF |
| 2786 | cat confdefs.h >>conftest.$ac_ext |
| 2787 | cat >>conftest.$ac_ext <<_ACEOF |
| 2788 | /* end confdefs.h. */ |
| 2789 | |
| 2790 | int |
| 2791 | main () |
| 2792 | { |
| 2793 | #ifndef __GNUC__ |
| 2794 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2795 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2796 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2797 | ; |
| 2798 | return 0; |
| 2799 | } |
| 2800 | _ACEOF |
| 2801 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2802 | if { (ac_try="$ac_compile" |
| 2803 | case "(($ac_try" in |
| 2804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2805 | *) ac_try_echo=$ac_try;; |
| 2806 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2808 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2809 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2810 | ac_status=$? |
| 2811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2812 | rm -f conftest.er1 |
| 2813 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2815 | (exit $ac_status); } && { |
| 2816 | test -z "$ac_c_werror_flag" || |
| 2817 | test ! -s conftest.err |
| 2818 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2819 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2820 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2821 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2824 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2825 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2826 | |
| 2827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2830 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2831 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2832 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2833 | if test $ac_compiler_gnu = yes; then |
| 2834 | GCC=yes |
| 2835 | else |
| 2836 | GCC= |
| 2837 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2838 | ac_test_CFLAGS=${CFLAGS+set} |
| 2839 | ac_save_CFLAGS=$CFLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2840 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2841 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2842 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2843 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2844 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2845 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2846 | ac_c_werror_flag=yes |
| 2847 | ac_cv_prog_cc_g=no |
| 2848 | CFLAGS="-g" |
| 2849 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2850 | /* confdefs.h. */ |
| 2851 | _ACEOF |
| 2852 | cat confdefs.h >>conftest.$ac_ext |
| 2853 | cat >>conftest.$ac_ext <<_ACEOF |
| 2854 | /* end confdefs.h. */ |
| 2855 | |
| 2856 | int |
| 2857 | main () |
| 2858 | { |
| 2859 | |
| 2860 | ; |
| 2861 | return 0; |
| 2862 | } |
| 2863 | _ACEOF |
| 2864 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2865 | if { (ac_try="$ac_compile" |
| 2866 | case "(($ac_try" in |
| 2867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2868 | *) ac_try_echo=$ac_try;; |
| 2869 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2871 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2872 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2873 | ac_status=$? |
| 2874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2875 | rm -f conftest.er1 |
| 2876 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2878 | (exit $ac_status); } && { |
| 2879 | test -z "$ac_c_werror_flag" || |
| 2880 | test ! -s conftest.err |
| 2881 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2882 | ac_cv_prog_cc_g=yes |
| 2883 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2884 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2887 | CFLAGS="" |
| 2888 | cat >conftest.$ac_ext <<_ACEOF |
| 2889 | /* confdefs.h. */ |
| 2890 | _ACEOF |
| 2891 | cat confdefs.h >>conftest.$ac_ext |
| 2892 | cat >>conftest.$ac_ext <<_ACEOF |
| 2893 | /* end confdefs.h. */ |
| 2894 | |
| 2895 | int |
| 2896 | main () |
| 2897 | { |
| 2898 | |
| 2899 | ; |
| 2900 | return 0; |
| 2901 | } |
| 2902 | _ACEOF |
| 2903 | rm -f conftest.$ac_objext |
| 2904 | if { (ac_try="$ac_compile" |
| 2905 | case "(($ac_try" in |
| 2906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2907 | *) ac_try_echo=$ac_try;; |
| 2908 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2910 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2911 | (eval "$ac_compile") 2>conftest.er1 |
| 2912 | ac_status=$? |
| 2913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2914 | rm -f conftest.er1 |
| 2915 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2917 | (exit $ac_status); } && { |
| 2918 | test -z "$ac_c_werror_flag" || |
| 2919 | test ! -s conftest.err |
| 2920 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2921 | : |
| 2922 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2923 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2925 | |
| 2926 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2927 | CFLAGS="-g" |
| 2928 | cat >conftest.$ac_ext <<_ACEOF |
| 2929 | /* confdefs.h. */ |
| 2930 | _ACEOF |
| 2931 | cat confdefs.h >>conftest.$ac_ext |
| 2932 | cat >>conftest.$ac_ext <<_ACEOF |
| 2933 | /* end confdefs.h. */ |
| 2934 | |
| 2935 | int |
| 2936 | main () |
| 2937 | { |
| 2938 | |
| 2939 | ; |
| 2940 | return 0; |
| 2941 | } |
| 2942 | _ACEOF |
| 2943 | rm -f conftest.$ac_objext |
| 2944 | if { (ac_try="$ac_compile" |
| 2945 | case "(($ac_try" in |
| 2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2947 | *) ac_try_echo=$ac_try;; |
| 2948 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2950 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2951 | (eval "$ac_compile") 2>conftest.er1 |
| 2952 | ac_status=$? |
| 2953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2954 | rm -f conftest.er1 |
| 2955 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2957 | (exit $ac_status); } && { |
| 2958 | test -z "$ac_c_werror_flag" || |
| 2959 | test ! -s conftest.err |
| 2960 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2961 | ac_cv_prog_cc_g=yes |
| 2962 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2963 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2965 | |
| 2966 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2967 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2968 | |
| 2969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2970 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2971 | |
| 2972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2973 | fi |
| 2974 | |
| 2975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2976 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2977 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2979 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2980 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2981 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2982 | elif test $ac_cv_prog_cc_g = yes; then |
| 2983 | if test "$GCC" = yes; then |
| 2984 | CFLAGS="-g -O2" |
| 2985 | else |
| 2986 | CFLAGS="-g" |
| 2987 | fi |
| 2988 | else |
| 2989 | if test "$GCC" = yes; then |
| 2990 | CFLAGS="-O2" |
| 2991 | else |
| 2992 | CFLAGS= |
| 2993 | fi |
| 2994 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2995 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2996 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2997 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2998 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2999 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3000 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | ac_save_CC=$CC |
| 3002 | cat >conftest.$ac_ext <<_ACEOF |
| 3003 | /* confdefs.h. */ |
| 3004 | _ACEOF |
| 3005 | cat confdefs.h >>conftest.$ac_ext |
| 3006 | cat >>conftest.$ac_ext <<_ACEOF |
| 3007 | /* end confdefs.h. */ |
| 3008 | #include <stdarg.h> |
| 3009 | #include <stdio.h> |
| 3010 | #include <sys/types.h> |
| 3011 | #include <sys/stat.h> |
| 3012 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3013 | struct buf { int x; }; |
| 3014 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3015 | static char *e (p, i) |
| 3016 | char **p; |
| 3017 | int i; |
| 3018 | { |
| 3019 | return p[i]; |
| 3020 | } |
| 3021 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3022 | { |
| 3023 | char *s; |
| 3024 | va_list v; |
| 3025 | va_start (v,p); |
| 3026 | s = g (p, va_arg (v,int)); |
| 3027 | va_end (v); |
| 3028 | return s; |
| 3029 | } |
| 3030 | |
| 3031 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3032 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3033 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3034 | 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] | 3035 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3036 | 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] | 3037 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3039 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3040 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3041 | inside strings and character constants. */ |
| 3042 | #define FOO(x) 'x' |
| 3043 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3044 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3045 | int test (int i, double x); |
| 3046 | struct s1 {int (*f) (int a);}; |
| 3047 | struct s2 {int (*f) (double a);}; |
| 3048 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3049 | int argc; |
| 3050 | char **argv; |
| 3051 | int |
| 3052 | main () |
| 3053 | { |
| 3054 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3055 | ; |
| 3056 | return 0; |
| 3057 | } |
| 3058 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3059 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3060 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3061 | do |
| 3062 | CC="$ac_save_CC $ac_arg" |
| 3063 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3064 | if { (ac_try="$ac_compile" |
| 3065 | case "(($ac_try" in |
| 3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3067 | *) ac_try_echo=$ac_try;; |
| 3068 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3070 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3071 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3072 | ac_status=$? |
| 3073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3074 | rm -f conftest.er1 |
| 3075 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3077 | (exit $ac_status); } && { |
| 3078 | test -z "$ac_c_werror_flag" || |
| 3079 | test ! -s conftest.err |
| 3080 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3081 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3082 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3083 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3086 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3087 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3088 | |
| 3089 | rm -f core conftest.err conftest.$ac_objext |
| 3090 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3091 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3092 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3093 | CC=$ac_save_CC |
| 3094 | |
| 3095 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3096 | # AC_CACHE_VAL |
| 3097 | case "x$ac_cv_prog_cc_c89" in |
| 3098 | x) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3099 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3100 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3101 | xno) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3102 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3103 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3104 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3105 | CC="$CC $ac_cv_prog_cc_c89" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3106 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3107 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3108 | esac |
| 3109 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3110 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3111 | ac_ext=c |
| 3112 | ac_cpp='$CPP $CPPFLAGS' |
| 3113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3116 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3117 | ac_ext=c |
| 3118 | ac_cpp='$CPP $CPPFLAGS' |
| 3119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3122 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3123 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3124 | # On Suns, sometimes $CPP names a directory. |
| 3125 | if test -n "$CPP" && test -d "$CPP"; then |
| 3126 | CPP= |
| 3127 | fi |
| 3128 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3129 | if test "${ac_cv_prog_CPP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3130 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3131 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3132 | # Double quotes because CPP needs to be expanded |
| 3133 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3134 | do |
| 3135 | ac_preproc_ok=false |
| 3136 | for ac_c_preproc_warn_flag in '' yes |
| 3137 | do |
| 3138 | # Use a header file that comes with gcc, so configuring glibc |
| 3139 | # with a fresh cross-compiler works. |
| 3140 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3141 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3142 | # 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] | 3143 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3144 | cat >conftest.$ac_ext <<_ACEOF |
| 3145 | /* confdefs.h. */ |
| 3146 | _ACEOF |
| 3147 | cat confdefs.h >>conftest.$ac_ext |
| 3148 | cat >>conftest.$ac_ext <<_ACEOF |
| 3149 | /* end confdefs.h. */ |
| 3150 | #ifdef __STDC__ |
| 3151 | # include <limits.h> |
| 3152 | #else |
| 3153 | # include <assert.h> |
| 3154 | #endif |
| 3155 | Syntax error |
| 3156 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3157 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3158 | case "(($ac_try" in |
| 3159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3160 | *) ac_try_echo=$ac_try;; |
| 3161 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3162 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3163 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3164 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3165 | ac_status=$? |
| 3166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3167 | rm -f conftest.er1 |
| 3168 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3170 | (exit $ac_status); } >/dev/null && { |
| 3171 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3172 | test ! -s conftest.err |
| 3173 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3174 | : |
| 3175 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3176 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3177 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3179 | # Broken: fails on valid input. |
| 3180 | continue |
| 3181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3183 | rm -f conftest.err conftest.$ac_ext |
| 3184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3185 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3186 | # can be detected and how. |
| 3187 | cat >conftest.$ac_ext <<_ACEOF |
| 3188 | /* confdefs.h. */ |
| 3189 | _ACEOF |
| 3190 | cat confdefs.h >>conftest.$ac_ext |
| 3191 | cat >>conftest.$ac_ext <<_ACEOF |
| 3192 | /* end confdefs.h. */ |
| 3193 | #include <ac_nonexistent.h> |
| 3194 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3195 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3196 | case "(($ac_try" in |
| 3197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3198 | *) ac_try_echo=$ac_try;; |
| 3199 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3201 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3202 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3203 | ac_status=$? |
| 3204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3205 | rm -f conftest.er1 |
| 3206 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3208 | (exit $ac_status); } >/dev/null && { |
| 3209 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3210 | test ! -s conftest.err |
| 3211 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3212 | # Broken: success on invalid input. |
| 3213 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3214 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3215 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3217 | |
| 3218 | # Passes both tests. |
| 3219 | ac_preproc_ok=: |
| 3220 | break |
| 3221 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3223 | rm -f conftest.err conftest.$ac_ext |
| 3224 | |
| 3225 | done |
| 3226 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3227 | rm -f conftest.err conftest.$ac_ext |
| 3228 | if $ac_preproc_ok; then |
| 3229 | break |
| 3230 | fi |
| 3231 | |
| 3232 | done |
| 3233 | ac_cv_prog_CPP=$CPP |
| 3234 | |
| 3235 | fi |
| 3236 | CPP=$ac_cv_prog_CPP |
| 3237 | else |
| 3238 | ac_cv_prog_CPP=$CPP |
| 3239 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3240 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3241 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3242 | ac_preproc_ok=false |
| 3243 | for ac_c_preproc_warn_flag in '' yes |
| 3244 | do |
| 3245 | # Use a header file that comes with gcc, so configuring glibc |
| 3246 | # with a fresh cross-compiler works. |
| 3247 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3248 | # <limits.h> exists even on freestanding compilers. |
| 3249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3250 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3251 | cat >conftest.$ac_ext <<_ACEOF |
| 3252 | /* confdefs.h. */ |
| 3253 | _ACEOF |
| 3254 | cat confdefs.h >>conftest.$ac_ext |
| 3255 | cat >>conftest.$ac_ext <<_ACEOF |
| 3256 | /* end confdefs.h. */ |
| 3257 | #ifdef __STDC__ |
| 3258 | # include <limits.h> |
| 3259 | #else |
| 3260 | # include <assert.h> |
| 3261 | #endif |
| 3262 | Syntax error |
| 3263 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3265 | case "(($ac_try" in |
| 3266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3267 | *) ac_try_echo=$ac_try;; |
| 3268 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3270 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3272 | ac_status=$? |
| 3273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3274 | rm -f conftest.er1 |
| 3275 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3277 | (exit $ac_status); } >/dev/null && { |
| 3278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3279 | test ! -s conftest.err |
| 3280 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3281 | : |
| 3282 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3283 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3285 | |
| 3286 | # Broken: fails on valid input. |
| 3287 | continue |
| 3288 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3289 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3290 | rm -f conftest.err conftest.$ac_ext |
| 3291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3292 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3293 | # can be detected and how. |
| 3294 | cat >conftest.$ac_ext <<_ACEOF |
| 3295 | /* confdefs.h. */ |
| 3296 | _ACEOF |
| 3297 | cat confdefs.h >>conftest.$ac_ext |
| 3298 | cat >>conftest.$ac_ext <<_ACEOF |
| 3299 | /* end confdefs.h. */ |
| 3300 | #include <ac_nonexistent.h> |
| 3301 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3302 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3303 | case "(($ac_try" in |
| 3304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3305 | *) ac_try_echo=$ac_try;; |
| 3306 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3308 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3310 | ac_status=$? |
| 3311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3312 | rm -f conftest.er1 |
| 3313 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3315 | (exit $ac_status); } >/dev/null && { |
| 3316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3317 | test ! -s conftest.err |
| 3318 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3319 | # Broken: success on invalid input. |
| 3320 | continue |
| 3321 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3322 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3324 | |
| 3325 | # Passes both tests. |
| 3326 | ac_preproc_ok=: |
| 3327 | break |
| 3328 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3330 | rm -f conftest.err conftest.$ac_ext |
| 3331 | |
| 3332 | done |
| 3333 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3334 | rm -f conftest.err conftest.$ac_ext |
| 3335 | if $ac_preproc_ok; then |
| 3336 | : |
| 3337 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3338 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3340 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3341 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3342 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3343 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3344 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | fi |
| 3346 | |
| 3347 | ac_ext=c |
| 3348 | ac_cpp='$CPP $CPPFLAGS' |
| 3349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3352 | |
| 3353 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3354 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3355 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3356 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3357 | if test "${ac_cv_path_GREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3358 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3359 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3360 | if test -z "$GREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3361 | ac_path_GREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3362 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3364 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3365 | do |
| 3366 | IFS=$as_save_IFS |
| 3367 | test -z "$as_dir" && as_dir=. |
| 3368 | for ac_prog in grep ggrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3370 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3371 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3372 | # Check for GNU ac_path_GREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3373 | # Check for GNU $ac_path_GREP |
| 3374 | case `"$ac_path_GREP" --version 2>&1` in |
| 3375 | *GNU*) |
| 3376 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3377 | *) |
| 3378 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3379 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3380 | while : |
| 3381 | do |
| 3382 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3383 | mv "conftest.tmp" "conftest.in" |
| 3384 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3385 | $as_echo 'GREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3386 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3387 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3388 | ac_count=`expr $ac_count + 1` |
| 3389 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3390 | # Best one so far, save it but keep looking for a better one |
| 3391 | ac_cv_path_GREP="$ac_path_GREP" |
| 3392 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3394 | # 10*(2^10) chars as input seems more than enough |
| 3395 | test $ac_count -gt 10 && break |
| 3396 | done |
| 3397 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3398 | esac |
| 3399 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3400 | $ac_path_GREP_found && break 3 |
| 3401 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3402 | done |
| 3403 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3404 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3405 | if test -z "$ac_cv_path_GREP"; then |
| 3406 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3407 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3408 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3409 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3410 | else |
| 3411 | ac_cv_path_GREP=$GREP |
| 3412 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3413 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3414 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3415 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3416 | $as_echo "$ac_cv_path_GREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3417 | GREP="$ac_cv_path_GREP" |
| 3418 | |
| 3419 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3420 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3421 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3422 | if test "${ac_cv_path_EGREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3423 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3424 | else |
| 3425 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3426 | then ac_cv_path_EGREP="$GREP -E" |
| 3427 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3428 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3429 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3430 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3432 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3433 | do |
| 3434 | IFS=$as_save_IFS |
| 3435 | test -z "$as_dir" && as_dir=. |
| 3436 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3438 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3439 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3440 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3441 | # Check for GNU $ac_path_EGREP |
| 3442 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3443 | *GNU*) |
| 3444 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3445 | *) |
| 3446 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3447 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3448 | while : |
| 3449 | do |
| 3450 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3451 | mv "conftest.tmp" "conftest.in" |
| 3452 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3453 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3454 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3455 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3456 | ac_count=`expr $ac_count + 1` |
| 3457 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3458 | # Best one so far, save it but keep looking for a better one |
| 3459 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3460 | ac_path_EGREP_max=$ac_count |
| 3461 | fi |
| 3462 | # 10*(2^10) chars as input seems more than enough |
| 3463 | test $ac_count -gt 10 && break |
| 3464 | done |
| 3465 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3466 | esac |
| 3467 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3468 | $ac_path_EGREP_found && break 3 |
| 3469 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3470 | done |
| 3471 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3472 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3473 | if test -z "$ac_cv_path_EGREP"; then |
| 3474 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3475 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3476 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3477 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3478 | else |
| 3479 | ac_cv_path_EGREP=$EGREP |
| 3480 | fi |
| 3481 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3482 | fi |
| 3483 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3484 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3485 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3486 | EGREP="$ac_cv_path_EGREP" |
| 3487 | |
| 3488 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3489 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3490 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3491 | if test "${ac_cv_header_stdc+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3492 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3493 | else |
| 3494 | cat >conftest.$ac_ext <<_ACEOF |
| 3495 | /* confdefs.h. */ |
| 3496 | _ACEOF |
| 3497 | cat confdefs.h >>conftest.$ac_ext |
| 3498 | cat >>conftest.$ac_ext <<_ACEOF |
| 3499 | /* end confdefs.h. */ |
| 3500 | #include <stdlib.h> |
| 3501 | #include <stdarg.h> |
| 3502 | #include <string.h> |
| 3503 | #include <float.h> |
| 3504 | |
| 3505 | int |
| 3506 | main () |
| 3507 | { |
| 3508 | |
| 3509 | ; |
| 3510 | return 0; |
| 3511 | } |
| 3512 | _ACEOF |
| 3513 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | if { (ac_try="$ac_compile" |
| 3515 | case "(($ac_try" in |
| 3516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3517 | *) ac_try_echo=$ac_try;; |
| 3518 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3520 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3521 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3522 | ac_status=$? |
| 3523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3524 | rm -f conftest.er1 |
| 3525 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3527 | (exit $ac_status); } && { |
| 3528 | test -z "$ac_c_werror_flag" || |
| 3529 | test ! -s conftest.err |
| 3530 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3531 | ac_cv_header_stdc=yes |
| 3532 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3533 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3535 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3536 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3538 | |
| 3539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3540 | |
| 3541 | if test $ac_cv_header_stdc = yes; then |
| 3542 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3543 | cat >conftest.$ac_ext <<_ACEOF |
| 3544 | /* confdefs.h. */ |
| 3545 | _ACEOF |
| 3546 | cat confdefs.h >>conftest.$ac_ext |
| 3547 | cat >>conftest.$ac_ext <<_ACEOF |
| 3548 | /* end confdefs.h. */ |
| 3549 | #include <string.h> |
| 3550 | |
| 3551 | _ACEOF |
| 3552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3553 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3554 | : |
| 3555 | else |
| 3556 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3557 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3558 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3559 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3560 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3561 | |
| 3562 | if test $ac_cv_header_stdc = yes; then |
| 3563 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3564 | cat >conftest.$ac_ext <<_ACEOF |
| 3565 | /* confdefs.h. */ |
| 3566 | _ACEOF |
| 3567 | cat confdefs.h >>conftest.$ac_ext |
| 3568 | cat >>conftest.$ac_ext <<_ACEOF |
| 3569 | /* end confdefs.h. */ |
| 3570 | #include <stdlib.h> |
| 3571 | |
| 3572 | _ACEOF |
| 3573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3574 | $EGREP "free" >/dev/null 2>&1; then |
| 3575 | : |
| 3576 | else |
| 3577 | ac_cv_header_stdc=no |
| 3578 | fi |
| 3579 | rm -f conftest* |
| 3580 | |
| 3581 | fi |
| 3582 | |
| 3583 | if test $ac_cv_header_stdc = yes; then |
| 3584 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3585 | if test "$cross_compiling" = yes; then |
| 3586 | : |
| 3587 | else |
| 3588 | cat >conftest.$ac_ext <<_ACEOF |
| 3589 | /* confdefs.h. */ |
| 3590 | _ACEOF |
| 3591 | cat confdefs.h >>conftest.$ac_ext |
| 3592 | cat >>conftest.$ac_ext <<_ACEOF |
| 3593 | /* end confdefs.h. */ |
| 3594 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3595 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3596 | #if ((' ' & 0x0FF) == 0x020) |
| 3597 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3598 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3599 | #else |
| 3600 | # define ISLOWER(c) \ |
| 3601 | (('a' <= (c) && (c) <= 'i') \ |
| 3602 | || ('j' <= (c) && (c) <= 'r') \ |
| 3603 | || ('s' <= (c) && (c) <= 'z')) |
| 3604 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3605 | #endif |
| 3606 | |
| 3607 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3608 | int |
| 3609 | main () |
| 3610 | { |
| 3611 | int i; |
| 3612 | for (i = 0; i < 256; i++) |
| 3613 | if (XOR (islower (i), ISLOWER (i)) |
| 3614 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3615 | return 2; |
| 3616 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3617 | } |
| 3618 | _ACEOF |
| 3619 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3620 | if { (ac_try="$ac_link" |
| 3621 | case "(($ac_try" in |
| 3622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3623 | *) ac_try_echo=$ac_try;; |
| 3624 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3626 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3627 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3628 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3630 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3631 | { (case "(($ac_try" in |
| 3632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3633 | *) ac_try_echo=$ac_try;; |
| 3634 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3636 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3637 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3638 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3640 | (exit $ac_status); }; }; then |
| 3641 | : |
| 3642 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3643 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3644 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3646 | |
| 3647 | ( exit $ac_status ) |
| 3648 | ac_cv_header_stdc=no |
| 3649 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3650 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3652 | fi |
| 3653 | |
| 3654 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3655 | fi |
| 3656 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3658 | $as_echo "$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3659 | if test $ac_cv_header_stdc = yes; then |
| 3660 | |
| 3661 | cat >>confdefs.h <<\_ACEOF |
| 3662 | #define STDC_HEADERS 1 |
| 3663 | _ACEOF |
| 3664 | |
| 3665 | fi |
| 3666 | |
| 3667 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3668 | |
| 3669 | |
| 3670 | |
| 3671 | |
| 3672 | |
| 3673 | |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3678 | inttypes.h stdint.h unistd.h |
| 3679 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3680 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3681 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3682 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3684 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3685 | else |
| 3686 | cat >conftest.$ac_ext <<_ACEOF |
| 3687 | /* confdefs.h. */ |
| 3688 | _ACEOF |
| 3689 | cat confdefs.h >>conftest.$ac_ext |
| 3690 | cat >>conftest.$ac_ext <<_ACEOF |
| 3691 | /* end confdefs.h. */ |
| 3692 | $ac_includes_default |
| 3693 | |
| 3694 | #include <$ac_header> |
| 3695 | _ACEOF |
| 3696 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3697 | if { (ac_try="$ac_compile" |
| 3698 | case "(($ac_try" in |
| 3699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3700 | *) ac_try_echo=$ac_try;; |
| 3701 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3703 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3704 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3705 | ac_status=$? |
| 3706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3707 | rm -f conftest.er1 |
| 3708 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3710 | (exit $ac_status); } && { |
| 3711 | test -z "$ac_c_werror_flag" || |
| 3712 | test ! -s conftest.err |
| 3713 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3714 | eval "$as_ac_Header=yes" |
| 3715 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3716 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3719 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3720 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3721 | |
| 3722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3723 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3724 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 3725 | $as_echo "$as_val"'` |
| 3726 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3727 | $as_echo "$ac_res" >&6; } |
| 3728 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 3729 | $as_echo "$as_val"'` |
| 3730 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3731 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3732 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3733 | _ACEOF |
| 3734 | |
| 3735 | fi |
| 3736 | |
| 3737 | done |
| 3738 | |
| 3739 | |
| 3740 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3741 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3742 | $as_echo_n "checking for linux/fs.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3743 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3744 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3745 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3746 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3747 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3748 | else |
| 3749 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3750 | { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3751 | $as_echo_n "checking linux/fs.h usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3752 | cat >conftest.$ac_ext <<_ACEOF |
| 3753 | /* confdefs.h. */ |
| 3754 | _ACEOF |
| 3755 | cat confdefs.h >>conftest.$ac_ext |
| 3756 | cat >>conftest.$ac_ext <<_ACEOF |
| 3757 | /* end confdefs.h. */ |
| 3758 | $ac_includes_default |
| 3759 | #include <linux/fs.h> |
| 3760 | _ACEOF |
| 3761 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3762 | if { (ac_try="$ac_compile" |
| 3763 | case "(($ac_try" in |
| 3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3765 | *) ac_try_echo=$ac_try;; |
| 3766 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3768 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3769 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3770 | ac_status=$? |
| 3771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3772 | rm -f conftest.er1 |
| 3773 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3775 | (exit $ac_status); } && { |
| 3776 | test -z "$ac_c_werror_flag" || |
| 3777 | test ! -s conftest.err |
| 3778 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3779 | ac_header_compiler=yes |
| 3780 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3781 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3783 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3784 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3785 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3786 | |
| 3787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3788 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3789 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3790 | |
| 3791 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3792 | { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3793 | $as_echo_n "checking linux/fs.h presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3794 | cat >conftest.$ac_ext <<_ACEOF |
| 3795 | /* confdefs.h. */ |
| 3796 | _ACEOF |
| 3797 | cat confdefs.h >>conftest.$ac_ext |
| 3798 | cat >>conftest.$ac_ext <<_ACEOF |
| 3799 | /* end confdefs.h. */ |
| 3800 | #include <linux/fs.h> |
| 3801 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3803 | case "(($ac_try" in |
| 3804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3805 | *) ac_try_echo=$ac_try;; |
| 3806 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3808 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3810 | ac_status=$? |
| 3811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3812 | rm -f conftest.er1 |
| 3813 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3815 | (exit $ac_status); } >/dev/null && { |
| 3816 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3817 | test ! -s conftest.err |
| 3818 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3819 | ac_header_preproc=yes |
| 3820 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3821 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3823 | |
| 3824 | ac_header_preproc=no |
| 3825 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3827 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3828 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3829 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3830 | |
| 3831 | # So? What about this header? |
| 3832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3833 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3834 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3835 | $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3836 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3837 | $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3838 | ac_header_preproc=yes |
| 3839 | ;; |
| 3840 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3841 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3842 | $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3843 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3844 | $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3845 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3846 | $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3847 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3848 | $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3849 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3850 | $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3851 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3852 | $as_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] | 3853 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3854 | ;; |
| 3855 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3856 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3857 | $as_echo_n "checking for linux/fs.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3858 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3859 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3860 | else |
| 3861 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3862 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3863 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3864 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3865 | |
| 3866 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3867 | if test "x$ac_cv_header_linux_fs_h" = x""yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3868 | linux_headers=yes |
| 3869 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3870 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3871 | fi |
| 3872 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3873 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3874 | if test "$linux_headers" != yes; then |
| 3875 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3876 | fi |
| 3877 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3878 | { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3879 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3880 | if test "$GCC" = yes |
| 3881 | then |
| 3882 | case "$host_cpu" in |
| 3883 | alpha) addcflags="-mieee" ;; |
| 3884 | esac |
| 3885 | fi |
| 3886 | if test "x$addcflags" != x |
| 3887 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3888 | { $as_echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3889 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3890 | CFLAGS="$addcflags $CFLAGS" |
| 3891 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3892 | { $as_echo "$as_me:$LINENO: result: (none)" >&5 |
| 3893 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3894 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3895 | LIB_EXT=.a |
| 3896 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 3897 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3899 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3900 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3901 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3902 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3903 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3904 | fi |
| 3905 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3906 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3907 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3908 | then |
| 3909 | MAINTAINER_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3910 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
| 3911 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3912 | else |
| 3913 | MAINTAINER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3914 | { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
| 3915 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3916 | fi |
| 3917 | |
| 3918 | else |
| 3919 | MAINTAINER_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3920 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
| 3921 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3922 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3923 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3925 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 3926 | # Check whether --enable-verbose-makecmds was given. |
| 3927 | if test "${enable_verbose_makecmds+set}" = set; then |
| 3928 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 3929 | then |
| 3930 | { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5 |
| 3931 | $as_echo "Disabling verbose make commands" >&6; } |
| 3932 | E=@echo |
| 3933 | Q=@ |
| 3934 | else |
| 3935 | { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5 |
| 3936 | $as_echo "Enabling verbose make commands" >&6; } |
| 3937 | E=@\\# |
| 3938 | Q= |
| 3939 | fi |
| 3940 | |
| 3941 | else |
| 3942 | { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5 |
| 3943 | $as_echo "Disabling verbose make commands" >&6; } |
| 3944 | E=@echo |
| 3945 | Q=@ |
| 3946 | |
| 3947 | fi |
| 3948 | |
| 3949 | |
| 3950 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3951 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3952 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3953 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3954 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3955 | { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
| 3956 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3957 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3958 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3959 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3960 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3961 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3962 | { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
| 3963 | $as_echo "Enabling compression support" >&6; } |
| 3964 | { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 |
| 3965 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3966 | fi |
| 3967 | |
| 3968 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3969 | { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
| 3970 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3972 | fi |
| 3973 | |
| 3974 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3975 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3976 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3977 | then |
| 3978 | HTREE_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3979 | { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
| 3980 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3981 | else |
| 3982 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3983 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3984 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3985 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3986 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3987 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
| 3988 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3989 | fi |
| 3990 | |
| 3991 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3992 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3993 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3994 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3995 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3996 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3997 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
| 3998 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4000 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4002 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4003 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4004 | LDFLAG_DYNAMIC= |
| 4005 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4006 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4007 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4008 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4009 | then |
| 4010 | ELF_CMT=# |
| 4011 | MAKEFILE_ELF=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4012 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
| 4013 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4014 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4015 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4016 | ELF_CMT= |
| 4017 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4018 | case "$host_os" in |
| 4019 | solaris2.*) |
| 4020 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4021 | ;; |
| 4022 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4023 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4024 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4025 | PRIVATE_LIBS_CMT=# |
| 4026 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4027 | { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
| 4028 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4029 | fi |
| 4030 | |
| 4031 | else |
| 4032 | MAKEFILE_ELF=/dev/null |
| 4033 | ELF_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4034 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
| 4035 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4037 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4038 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4039 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4040 | |
| 4041 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4042 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4043 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4044 | then |
| 4045 | BSDLIB_CMT=# |
| 4046 | MAKEFILE_BSDLIB=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4047 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
| 4048 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4049 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4050 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4051 | BSDLIB_CMT= |
| 4052 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4053 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4054 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4055 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4056 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4057 | LIB_EXT=.dylib |
| 4058 | ;; |
| 4059 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4060 | { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
| 4061 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4062 | fi |
| 4063 | |
| 4064 | else |
| 4065 | MAKEFILE_BSDLIB=/dev/null |
| 4066 | BSDLIB_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4067 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
| 4068 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4069 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4070 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4071 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4073 | |
| 4074 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4075 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4076 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4077 | then |
| 4078 | PROFILE_CMT=# |
| 4079 | MAKEFILE_PROFILE=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4080 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
| 4081 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4082 | else |
| 4083 | PROFILE_CMT= |
| 4084 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4085 | PROFILED_LIB_EXT=_p.a |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4086 | { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
| 4087 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4088 | fi |
| 4089 | |
| 4090 | else |
| 4091 | PROFILE_CMT=# |
| 4092 | MAKEFILE_PROFILE=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4093 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
| 4094 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4095 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4096 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4097 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4099 | |
| 4100 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4101 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4102 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4103 | then |
| 4104 | CHECKER_CMT=# |
| 4105 | MAKEFILE_CHECKER=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4106 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
| 4107 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4108 | else |
| 4109 | CHECKER_CMT= |
| 4110 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4111 | { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
| 4112 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4113 | fi |
| 4114 | |
| 4115 | else |
| 4116 | CHECKER_CMT=# |
| 4117 | MAKEFILE_CHECKER=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4118 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
| 4119 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4121 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4122 | |
| 4123 | |
| 4124 | |
| 4125 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4127 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4128 | |
| 4129 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4130 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 4131 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4132 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4133 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4134 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
| 4135 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4136 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4137 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 4138 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4139 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4140 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4141 | { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
| 4142 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4143 | fi |
| 4144 | |
| 4145 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4146 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 |
| 4147 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4148 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4149 | fi |
| 4150 | |
| 4151 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4152 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4153 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4154 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4155 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
| 4156 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4157 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4158 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4159 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4160 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4161 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4162 | { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
| 4163 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4164 | fi |
| 4165 | |
| 4166 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4167 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 |
| 4168 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4169 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4170 | fi |
| 4171 | |
| 4172 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4173 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4174 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4175 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4176 | { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
| 4177 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4178 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4179 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4180 | TEST_IO_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4181 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4182 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4183 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4184 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4185 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
| 4186 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4187 | fi |
| 4188 | |
| 4189 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4190 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 |
| 4191 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4192 | cat >>confdefs.h <<\_ACEOF |
| 4193 | #define CONFIG_TESTIO_DEBUG 1 |
| 4194 | _ACEOF |
| 4195 | |
| 4196 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4197 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4198 | fi |
| 4199 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4200 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4201 | |
| 4202 | |
| 4203 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4204 | if test -n "$ac_tool_prefix"; then |
| 4205 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4206 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4207 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4208 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4209 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4210 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4211 | else |
| 4212 | case $PKG_CONFIG in |
| 4213 | [\\/]* | ?:[\\/]*) |
| 4214 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4215 | ;; |
| 4216 | *) |
| 4217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4218 | for as_dir in $PATH |
| 4219 | do |
| 4220 | IFS=$as_save_IFS |
| 4221 | test -z "$as_dir" && as_dir=. |
| 4222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4224 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4225 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4226 | break 2 |
| 4227 | fi |
| 4228 | done |
| 4229 | done |
| 4230 | IFS=$as_save_IFS |
| 4231 | |
| 4232 | ;; |
| 4233 | esac |
| 4234 | fi |
| 4235 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4236 | if test -n "$PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4237 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4238 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4239 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4240 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4241 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4242 | fi |
| 4243 | |
| 4244 | |
| 4245 | fi |
| 4246 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4247 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4248 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4249 | set dummy pkg-config; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4250 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4251 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4252 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4253 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4254 | else |
| 4255 | case $ac_pt_PKG_CONFIG in |
| 4256 | [\\/]* | ?:[\\/]*) |
| 4257 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4258 | ;; |
| 4259 | *) |
| 4260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4261 | for as_dir in $PATH |
| 4262 | do |
| 4263 | IFS=$as_save_IFS |
| 4264 | test -z "$as_dir" && as_dir=. |
| 4265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4267 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4268 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4269 | break 2 |
| 4270 | fi |
| 4271 | done |
| 4272 | done |
| 4273 | IFS=$as_save_IFS |
| 4274 | |
| 4275 | ;; |
| 4276 | esac |
| 4277 | fi |
| 4278 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4279 | if test -n "$ac_pt_PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4280 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4281 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4282 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4283 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4284 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4285 | fi |
| 4286 | |
| 4287 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4288 | PKG_CONFIG="" |
| 4289 | else |
| 4290 | case $cross_compiling:$ac_tool_warned in |
| 4291 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4292 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4293 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4294 | ac_tool_warned=yes ;; |
| 4295 | esac |
| 4296 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4297 | fi |
| 4298 | else |
| 4299 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4300 | fi |
| 4301 | |
| 4302 | fi |
| 4303 | if test -n "$PKG_CONFIG"; then |
| 4304 | _pkg_min_version=0.9.0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4305 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4306 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4307 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4308 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4309 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4310 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4312 | $as_echo "no" >&6; } |
| 4313 | PKG_CONFIG="" |
| 4314 | fi |
| 4315 | |
| 4316 | fi |
| 4317 | LIBUUID= |
| 4318 | DEPLIBUUID= |
| 4319 | STATIC_LIBUUID= |
| 4320 | DEPSTATIC_LIBUUID= |
| 4321 | PROFILED_LIBUUID= |
| 4322 | DEPPROFILED_LIBUUID= |
| 4323 | UUID_CMT= |
| 4324 | # Check whether --enable-libuuid was given. |
| 4325 | if test "${enable_libuuid+set}" = set; then |
| 4326 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4327 | then |
| 4328 | if test -z "$PKG_CONFIG"; then |
| 4329 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
| 4330 | $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;} |
| 4331 | { (exit 1); exit 1; }; } |
| 4332 | fi |
| 4333 | |
| 4334 | { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 4335 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 4336 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 4337 | $as_echo_n "(cached) " >&6 |
| 4338 | else |
| 4339 | ac_check_lib_save_LIBS=$LIBS |
| 4340 | LIBS="-luuid $LIBUUID $LIBS" |
| 4341 | cat >conftest.$ac_ext <<_ACEOF |
| 4342 | /* confdefs.h. */ |
| 4343 | _ACEOF |
| 4344 | cat confdefs.h >>conftest.$ac_ext |
| 4345 | cat >>conftest.$ac_ext <<_ACEOF |
| 4346 | /* end confdefs.h. */ |
| 4347 | |
| 4348 | /* Override any GCC internal prototype to avoid an error. |
| 4349 | Use char because int might match the return type of a GCC |
| 4350 | builtin and then its argument prototype would still apply. */ |
| 4351 | #ifdef __cplusplus |
| 4352 | extern "C" |
| 4353 | #endif |
| 4354 | char uuid_generate (); |
| 4355 | int |
| 4356 | main () |
| 4357 | { |
| 4358 | return uuid_generate (); |
| 4359 | ; |
| 4360 | return 0; |
| 4361 | } |
| 4362 | _ACEOF |
| 4363 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4364 | if { (ac_try="$ac_link" |
| 4365 | case "(($ac_try" in |
| 4366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4367 | *) ac_try_echo=$ac_try;; |
| 4368 | esac |
| 4369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4370 | $as_echo "$ac_try_echo") >&5 |
| 4371 | (eval "$ac_link") 2>conftest.er1 |
| 4372 | ac_status=$? |
| 4373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4374 | rm -f conftest.er1 |
| 4375 | cat conftest.err >&5 |
| 4376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4377 | (exit $ac_status); } && { |
| 4378 | test -z "$ac_c_werror_flag" || |
| 4379 | test ! -s conftest.err |
| 4380 | } && test -s conftest$ac_exeext && { |
| 4381 | test "$cross_compiling" = yes || |
| 4382 | $as_test_x conftest$ac_exeext |
| 4383 | }; then |
| 4384 | ac_cv_lib_uuid_uuid_generate=yes |
| 4385 | else |
| 4386 | $as_echo "$as_me: failed program was:" >&5 |
| 4387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4388 | |
| 4389 | ac_cv_lib_uuid_uuid_generate=no |
| 4390 | fi |
| 4391 | |
| 4392 | rm -rf conftest.dSYM |
| 4393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4394 | conftest$ac_exeext conftest.$ac_ext |
| 4395 | LIBS=$ac_check_lib_save_LIBS |
| 4396 | fi |
| 4397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 4398 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 4399 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then |
| 4400 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4401 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4402 | else |
| 4403 | { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5 |
| 4404 | $as_echo "$as_me: error: external uuid library not found" >&2;} |
| 4405 | { (exit 1); exit 1; }; } |
| 4406 | fi |
| 4407 | |
| 4408 | UUID_CMT=# |
| 4409 | { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5 |
| 4410 | $as_echo "Disabling private uuid library" >&6; } |
| 4411 | else |
| 4412 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4413 | DEPLIBUUID=$LIBUUID |
| 4414 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4415 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4416 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4417 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 4418 | { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5 |
| 4419 | $as_echo "Enabling private uuid library" >&6; } |
| 4420 | fi |
| 4421 | |
| 4422 | else |
| 4423 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4424 | DEPLIBUUID=$LIBUUID |
| 4425 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4426 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4427 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4428 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 4429 | { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5 |
| 4430 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4431 | |
| 4432 | fi |
| 4433 | |
| 4434 | |
| 4435 | |
| 4436 | |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | |
| 4443 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4444 | if test -n "$ac_tool_prefix"; then |
| 4445 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4446 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4447 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4448 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4449 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4450 | $as_echo_n "(cached) " >&6 |
| 4451 | else |
| 4452 | case $PKG_CONFIG in |
| 4453 | [\\/]* | ?:[\\/]*) |
| 4454 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4455 | ;; |
| 4456 | *) |
| 4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4458 | for as_dir in $PATH |
| 4459 | do |
| 4460 | IFS=$as_save_IFS |
| 4461 | test -z "$as_dir" && as_dir=. |
| 4462 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4464 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4466 | break 2 |
| 4467 | fi |
| 4468 | done |
| 4469 | done |
| 4470 | IFS=$as_save_IFS |
| 4471 | |
| 4472 | ;; |
| 4473 | esac |
| 4474 | fi |
| 4475 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4476 | if test -n "$PKG_CONFIG"; then |
| 4477 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4478 | $as_echo "$PKG_CONFIG" >&6; } |
| 4479 | else |
| 4480 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4481 | $as_echo "no" >&6; } |
| 4482 | fi |
| 4483 | |
| 4484 | |
| 4485 | fi |
| 4486 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4487 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4488 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4489 | set dummy pkg-config; ac_word=$2 |
| 4490 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4491 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4492 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4493 | $as_echo_n "(cached) " >&6 |
| 4494 | else |
| 4495 | case $ac_pt_PKG_CONFIG in |
| 4496 | [\\/]* | ?:[\\/]*) |
| 4497 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4498 | ;; |
| 4499 | *) |
| 4500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4501 | for as_dir in $PATH |
| 4502 | do |
| 4503 | IFS=$as_save_IFS |
| 4504 | test -z "$as_dir" && as_dir=. |
| 4505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4507 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4508 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4509 | break 2 |
| 4510 | fi |
| 4511 | done |
| 4512 | done |
| 4513 | IFS=$as_save_IFS |
| 4514 | |
| 4515 | ;; |
| 4516 | esac |
| 4517 | fi |
| 4518 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4519 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4520 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4521 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4522 | else |
| 4523 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4524 | $as_echo "no" >&6; } |
| 4525 | fi |
| 4526 | |
| 4527 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4528 | PKG_CONFIG="" |
| 4529 | else |
| 4530 | case $cross_compiling:$ac_tool_warned in |
| 4531 | yes:) |
| 4532 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4534 | ac_tool_warned=yes ;; |
| 4535 | esac |
| 4536 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4537 | fi |
| 4538 | else |
| 4539 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4540 | fi |
| 4541 | |
| 4542 | fi |
| 4543 | if test -n "$PKG_CONFIG"; then |
| 4544 | _pkg_min_version=0.9.0 |
| 4545 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4546 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 4547 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4548 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4549 | $as_echo "yes" >&6; } |
| 4550 | else |
| 4551 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4552 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4553 | PKG_CONFIG="" |
| 4554 | fi |
| 4555 | |
| 4556 | fi |
| 4557 | LIBBLKID= |
| 4558 | DEPLIBBLKID= |
| 4559 | STATIC_LIBBLKID= |
| 4560 | DEPSTATIC_LIBBLKID= |
| 4561 | PROFILED_LIBBLKID= |
| 4562 | DEPPROFILED_LIBBLKID= |
| 4563 | BLKID_CMT= |
| 4564 | # Check whether --enable-libblkid was given. |
| 4565 | if test "${enable_libblkid+set}" = set; then |
| 4566 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 4567 | then |
| 4568 | if test -z "$PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4569 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
| 4570 | $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4571 | { (exit 1); exit 1; }; } |
| 4572 | fi |
| 4573 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4574 | { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 |
| 4575 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4576 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4577 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4578 | else |
| 4579 | ac_check_lib_save_LIBS=$LIBS |
| 4580 | LIBS="-lblkid $LIBBLKID $LIBS" |
| 4581 | cat >conftest.$ac_ext <<_ACEOF |
| 4582 | /* confdefs.h. */ |
| 4583 | _ACEOF |
| 4584 | cat confdefs.h >>conftest.$ac_ext |
| 4585 | cat >>conftest.$ac_ext <<_ACEOF |
| 4586 | /* end confdefs.h. */ |
| 4587 | |
| 4588 | /* Override any GCC internal prototype to avoid an error. |
| 4589 | Use char because int might match the return type of a GCC |
| 4590 | builtin and then its argument prototype would still apply. */ |
| 4591 | #ifdef __cplusplus |
| 4592 | extern "C" |
| 4593 | #endif |
| 4594 | char blkid_get_cache (); |
| 4595 | int |
| 4596 | main () |
| 4597 | { |
| 4598 | return blkid_get_cache (); |
| 4599 | ; |
| 4600 | return 0; |
| 4601 | } |
| 4602 | _ACEOF |
| 4603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4604 | if { (ac_try="$ac_link" |
| 4605 | case "(($ac_try" in |
| 4606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4607 | *) ac_try_echo=$ac_try;; |
| 4608 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4610 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4611 | (eval "$ac_link") 2>conftest.er1 |
| 4612 | ac_status=$? |
| 4613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4614 | rm -f conftest.er1 |
| 4615 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4617 | (exit $ac_status); } && { |
| 4618 | test -z "$ac_c_werror_flag" || |
| 4619 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4620 | } && test -s conftest$ac_exeext && { |
| 4621 | test "$cross_compiling" = yes || |
| 4622 | $as_test_x conftest$ac_exeext |
| 4623 | }; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4624 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 4625 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4626 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4628 | |
| 4629 | ac_cv_lib_blkid_blkid_get_cache=no |
| 4630 | fi |
| 4631 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4632 | rm -rf conftest.dSYM |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4634 | conftest$ac_exeext conftest.$ac_ext |
| 4635 | LIBS=$ac_check_lib_save_LIBS |
| 4636 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4637 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 4638 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 4639 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4640 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 4641 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 4642 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4643 | { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5 |
| 4644 | $as_echo "$as_me: error: external blkid library not found" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4645 | { (exit 1); exit 1; }; } |
| 4646 | fi |
| 4647 | |
| 4648 | BLKID_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4649 | { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5 |
| 4650 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4651 | else |
| 4652 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4653 | DEPLIBBLKID=$LIBBLKID |
| 4654 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4655 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4656 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4657 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4658 | cat >>confdefs.h <<\_ACEOF |
| 4659 | #define CONFIG_BUILD_FINDFS 1 |
| 4660 | _ACEOF |
| 4661 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4662 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5 |
| 4663 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4664 | fi |
| 4665 | |
| 4666 | else |
| 4667 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4668 | DEPLIBBLKID=$LIBBLKID |
| 4669 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4670 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4671 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4672 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4673 | cat >>confdefs.h <<\_ACEOF |
| 4674 | #define CONFIG_BUILD_FINDFS 1 |
| 4675 | _ACEOF |
| 4676 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4677 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5 |
| 4678 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4679 | |
| 4680 | fi |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4689 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4690 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4691 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4692 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4693 | { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
| 4694 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4695 | DEBUGFS_CMT="#" |
| 4696 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4697 | DEBUGFS_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4698 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
| 4699 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4700 | fi |
| 4701 | |
| 4702 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4703 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
| 4704 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4705 | DEBUGFS_CMT= |
| 4706 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4707 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4709 | |
| 4710 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4711 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4712 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4713 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4714 | { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
| 4715 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4716 | IMAGER_CMT="#" |
| 4717 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4718 | IMAGER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4719 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
| 4720 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4721 | fi |
| 4722 | |
| 4723 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4724 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
| 4725 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4726 | IMAGER_CMT= |
| 4727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4728 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4730 | |
| 4731 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4732 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4733 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4734 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4735 | { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
| 4736 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4737 | RESIZER_CMT="#" |
| 4738 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4739 | RESIZER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4740 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
| 4741 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4742 | fi |
| 4743 | |
| 4744 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4745 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
| 4746 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4747 | RESIZER_CMT= |
| 4748 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4749 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4752 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4753 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4754 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4755 | then |
| 4756 | FSCK_PROG='' FSCK_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4757 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
| 4758 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4759 | else |
| 4760 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4761 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
| 4762 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4763 | fi |
| 4764 | |
| 4765 | else |
| 4766 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4767 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4768 | FSCK_PROG='' FSCK_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4769 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
| 4770 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4771 | ;; |
| 4772 | *) |
| 4773 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4774 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
| 4775 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4776 | esac |
| 4777 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4778 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4779 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4780 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4781 | |
| 4782 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4783 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4784 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4785 | then |
| 4786 | E2INITRD_PROG='' E2INITRD_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4787 | { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
| 4788 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4789 | else |
| 4790 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4791 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
| 4792 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4793 | fi |
| 4794 | |
| 4795 | else |
| 4796 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4797 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
| 4798 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4800 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4801 | |
| 4802 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4803 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4804 | # Check whether --enable-tls was given. |
| 4805 | if test "${enable_tls+set}" = set; then |
| 4806 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4807 | then |
| 4808 | try_tls="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4809 | { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
| 4810 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4811 | else |
| 4812 | try_tls="yes" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4813 | { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
| 4814 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4815 | fi |
| 4816 | |
| 4817 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4818 | if test -n "$WITH_DIET_LIBC" |
| 4819 | then |
| 4820 | try_tls="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4821 | { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
| 4822 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4823 | else |
| 4824 | try_tls="yes" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4825 | { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
| 4826 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4827 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4828 | |
| 4829 | fi |
| 4830 | |
| 4831 | if test "$try_tls" = "yes" |
| 4832 | then |
| 4833 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4834 | { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4835 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4836 | if test "${ac_cv_tls+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4837 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4838 | else |
| 4839 | |
| 4840 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4841 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4842 | case $ax_tls_keyword in |
| 4843 | none) ac_cv_tls=none ; break ;; |
| 4844 | *) |
| 4845 | cat >conftest.$ac_ext <<_ACEOF |
| 4846 | /* confdefs.h. */ |
| 4847 | _ACEOF |
| 4848 | cat confdefs.h >>conftest.$ac_ext |
| 4849 | cat >>conftest.$ac_ext <<_ACEOF |
| 4850 | /* end confdefs.h. */ |
| 4851 | #include <stdlib.h> |
| 4852 | static void |
| 4853 | foo(void) { |
| 4854 | static $ax_tls_keyword int bar; |
| 4855 | exit(1); |
| 4856 | } |
| 4857 | int |
| 4858 | main () |
| 4859 | { |
| 4860 | |
| 4861 | ; |
| 4862 | return 0; |
| 4863 | } |
| 4864 | _ACEOF |
| 4865 | rm -f conftest.$ac_objext |
| 4866 | if { (ac_try="$ac_compile" |
| 4867 | case "(($ac_try" in |
| 4868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4869 | *) ac_try_echo=$ac_try;; |
| 4870 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4872 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4873 | (eval "$ac_compile") 2>conftest.er1 |
| 4874 | ac_status=$? |
| 4875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4876 | rm -f conftest.er1 |
| 4877 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4879 | (exit $ac_status); } && { |
| 4880 | test -z "$ac_c_werror_flag" || |
| 4881 | test ! -s conftest.err |
| 4882 | } && test -s conftest.$ac_objext; then |
| 4883 | ac_cv_tls=$ax_tls_keyword ; break |
| 4884 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4885 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4887 | |
| 4888 | ac_cv_tls=none |
| 4889 | |
| 4890 | fi |
| 4891 | |
| 4892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4893 | esac |
| 4894 | done |
| 4895 | |
| 4896 | fi |
| 4897 | |
| 4898 | |
| 4899 | if test "$ac_cv_tls" != "none"; then |
| 4900 | |
| 4901 | cat >>confdefs.h <<_ACEOF |
| 4902 | #define TLS $ac_cv_tls |
| 4903 | _ACEOF |
| 4904 | |
| 4905 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4906 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4907 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4908 | |
| 4909 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4910 | # Check whether --enable-uuidd was given. |
| 4911 | if test "${enable_uuidd+set}" = set; then |
| 4912 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4913 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4914 | { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
| 4915 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4916 | UUIDD_CMT="#" |
| 4917 | else |
| 4918 | cat >>confdefs.h <<\_ACEOF |
| 4919 | #define USE_UUIDD 1 |
| 4920 | _ACEOF |
| 4921 | |
| 4922 | UUIDD_CMT="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4923 | { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5 |
| 4924 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4925 | fi |
| 4926 | |
| 4927 | else |
| 4928 | cat >>confdefs.h <<\_ACEOF |
| 4929 | #define USE_UUIDD 1 |
| 4930 | _ACEOF |
| 4931 | |
| 4932 | UUIDD_CMT="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4933 | { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
| 4934 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4935 | |
| 4936 | fi |
| 4937 | |
| 4938 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4939 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4940 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4941 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4942 | PACKAGE=e2fsprogs |
| 4943 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4944 | VERSION=0.14.1 |
| 4945 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4946 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4947 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4948 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4949 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4950 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4951 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4952 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4953 | |
| 4954 | |
| 4955 | |
| 4956 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4957 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4958 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4959 | set x ${MAKE-make} |
| 4960 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4961 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4962 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4963 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4964 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4965 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4966 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4967 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4968 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4969 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4970 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4971 | *@@@%%%=?*=@@@%%%*) |
| 4972 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4973 | *) |
| 4974 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4975 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4976 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4978 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4979 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4980 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4981 | SET_MAKE= |
| 4982 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4984 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4985 | SET_MAKE="MAKE=${MAKE-make}" |
| 4986 | fi |
| 4987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4988 | # Find a good install program. We prefer a C program (faster), |
| 4989 | # so one script is as good as another. But avoid the broken or |
| 4990 | # incompatible versions: |
| 4991 | # SysV /etc/install, /usr/sbin/install |
| 4992 | # SunOS /usr/etc/install |
| 4993 | # IRIX /sbin/install |
| 4994 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4995 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4996 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4997 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4998 | # 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] | 4999 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5000 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5001 | # Reject install programs that cannot install multiple files. |
| 5002 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5003 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5004 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5005 | if test "${ac_cv_path_install+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5006 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5007 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5009 | for as_dir in $PATH |
| 5010 | do |
| 5011 | IFS=$as_save_IFS |
| 5012 | test -z "$as_dir" && as_dir=. |
| 5013 | # Account for people who put trailing slashes in PATH elements. |
| 5014 | case $as_dir/ in |
| 5015 | ./ | .// | /cC/* | \ |
| 5016 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5017 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5018 | /usr/ucb/* ) ;; |
| 5019 | *) |
| 5020 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5021 | # Don't use installbsd from OSF since it installs stuff as root |
| 5022 | # by default. |
| 5023 | for ac_prog in ginstall scoinst install; do |
| 5024 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5025 | 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] | 5026 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5027 | 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] | 5028 | # AIX install. It has an incompatible calling convention. |
| 5029 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5030 | elif test $ac_prog = install && |
| 5031 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5032 | # program-specific install script used by HP pwplus--don't use. |
| 5033 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5034 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5035 | rm -rf conftest.one conftest.two conftest.dir |
| 5036 | echo one > conftest.one |
| 5037 | echo two > conftest.two |
| 5038 | mkdir conftest.dir |
| 5039 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5040 | test -s conftest.one && test -s conftest.two && |
| 5041 | test -s conftest.dir/conftest.one && |
| 5042 | test -s conftest.dir/conftest.two |
| 5043 | then |
| 5044 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5045 | break 3 |
| 5046 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5047 | fi |
| 5048 | fi |
| 5049 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5050 | done |
| 5051 | ;; |
| 5052 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5053 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5054 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5055 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5056 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5057 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5058 | |
| 5059 | fi |
| 5060 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5061 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5062 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5063 | # As a last resort, use the slow shell script. Don't cache a |
| 5064 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5065 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5066 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5067 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5068 | fi |
| 5069 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5070 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5071 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5072 | |
| 5073 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5074 | # It thinks the first close brace ends the variable substitution. |
| 5075 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5076 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5077 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5078 | |
| 5079 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5080 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5081 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5082 | MKINSTALLDIRS= |
| 5083 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5084 | case "$ac_aux_dir" in |
| 5085 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5086 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5087 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5088 | fi |
| 5089 | if test -z "$MKINSTALLDIRS"; then |
| 5090 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5091 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5092 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5093 | |
| 5094 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5095 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 5096 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5097 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5098 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5099 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5100 | else |
| 5101 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5102 | fi |
| 5103 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5104 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 5105 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | # Prepare PATH_SEPARATOR. |
| 5113 | # The user is always right. |
| 5114 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5115 | echo "#! /bin/sh" >conf$$.sh |
| 5116 | echo "exit 0" >>conf$$.sh |
| 5117 | chmod +x conf$$.sh |
| 5118 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5119 | PATH_SEPARATOR=';' |
| 5120 | else |
| 5121 | PATH_SEPARATOR=: |
| 5122 | fi |
| 5123 | rm -f conf$$.sh |
| 5124 | fi |
| 5125 | |
| 5126 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5127 | # as systems may use methods other than mode bits to determine executability. |
| 5128 | cat >conf$$.file <<_ASEOF |
| 5129 | #! /bin/sh |
| 5130 | exit 0 |
| 5131 | _ASEOF |
| 5132 | chmod +x conf$$.file |
| 5133 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5134 | ac_executable_p="test -x" |
| 5135 | else |
| 5136 | ac_executable_p="test -f" |
| 5137 | fi |
| 5138 | rm -f conf$$.file |
| 5139 | |
| 5140 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5141 | set dummy msgfmt; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5142 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5143 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5144 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5145 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5146 | else |
| 5147 | case "$MSGFMT" in |
| 5148 | [\\/]* | ?:[\\/]*) |
| 5149 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5150 | ;; |
| 5151 | *) |
| 5152 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5153 | for ac_dir in $PATH; do |
| 5154 | IFS="$ac_save_IFS" |
| 5155 | test -z "$ac_dir" && ac_dir=. |
| 5156 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5157 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5158 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5159 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5160 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5161 | break 2 |
| 5162 | fi |
| 5163 | fi |
| 5164 | done |
| 5165 | done |
| 5166 | IFS="$ac_save_IFS" |
| 5167 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5168 | ;; |
| 5169 | esac |
| 5170 | fi |
| 5171 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5172 | if test "$MSGFMT" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5173 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 5174 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5175 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5176 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5177 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5178 | fi |
| 5179 | |
| 5180 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5181 | set dummy gmsgfmt; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5182 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5183 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5184 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5185 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5186 | else |
| 5187 | case $GMSGFMT in |
| 5188 | [\\/]* | ?:[\\/]*) |
| 5189 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5190 | ;; |
| 5191 | *) |
| 5192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5193 | for as_dir in $PATH |
| 5194 | do |
| 5195 | IFS=$as_save_IFS |
| 5196 | test -z "$as_dir" && as_dir=. |
| 5197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5198 | 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] | 5199 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5200 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5201 | break 2 |
| 5202 | fi |
| 5203 | done |
| 5204 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5205 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5206 | |
| 5207 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5208 | ;; |
| 5209 | esac |
| 5210 | fi |
| 5211 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5212 | if test -n "$GMSGFMT"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5213 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 5214 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5215 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5216 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5217 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5218 | fi |
| 5219 | |
| 5220 | |
| 5221 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5223 | # Prepare PATH_SEPARATOR. |
| 5224 | # The user is always right. |
| 5225 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5226 | echo "#! /bin/sh" >conf$$.sh |
| 5227 | echo "exit 0" >>conf$$.sh |
| 5228 | chmod +x conf$$.sh |
| 5229 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5230 | PATH_SEPARATOR=';' |
| 5231 | else |
| 5232 | PATH_SEPARATOR=: |
| 5233 | fi |
| 5234 | rm -f conf$$.sh |
| 5235 | fi |
| 5236 | |
| 5237 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5238 | # as systems may use methods other than mode bits to determine executability. |
| 5239 | cat >conf$$.file <<_ASEOF |
| 5240 | #! /bin/sh |
| 5241 | exit 0 |
| 5242 | _ASEOF |
| 5243 | chmod +x conf$$.file |
| 5244 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5245 | ac_executable_p="test -x" |
| 5246 | else |
| 5247 | ac_executable_p="test -f" |
| 5248 | fi |
| 5249 | rm -f conf$$.file |
| 5250 | |
| 5251 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5252 | set dummy xgettext; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5253 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5254 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5255 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5256 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5257 | else |
| 5258 | case "$XGETTEXT" in |
| 5259 | [\\/]* | ?:[\\/]*) |
| 5260 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5261 | ;; |
| 5262 | *) |
| 5263 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5264 | for ac_dir in $PATH; do |
| 5265 | IFS="$ac_save_IFS" |
| 5266 | test -z "$ac_dir" && ac_dir=. |
| 5267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5268 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5269 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5270 | (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 |
| 5271 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5272 | break 2 |
| 5273 | fi |
| 5274 | fi |
| 5275 | done |
| 5276 | done |
| 5277 | IFS="$ac_save_IFS" |
| 5278 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5279 | ;; |
| 5280 | esac |
| 5281 | fi |
| 5282 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5283 | if test "$XGETTEXT" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5284 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 5285 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5286 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5287 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5288 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5289 | fi |
| 5290 | |
| 5291 | rm -f messages.po |
| 5292 | |
| 5293 | |
| 5294 | # Prepare PATH_SEPARATOR. |
| 5295 | # The user is always right. |
| 5296 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5297 | echo "#! /bin/sh" >conf$$.sh |
| 5298 | echo "exit 0" >>conf$$.sh |
| 5299 | chmod +x conf$$.sh |
| 5300 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5301 | PATH_SEPARATOR=';' |
| 5302 | else |
| 5303 | PATH_SEPARATOR=: |
| 5304 | fi |
| 5305 | rm -f conf$$.sh |
| 5306 | fi |
| 5307 | |
| 5308 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5309 | # as systems may use methods other than mode bits to determine executability. |
| 5310 | cat >conf$$.file <<_ASEOF |
| 5311 | #! /bin/sh |
| 5312 | exit 0 |
| 5313 | _ASEOF |
| 5314 | chmod +x conf$$.file |
| 5315 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5316 | ac_executable_p="test -x" |
| 5317 | else |
| 5318 | ac_executable_p="test -f" |
| 5319 | fi |
| 5320 | rm -f conf$$.file |
| 5321 | |
| 5322 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5323 | set dummy msgmerge; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5324 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5325 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5326 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5327 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5328 | else |
| 5329 | case "$MSGMERGE" in |
| 5330 | [\\/]* | ?:[\\/]*) |
| 5331 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5332 | ;; |
| 5333 | *) |
| 5334 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5335 | for ac_dir in $PATH; do |
| 5336 | IFS="$ac_save_IFS" |
| 5337 | test -z "$ac_dir" && ac_dir=. |
| 5338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5339 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5340 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5341 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5342 | break 2 |
| 5343 | fi |
| 5344 | fi |
| 5345 | done |
| 5346 | done |
| 5347 | IFS="$ac_save_IFS" |
| 5348 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5349 | ;; |
| 5350 | esac |
| 5351 | fi |
| 5352 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5353 | if test "$MSGMERGE" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5354 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 5355 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5356 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5357 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5358 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5359 | fi |
| 5360 | |
| 5361 | |
| 5362 | if test "$GMSGFMT" != ":"; then |
| 5363 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5364 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5365 | : ; |
| 5366 | else |
| 5367 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5368 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 5369 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5370 | GMSGFMT=":" |
| 5371 | fi |
| 5372 | fi |
| 5373 | |
| 5374 | if test "$XGETTEXT" != ":"; then |
| 5375 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5376 | (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 |
| 5377 | : ; |
| 5378 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5379 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 5380 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5381 | XGETTEXT=":" |
| 5382 | fi |
| 5383 | rm -f messages.po |
| 5384 | fi |
| 5385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5386 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5387 | |
| 5388 | |
| 5389 | if test -n "$ac_tool_prefix"; then |
| 5390 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5391 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5392 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5393 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5394 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5395 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5396 | else |
| 5397 | if test -n "$RANLIB"; then |
| 5398 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5401 | for as_dir in $PATH |
| 5402 | do |
| 5403 | IFS=$as_save_IFS |
| 5404 | test -z "$as_dir" && as_dir=. |
| 5405 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5406 | 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] | 5407 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5408 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5409 | break 2 |
| 5410 | fi |
| 5411 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5412 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5413 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5414 | |
| 5415 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5416 | fi |
| 5417 | RANLIB=$ac_cv_prog_RANLIB |
| 5418 | if test -n "$RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5419 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5420 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5421 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5422 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5423 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5424 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5425 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5426 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5427 | fi |
| 5428 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5429 | ac_ct_RANLIB=$RANLIB |
| 5430 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5431 | set dummy ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5432 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5433 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5434 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5435 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5436 | else |
| 5437 | if test -n "$ac_ct_RANLIB"; then |
| 5438 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5439 | else |
| 5440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5441 | for as_dir in $PATH |
| 5442 | do |
| 5443 | IFS=$as_save_IFS |
| 5444 | test -z "$as_dir" && as_dir=. |
| 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5446 | 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] | 5447 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5448 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5449 | break 2 |
| 5450 | fi |
| 5451 | done |
| 5452 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5453 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5455 | fi |
| 5456 | fi |
| 5457 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5458 | if test -n "$ac_ct_RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5459 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5460 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5461 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5462 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5463 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5464 | fi |
| 5465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5466 | if test "x$ac_ct_RANLIB" = x; then |
| 5467 | RANLIB=":" |
| 5468 | else |
| 5469 | case $cross_compiling:$ac_tool_warned in |
| 5470 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5471 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5472 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5473 | ac_tool_warned=yes ;; |
| 5474 | esac |
| 5475 | RANLIB=$ac_ct_RANLIB |
| 5476 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5477 | else |
| 5478 | RANLIB="$ac_cv_prog_RANLIB" |
| 5479 | fi |
| 5480 | |
| 5481 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5482 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5483 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5484 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5485 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5486 | else |
| 5487 | ac_check_lib_save_LIBS=$LIBS |
| 5488 | LIBS="-lcposix $LIBS" |
| 5489 | cat >conftest.$ac_ext <<_ACEOF |
| 5490 | /* confdefs.h. */ |
| 5491 | _ACEOF |
| 5492 | cat confdefs.h >>conftest.$ac_ext |
| 5493 | cat >>conftest.$ac_ext <<_ACEOF |
| 5494 | /* end confdefs.h. */ |
| 5495 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5496 | /* Override any GCC internal prototype to avoid an error. |
| 5497 | Use char because int might match the return type of a GCC |
| 5498 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5499 | #ifdef __cplusplus |
| 5500 | extern "C" |
| 5501 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5502 | char strerror (); |
| 5503 | int |
| 5504 | main () |
| 5505 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5506 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5507 | ; |
| 5508 | return 0; |
| 5509 | } |
| 5510 | _ACEOF |
| 5511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5512 | if { (ac_try="$ac_link" |
| 5513 | case "(($ac_try" in |
| 5514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5515 | *) ac_try_echo=$ac_try;; |
| 5516 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5518 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5519 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5520 | ac_status=$? |
| 5521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5522 | rm -f conftest.er1 |
| 5523 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5525 | (exit $ac_status); } && { |
| 5526 | test -z "$ac_c_werror_flag" || |
| 5527 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5528 | } && test -s conftest$ac_exeext && { |
| 5529 | test "$cross_compiling" = yes || |
| 5530 | $as_test_x conftest$ac_exeext |
| 5531 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | ac_cv_lib_cposix_strerror=yes |
| 5533 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5534 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5537 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5538 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5539 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5540 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5541 | 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] | 5542 | conftest$ac_exeext conftest.$ac_ext |
| 5543 | LIBS=$ac_check_lib_save_LIBS |
| 5544 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5546 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
| 5547 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5548 | LIBS="$LIBS -lcposix" |
| 5549 | fi |
| 5550 | |
| 5551 | |
| 5552 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5553 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5554 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5555 | if test "${ac_cv_c_const+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5556 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5557 | else |
| 5558 | cat >conftest.$ac_ext <<_ACEOF |
| 5559 | /* confdefs.h. */ |
| 5560 | _ACEOF |
| 5561 | cat confdefs.h >>conftest.$ac_ext |
| 5562 | cat >>conftest.$ac_ext <<_ACEOF |
| 5563 | /* end confdefs.h. */ |
| 5564 | |
| 5565 | int |
| 5566 | main () |
| 5567 | { |
| 5568 | /* FIXME: Include the comments suggested by Paul. */ |
| 5569 | #ifndef __cplusplus |
| 5570 | /* Ultrix mips cc rejects this. */ |
| 5571 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5572 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5573 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5574 | char const *const *pcpcc; |
| 5575 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5576 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5577 | struct point {int x, y;}; |
| 5578 | static struct point const zero = {0,0}; |
| 5579 | /* AIX XL C 1.02.0.0 rejects this. |
| 5580 | It does not let you subtract one const X* pointer from another in |
| 5581 | an arm of an if-expression whose if-part is not a constant |
| 5582 | expression */ |
| 5583 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5584 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5585 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5586 | ++pcpcc; |
| 5587 | ppc = (char**) pcpcc; |
| 5588 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5589 | { /* SCO 3.2v4 cc rejects this. */ |
| 5590 | char *t; |
| 5591 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5592 | |
| 5593 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5594 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5595 | } |
| 5596 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5597 | int x[] = {25, 17}; |
| 5598 | const int *foo = &x[0]; |
| 5599 | ++foo; |
| 5600 | } |
| 5601 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5602 | typedef const int *iptr; |
| 5603 | iptr p = 0; |
| 5604 | ++p; |
| 5605 | } |
| 5606 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5607 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5608 | struct s { int j; const int *ap[3]; }; |
| 5609 | struct s *b; b->j = 5; |
| 5610 | } |
| 5611 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5612 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5613 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5614 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5615 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5616 | #endif |
| 5617 | |
| 5618 | ; |
| 5619 | return 0; |
| 5620 | } |
| 5621 | _ACEOF |
| 5622 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5623 | if { (ac_try="$ac_compile" |
| 5624 | case "(($ac_try" in |
| 5625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5626 | *) ac_try_echo=$ac_try;; |
| 5627 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5629 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5630 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5631 | ac_status=$? |
| 5632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5633 | rm -f conftest.er1 |
| 5634 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5636 | (exit $ac_status); } && { |
| 5637 | test -z "$ac_c_werror_flag" || |
| 5638 | test ! -s conftest.err |
| 5639 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5640 | ac_cv_c_const=yes |
| 5641 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5642 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5644 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5645 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5647 | |
| 5648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5649 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5651 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | if test $ac_cv_c_const = no; then |
| 5653 | |
| 5654 | cat >>confdefs.h <<\_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5655 | #define const /**/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5656 | _ACEOF |
| 5657 | |
| 5658 | fi |
| 5659 | |
| 5660 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5661 | { $as_echo "$as_me:$LINENO: checking for signed" >&5 |
| 5662 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5663 | if test "${bh_cv_c_signed+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5664 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5665 | else |
| 5666 | cat >conftest.$ac_ext <<_ACEOF |
| 5667 | /* confdefs.h. */ |
| 5668 | _ACEOF |
| 5669 | cat confdefs.h >>conftest.$ac_ext |
| 5670 | cat >>conftest.$ac_ext <<_ACEOF |
| 5671 | /* end confdefs.h. */ |
| 5672 | |
| 5673 | int |
| 5674 | main () |
| 5675 | { |
| 5676 | signed char x; |
| 5677 | ; |
| 5678 | return 0; |
| 5679 | } |
| 5680 | _ACEOF |
| 5681 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5682 | if { (ac_try="$ac_compile" |
| 5683 | case "(($ac_try" in |
| 5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5685 | *) ac_try_echo=$ac_try;; |
| 5686 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5688 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5689 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5690 | ac_status=$? |
| 5691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5692 | rm -f conftest.er1 |
| 5693 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5695 | (exit $ac_status); } && { |
| 5696 | test -z "$ac_c_werror_flag" || |
| 5697 | test ! -s conftest.err |
| 5698 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5699 | bh_cv_c_signed=yes |
| 5700 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5701 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5703 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5704 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5705 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5706 | |
| 5707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5708 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5709 | { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5710 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5711 | if test $bh_cv_c_signed = no; then |
| 5712 | |
| 5713 | cat >>confdefs.h <<\_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5714 | #define signed /**/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5715 | _ACEOF |
| 5716 | |
| 5717 | fi |
| 5718 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5719 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
| 5720 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5721 | if test "${ac_cv_c_inline+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5722 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5723 | else |
| 5724 | ac_cv_c_inline=no |
| 5725 | for ac_kw in inline __inline__ __inline; do |
| 5726 | cat >conftest.$ac_ext <<_ACEOF |
| 5727 | /* confdefs.h. */ |
| 5728 | _ACEOF |
| 5729 | cat confdefs.h >>conftest.$ac_ext |
| 5730 | cat >>conftest.$ac_ext <<_ACEOF |
| 5731 | /* end confdefs.h. */ |
| 5732 | #ifndef __cplusplus |
| 5733 | typedef int foo_t; |
| 5734 | static $ac_kw foo_t static_foo () {return 0; } |
| 5735 | $ac_kw foo_t foo () {return 0; } |
| 5736 | #endif |
| 5737 | |
| 5738 | _ACEOF |
| 5739 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5740 | if { (ac_try="$ac_compile" |
| 5741 | case "(($ac_try" in |
| 5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5743 | *) ac_try_echo=$ac_try;; |
| 5744 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5746 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5747 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5748 | ac_status=$? |
| 5749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5750 | rm -f conftest.er1 |
| 5751 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5753 | (exit $ac_status); } && { |
| 5754 | test -z "$ac_c_werror_flag" || |
| 5755 | test ! -s conftest.err |
| 5756 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5758 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5759 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5762 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5764 | |
| 5765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5766 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5767 | done |
| 5768 | |
| 5769 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5771 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5772 | |
| 5773 | |
| 5774 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5775 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5776 | *) |
| 5777 | case $ac_cv_c_inline in |
| 5778 | no) ac_val=;; |
| 5779 | *) ac_val=$ac_cv_c_inline;; |
| 5780 | esac |
| 5781 | cat >>confdefs.h <<_ACEOF |
| 5782 | #ifndef __cplusplus |
| 5783 | #define inline $ac_val |
| 5784 | #endif |
| 5785 | _ACEOF |
| 5786 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5787 | esac |
| 5788 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5789 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5790 | $as_echo_n "checking for off_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5791 | if test "${ac_cv_type_off_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5792 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5793 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5794 | ac_cv_type_off_t=no |
| 5795 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5796 | /* confdefs.h. */ |
| 5797 | _ACEOF |
| 5798 | cat confdefs.h >>conftest.$ac_ext |
| 5799 | cat >>conftest.$ac_ext <<_ACEOF |
| 5800 | /* end confdefs.h. */ |
| 5801 | $ac_includes_default |
| 5802 | int |
| 5803 | main () |
| 5804 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5805 | if (sizeof (off_t)) |
| 5806 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5807 | ; |
| 5808 | return 0; |
| 5809 | } |
| 5810 | _ACEOF |
| 5811 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5812 | if { (ac_try="$ac_compile" |
| 5813 | case "(($ac_try" in |
| 5814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5815 | *) ac_try_echo=$ac_try;; |
| 5816 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5818 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5819 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5820 | ac_status=$? |
| 5821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5822 | rm -f conftest.er1 |
| 5823 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5825 | (exit $ac_status); } && { |
| 5826 | test -z "$ac_c_werror_flag" || |
| 5827 | test ! -s conftest.err |
| 5828 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5829 | cat >conftest.$ac_ext <<_ACEOF |
| 5830 | /* confdefs.h. */ |
| 5831 | _ACEOF |
| 5832 | cat confdefs.h >>conftest.$ac_ext |
| 5833 | cat >>conftest.$ac_ext <<_ACEOF |
| 5834 | /* end confdefs.h. */ |
| 5835 | $ac_includes_default |
| 5836 | int |
| 5837 | main () |
| 5838 | { |
| 5839 | if (sizeof ((off_t))) |
| 5840 | return 0; |
| 5841 | ; |
| 5842 | return 0; |
| 5843 | } |
| 5844 | _ACEOF |
| 5845 | rm -f conftest.$ac_objext |
| 5846 | if { (ac_try="$ac_compile" |
| 5847 | case "(($ac_try" in |
| 5848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5849 | *) ac_try_echo=$ac_try;; |
| 5850 | esac |
| 5851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5852 | $as_echo "$ac_try_echo") >&5 |
| 5853 | (eval "$ac_compile") 2>conftest.er1 |
| 5854 | ac_status=$? |
| 5855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5856 | rm -f conftest.er1 |
| 5857 | cat conftest.err >&5 |
| 5858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5859 | (exit $ac_status); } && { |
| 5860 | test -z "$ac_c_werror_flag" || |
| 5861 | test ! -s conftest.err |
| 5862 | } && test -s conftest.$ac_objext; then |
| 5863 | : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5864 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5865 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5866 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5867 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5868 | ac_cv_type_off_t=yes |
| 5869 | fi |
| 5870 | |
| 5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5872 | else |
| 5873 | $as_echo "$as_me: failed program was:" >&5 |
| 5874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5875 | |
| 5876 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5877 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5878 | |
| 5879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5880 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5881 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5882 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 5883 | if test "x$ac_cv_type_off_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5884 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5885 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5886 | |
| 5887 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5888 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5889 | _ACEOF |
| 5890 | |
| 5891 | fi |
| 5892 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5893 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5894 | $as_echo_n "checking for size_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5895 | if test "${ac_cv_type_size_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5896 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5897 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5898 | ac_cv_type_size_t=no |
| 5899 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5900 | /* confdefs.h. */ |
| 5901 | _ACEOF |
| 5902 | cat confdefs.h >>conftest.$ac_ext |
| 5903 | cat >>conftest.$ac_ext <<_ACEOF |
| 5904 | /* end confdefs.h. */ |
| 5905 | $ac_includes_default |
| 5906 | int |
| 5907 | main () |
| 5908 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5909 | if (sizeof (size_t)) |
| 5910 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5911 | ; |
| 5912 | return 0; |
| 5913 | } |
| 5914 | _ACEOF |
| 5915 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5916 | if { (ac_try="$ac_compile" |
| 5917 | case "(($ac_try" in |
| 5918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5919 | *) ac_try_echo=$ac_try;; |
| 5920 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5922 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5923 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5924 | ac_status=$? |
| 5925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5926 | rm -f conftest.er1 |
| 5927 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5929 | (exit $ac_status); } && { |
| 5930 | test -z "$ac_c_werror_flag" || |
| 5931 | test ! -s conftest.err |
| 5932 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5933 | cat >conftest.$ac_ext <<_ACEOF |
| 5934 | /* confdefs.h. */ |
| 5935 | _ACEOF |
| 5936 | cat confdefs.h >>conftest.$ac_ext |
| 5937 | cat >>conftest.$ac_ext <<_ACEOF |
| 5938 | /* end confdefs.h. */ |
| 5939 | $ac_includes_default |
| 5940 | int |
| 5941 | main () |
| 5942 | { |
| 5943 | if (sizeof ((size_t))) |
| 5944 | return 0; |
| 5945 | ; |
| 5946 | return 0; |
| 5947 | } |
| 5948 | _ACEOF |
| 5949 | rm -f conftest.$ac_objext |
| 5950 | if { (ac_try="$ac_compile" |
| 5951 | case "(($ac_try" in |
| 5952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5953 | *) ac_try_echo=$ac_try;; |
| 5954 | esac |
| 5955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5956 | $as_echo "$ac_try_echo") >&5 |
| 5957 | (eval "$ac_compile") 2>conftest.er1 |
| 5958 | ac_status=$? |
| 5959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5960 | rm -f conftest.er1 |
| 5961 | cat conftest.err >&5 |
| 5962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5963 | (exit $ac_status); } && { |
| 5964 | test -z "$ac_c_werror_flag" || |
| 5965 | test ! -s conftest.err |
| 5966 | } && test -s conftest.$ac_objext; then |
| 5967 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5968 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5969 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5971 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5972 | ac_cv_type_size_t=yes |
| 5973 | fi |
| 5974 | |
| 5975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5976 | else |
| 5977 | $as_echo "$as_me: failed program was:" >&5 |
| 5978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5979 | |
| 5980 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5981 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5982 | |
| 5983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5984 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5985 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5986 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 5987 | if test "x$ac_cv_type_size_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5988 | : |
| 5989 | else |
| 5990 | |
| 5991 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5992 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5993 | _ACEOF |
| 5994 | |
| 5995 | fi |
| 5996 | |
| 5997 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5998 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
| 5999 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | if test "${ac_cv_type_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6001 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6002 | else |
| 6003 | cat >conftest.$ac_ext <<_ACEOF |
| 6004 | /* confdefs.h. */ |
| 6005 | _ACEOF |
| 6006 | cat confdefs.h >>conftest.$ac_ext |
| 6007 | cat >>conftest.$ac_ext <<_ACEOF |
| 6008 | /* end confdefs.h. */ |
| 6009 | long long ll = 1LL; int i = 63; |
| 6010 | int |
| 6011 | main () |
| 6012 | { |
| 6013 | long long llmax = (long long) -1; |
| 6014 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6020 | if { (ac_try="$ac_link" |
| 6021 | case "(($ac_try" in |
| 6022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6023 | *) ac_try_echo=$ac_try;; |
| 6024 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6025 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6026 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6027 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6028 | ac_status=$? |
| 6029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6030 | rm -f conftest.er1 |
| 6031 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6032 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6033 | (exit $ac_status); } && { |
| 6034 | test -z "$ac_c_werror_flag" || |
| 6035 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6036 | } && test -s conftest$ac_exeext && { |
| 6037 | test "$cross_compiling" = yes || |
| 6038 | $as_test_x conftest$ac_exeext |
| 6039 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6040 | ac_cv_type_long_long=yes |
| 6041 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6042 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6045 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6046 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6047 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6048 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6049 | 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] | 6050 | conftest$ac_exeext conftest.$ac_ext |
| 6051 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6052 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 6053 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | if test $ac_cv_type_long_long = yes; then |
| 6055 | |
| 6056 | cat >>confdefs.h <<\_ACEOF |
| 6057 | #define HAVE_LONG_LONG 1 |
| 6058 | _ACEOF |
| 6059 | |
| 6060 | fi |
| 6061 | |
| 6062 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6063 | { $as_echo "$as_me:$LINENO: checking for long double" >&5 |
| 6064 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | if test "${gt_cv_c_long_double+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6066 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6067 | else |
| 6068 | if test "$GCC" = yes; then |
| 6069 | gt_cv_c_long_double=yes |
| 6070 | else |
| 6071 | cat >conftest.$ac_ext <<_ACEOF |
| 6072 | /* confdefs.h. */ |
| 6073 | _ACEOF |
| 6074 | cat confdefs.h >>conftest.$ac_ext |
| 6075 | cat >>conftest.$ac_ext <<_ACEOF |
| 6076 | /* end confdefs.h. */ |
| 6077 | |
| 6078 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6079 | long double foo = 0.0; |
| 6080 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6081 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6082 | |
| 6083 | int |
| 6084 | main () |
| 6085 | { |
| 6086 | |
| 6087 | ; |
| 6088 | return 0; |
| 6089 | } |
| 6090 | _ACEOF |
| 6091 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6092 | if { (ac_try="$ac_compile" |
| 6093 | case "(($ac_try" in |
| 6094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6095 | *) ac_try_echo=$ac_try;; |
| 6096 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6098 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6099 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6100 | ac_status=$? |
| 6101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6102 | rm -f conftest.er1 |
| 6103 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6105 | (exit $ac_status); } && { |
| 6106 | test -z "$ac_c_werror_flag" || |
| 6107 | test ! -s conftest.err |
| 6108 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | gt_cv_c_long_double=yes |
| 6110 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6111 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6114 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6116 | |
| 6117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6118 | fi |
| 6119 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6120 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 6121 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6122 | if test $gt_cv_c_long_double = yes; then |
| 6123 | |
| 6124 | cat >>confdefs.h <<\_ACEOF |
| 6125 | #define HAVE_LONG_DOUBLE 1 |
| 6126 | _ACEOF |
| 6127 | |
| 6128 | fi |
| 6129 | |
| 6130 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6131 | { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 6132 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6133 | if test "${gt_cv_c_wchar_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6134 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6135 | else |
| 6136 | cat >conftest.$ac_ext <<_ACEOF |
| 6137 | /* confdefs.h. */ |
| 6138 | _ACEOF |
| 6139 | cat confdefs.h >>conftest.$ac_ext |
| 6140 | cat >>conftest.$ac_ext <<_ACEOF |
| 6141 | /* end confdefs.h. */ |
| 6142 | #include <stddef.h> |
| 6143 | wchar_t foo = (wchar_t)'\0'; |
| 6144 | int |
| 6145 | main () |
| 6146 | { |
| 6147 | |
| 6148 | ; |
| 6149 | return 0; |
| 6150 | } |
| 6151 | _ACEOF |
| 6152 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6153 | if { (ac_try="$ac_compile" |
| 6154 | case "(($ac_try" in |
| 6155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6156 | *) ac_try_echo=$ac_try;; |
| 6157 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6159 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6160 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6161 | ac_status=$? |
| 6162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6163 | rm -f conftest.er1 |
| 6164 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6166 | (exit $ac_status); } && { |
| 6167 | test -z "$ac_c_werror_flag" || |
| 6168 | test ! -s conftest.err |
| 6169 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | gt_cv_c_wchar_t=yes |
| 6171 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6172 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6174 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6175 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6176 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6177 | |
| 6178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6179 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6180 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 6181 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | if test $gt_cv_c_wchar_t = yes; then |
| 6183 | |
| 6184 | cat >>confdefs.h <<\_ACEOF |
| 6185 | #define HAVE_WCHAR_T 1 |
| 6186 | _ACEOF |
| 6187 | |
| 6188 | fi |
| 6189 | |
| 6190 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6191 | { $as_echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 6192 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6193 | if test "${gt_cv_c_wint_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6194 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6195 | else |
| 6196 | cat >conftest.$ac_ext <<_ACEOF |
| 6197 | /* confdefs.h. */ |
| 6198 | _ACEOF |
| 6199 | cat confdefs.h >>conftest.$ac_ext |
| 6200 | cat >>conftest.$ac_ext <<_ACEOF |
| 6201 | /* end confdefs.h. */ |
| 6202 | #include <wchar.h> |
| 6203 | wint_t foo = (wchar_t)'\0'; |
| 6204 | int |
| 6205 | main () |
| 6206 | { |
| 6207 | |
| 6208 | ; |
| 6209 | return 0; |
| 6210 | } |
| 6211 | _ACEOF |
| 6212 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6213 | if { (ac_try="$ac_compile" |
| 6214 | case "(($ac_try" in |
| 6215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6216 | *) ac_try_echo=$ac_try;; |
| 6217 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6219 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6220 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6221 | ac_status=$? |
| 6222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6223 | rm -f conftest.er1 |
| 6224 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6226 | (exit $ac_status); } && { |
| 6227 | test -z "$ac_c_werror_flag" || |
| 6228 | test ! -s conftest.err |
| 6229 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6230 | gt_cv_c_wint_t=yes |
| 6231 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6232 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6234 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6235 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6236 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6237 | |
| 6238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6239 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6240 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 6241 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6242 | if test $gt_cv_c_wint_t = yes; then |
| 6243 | |
| 6244 | cat >>confdefs.h <<\_ACEOF |
| 6245 | #define HAVE_WINT_T 1 |
| 6246 | _ACEOF |
| 6247 | |
| 6248 | fi |
| 6249 | |
| 6250 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6251 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6252 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6253 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6254 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6255 | else |
| 6256 | cat >conftest.$ac_ext <<_ACEOF |
| 6257 | /* confdefs.h. */ |
| 6258 | _ACEOF |
| 6259 | cat confdefs.h >>conftest.$ac_ext |
| 6260 | cat >>conftest.$ac_ext <<_ACEOF |
| 6261 | /* end confdefs.h. */ |
| 6262 | #include <sys/types.h> |
| 6263 | #include <inttypes.h> |
| 6264 | int |
| 6265 | main () |
| 6266 | { |
| 6267 | uintmax_t i = (uintmax_t) -1; |
| 6268 | ; |
| 6269 | return 0; |
| 6270 | } |
| 6271 | _ACEOF |
| 6272 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6273 | if { (ac_try="$ac_compile" |
| 6274 | case "(($ac_try" in |
| 6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6276 | *) ac_try_echo=$ac_try;; |
| 6277 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6279 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6280 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6281 | ac_status=$? |
| 6282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6283 | rm -f conftest.er1 |
| 6284 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6286 | (exit $ac_status); } && { |
| 6287 | test -z "$ac_c_werror_flag" || |
| 6288 | test ! -s conftest.err |
| 6289 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6290 | jm_ac_cv_header_inttypes_h=yes |
| 6291 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6292 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6294 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6295 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6296 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6297 | |
| 6298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6299 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6300 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 6301 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6302 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6303 | |
| 6304 | cat >>confdefs.h <<_ACEOF |
| 6305 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6306 | _ACEOF |
| 6307 | |
| 6308 | fi |
| 6309 | |
| 6310 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6311 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6312 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6313 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6314 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6315 | else |
| 6316 | cat >conftest.$ac_ext <<_ACEOF |
| 6317 | /* confdefs.h. */ |
| 6318 | _ACEOF |
| 6319 | cat confdefs.h >>conftest.$ac_ext |
| 6320 | cat >>conftest.$ac_ext <<_ACEOF |
| 6321 | /* end confdefs.h. */ |
| 6322 | #include <sys/types.h> |
| 6323 | #include <stdint.h> |
| 6324 | int |
| 6325 | main () |
| 6326 | { |
| 6327 | uintmax_t i = (uintmax_t) -1; |
| 6328 | ; |
| 6329 | return 0; |
| 6330 | } |
| 6331 | _ACEOF |
| 6332 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6333 | if { (ac_try="$ac_compile" |
| 6334 | case "(($ac_try" in |
| 6335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6336 | *) ac_try_echo=$ac_try;; |
| 6337 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6339 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6340 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6341 | ac_status=$? |
| 6342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6343 | rm -f conftest.er1 |
| 6344 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6346 | (exit $ac_status); } && { |
| 6347 | test -z "$ac_c_werror_flag" || |
| 6348 | test ! -s conftest.err |
| 6349 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | jm_ac_cv_header_stdint_h=yes |
| 6351 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6352 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6354 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6355 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6356 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6357 | |
| 6358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6359 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6360 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 6361 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6362 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6363 | |
| 6364 | cat >>confdefs.h <<_ACEOF |
| 6365 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6366 | _ACEOF |
| 6367 | |
| 6368 | fi |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6373 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 6374 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6375 | if test "${gt_cv_c_intmax_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6376 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6377 | else |
| 6378 | cat >conftest.$ac_ext <<_ACEOF |
| 6379 | /* confdefs.h. */ |
| 6380 | _ACEOF |
| 6381 | cat confdefs.h >>conftest.$ac_ext |
| 6382 | cat >>conftest.$ac_ext <<_ACEOF |
| 6383 | /* end confdefs.h. */ |
| 6384 | |
| 6385 | #include <stddef.h> |
| 6386 | #include <stdlib.h> |
| 6387 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6388 | #include <stdint.h> |
| 6389 | #endif |
| 6390 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6391 | #include <inttypes.h> |
| 6392 | #endif |
| 6393 | |
| 6394 | int |
| 6395 | main () |
| 6396 | { |
| 6397 | intmax_t x = -1; |
| 6398 | ; |
| 6399 | return 0; |
| 6400 | } |
| 6401 | _ACEOF |
| 6402 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6403 | if { (ac_try="$ac_compile" |
| 6404 | case "(($ac_try" in |
| 6405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6406 | *) ac_try_echo=$ac_try;; |
| 6407 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6409 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6410 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6411 | ac_status=$? |
| 6412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6413 | rm -f conftest.er1 |
| 6414 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6416 | (exit $ac_status); } && { |
| 6417 | test -z "$ac_c_werror_flag" || |
| 6418 | test ! -s conftest.err |
| 6419 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6420 | gt_cv_c_intmax_t=yes |
| 6421 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6422 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6425 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6427 | |
| 6428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6429 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6430 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 6431 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6432 | if test $gt_cv_c_intmax_t = yes; then |
| 6433 | |
| 6434 | cat >>confdefs.h <<\_ACEOF |
| 6435 | #define HAVE_INTMAX_T 1 |
| 6436 | _ACEOF |
| 6437 | |
| 6438 | fi |
| 6439 | |
| 6440 | |
| 6441 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6442 | { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 6443 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6444 | if test "${gt_cv_func_printf_posix+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6445 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6446 | else |
| 6447 | |
| 6448 | if test "$cross_compiling" = yes; then |
| 6449 | |
| 6450 | cat >conftest.$ac_ext <<_ACEOF |
| 6451 | /* confdefs.h. */ |
| 6452 | _ACEOF |
| 6453 | cat confdefs.h >>conftest.$ac_ext |
| 6454 | cat >>conftest.$ac_ext <<_ACEOF |
| 6455 | /* end confdefs.h. */ |
| 6456 | |
| 6457 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6458 | notposix |
| 6459 | #endif |
| 6460 | |
| 6461 | _ACEOF |
| 6462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6463 | $EGREP "notposix" >/dev/null 2>&1; then |
| 6464 | gt_cv_func_printf_posix="guessing no" |
| 6465 | else |
| 6466 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6467 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6468 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | |
| 6471 | else |
| 6472 | cat >conftest.$ac_ext <<_ACEOF |
| 6473 | /* confdefs.h. */ |
| 6474 | _ACEOF |
| 6475 | cat confdefs.h >>conftest.$ac_ext |
| 6476 | cat >>conftest.$ac_ext <<_ACEOF |
| 6477 | /* end confdefs.h. */ |
| 6478 | |
| 6479 | #include <stdio.h> |
| 6480 | #include <string.h> |
| 6481 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6482 | dollar expansion (possibly an autoconf bug). */ |
| 6483 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6484 | static char buf[100]; |
| 6485 | int main () |
| 6486 | { |
| 6487 | sprintf (buf, format, 33, 55); |
| 6488 | return (strcmp (buf, "55 33") != 0); |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6492 | if { (ac_try="$ac_link" |
| 6493 | case "(($ac_try" in |
| 6494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6495 | *) ac_try_echo=$ac_try;; |
| 6496 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6498 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6499 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6500 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6503 | { (case "(($ac_try" in |
| 6504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6505 | *) ac_try_echo=$ac_try;; |
| 6506 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6508 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6509 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6510 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6512 | (exit $ac_status); }; }; then |
| 6513 | gt_cv_func_printf_posix=yes |
| 6514 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6515 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6516 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6518 | |
| 6519 | ( exit $ac_status ) |
| 6520 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6521 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6522 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6523 | 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] | 6524 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6526 | |
| 6527 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6528 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6529 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6530 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6531 | case $gt_cv_func_printf_posix in |
| 6532 | *yes) |
| 6533 | |
| 6534 | cat >>confdefs.h <<\_ACEOF |
| 6535 | #define HAVE_POSIX_PRINTF 1 |
| 6536 | _ACEOF |
| 6537 | |
| 6538 | ;; |
| 6539 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6540 | |
| 6541 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6542 | # for constant arguments. Useless! |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6543 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6544 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6545 | if test "${ac_cv_working_alloca_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6546 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6547 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6548 | cat >conftest.$ac_ext <<_ACEOF |
| 6549 | /* confdefs.h. */ |
| 6550 | _ACEOF |
| 6551 | cat confdefs.h >>conftest.$ac_ext |
| 6552 | cat >>conftest.$ac_ext <<_ACEOF |
| 6553 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6554 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6555 | int |
| 6556 | main () |
| 6557 | { |
| 6558 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6559 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6560 | ; |
| 6561 | return 0; |
| 6562 | } |
| 6563 | _ACEOF |
| 6564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6565 | if { (ac_try="$ac_link" |
| 6566 | case "(($ac_try" in |
| 6567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6568 | *) ac_try_echo=$ac_try;; |
| 6569 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6571 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6572 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6573 | ac_status=$? |
| 6574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6575 | rm -f conftest.er1 |
| 6576 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6578 | (exit $ac_status); } && { |
| 6579 | test -z "$ac_c_werror_flag" || |
| 6580 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6581 | } && test -s conftest$ac_exeext && { |
| 6582 | test "$cross_compiling" = yes || |
| 6583 | $as_test_x conftest$ac_exeext |
| 6584 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6585 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6586 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6587 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6589 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6590 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6592 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6593 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6594 | 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] | 6595 | conftest$ac_exeext conftest.$ac_ext |
| 6596 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6598 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6599 | if test $ac_cv_working_alloca_h = yes; then |
| 6600 | |
| 6601 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6602 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6603 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6604 | |
| 6605 | fi |
| 6606 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6607 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6608 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | if test "${ac_cv_func_alloca_works+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6610 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6611 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6612 | cat >conftest.$ac_ext <<_ACEOF |
| 6613 | /* confdefs.h. */ |
| 6614 | _ACEOF |
| 6615 | cat confdefs.h >>conftest.$ac_ext |
| 6616 | cat >>conftest.$ac_ext <<_ACEOF |
| 6617 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6618 | #ifdef __GNUC__ |
| 6619 | # define alloca __builtin_alloca |
| 6620 | #else |
| 6621 | # ifdef _MSC_VER |
| 6622 | # include <malloc.h> |
| 6623 | # define alloca _alloca |
| 6624 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6625 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6626 | # include <alloca.h> |
| 6627 | # else |
| 6628 | # ifdef _AIX |
| 6629 | #pragma alloca |
| 6630 | # else |
| 6631 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6632 | char *alloca (); |
| 6633 | # endif |
| 6634 | # endif |
| 6635 | # endif |
| 6636 | # endif |
| 6637 | #endif |
| 6638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6639 | int |
| 6640 | main () |
| 6641 | { |
| 6642 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6643 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6644 | ; |
| 6645 | return 0; |
| 6646 | } |
| 6647 | _ACEOF |
| 6648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6649 | if { (ac_try="$ac_link" |
| 6650 | case "(($ac_try" in |
| 6651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6652 | *) ac_try_echo=$ac_try;; |
| 6653 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6655 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6656 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6657 | ac_status=$? |
| 6658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6659 | rm -f conftest.er1 |
| 6660 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6662 | (exit $ac_status); } && { |
| 6663 | test -z "$ac_c_werror_flag" || |
| 6664 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6665 | } && test -s conftest$ac_exeext && { |
| 6666 | test "$cross_compiling" = yes || |
| 6667 | $as_test_x conftest$ac_exeext |
| 6668 | }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6669 | ac_cv_func_alloca_works=yes |
| 6670 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6671 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6673 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6674 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6676 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6677 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6678 | 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] | 6679 | conftest$ac_exeext conftest.$ac_ext |
| 6680 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6682 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6684 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | |
| 6686 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6687 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6689 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6690 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6691 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6692 | # that cause trouble. Some versions do not even contain alloca or |
| 6693 | # contain a buggy version. If you still want to use their alloca, |
| 6694 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6695 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6696 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | |
| 6698 | cat >>confdefs.h <<\_ACEOF |
| 6699 | #define C_ALLOCA 1 |
| 6700 | _ACEOF |
| 6701 | |
| 6702 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6703 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6704 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | if test "${ac_cv_os_cray+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6706 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6707 | else |
| 6708 | cat >conftest.$ac_ext <<_ACEOF |
| 6709 | /* confdefs.h. */ |
| 6710 | _ACEOF |
| 6711 | cat confdefs.h >>conftest.$ac_ext |
| 6712 | cat >>conftest.$ac_ext <<_ACEOF |
| 6713 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6714 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6715 | webecray |
| 6716 | #else |
| 6717 | wenotbecray |
| 6718 | #endif |
| 6719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6720 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6722 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6723 | ac_cv_os_cray=yes |
| 6724 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6725 | ac_cv_os_cray=no |
| 6726 | fi |
| 6727 | rm -f conftest* |
| 6728 | |
| 6729 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6730 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6731 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6732 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6733 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6734 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6735 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6736 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6737 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6738 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6739 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | cat >conftest.$ac_ext <<_ACEOF |
| 6741 | /* confdefs.h. */ |
| 6742 | _ACEOF |
| 6743 | cat confdefs.h >>conftest.$ac_ext |
| 6744 | cat >>conftest.$ac_ext <<_ACEOF |
| 6745 | /* end confdefs.h. */ |
| 6746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6748 | #define $ac_func innocuous_$ac_func |
| 6749 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6750 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6751 | which can conflict with char $ac_func (); below. |
| 6752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6753 | <limits.h> exists even on freestanding compilers. */ |
| 6754 | |
| 6755 | #ifdef __STDC__ |
| 6756 | # include <limits.h> |
| 6757 | #else |
| 6758 | # include <assert.h> |
| 6759 | #endif |
| 6760 | |
| 6761 | #undef $ac_func |
| 6762 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6763 | /* Override any GCC internal prototype to avoid an error. |
| 6764 | Use char because int might match the return type of a GCC |
| 6765 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | #ifdef __cplusplus |
| 6767 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6768 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6769 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6770 | /* The GNU C library defines this for functions which it implements |
| 6771 | to always fail with ENOSYS. Some functions are actually named |
| 6772 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6773 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6774 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6775 | #endif |
| 6776 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6777 | int |
| 6778 | main () |
| 6779 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6780 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | ; |
| 6782 | return 0; |
| 6783 | } |
| 6784 | _ACEOF |
| 6785 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6786 | if { (ac_try="$ac_link" |
| 6787 | case "(($ac_try" in |
| 6788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6789 | *) ac_try_echo=$ac_try;; |
| 6790 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6792 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6793 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6794 | ac_status=$? |
| 6795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6796 | rm -f conftest.er1 |
| 6797 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6799 | (exit $ac_status); } && { |
| 6800 | test -z "$ac_c_werror_flag" || |
| 6801 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6802 | } && test -s conftest$ac_exeext && { |
| 6803 | test "$cross_compiling" = yes || |
| 6804 | $as_test_x conftest$ac_exeext |
| 6805 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6807 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6808 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6809 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6810 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6811 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6813 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6814 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6815 | 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] | 6816 | conftest$ac_exeext conftest.$ac_ext |
| 6817 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6818 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 6819 | $as_echo "$as_val"'` |
| 6820 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6821 | $as_echo "$ac_res" >&6; } |
| 6822 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 6823 | $as_echo "$as_val"'` |
| 6824 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | |
| 6826 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6827 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6828 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6831 | fi |
| 6832 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6834 | fi |
| 6835 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6836 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6837 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6838 | if test "${ac_cv_c_stack_direction+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6839 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6840 | else |
| 6841 | if test "$cross_compiling" = yes; then |
| 6842 | ac_cv_c_stack_direction=0 |
| 6843 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | cat >conftest.$ac_ext <<_ACEOF |
| 6845 | /* confdefs.h. */ |
| 6846 | _ACEOF |
| 6847 | cat confdefs.h >>conftest.$ac_ext |
| 6848 | cat >>conftest.$ac_ext <<_ACEOF |
| 6849 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6850 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6852 | find_stack_direction () |
| 6853 | { |
| 6854 | static char *addr = 0; |
| 6855 | auto char dummy; |
| 6856 | if (addr == 0) |
| 6857 | { |
| 6858 | addr = &dummy; |
| 6859 | return find_stack_direction (); |
| 6860 | } |
| 6861 | else |
| 6862 | return (&dummy > addr) ? 1 : -1; |
| 6863 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6864 | |
| 6865 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6866 | main () |
| 6867 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6868 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6869 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6870 | _ACEOF |
| 6871 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6872 | if { (ac_try="$ac_link" |
| 6873 | case "(($ac_try" in |
| 6874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6875 | *) ac_try_echo=$ac_try;; |
| 6876 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6878 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6879 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6883 | { (case "(($ac_try" in |
| 6884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6885 | *) ac_try_echo=$ac_try;; |
| 6886 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6888 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6889 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6890 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6892 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6893 | ac_cv_c_stack_direction=1 |
| 6894 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6895 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6896 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6898 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6899 | ( exit $ac_status ) |
| 6900 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6901 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6902 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6903 | 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] | 6904 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6905 | |
| 6906 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6908 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6909 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6910 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6912 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | _ACEOF |
| 6914 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6915 | |
| 6916 | fi |
| 6917 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | |
| 6919 | |
| 6920 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6921 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6922 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6924 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6925 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6927 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6928 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6929 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6930 | $as_echo "$as_val"'` |
| 6931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6932 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6933 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6934 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6935 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6936 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6937 | cat >conftest.$ac_ext <<_ACEOF |
| 6938 | /* confdefs.h. */ |
| 6939 | _ACEOF |
| 6940 | cat confdefs.h >>conftest.$ac_ext |
| 6941 | cat >>conftest.$ac_ext <<_ACEOF |
| 6942 | /* end confdefs.h. */ |
| 6943 | $ac_includes_default |
| 6944 | #include <$ac_header> |
| 6945 | _ACEOF |
| 6946 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6947 | if { (ac_try="$ac_compile" |
| 6948 | case "(($ac_try" in |
| 6949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6950 | *) ac_try_echo=$ac_try;; |
| 6951 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6953 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6954 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6955 | ac_status=$? |
| 6956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6957 | rm -f conftest.er1 |
| 6958 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6960 | (exit $ac_status); } && { |
| 6961 | test -z "$ac_c_werror_flag" || |
| 6962 | test ! -s conftest.err |
| 6963 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | ac_header_compiler=yes |
| 6965 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6966 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6969 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6970 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6971 | |
| 6972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6973 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6974 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6975 | |
| 6976 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6977 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6978 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6979 | cat >conftest.$ac_ext <<_ACEOF |
| 6980 | /* confdefs.h. */ |
| 6981 | _ACEOF |
| 6982 | cat confdefs.h >>conftest.$ac_ext |
| 6983 | cat >>conftest.$ac_ext <<_ACEOF |
| 6984 | /* end confdefs.h. */ |
| 6985 | #include <$ac_header> |
| 6986 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6987 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6988 | case "(($ac_try" in |
| 6989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6990 | *) ac_try_echo=$ac_try;; |
| 6991 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6993 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | ac_status=$? |
| 6996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6997 | rm -f conftest.er1 |
| 6998 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7000 | (exit $ac_status); } >/dev/null && { |
| 7001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7002 | test ! -s conftest.err |
| 7003 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7004 | ac_header_preproc=yes |
| 7005 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7006 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7008 | |
| 7009 | ac_header_preproc=no |
| 7010 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7011 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7012 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7013 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7014 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7015 | |
| 7016 | # So? What about this header? |
| 7017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7018 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7020 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7023 | ac_header_preproc=yes |
| 7024 | ;; |
| 7025 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7027 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7029 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7031 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7033 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7037 | $as_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] | 7038 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | ;; |
| 7040 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7041 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7042 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7044 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7045 | else |
| 7046 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7047 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7048 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7049 | $as_echo "$as_val"'` |
| 7050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7051 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7052 | |
| 7053 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7054 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7055 | $as_echo "$as_val"'` |
| 7056 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7059 | _ACEOF |
| 7060 | |
| 7061 | fi |
| 7062 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7063 | done |
| 7064 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7065 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7066 | for ac_func in getpagesize |
| 7067 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7068 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7069 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7070 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7072 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7073 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7074 | cat >conftest.$ac_ext <<_ACEOF |
| 7075 | /* confdefs.h. */ |
| 7076 | _ACEOF |
| 7077 | cat confdefs.h >>conftest.$ac_ext |
| 7078 | cat >>conftest.$ac_ext <<_ACEOF |
| 7079 | /* end confdefs.h. */ |
| 7080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7082 | #define $ac_func innocuous_$ac_func |
| 7083 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7085 | which can conflict with char $ac_func (); below. |
| 7086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7087 | <limits.h> exists even on freestanding compilers. */ |
| 7088 | |
| 7089 | #ifdef __STDC__ |
| 7090 | # include <limits.h> |
| 7091 | #else |
| 7092 | # include <assert.h> |
| 7093 | #endif |
| 7094 | |
| 7095 | #undef $ac_func |
| 7096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7097 | /* Override any GCC internal prototype to avoid an error. |
| 7098 | Use char because int might match the return type of a GCC |
| 7099 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | #ifdef __cplusplus |
| 7101 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7103 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7104 | /* The GNU C library defines this for functions which it implements |
| 7105 | to always fail with ENOSYS. Some functions are actually named |
| 7106 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7107 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7108 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7109 | #endif |
| 7110 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7111 | int |
| 7112 | main () |
| 7113 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7114 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7115 | ; |
| 7116 | return 0; |
| 7117 | } |
| 7118 | _ACEOF |
| 7119 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7120 | if { (ac_try="$ac_link" |
| 7121 | case "(($ac_try" in |
| 7122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7123 | *) ac_try_echo=$ac_try;; |
| 7124 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7126 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7127 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7128 | ac_status=$? |
| 7129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7130 | rm -f conftest.er1 |
| 7131 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7133 | (exit $ac_status); } && { |
| 7134 | test -z "$ac_c_werror_flag" || |
| 7135 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7136 | } && test -s conftest$ac_exeext && { |
| 7137 | test "$cross_compiling" = yes || |
| 7138 | $as_test_x conftest$ac_exeext |
| 7139 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7141 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7142 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7144 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7145 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7147 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7148 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7149 | 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] | 7150 | conftest$ac_exeext conftest.$ac_ext |
| 7151 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7152 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 7153 | $as_echo "$as_val"'` |
| 7154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7155 | $as_echo "$ac_res" >&6; } |
| 7156 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 7157 | $as_echo "$as_val"'` |
| 7158 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7159 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7161 | _ACEOF |
| 7162 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7163 | fi |
| 7164 | done |
| 7165 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7166 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 7167 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7168 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7169 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7170 | else |
| 7171 | if test "$cross_compiling" = yes; then |
| 7172 | ac_cv_func_mmap_fixed_mapped=no |
| 7173 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7174 | cat >conftest.$ac_ext <<_ACEOF |
| 7175 | /* confdefs.h. */ |
| 7176 | _ACEOF |
| 7177 | cat confdefs.h >>conftest.$ac_ext |
| 7178 | cat >>conftest.$ac_ext <<_ACEOF |
| 7179 | /* end confdefs.h. */ |
| 7180 | $ac_includes_default |
| 7181 | /* malloc might have been renamed as rpl_malloc. */ |
| 7182 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7183 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7184 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7185 | Here is a matrix of mmap possibilities: |
| 7186 | mmap private not fixed |
| 7187 | mmap private fixed at somewhere currently unmapped |
| 7188 | mmap private fixed at somewhere already mapped |
| 7189 | mmap shared not fixed |
| 7190 | mmap shared fixed at somewhere currently unmapped |
| 7191 | mmap shared fixed at somewhere already mapped |
| 7192 | For private mappings, we should verify that changes cannot be read() |
| 7193 | back from the file, nor mmap's back from the file at a different |
| 7194 | address. (There have been systems where private was not correctly |
| 7195 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | 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] | 7197 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7198 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7199 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7200 | |
| 7201 | Grep wants private fixed already mapped. |
| 7202 | The main things grep needs to know about mmap are: |
| 7203 | * does it exist and is it safe to write into the mmap'd area |
| 7204 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7205 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7206 | #include <fcntl.h> |
| 7207 | #include <sys/mman.h> |
| 7208 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7209 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7210 | char *malloc (); |
| 7211 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7212 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7213 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7214 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7215 | /* 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] | 7216 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7217 | # define HAVE_SYS_PARAM_H 1 |
| 7218 | # endif |
| 7219 | |
| 7220 | # ifdef _SC_PAGESIZE |
| 7221 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7222 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7223 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7224 | # include <sys/param.h> |
| 7225 | # ifdef EXEC_PAGESIZE |
| 7226 | # define getpagesize() EXEC_PAGESIZE |
| 7227 | # else /* no EXEC_PAGESIZE */ |
| 7228 | # ifdef NBPG |
| 7229 | # define getpagesize() NBPG * CLSIZE |
| 7230 | # ifndef CLSIZE |
| 7231 | # define CLSIZE 1 |
| 7232 | # endif /* no CLSIZE */ |
| 7233 | # else /* no NBPG */ |
| 7234 | # ifdef NBPC |
| 7235 | # define getpagesize() NBPC |
| 7236 | # else /* no NBPC */ |
| 7237 | # ifdef PAGESIZE |
| 7238 | # define getpagesize() PAGESIZE |
| 7239 | # endif /* PAGESIZE */ |
| 7240 | # endif /* no NBPC */ |
| 7241 | # endif /* no NBPG */ |
| 7242 | # endif /* no EXEC_PAGESIZE */ |
| 7243 | # else /* no HAVE_SYS_PARAM_H */ |
| 7244 | # define getpagesize() 8192 /* punt totally */ |
| 7245 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7246 | # endif /* no _SC_PAGESIZE */ |
| 7247 | |
| 7248 | #endif /* no HAVE_GETPAGESIZE */ |
| 7249 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7250 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7251 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7252 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7253 | char *data, *data2, *data3; |
| 7254 | int i, pagesize; |
| 7255 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7256 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7257 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7258 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7259 | /* First, make a file with some known garbage in it. */ |
| 7260 | data = (char *) malloc (pagesize); |
| 7261 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7262 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7263 | for (i = 0; i < pagesize; ++i) |
| 7264 | *(data + i) = rand (); |
| 7265 | umask (0); |
| 7266 | fd = creat ("conftest.mmap", 0600); |
| 7267 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7268 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7269 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7270 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7271 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7272 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7273 | /* Next, try to mmap the file at a fixed address which already has |
| 7274 | something else allocated at it. If we can, also make sure that |
| 7275 | we see the same garbage. */ |
| 7276 | fd = open ("conftest.mmap", O_RDWR); |
| 7277 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7278 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7279 | data2 = (char *) malloc (2 * pagesize); |
| 7280 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7281 | return 1; |
| 7282 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7283 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7284 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7285 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7286 | for (i = 0; i < pagesize; ++i) |
| 7287 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7288 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7289 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7290 | /* Finally, make sure that changes to the mapped area do not |
| 7291 | percolate back to the file as seen by read(). (This is a bug on |
| 7292 | some variants of i386 svr4.0.) */ |
| 7293 | for (i = 0; i < pagesize; ++i) |
| 7294 | *(data2 + i) = *(data2 + i) + 1; |
| 7295 | data3 = (char *) malloc (pagesize); |
| 7296 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7297 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7298 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7299 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7300 | for (i = 0; i < pagesize; ++i) |
| 7301 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7302 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7303 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7304 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7305 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7306 | _ACEOF |
| 7307 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7308 | if { (ac_try="$ac_link" |
| 7309 | case "(($ac_try" in |
| 7310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7311 | *) ac_try_echo=$ac_try;; |
| 7312 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7314 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7315 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7316 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7319 | { (case "(($ac_try" in |
| 7320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7321 | *) ac_try_echo=$ac_try;; |
| 7322 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7324 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7325 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7326 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7329 | ac_cv_func_mmap_fixed_mapped=yes |
| 7330 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7331 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 7332 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7333 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7334 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7335 | ( exit $ac_status ) |
| 7336 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7337 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7338 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7339 | 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] | 7340 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7341 | |
| 7342 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7343 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 7345 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7346 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7347 | |
| 7348 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7349 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7351 | |
| 7352 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7353 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7354 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7355 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7356 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 7357 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7358 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7359 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7360 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7361 | cat >conftest.$ac_ext <<_ACEOF |
| 7362 | /* confdefs.h. */ |
| 7363 | _ACEOF |
| 7364 | cat confdefs.h >>conftest.$ac_ext |
| 7365 | cat >>conftest.$ac_ext <<_ACEOF |
| 7366 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7367 | |
| 7368 | #include <features.h> |
| 7369 | #ifdef __GNU_LIBRARY__ |
| 7370 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7371 | Lucky GNU user |
| 7372 | #endif |
| 7373 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7374 | |
| 7375 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7377 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7378 | ac_cv_gnu_library_2_1=yes |
| 7379 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7380 | ac_cv_gnu_library_2_1=no |
| 7381 | fi |
| 7382 | rm -f conftest* |
| 7383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7384 | |
| 7385 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7386 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7387 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 7388 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7389 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7390 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7391 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7392 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7393 | |
| 7394 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7395 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 7396 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7397 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7398 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7401 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7402 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7403 | # Guess based on the CPU. |
| 7404 | case "$host_cpu" in |
| 7405 | alpha* | i3456786 | m68k | s390*) |
| 7406 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7407 | *) |
| 7408 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7409 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7410 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7411 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7412 | cat >conftest.$ac_ext <<_ACEOF |
| 7413 | /* confdefs.h. */ |
| 7414 | _ACEOF |
| 7415 | cat confdefs.h >>conftest.$ac_ext |
| 7416 | cat >>conftest.$ac_ext <<_ACEOF |
| 7417 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7418 | |
| 7419 | #include <stdlib.h> |
| 7420 | #include <signal.h> |
| 7421 | |
| 7422 | static void |
| 7423 | #ifdef __cplusplus |
| 7424 | sigfpe_handler (int sig) |
| 7425 | #else |
| 7426 | sigfpe_handler (sig) int sig; |
| 7427 | #endif |
| 7428 | { |
| 7429 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7430 | exit (sig != SIGFPE); |
| 7431 | } |
| 7432 | |
| 7433 | int x = 1; |
| 7434 | int y = 0; |
| 7435 | int z; |
| 7436 | int nan; |
| 7437 | |
| 7438 | int main () |
| 7439 | { |
| 7440 | signal (SIGFPE, sigfpe_handler); |
| 7441 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7442 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7443 | signal (SIGTRAP, sigfpe_handler); |
| 7444 | #endif |
| 7445 | /* Linux/SPARC yields signal SIGILL. */ |
| 7446 | #if defined (__sparc__) && defined (__linux__) |
| 7447 | signal (SIGILL, sigfpe_handler); |
| 7448 | #endif |
| 7449 | |
| 7450 | z = x / y; |
| 7451 | nan = y / y; |
| 7452 | exit (1); |
| 7453 | } |
| 7454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7455 | _ACEOF |
| 7456 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7457 | if { (ac_try="$ac_link" |
| 7458 | case "(($ac_try" in |
| 7459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7460 | *) ac_try_echo=$ac_try;; |
| 7461 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7463 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7464 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7465 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7468 | { (case "(($ac_try" in |
| 7469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7470 | *) ac_try_echo=$ac_try;; |
| 7471 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7473 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7474 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7475 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7477 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7478 | gt_cv_int_divbyzero_sigfpe=yes |
| 7479 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7480 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 7481 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7483 | |
| 7484 | ( exit $ac_status ) |
| 7485 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7486 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7487 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7488 | 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] | 7489 | fi |
| 7490 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7491 | |
| 7492 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7493 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7494 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 7495 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7496 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7497 | *yes) value=1;; |
| 7498 | *) value=0;; |
| 7499 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | |
| 7501 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7502 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7504 | |
| 7505 | |
| 7506 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7507 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 7508 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7509 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7510 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7511 | else |
| 7512 | cat >conftest.$ac_ext <<_ACEOF |
| 7513 | /* confdefs.h. */ |
| 7514 | _ACEOF |
| 7515 | cat confdefs.h >>conftest.$ac_ext |
| 7516 | cat >>conftest.$ac_ext <<_ACEOF |
| 7517 | /* end confdefs.h. */ |
| 7518 | unsigned long long ull = 1ULL; int i = 63; |
| 7519 | int |
| 7520 | main () |
| 7521 | { |
| 7522 | unsigned long long ullmax = (unsigned long long) -1; |
| 7523 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7524 | ; |
| 7525 | return 0; |
| 7526 | } |
| 7527 | _ACEOF |
| 7528 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7529 | if { (ac_try="$ac_link" |
| 7530 | case "(($ac_try" in |
| 7531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7532 | *) ac_try_echo=$ac_try;; |
| 7533 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7535 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7536 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7537 | ac_status=$? |
| 7538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7539 | rm -f conftest.er1 |
| 7540 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7542 | (exit $ac_status); } && { |
| 7543 | test -z "$ac_c_werror_flag" || |
| 7544 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7545 | } && test -s conftest$ac_exeext && { |
| 7546 | test "$cross_compiling" = yes || |
| 7547 | $as_test_x conftest$ac_exeext |
| 7548 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7549 | ac_cv_type_unsigned_long_long=yes |
| 7550 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7551 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7553 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7554 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7555 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7556 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7557 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7558 | 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] | 7559 | conftest$ac_exeext conftest.$ac_ext |
| 7560 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7561 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7562 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7563 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7564 | |
| 7565 | cat >>confdefs.h <<\_ACEOF |
| 7566 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7567 | _ACEOF |
| 7568 | |
| 7569 | fi |
| 7570 | |
| 7571 | |
| 7572 | |
| 7573 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7574 | 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] | 7575 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7576 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7577 | && ac_type='unsigned long long' \ |
| 7578 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7579 | |
| 7580 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7581 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7582 | _ACEOF |
| 7583 | |
| 7584 | else |
| 7585 | |
| 7586 | cat >>confdefs.h <<\_ACEOF |
| 7587 | #define HAVE_UINTMAX_T 1 |
| 7588 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7589 | |
| 7590 | fi |
| 7591 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7592 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7593 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7594 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7595 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7596 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7597 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7598 | |
| 7599 | cat >conftest.$ac_ext <<_ACEOF |
| 7600 | /* confdefs.h. */ |
| 7601 | _ACEOF |
| 7602 | cat confdefs.h >>conftest.$ac_ext |
| 7603 | cat >>conftest.$ac_ext <<_ACEOF |
| 7604 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7605 | #include <sys/types.h> |
| 7606 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7607 | int |
| 7608 | main () |
| 7609 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7610 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7611 | ; |
| 7612 | return 0; |
| 7613 | } |
| 7614 | _ACEOF |
| 7615 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7616 | if { (ac_try="$ac_compile" |
| 7617 | case "(($ac_try" in |
| 7618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7619 | *) ac_try_echo=$ac_try;; |
| 7620 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7622 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7623 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7624 | ac_status=$? |
| 7625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7626 | rm -f conftest.er1 |
| 7627 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7629 | (exit $ac_status); } && { |
| 7630 | test -z "$ac_c_werror_flag" || |
| 7631 | test ! -s conftest.err |
| 7632 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7633 | gt_cv_header_inttypes_h=yes |
| 7634 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7635 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7636 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7637 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7638 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7640 | |
| 7641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7642 | |
| 7643 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7644 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7645 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7646 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7647 | |
| 7648 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7649 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7650 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7651 | |
| 7652 | fi |
| 7653 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7654 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7656 | if test $gt_cv_header_inttypes_h = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7657 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7658 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7659 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7660 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7661 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7662 | |
| 7663 | cat >conftest.$ac_ext <<_ACEOF |
| 7664 | /* confdefs.h. */ |
| 7665 | _ACEOF |
| 7666 | cat confdefs.h >>conftest.$ac_ext |
| 7667 | cat >>conftest.$ac_ext <<_ACEOF |
| 7668 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7669 | #include <inttypes.h> |
| 7670 | #ifdef PRId32 |
| 7671 | char *p = PRId32; |
| 7672 | #endif |
| 7673 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7674 | int |
| 7675 | main () |
| 7676 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7677 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7678 | ; |
| 7679 | return 0; |
| 7680 | } |
| 7681 | _ACEOF |
| 7682 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7683 | if { (ac_try="$ac_compile" |
| 7684 | case "(($ac_try" in |
| 7685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7686 | *) ac_try_echo=$ac_try;; |
| 7687 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7689 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7690 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7691 | ac_status=$? |
| 7692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7693 | rm -f conftest.er1 |
| 7694 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7696 | (exit $ac_status); } && { |
| 7697 | test -z "$ac_c_werror_flag" || |
| 7698 | test ! -s conftest.err |
| 7699 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7700 | gt_cv_inttypes_pri_broken=no |
| 7701 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7702 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7703 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7704 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7705 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7706 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7707 | |
| 7708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7709 | |
| 7710 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7711 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7712 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7713 | fi |
| 7714 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7715 | |
| 7716 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7717 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7719 | |
| 7720 | fi |
| 7721 | |
| 7722 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7723 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7724 | for ac_header in stdint.h |
| 7725 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7726 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7728 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7729 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7731 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7732 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7733 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7734 | $as_echo "$as_val"'` |
| 7735 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7736 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7737 | else |
| 7738 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7739 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7740 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7741 | cat >conftest.$ac_ext <<_ACEOF |
| 7742 | /* confdefs.h. */ |
| 7743 | _ACEOF |
| 7744 | cat confdefs.h >>conftest.$ac_ext |
| 7745 | cat >>conftest.$ac_ext <<_ACEOF |
| 7746 | /* end confdefs.h. */ |
| 7747 | $ac_includes_default |
| 7748 | #include <$ac_header> |
| 7749 | _ACEOF |
| 7750 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7751 | if { (ac_try="$ac_compile" |
| 7752 | case "(($ac_try" in |
| 7753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7754 | *) ac_try_echo=$ac_try;; |
| 7755 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7757 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7758 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7759 | ac_status=$? |
| 7760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7761 | rm -f conftest.er1 |
| 7762 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7764 | (exit $ac_status); } && { |
| 7765 | test -z "$ac_c_werror_flag" || |
| 7766 | test ! -s conftest.err |
| 7767 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7768 | ac_header_compiler=yes |
| 7769 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7770 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7773 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7775 | |
| 7776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7777 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7778 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7779 | |
| 7780 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7781 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7782 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | cat >conftest.$ac_ext <<_ACEOF |
| 7784 | /* confdefs.h. */ |
| 7785 | _ACEOF |
| 7786 | cat confdefs.h >>conftest.$ac_ext |
| 7787 | cat >>conftest.$ac_ext <<_ACEOF |
| 7788 | /* end confdefs.h. */ |
| 7789 | #include <$ac_header> |
| 7790 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7791 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7792 | case "(($ac_try" in |
| 7793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7794 | *) ac_try_echo=$ac_try;; |
| 7795 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7797 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7799 | ac_status=$? |
| 7800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7801 | rm -f conftest.er1 |
| 7802 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7804 | (exit $ac_status); } >/dev/null && { |
| 7805 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7806 | test ! -s conftest.err |
| 7807 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7808 | ac_header_preproc=yes |
| 7809 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7810 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7812 | |
| 7813 | ac_header_preproc=no |
| 7814 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7816 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7817 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7818 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7819 | |
| 7820 | # So? What about this header? |
| 7821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7822 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7823 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7824 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7826 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7827 | ac_header_preproc=yes |
| 7828 | ;; |
| 7829 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7831 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7833 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7835 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7837 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7839 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7841 | $as_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] | 7842 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7843 | ;; |
| 7844 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7845 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7846 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7848 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7849 | else |
| 7850 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7851 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7852 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7853 | $as_echo "$as_val"'` |
| 7854 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7855 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7856 | |
| 7857 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7858 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7859 | $as_echo "$as_val"'` |
| 7860 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7861 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7862 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7863 | _ACEOF |
| 7864 | |
| 7865 | fi |
| 7866 | |
| 7867 | done |
| 7868 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7869 | { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7870 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7871 | result= |
| 7872 | cat >conftest.$ac_ext <<_ACEOF |
| 7873 | /* confdefs.h. */ |
| 7874 | _ACEOF |
| 7875 | cat confdefs.h >>conftest.$ac_ext |
| 7876 | cat >>conftest.$ac_ext <<_ACEOF |
| 7877 | /* end confdefs.h. */ |
| 7878 | |
| 7879 | #include <limits.h> |
| 7880 | #if HAVE_STDINT_H |
| 7881 | #include <stdint.h> |
| 7882 | #endif |
| 7883 | #ifdef SIZE_MAX |
| 7884 | Found it |
| 7885 | #endif |
| 7886 | |
| 7887 | _ACEOF |
| 7888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7889 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7890 | result=yes |
| 7891 | fi |
| 7892 | rm -f conftest* |
| 7893 | |
| 7894 | if test -z "$result"; then |
| 7895 | if test "$cross_compiling" = yes; then |
| 7896 | # Depending upon the size, compute the lo and hi bounds. |
| 7897 | cat >conftest.$ac_ext <<_ACEOF |
| 7898 | /* confdefs.h. */ |
| 7899 | _ACEOF |
| 7900 | cat confdefs.h >>conftest.$ac_ext |
| 7901 | cat >>conftest.$ac_ext <<_ACEOF |
| 7902 | /* end confdefs.h. */ |
| 7903 | #include <stddef.h> |
| 7904 | int |
| 7905 | main () |
| 7906 | { |
| 7907 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7908 | test_array [0] = 0 |
| 7909 | |
| 7910 | ; |
| 7911 | return 0; |
| 7912 | } |
| 7913 | _ACEOF |
| 7914 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7915 | if { (ac_try="$ac_compile" |
| 7916 | case "(($ac_try" in |
| 7917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7918 | *) ac_try_echo=$ac_try;; |
| 7919 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7921 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7922 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7923 | ac_status=$? |
| 7924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7925 | rm -f conftest.er1 |
| 7926 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7928 | (exit $ac_status); } && { |
| 7929 | test -z "$ac_c_werror_flag" || |
| 7930 | test ! -s conftest.err |
| 7931 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7932 | ac_lo=0 ac_mid=0 |
| 7933 | while :; do |
| 7934 | cat >conftest.$ac_ext <<_ACEOF |
| 7935 | /* confdefs.h. */ |
| 7936 | _ACEOF |
| 7937 | cat confdefs.h >>conftest.$ac_ext |
| 7938 | cat >>conftest.$ac_ext <<_ACEOF |
| 7939 | /* end confdefs.h. */ |
| 7940 | #include <stddef.h> |
| 7941 | int |
| 7942 | main () |
| 7943 | { |
| 7944 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7945 | test_array [0] = 0 |
| 7946 | |
| 7947 | ; |
| 7948 | return 0; |
| 7949 | } |
| 7950 | _ACEOF |
| 7951 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7952 | if { (ac_try="$ac_compile" |
| 7953 | case "(($ac_try" in |
| 7954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7955 | *) ac_try_echo=$ac_try;; |
| 7956 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7958 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7959 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7960 | ac_status=$? |
| 7961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7962 | rm -f conftest.er1 |
| 7963 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7965 | (exit $ac_status); } && { |
| 7966 | test -z "$ac_c_werror_flag" || |
| 7967 | test ! -s conftest.err |
| 7968 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7969 | ac_hi=$ac_mid; break |
| 7970 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7971 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7974 | ac_lo=`expr $ac_mid + 1` |
| 7975 | if test $ac_lo -le $ac_mid; then |
| 7976 | ac_lo= ac_hi= |
| 7977 | break |
| 7978 | fi |
| 7979 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7980 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7981 | |
| 7982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7983 | done |
| 7984 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7985 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7987 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7988 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7989 | /* confdefs.h. */ |
| 7990 | _ACEOF |
| 7991 | cat confdefs.h >>conftest.$ac_ext |
| 7992 | cat >>conftest.$ac_ext <<_ACEOF |
| 7993 | /* end confdefs.h. */ |
| 7994 | #include <stddef.h> |
| 7995 | int |
| 7996 | main () |
| 7997 | { |
| 7998 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7999 | test_array [0] = 0 |
| 8000 | |
| 8001 | ; |
| 8002 | return 0; |
| 8003 | } |
| 8004 | _ACEOF |
| 8005 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8006 | if { (ac_try="$ac_compile" |
| 8007 | case "(($ac_try" in |
| 8008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8009 | *) ac_try_echo=$ac_try;; |
| 8010 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8012 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8013 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8014 | ac_status=$? |
| 8015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8016 | rm -f conftest.er1 |
| 8017 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8019 | (exit $ac_status); } && { |
| 8020 | test -z "$ac_c_werror_flag" || |
| 8021 | test ! -s conftest.err |
| 8022 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8023 | ac_hi=-1 ac_mid=-1 |
| 8024 | while :; do |
| 8025 | cat >conftest.$ac_ext <<_ACEOF |
| 8026 | /* confdefs.h. */ |
| 8027 | _ACEOF |
| 8028 | cat confdefs.h >>conftest.$ac_ext |
| 8029 | cat >>conftest.$ac_ext <<_ACEOF |
| 8030 | /* end confdefs.h. */ |
| 8031 | #include <stddef.h> |
| 8032 | int |
| 8033 | main () |
| 8034 | { |
| 8035 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 8036 | test_array [0] = 0 |
| 8037 | |
| 8038 | ; |
| 8039 | return 0; |
| 8040 | } |
| 8041 | _ACEOF |
| 8042 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8043 | if { (ac_try="$ac_compile" |
| 8044 | case "(($ac_try" in |
| 8045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8046 | *) ac_try_echo=$ac_try;; |
| 8047 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8049 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8050 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8051 | ac_status=$? |
| 8052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8053 | rm -f conftest.er1 |
| 8054 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8056 | (exit $ac_status); } && { |
| 8057 | test -z "$ac_c_werror_flag" || |
| 8058 | test ! -s conftest.err |
| 8059 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8060 | ac_lo=$ac_mid; break |
| 8061 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8062 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8065 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8066 | if test $ac_mid -le $ac_hi; then |
| 8067 | ac_lo= ac_hi= |
| 8068 | break |
| 8069 | fi |
| 8070 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8072 | |
| 8073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8074 | done |
| 8075 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8076 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8078 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8079 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8080 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8081 | |
| 8082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8083 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8084 | |
| 8085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8086 | # Binary search between lo and hi bounds. |
| 8087 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8088 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8089 | cat >conftest.$ac_ext <<_ACEOF |
| 8090 | /* confdefs.h. */ |
| 8091 | _ACEOF |
| 8092 | cat confdefs.h >>conftest.$ac_ext |
| 8093 | cat >>conftest.$ac_ext <<_ACEOF |
| 8094 | /* end confdefs.h. */ |
| 8095 | #include <stddef.h> |
| 8096 | int |
| 8097 | main () |
| 8098 | { |
| 8099 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 8100 | test_array [0] = 0 |
| 8101 | |
| 8102 | ; |
| 8103 | return 0; |
| 8104 | } |
| 8105 | _ACEOF |
| 8106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8107 | if { (ac_try="$ac_compile" |
| 8108 | case "(($ac_try" in |
| 8109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8110 | *) ac_try_echo=$ac_try;; |
| 8111 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8113 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8114 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8115 | ac_status=$? |
| 8116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8117 | rm -f conftest.er1 |
| 8118 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8120 | (exit $ac_status); } && { |
| 8121 | test -z "$ac_c_werror_flag" || |
| 8122 | test ! -s conftest.err |
| 8123 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8124 | ac_hi=$ac_mid |
| 8125 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8126 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8128 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8129 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8130 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8131 | |
| 8132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8133 | done |
| 8134 | case $ac_lo in |
| 8135 | ?*) res_hi=$ac_lo;; |
| 8136 | '') result=? ;; |
| 8137 | esac |
| 8138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8139 | cat >conftest.$ac_ext <<_ACEOF |
| 8140 | /* confdefs.h. */ |
| 8141 | _ACEOF |
| 8142 | cat confdefs.h >>conftest.$ac_ext |
| 8143 | cat >>conftest.$ac_ext <<_ACEOF |
| 8144 | /* end confdefs.h. */ |
| 8145 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8146 | static long int longval () { return ~(size_t)0 / 10; } |
| 8147 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8148 | #include <stdio.h> |
| 8149 | #include <stdlib.h> |
| 8150 | int |
| 8151 | main () |
| 8152 | { |
| 8153 | |
| 8154 | FILE *f = fopen ("conftest.val", "w"); |
| 8155 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8156 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8157 | if ((~(size_t)0 / 10) < 0) |
| 8158 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8159 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8160 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8161 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8162 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8163 | } |
| 8164 | else |
| 8165 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8166 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8167 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8168 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8169 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8170 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8171 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8172 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8173 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8174 | |
| 8175 | ; |
| 8176 | return 0; |
| 8177 | } |
| 8178 | _ACEOF |
| 8179 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8180 | if { (ac_try="$ac_link" |
| 8181 | case "(($ac_try" in |
| 8182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8183 | *) ac_try_echo=$ac_try;; |
| 8184 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8186 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8187 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8188 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8191 | { (case "(($ac_try" in |
| 8192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8193 | *) ac_try_echo=$ac_try;; |
| 8194 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8196 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8197 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8198 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8200 | (exit $ac_status); }; }; then |
| 8201 | res_hi=`cat conftest.val` |
| 8202 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8203 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8204 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8206 | |
| 8207 | ( exit $ac_status ) |
| 8208 | result=? |
| 8209 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8210 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8211 | 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] | 8212 | fi |
| 8213 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8215 | if test "$cross_compiling" = yes; then |
| 8216 | # Depending upon the size, compute the lo and hi bounds. |
| 8217 | cat >conftest.$ac_ext <<_ACEOF |
| 8218 | /* confdefs.h. */ |
| 8219 | _ACEOF |
| 8220 | cat confdefs.h >>conftest.$ac_ext |
| 8221 | cat >>conftest.$ac_ext <<_ACEOF |
| 8222 | /* end confdefs.h. */ |
| 8223 | #include <stddef.h> |
| 8224 | int |
| 8225 | main () |
| 8226 | { |
| 8227 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 8228 | test_array [0] = 0 |
| 8229 | |
| 8230 | ; |
| 8231 | return 0; |
| 8232 | } |
| 8233 | _ACEOF |
| 8234 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8235 | if { (ac_try="$ac_compile" |
| 8236 | case "(($ac_try" in |
| 8237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8238 | *) ac_try_echo=$ac_try;; |
| 8239 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8241 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8242 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | ac_status=$? |
| 8244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8245 | rm -f conftest.er1 |
| 8246 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8248 | (exit $ac_status); } && { |
| 8249 | test -z "$ac_c_werror_flag" || |
| 8250 | test ! -s conftest.err |
| 8251 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8252 | ac_lo=0 ac_mid=0 |
| 8253 | while :; do |
| 8254 | cat >conftest.$ac_ext <<_ACEOF |
| 8255 | /* confdefs.h. */ |
| 8256 | _ACEOF |
| 8257 | cat confdefs.h >>conftest.$ac_ext |
| 8258 | cat >>conftest.$ac_ext <<_ACEOF |
| 8259 | /* end confdefs.h. */ |
| 8260 | #include <stddef.h> |
| 8261 | int |
| 8262 | main () |
| 8263 | { |
| 8264 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8265 | test_array [0] = 0 |
| 8266 | |
| 8267 | ; |
| 8268 | return 0; |
| 8269 | } |
| 8270 | _ACEOF |
| 8271 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8272 | if { (ac_try="$ac_compile" |
| 8273 | case "(($ac_try" in |
| 8274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8275 | *) ac_try_echo=$ac_try;; |
| 8276 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8278 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8279 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8280 | ac_status=$? |
| 8281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8282 | rm -f conftest.er1 |
| 8283 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8285 | (exit $ac_status); } && { |
| 8286 | test -z "$ac_c_werror_flag" || |
| 8287 | test ! -s conftest.err |
| 8288 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8289 | ac_hi=$ac_mid; break |
| 8290 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8291 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8293 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8294 | ac_lo=`expr $ac_mid + 1` |
| 8295 | if test $ac_lo -le $ac_mid; then |
| 8296 | ac_lo= ac_hi= |
| 8297 | break |
| 8298 | fi |
| 8299 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8300 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8301 | |
| 8302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8303 | done |
| 8304 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8305 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8307 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8308 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8309 | /* confdefs.h. */ |
| 8310 | _ACEOF |
| 8311 | cat confdefs.h >>conftest.$ac_ext |
| 8312 | cat >>conftest.$ac_ext <<_ACEOF |
| 8313 | /* end confdefs.h. */ |
| 8314 | #include <stddef.h> |
| 8315 | int |
| 8316 | main () |
| 8317 | { |
| 8318 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8319 | test_array [0] = 0 |
| 8320 | |
| 8321 | ; |
| 8322 | return 0; |
| 8323 | } |
| 8324 | _ACEOF |
| 8325 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8326 | if { (ac_try="$ac_compile" |
| 8327 | case "(($ac_try" in |
| 8328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8329 | *) ac_try_echo=$ac_try;; |
| 8330 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8332 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8333 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8334 | ac_status=$? |
| 8335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8336 | rm -f conftest.er1 |
| 8337 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8339 | (exit $ac_status); } && { |
| 8340 | test -z "$ac_c_werror_flag" || |
| 8341 | test ! -s conftest.err |
| 8342 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8343 | ac_hi=-1 ac_mid=-1 |
| 8344 | while :; do |
| 8345 | cat >conftest.$ac_ext <<_ACEOF |
| 8346 | /* confdefs.h. */ |
| 8347 | _ACEOF |
| 8348 | cat confdefs.h >>conftest.$ac_ext |
| 8349 | cat >>conftest.$ac_ext <<_ACEOF |
| 8350 | /* end confdefs.h. */ |
| 8351 | #include <stddef.h> |
| 8352 | int |
| 8353 | main () |
| 8354 | { |
| 8355 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8356 | test_array [0] = 0 |
| 8357 | |
| 8358 | ; |
| 8359 | return 0; |
| 8360 | } |
| 8361 | _ACEOF |
| 8362 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8363 | if { (ac_try="$ac_compile" |
| 8364 | case "(($ac_try" in |
| 8365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8366 | *) ac_try_echo=$ac_try;; |
| 8367 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8369 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8370 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8371 | ac_status=$? |
| 8372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8373 | rm -f conftest.er1 |
| 8374 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8376 | (exit $ac_status); } && { |
| 8377 | test -z "$ac_c_werror_flag" || |
| 8378 | test ! -s conftest.err |
| 8379 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | ac_lo=$ac_mid; break |
| 8381 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8382 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8384 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8385 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8386 | if test $ac_mid -le $ac_hi; then |
| 8387 | ac_lo= ac_hi= |
| 8388 | break |
| 8389 | fi |
| 8390 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8391 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8392 | |
| 8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8394 | done |
| 8395 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8396 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8398 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8399 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8401 | |
| 8402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8403 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8404 | |
| 8405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8406 | # Binary search between lo and hi bounds. |
| 8407 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8408 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8409 | cat >conftest.$ac_ext <<_ACEOF |
| 8410 | /* confdefs.h. */ |
| 8411 | _ACEOF |
| 8412 | cat confdefs.h >>conftest.$ac_ext |
| 8413 | cat >>conftest.$ac_ext <<_ACEOF |
| 8414 | /* end confdefs.h. */ |
| 8415 | #include <stddef.h> |
| 8416 | int |
| 8417 | main () |
| 8418 | { |
| 8419 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8420 | test_array [0] = 0 |
| 8421 | |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
| 8426 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8427 | if { (ac_try="$ac_compile" |
| 8428 | case "(($ac_try" in |
| 8429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8430 | *) ac_try_echo=$ac_try;; |
| 8431 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8433 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8434 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8435 | ac_status=$? |
| 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8440 | (exit $ac_status); } && { |
| 8441 | test -z "$ac_c_werror_flag" || |
| 8442 | test ! -s conftest.err |
| 8443 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8444 | ac_hi=$ac_mid |
| 8445 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8446 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8449 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8450 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8451 | |
| 8452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8453 | done |
| 8454 | case $ac_lo in |
| 8455 | ?*) res_lo=$ac_lo;; |
| 8456 | '') result=? ;; |
| 8457 | esac |
| 8458 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8459 | cat >conftest.$ac_ext <<_ACEOF |
| 8460 | /* confdefs.h. */ |
| 8461 | _ACEOF |
| 8462 | cat confdefs.h >>conftest.$ac_ext |
| 8463 | cat >>conftest.$ac_ext <<_ACEOF |
| 8464 | /* end confdefs.h. */ |
| 8465 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8466 | static long int longval () { return ~(size_t)0 % 10; } |
| 8467 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8468 | #include <stdio.h> |
| 8469 | #include <stdlib.h> |
| 8470 | int |
| 8471 | main () |
| 8472 | { |
| 8473 | |
| 8474 | FILE *f = fopen ("conftest.val", "w"); |
| 8475 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8476 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8477 | if ((~(size_t)0 % 10) < 0) |
| 8478 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8479 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8480 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8481 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8482 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8483 | } |
| 8484 | else |
| 8485 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8486 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8487 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8488 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8489 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8490 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8491 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8492 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8493 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8494 | |
| 8495 | ; |
| 8496 | return 0; |
| 8497 | } |
| 8498 | _ACEOF |
| 8499 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8500 | if { (ac_try="$ac_link" |
| 8501 | case "(($ac_try" in |
| 8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8503 | *) ac_try_echo=$ac_try;; |
| 8504 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8506 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8507 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8508 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8511 | { (case "(($ac_try" in |
| 8512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8513 | *) ac_try_echo=$ac_try;; |
| 8514 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8516 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8517 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8518 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8520 | (exit $ac_status); }; }; then |
| 8521 | res_lo=`cat conftest.val` |
| 8522 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8523 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8524 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8526 | |
| 8527 | ( exit $ac_status ) |
| 8528 | result=? |
| 8529 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8530 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8531 | 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] | 8532 | fi |
| 8533 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8535 | if test "$cross_compiling" = yes; then |
| 8536 | # Depending upon the size, compute the lo and hi bounds. |
| 8537 | cat >conftest.$ac_ext <<_ACEOF |
| 8538 | /* confdefs.h. */ |
| 8539 | _ACEOF |
| 8540 | cat confdefs.h >>conftest.$ac_ext |
| 8541 | cat >>conftest.$ac_ext <<_ACEOF |
| 8542 | /* end confdefs.h. */ |
| 8543 | #include <stddef.h> |
| 8544 | int |
| 8545 | main () |
| 8546 | { |
| 8547 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 8548 | test_array [0] = 0 |
| 8549 | |
| 8550 | ; |
| 8551 | return 0; |
| 8552 | } |
| 8553 | _ACEOF |
| 8554 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8555 | if { (ac_try="$ac_compile" |
| 8556 | case "(($ac_try" in |
| 8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8558 | *) ac_try_echo=$ac_try;; |
| 8559 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8561 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8562 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8563 | ac_status=$? |
| 8564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8565 | rm -f conftest.er1 |
| 8566 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8568 | (exit $ac_status); } && { |
| 8569 | test -z "$ac_c_werror_flag" || |
| 8570 | test ! -s conftest.err |
| 8571 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8572 | ac_lo=0 ac_mid=0 |
| 8573 | while :; do |
| 8574 | cat >conftest.$ac_ext <<_ACEOF |
| 8575 | /* confdefs.h. */ |
| 8576 | _ACEOF |
| 8577 | cat confdefs.h >>conftest.$ac_ext |
| 8578 | cat >>conftest.$ac_ext <<_ACEOF |
| 8579 | /* end confdefs.h. */ |
| 8580 | #include <stddef.h> |
| 8581 | int |
| 8582 | main () |
| 8583 | { |
| 8584 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8585 | test_array [0] = 0 |
| 8586 | |
| 8587 | ; |
| 8588 | return 0; |
| 8589 | } |
| 8590 | _ACEOF |
| 8591 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8592 | if { (ac_try="$ac_compile" |
| 8593 | case "(($ac_try" in |
| 8594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8595 | *) ac_try_echo=$ac_try;; |
| 8596 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8598 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8599 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8600 | ac_status=$? |
| 8601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8602 | rm -f conftest.er1 |
| 8603 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8605 | (exit $ac_status); } && { |
| 8606 | test -z "$ac_c_werror_flag" || |
| 8607 | test ! -s conftest.err |
| 8608 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8609 | ac_hi=$ac_mid; break |
| 8610 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8611 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8614 | ac_lo=`expr $ac_mid + 1` |
| 8615 | if test $ac_lo -le $ac_mid; then |
| 8616 | ac_lo= ac_hi= |
| 8617 | break |
| 8618 | fi |
| 8619 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8620 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8621 | |
| 8622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8623 | done |
| 8624 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8625 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8627 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8628 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8629 | /* confdefs.h. */ |
| 8630 | _ACEOF |
| 8631 | cat confdefs.h >>conftest.$ac_ext |
| 8632 | cat >>conftest.$ac_ext <<_ACEOF |
| 8633 | /* end confdefs.h. */ |
| 8634 | #include <stddef.h> |
| 8635 | int |
| 8636 | main () |
| 8637 | { |
| 8638 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8639 | test_array [0] = 0 |
| 8640 | |
| 8641 | ; |
| 8642 | return 0; |
| 8643 | } |
| 8644 | _ACEOF |
| 8645 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8646 | if { (ac_try="$ac_compile" |
| 8647 | case "(($ac_try" in |
| 8648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8649 | *) ac_try_echo=$ac_try;; |
| 8650 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8652 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8653 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8654 | ac_status=$? |
| 8655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8656 | rm -f conftest.er1 |
| 8657 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8659 | (exit $ac_status); } && { |
| 8660 | test -z "$ac_c_werror_flag" || |
| 8661 | test ! -s conftest.err |
| 8662 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8663 | ac_hi=-1 ac_mid=-1 |
| 8664 | while :; do |
| 8665 | cat >conftest.$ac_ext <<_ACEOF |
| 8666 | /* confdefs.h. */ |
| 8667 | _ACEOF |
| 8668 | cat confdefs.h >>conftest.$ac_ext |
| 8669 | cat >>conftest.$ac_ext <<_ACEOF |
| 8670 | /* end confdefs.h. */ |
| 8671 | #include <stddef.h> |
| 8672 | int |
| 8673 | main () |
| 8674 | { |
| 8675 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8676 | test_array [0] = 0 |
| 8677 | |
| 8678 | ; |
| 8679 | return 0; |
| 8680 | } |
| 8681 | _ACEOF |
| 8682 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8683 | if { (ac_try="$ac_compile" |
| 8684 | case "(($ac_try" in |
| 8685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8686 | *) ac_try_echo=$ac_try;; |
| 8687 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8689 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8690 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8691 | ac_status=$? |
| 8692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8693 | rm -f conftest.er1 |
| 8694 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8696 | (exit $ac_status); } && { |
| 8697 | test -z "$ac_c_werror_flag" || |
| 8698 | test ! -s conftest.err |
| 8699 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8700 | ac_lo=$ac_mid; break |
| 8701 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8702 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8704 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8705 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8706 | if test $ac_mid -le $ac_hi; then |
| 8707 | ac_lo= ac_hi= |
| 8708 | break |
| 8709 | fi |
| 8710 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8711 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8712 | |
| 8713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8714 | done |
| 8715 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8716 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8719 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8720 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8721 | |
| 8722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8723 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8724 | |
| 8725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8726 | # Binary search between lo and hi bounds. |
| 8727 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8728 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8729 | cat >conftest.$ac_ext <<_ACEOF |
| 8730 | /* confdefs.h. */ |
| 8731 | _ACEOF |
| 8732 | cat confdefs.h >>conftest.$ac_ext |
| 8733 | cat >>conftest.$ac_ext <<_ACEOF |
| 8734 | /* end confdefs.h. */ |
| 8735 | #include <stddef.h> |
| 8736 | int |
| 8737 | main () |
| 8738 | { |
| 8739 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8740 | test_array [0] = 0 |
| 8741 | |
| 8742 | ; |
| 8743 | return 0; |
| 8744 | } |
| 8745 | _ACEOF |
| 8746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8747 | if { (ac_try="$ac_compile" |
| 8748 | case "(($ac_try" in |
| 8749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8750 | *) ac_try_echo=$ac_try;; |
| 8751 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8753 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8754 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8755 | ac_status=$? |
| 8756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8757 | rm -f conftest.er1 |
| 8758 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8760 | (exit $ac_status); } && { |
| 8761 | test -z "$ac_c_werror_flag" || |
| 8762 | test ! -s conftest.err |
| 8763 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8764 | ac_hi=$ac_mid |
| 8765 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8766 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8769 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8770 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8771 | |
| 8772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8773 | done |
| 8774 | case $ac_lo in |
| 8775 | ?*) fits_in_uint=$ac_lo;; |
| 8776 | '') result=? ;; |
| 8777 | esac |
| 8778 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8779 | cat >conftest.$ac_ext <<_ACEOF |
| 8780 | /* confdefs.h. */ |
| 8781 | _ACEOF |
| 8782 | cat confdefs.h >>conftest.$ac_ext |
| 8783 | cat >>conftest.$ac_ext <<_ACEOF |
| 8784 | /* end confdefs.h. */ |
| 8785 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8786 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8787 | 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] | 8788 | #include <stdio.h> |
| 8789 | #include <stdlib.h> |
| 8790 | int |
| 8791 | main () |
| 8792 | { |
| 8793 | |
| 8794 | FILE *f = fopen ("conftest.val", "w"); |
| 8795 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8797 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8798 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8799 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8800 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8801 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8802 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8803 | } |
| 8804 | else |
| 8805 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8806 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8807 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8808 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8809 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8810 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8811 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8812 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8813 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8814 | |
| 8815 | ; |
| 8816 | return 0; |
| 8817 | } |
| 8818 | _ACEOF |
| 8819 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8820 | if { (ac_try="$ac_link" |
| 8821 | case "(($ac_try" in |
| 8822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8823 | *) ac_try_echo=$ac_try;; |
| 8824 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8826 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8827 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8828 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8830 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8831 | { (case "(($ac_try" in |
| 8832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8833 | *) ac_try_echo=$ac_try;; |
| 8834 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8836 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8837 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8838 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8840 | (exit $ac_status); }; }; then |
| 8841 | fits_in_uint=`cat conftest.val` |
| 8842 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8843 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8844 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8846 | |
| 8847 | ( exit $ac_status ) |
| 8848 | result=? |
| 8849 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8850 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8851 | 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] | 8852 | fi |
| 8853 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8854 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8855 | if test "$fits_in_uint" = 1; then |
| 8856 | cat >conftest.$ac_ext <<_ACEOF |
| 8857 | /* confdefs.h. */ |
| 8858 | _ACEOF |
| 8859 | cat confdefs.h >>conftest.$ac_ext |
| 8860 | cat >>conftest.$ac_ext <<_ACEOF |
| 8861 | /* end confdefs.h. */ |
| 8862 | #include <stddef.h> |
| 8863 | extern size_t foo; |
| 8864 | extern unsigned long foo; |
| 8865 | |
| 8866 | int |
| 8867 | main () |
| 8868 | { |
| 8869 | |
| 8870 | ; |
| 8871 | return 0; |
| 8872 | } |
| 8873 | _ACEOF |
| 8874 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8875 | if { (ac_try="$ac_compile" |
| 8876 | case "(($ac_try" in |
| 8877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8878 | *) ac_try_echo=$ac_try;; |
| 8879 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8881 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8882 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8883 | ac_status=$? |
| 8884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8885 | rm -f conftest.er1 |
| 8886 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8888 | (exit $ac_status); } && { |
| 8889 | test -z "$ac_c_werror_flag" || |
| 8890 | test ! -s conftest.err |
| 8891 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8892 | fits_in_uint=0 |
| 8893 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8894 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8896 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8897 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8898 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8899 | |
| 8900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8901 | fi |
| 8902 | if test -z "$result"; then |
| 8903 | if test "$fits_in_uint" = 1; then |
| 8904 | result="$res_hi$res_lo"U |
| 8905 | else |
| 8906 | result="$res_hi$res_lo"UL |
| 8907 | fi |
| 8908 | else |
| 8909 | result='~(size_t)0' |
| 8910 | fi |
| 8911 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8912 | { $as_echo "$as_me:$LINENO: result: $result" >&5 |
| 8913 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8914 | if test "$result" != yes; then |
| 8915 | |
| 8916 | cat >>confdefs.h <<_ACEOF |
| 8917 | #define SIZE_MAX $result |
| 8918 | _ACEOF |
| 8919 | |
| 8920 | fi |
| 8921 | |
| 8922 | |
| 8923 | |
| 8924 | |
| 8925 | for ac_header in stdint.h |
| 8926 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8927 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8929 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8930 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8932 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8933 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8934 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 8935 | $as_echo "$as_val"'` |
| 8936 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8937 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8938 | else |
| 8939 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8940 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8941 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8942 | cat >conftest.$ac_ext <<_ACEOF |
| 8943 | /* confdefs.h. */ |
| 8944 | _ACEOF |
| 8945 | cat confdefs.h >>conftest.$ac_ext |
| 8946 | cat >>conftest.$ac_ext <<_ACEOF |
| 8947 | /* end confdefs.h. */ |
| 8948 | $ac_includes_default |
| 8949 | #include <$ac_header> |
| 8950 | _ACEOF |
| 8951 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8952 | if { (ac_try="$ac_compile" |
| 8953 | case "(($ac_try" in |
| 8954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8955 | *) ac_try_echo=$ac_try;; |
| 8956 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8958 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8959 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8960 | ac_status=$? |
| 8961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8962 | rm -f conftest.er1 |
| 8963 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8965 | (exit $ac_status); } && { |
| 8966 | test -z "$ac_c_werror_flag" || |
| 8967 | test ! -s conftest.err |
| 8968 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8969 | ac_header_compiler=yes |
| 8970 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8971 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8973 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8974 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8975 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8976 | |
| 8977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8978 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8979 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8980 | |
| 8981 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8982 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8983 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8984 | cat >conftest.$ac_ext <<_ACEOF |
| 8985 | /* confdefs.h. */ |
| 8986 | _ACEOF |
| 8987 | cat confdefs.h >>conftest.$ac_ext |
| 8988 | cat >>conftest.$ac_ext <<_ACEOF |
| 8989 | /* end confdefs.h. */ |
| 8990 | #include <$ac_header> |
| 8991 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8992 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8993 | case "(($ac_try" in |
| 8994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8995 | *) ac_try_echo=$ac_try;; |
| 8996 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8998 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8999 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9000 | ac_status=$? |
| 9001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9002 | rm -f conftest.er1 |
| 9003 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9005 | (exit $ac_status); } >/dev/null && { |
| 9006 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9007 | test ! -s conftest.err |
| 9008 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9009 | ac_header_preproc=yes |
| 9010 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9011 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9013 | |
| 9014 | ac_header_preproc=no |
| 9015 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9016 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9017 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9018 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9019 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9020 | |
| 9021 | # So? What about this header? |
| 9022 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9023 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9025 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9027 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9028 | ac_header_preproc=yes |
| 9029 | ;; |
| 9030 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9032 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9034 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9036 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9037 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9038 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9040 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9042 | $as_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] | 9043 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9044 | ;; |
| 9045 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9046 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9047 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9048 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9049 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9050 | else |
| 9051 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9052 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9053 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9054 | $as_echo "$as_val"'` |
| 9055 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9056 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9057 | |
| 9058 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9059 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9060 | $as_echo "$as_val"'` |
| 9061 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9062 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9063 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9064 | _ACEOF |
| 9065 | |
| 9066 | fi |
| 9067 | |
| 9068 | done |
| 9069 | |
| 9070 | |
| 9071 | |
| 9072 | if test "X$prefix" = "XNONE"; then |
| 9073 | acl_final_prefix="$ac_default_prefix" |
| 9074 | else |
| 9075 | acl_final_prefix="$prefix" |
| 9076 | fi |
| 9077 | if test "X$exec_prefix" = "XNONE"; then |
| 9078 | acl_final_exec_prefix='${prefix}' |
| 9079 | else |
| 9080 | acl_final_exec_prefix="$exec_prefix" |
| 9081 | fi |
| 9082 | acl_save_prefix="$prefix" |
| 9083 | prefix="$acl_final_prefix" |
| 9084 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 9085 | prefix="$acl_save_prefix" |
| 9086 | |
| 9087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9088 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9089 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9090 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | else |
| 9092 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9093 | fi |
| 9094 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | # Prepare PATH_SEPARATOR. |
| 9096 | # The user is always right. |
| 9097 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9098 | echo "#! /bin/sh" >conf$$.sh |
| 9099 | echo "exit 0" >>conf$$.sh |
| 9100 | chmod +x conf$$.sh |
| 9101 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9102 | PATH_SEPARATOR=';' |
| 9103 | else |
| 9104 | PATH_SEPARATOR=: |
| 9105 | fi |
| 9106 | rm -f conf$$.sh |
| 9107 | fi |
| 9108 | ac_prog=ld |
| 9109 | if test "$GCC" = yes; then |
| 9110 | # Check if gcc -print-prog-name=ld gives a path. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9111 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 9112 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9113 | case $host in |
| 9114 | *-*-mingw*) |
| 9115 | # gcc leaves a trailing carriage return which upsets mingw |
| 9116 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9117 | *) |
| 9118 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9119 | esac |
| 9120 | case $ac_prog in |
| 9121 | # Accept absolute paths. |
| 9122 | [\\/]* | [A-Za-z]:[\\/]*) |
| 9123 | re_direlt='/[^/][^/]*/\.\./' |
| 9124 | # Canonicalize the path of ld |
| 9125 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 9126 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9127 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 9128 | done |
| 9129 | test -z "$LD" && LD="$ac_prog" |
| 9130 | ;; |
| 9131 | "") |
| 9132 | # If it fails, then pretend we aren't using GCC. |
| 9133 | ac_prog=ld |
| 9134 | ;; |
| 9135 | *) |
| 9136 | # If it is relative, then search for the first ld in PATH. |
| 9137 | with_gnu_ld=unknown |
| 9138 | ;; |
| 9139 | esac |
| 9140 | elif test "$with_gnu_ld" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9141 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9142 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9143 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9144 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9145 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9146 | fi |
| 9147 | if test "${acl_cv_path_LD+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9148 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9149 | else |
| 9150 | if test -z "$LD"; then |
| 9151 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 9152 | for ac_dir in $PATH; do |
| 9153 | test -z "$ac_dir" && ac_dir=. |
| 9154 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9155 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 9156 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9157 | # but apparently some GNU ld's only accept -v. |
| 9158 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9159 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 9160 | *GNU* | *'with BFD'*) |
| 9161 | test "$with_gnu_ld" != no && break ;; |
| 9162 | *) |
| 9163 | test "$with_gnu_ld" != yes && break ;; |
| 9164 | esac |
| 9165 | fi |
| 9166 | done |
| 9167 | IFS="$ac_save_ifs" |
| 9168 | else |
| 9169 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9170 | fi |
| 9171 | fi |
| 9172 | |
| 9173 | LD="$acl_cv_path_LD" |
| 9174 | if test -n "$LD"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9175 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
| 9176 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9177 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9178 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9179 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9180 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9181 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9182 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9183 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9184 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9185 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9186 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9187 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9188 | else |
| 9189 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9190 | case `$LD -v 2>&1 </dev/null` in |
| 9191 | *GNU* | *'with BFD'*) |
| 9192 | acl_cv_prog_gnu_ld=yes ;; |
| 9193 | *) |
| 9194 | acl_cv_prog_gnu_ld=no ;; |
| 9195 | esac |
| 9196 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9197 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9198 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9199 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9200 | |
| 9201 | |
| 9202 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9203 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9204 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9205 | if test "${acl_cv_rpath+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9206 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9207 | else |
| 9208 | |
| 9209 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9210 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9211 | . ./conftest.sh |
| 9212 | rm -f ./conftest.sh |
| 9213 | acl_cv_rpath=done |
| 9214 | |
| 9215 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9216 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9217 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9218 | wl="$acl_cv_wl" |
| 9219 | libext="$acl_cv_libext" |
| 9220 | shlibext="$acl_cv_shlibext" |
| 9221 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9222 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9223 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9224 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9225 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9226 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9227 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9228 | else |
| 9229 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9230 | fi |
| 9231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9232 | |
| 9233 | |
| 9234 | |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9239 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9240 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9241 | acl_save_prefix="$prefix" |
| 9242 | prefix="$acl_final_prefix" |
| 9243 | acl_save_exec_prefix="$exec_prefix" |
| 9244 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9245 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9246 | eval additional_includedir=\"$includedir\" |
| 9247 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9248 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9249 | exec_prefix="$acl_save_exec_prefix" |
| 9250 | prefix="$acl_save_prefix" |
| 9251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9252 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9253 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9254 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9255 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9256 | if test "X$withval" = "Xno"; then |
| 9257 | use_additional=no |
| 9258 | else |
| 9259 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9260 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9261 | acl_save_prefix="$prefix" |
| 9262 | prefix="$acl_final_prefix" |
| 9263 | acl_save_exec_prefix="$exec_prefix" |
| 9264 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9265 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9266 | eval additional_includedir=\"$includedir\" |
| 9267 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9268 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9269 | exec_prefix="$acl_save_exec_prefix" |
| 9270 | prefix="$acl_save_prefix" |
| 9271 | |
| 9272 | else |
| 9273 | additional_includedir="$withval/include" |
| 9274 | additional_libdir="$withval/lib" |
| 9275 | fi |
| 9276 | fi |
| 9277 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9278 | fi |
| 9279 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9280 | LIBICONV= |
| 9281 | LTLIBICONV= |
| 9282 | INCICONV= |
| 9283 | rpathdirs= |
| 9284 | ltrpathdirs= |
| 9285 | names_already_handled= |
| 9286 | names_next_round='iconv ' |
| 9287 | while test -n "$names_next_round"; do |
| 9288 | names_this_round="$names_next_round" |
| 9289 | names_next_round= |
| 9290 | for name in $names_this_round; do |
| 9291 | already_handled= |
| 9292 | for n in $names_already_handled; do |
| 9293 | if test "$n" = "$name"; then |
| 9294 | already_handled=yes |
| 9295 | break |
| 9296 | fi |
| 9297 | done |
| 9298 | if test -z "$already_handled"; then |
| 9299 | names_already_handled="$names_already_handled $name" |
| 9300 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9301 | eval value=\"\$HAVE_LIB$uppername\" |
| 9302 | if test -n "$value"; then |
| 9303 | if test "$value" = yes; then |
| 9304 | eval value=\"\$LIB$uppername\" |
| 9305 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9306 | eval value=\"\$LTLIB$uppername\" |
| 9307 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9308 | else |
| 9309 | : |
| 9310 | fi |
| 9311 | else |
| 9312 | found_dir= |
| 9313 | found_la= |
| 9314 | found_so= |
| 9315 | found_a= |
| 9316 | if test $use_additional = yes; then |
| 9317 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9318 | found_dir="$additional_libdir" |
| 9319 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9320 | if test -f "$additional_libdir/lib$name.la"; then |
| 9321 | found_la="$additional_libdir/lib$name.la" |
| 9322 | fi |
| 9323 | else |
| 9324 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9325 | found_dir="$additional_libdir" |
| 9326 | found_a="$additional_libdir/lib$name.$libext" |
| 9327 | if test -f "$additional_libdir/lib$name.la"; then |
| 9328 | found_la="$additional_libdir/lib$name.la" |
| 9329 | fi |
| 9330 | fi |
| 9331 | fi |
| 9332 | fi |
| 9333 | if test "X$found_dir" = "X"; then |
| 9334 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9335 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9336 | acl_save_prefix="$prefix" |
| 9337 | prefix="$acl_final_prefix" |
| 9338 | acl_save_exec_prefix="$exec_prefix" |
| 9339 | exec_prefix="$acl_final_exec_prefix" |
| 9340 | eval x=\"$x\" |
| 9341 | exec_prefix="$acl_save_exec_prefix" |
| 9342 | prefix="$acl_save_prefix" |
| 9343 | |
| 9344 | case "$x" in |
| 9345 | -L*) |
| 9346 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9347 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9348 | found_dir="$dir" |
| 9349 | found_so="$dir/lib$name.$shlibext" |
| 9350 | if test -f "$dir/lib$name.la"; then |
| 9351 | found_la="$dir/lib$name.la" |
| 9352 | fi |
| 9353 | else |
| 9354 | if test -f "$dir/lib$name.$libext"; then |
| 9355 | found_dir="$dir" |
| 9356 | found_a="$dir/lib$name.$libext" |
| 9357 | if test -f "$dir/lib$name.la"; then |
| 9358 | found_la="$dir/lib$name.la" |
| 9359 | fi |
| 9360 | fi |
| 9361 | fi |
| 9362 | ;; |
| 9363 | esac |
| 9364 | if test "X$found_dir" != "X"; then |
| 9365 | break |
| 9366 | fi |
| 9367 | done |
| 9368 | fi |
| 9369 | if test "X$found_dir" != "X"; then |
| 9370 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9371 | if test "X$found_so" != "X"; then |
| 9372 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9373 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9374 | else |
| 9375 | haveit= |
| 9376 | for x in $ltrpathdirs; do |
| 9377 | if test "X$x" = "X$found_dir"; then |
| 9378 | haveit=yes |
| 9379 | break |
| 9380 | fi |
| 9381 | done |
| 9382 | if test -z "$haveit"; then |
| 9383 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9384 | fi |
| 9385 | if test "$hardcode_direct" = yes; then |
| 9386 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9387 | else |
| 9388 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9389 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9390 | haveit= |
| 9391 | for x in $rpathdirs; do |
| 9392 | if test "X$x" = "X$found_dir"; then |
| 9393 | haveit=yes |
| 9394 | break |
| 9395 | fi |
| 9396 | done |
| 9397 | if test -z "$haveit"; then |
| 9398 | rpathdirs="$rpathdirs $found_dir" |
| 9399 | fi |
| 9400 | else |
| 9401 | haveit= |
| 9402 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9403 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9404 | acl_save_prefix="$prefix" |
| 9405 | prefix="$acl_final_prefix" |
| 9406 | acl_save_exec_prefix="$exec_prefix" |
| 9407 | exec_prefix="$acl_final_exec_prefix" |
| 9408 | eval x=\"$x\" |
| 9409 | exec_prefix="$acl_save_exec_prefix" |
| 9410 | prefix="$acl_save_prefix" |
| 9411 | |
| 9412 | if test "X$x" = "X-L$found_dir"; then |
| 9413 | haveit=yes |
| 9414 | break |
| 9415 | fi |
| 9416 | done |
| 9417 | if test -z "$haveit"; then |
| 9418 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9419 | fi |
| 9420 | if test "$hardcode_minus_L" != no; then |
| 9421 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9422 | else |
| 9423 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9424 | fi |
| 9425 | fi |
| 9426 | fi |
| 9427 | fi |
| 9428 | else |
| 9429 | if test "X$found_a" != "X"; then |
| 9430 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9431 | else |
| 9432 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9433 | fi |
| 9434 | fi |
| 9435 | additional_includedir= |
| 9436 | case "$found_dir" in |
| 9437 | */lib | */lib/) |
| 9438 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9439 | additional_includedir="$basedir/include" |
| 9440 | ;; |
| 9441 | esac |
| 9442 | if test "X$additional_includedir" != "X"; then |
| 9443 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9444 | haveit= |
| 9445 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9446 | if test -n "$GCC"; then |
| 9447 | case $host_os in |
| 9448 | linux*) haveit=yes;; |
| 9449 | esac |
| 9450 | fi |
| 9451 | fi |
| 9452 | if test -z "$haveit"; then |
| 9453 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9454 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9455 | acl_save_prefix="$prefix" |
| 9456 | prefix="$acl_final_prefix" |
| 9457 | acl_save_exec_prefix="$exec_prefix" |
| 9458 | exec_prefix="$acl_final_exec_prefix" |
| 9459 | eval x=\"$x\" |
| 9460 | exec_prefix="$acl_save_exec_prefix" |
| 9461 | prefix="$acl_save_prefix" |
| 9462 | |
| 9463 | if test "X$x" = "X-I$additional_includedir"; then |
| 9464 | haveit=yes |
| 9465 | break |
| 9466 | fi |
| 9467 | done |
| 9468 | if test -z "$haveit"; then |
| 9469 | if test -d "$additional_includedir"; then |
| 9470 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9471 | fi |
| 9472 | fi |
| 9473 | fi |
| 9474 | fi |
| 9475 | fi |
| 9476 | if test -n "$found_la"; then |
| 9477 | save_libdir="$libdir" |
| 9478 | case "$found_la" in |
| 9479 | */* | *\\*) . "$found_la" ;; |
| 9480 | *) . "./$found_la" ;; |
| 9481 | esac |
| 9482 | libdir="$save_libdir" |
| 9483 | for dep in $dependency_libs; do |
| 9484 | case "$dep" in |
| 9485 | -L*) |
| 9486 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9487 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9488 | haveit= |
| 9489 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9490 | if test -n "$GCC"; then |
| 9491 | case $host_os in |
| 9492 | linux*) haveit=yes;; |
| 9493 | esac |
| 9494 | fi |
| 9495 | fi |
| 9496 | if test -z "$haveit"; then |
| 9497 | haveit= |
| 9498 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9500 | acl_save_prefix="$prefix" |
| 9501 | prefix="$acl_final_prefix" |
| 9502 | acl_save_exec_prefix="$exec_prefix" |
| 9503 | exec_prefix="$acl_final_exec_prefix" |
| 9504 | eval x=\"$x\" |
| 9505 | exec_prefix="$acl_save_exec_prefix" |
| 9506 | prefix="$acl_save_prefix" |
| 9507 | |
| 9508 | if test "X$x" = "X-L$additional_libdir"; then |
| 9509 | haveit=yes |
| 9510 | break |
| 9511 | fi |
| 9512 | done |
| 9513 | if test -z "$haveit"; then |
| 9514 | if test -d "$additional_libdir"; then |
| 9515 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9516 | fi |
| 9517 | fi |
| 9518 | haveit= |
| 9519 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9520 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9521 | acl_save_prefix="$prefix" |
| 9522 | prefix="$acl_final_prefix" |
| 9523 | acl_save_exec_prefix="$exec_prefix" |
| 9524 | exec_prefix="$acl_final_exec_prefix" |
| 9525 | eval x=\"$x\" |
| 9526 | exec_prefix="$acl_save_exec_prefix" |
| 9527 | prefix="$acl_save_prefix" |
| 9528 | |
| 9529 | if test "X$x" = "X-L$additional_libdir"; then |
| 9530 | haveit=yes |
| 9531 | break |
| 9532 | fi |
| 9533 | done |
| 9534 | if test -z "$haveit"; then |
| 9535 | if test -d "$additional_libdir"; then |
| 9536 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9537 | fi |
| 9538 | fi |
| 9539 | fi |
| 9540 | fi |
| 9541 | ;; |
| 9542 | -R*) |
| 9543 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9544 | if test "$enable_rpath" != no; then |
| 9545 | haveit= |
| 9546 | for x in $rpathdirs; do |
| 9547 | if test "X$x" = "X$dir"; then |
| 9548 | haveit=yes |
| 9549 | break |
| 9550 | fi |
| 9551 | done |
| 9552 | if test -z "$haveit"; then |
| 9553 | rpathdirs="$rpathdirs $dir" |
| 9554 | fi |
| 9555 | haveit= |
| 9556 | for x in $ltrpathdirs; do |
| 9557 | if test "X$x" = "X$dir"; then |
| 9558 | haveit=yes |
| 9559 | break |
| 9560 | fi |
| 9561 | done |
| 9562 | if test -z "$haveit"; then |
| 9563 | ltrpathdirs="$ltrpathdirs $dir" |
| 9564 | fi |
| 9565 | fi |
| 9566 | ;; |
| 9567 | -l*) |
| 9568 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9569 | ;; |
| 9570 | *.la) |
| 9571 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9572 | ;; |
| 9573 | *) |
| 9574 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9575 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9576 | ;; |
| 9577 | esac |
| 9578 | done |
| 9579 | fi |
| 9580 | else |
| 9581 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9582 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9583 | fi |
| 9584 | fi |
| 9585 | fi |
| 9586 | done |
| 9587 | done |
| 9588 | if test "X$rpathdirs" != "X"; then |
| 9589 | if test -n "$hardcode_libdir_separator"; then |
| 9590 | alldirs= |
| 9591 | for found_dir in $rpathdirs; do |
| 9592 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9593 | done |
| 9594 | acl_save_libdir="$libdir" |
| 9595 | libdir="$alldirs" |
| 9596 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9597 | libdir="$acl_save_libdir" |
| 9598 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9599 | else |
| 9600 | for found_dir in $rpathdirs; do |
| 9601 | acl_save_libdir="$libdir" |
| 9602 | libdir="$found_dir" |
| 9603 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9604 | libdir="$acl_save_libdir" |
| 9605 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9606 | done |
| 9607 | fi |
| 9608 | fi |
| 9609 | if test "X$ltrpathdirs" != "X"; then |
| 9610 | for found_dir in $ltrpathdirs; do |
| 9611 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9612 | done |
| 9613 | fi |
| 9614 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9615 | |
| 9616 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9617 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | |
| 9619 | |
| 9620 | |
| 9621 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9622 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9623 | $as_echo_n "checking for ptrdiff_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9624 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9625 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9626 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9627 | ac_cv_type_ptrdiff_t=no |
| 9628 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9629 | /* confdefs.h. */ |
| 9630 | _ACEOF |
| 9631 | cat confdefs.h >>conftest.$ac_ext |
| 9632 | cat >>conftest.$ac_ext <<_ACEOF |
| 9633 | /* end confdefs.h. */ |
| 9634 | $ac_includes_default |
| 9635 | int |
| 9636 | main () |
| 9637 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9638 | if (sizeof (ptrdiff_t)) |
| 9639 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9640 | ; |
| 9641 | return 0; |
| 9642 | } |
| 9643 | _ACEOF |
| 9644 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9645 | if { (ac_try="$ac_compile" |
| 9646 | case "(($ac_try" in |
| 9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9648 | *) ac_try_echo=$ac_try;; |
| 9649 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9651 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9652 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | ac_status=$? |
| 9654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9655 | rm -f conftest.er1 |
| 9656 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9658 | (exit $ac_status); } && { |
| 9659 | test -z "$ac_c_werror_flag" || |
| 9660 | test ! -s conftest.err |
| 9661 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9662 | cat >conftest.$ac_ext <<_ACEOF |
| 9663 | /* confdefs.h. */ |
| 9664 | _ACEOF |
| 9665 | cat confdefs.h >>conftest.$ac_ext |
| 9666 | cat >>conftest.$ac_ext <<_ACEOF |
| 9667 | /* end confdefs.h. */ |
| 9668 | $ac_includes_default |
| 9669 | int |
| 9670 | main () |
| 9671 | { |
| 9672 | if (sizeof ((ptrdiff_t))) |
| 9673 | return 0; |
| 9674 | ; |
| 9675 | return 0; |
| 9676 | } |
| 9677 | _ACEOF |
| 9678 | rm -f conftest.$ac_objext |
| 9679 | if { (ac_try="$ac_compile" |
| 9680 | case "(($ac_try" in |
| 9681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9682 | *) ac_try_echo=$ac_try;; |
| 9683 | esac |
| 9684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9685 | $as_echo "$ac_try_echo") >&5 |
| 9686 | (eval "$ac_compile") 2>conftest.er1 |
| 9687 | ac_status=$? |
| 9688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9689 | rm -f conftest.er1 |
| 9690 | cat conftest.err >&5 |
| 9691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9692 | (exit $ac_status); } && { |
| 9693 | test -z "$ac_c_werror_flag" || |
| 9694 | test ! -s conftest.err |
| 9695 | } && test -s conftest.$ac_objext; then |
| 9696 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9697 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9698 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9700 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9701 | ac_cv_type_ptrdiff_t=yes |
| 9702 | fi |
| 9703 | |
| 9704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9705 | else |
| 9706 | $as_echo "$as_me: failed program was:" >&5 |
| 9707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9708 | |
| 9709 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9710 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9711 | |
| 9712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9713 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9714 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9715 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } |
| 9716 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9717 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9718 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9719 | |
| 9720 | cat >>confdefs.h <<\_ACEOF |
| 9721 | #define ptrdiff_t long |
| 9722 | _ACEOF |
| 9723 | |
| 9724 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9725 | fi |
| 9726 | |
| 9727 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9728 | |
| 9729 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9730 | |
| 9731 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9732 | |
| 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | 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] | 9738 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9739 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9740 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9741 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9742 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9743 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9744 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9745 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9746 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9747 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9748 | $as_echo "$as_val"'` |
| 9749 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9750 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9751 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9752 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9753 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9754 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | cat >conftest.$ac_ext <<_ACEOF |
| 9756 | /* confdefs.h. */ |
| 9757 | _ACEOF |
| 9758 | cat confdefs.h >>conftest.$ac_ext |
| 9759 | cat >>conftest.$ac_ext <<_ACEOF |
| 9760 | /* end confdefs.h. */ |
| 9761 | $ac_includes_default |
| 9762 | #include <$ac_header> |
| 9763 | _ACEOF |
| 9764 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9765 | if { (ac_try="$ac_compile" |
| 9766 | case "(($ac_try" in |
| 9767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9768 | *) ac_try_echo=$ac_try;; |
| 9769 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9770 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9771 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9772 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | ac_status=$? |
| 9774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9775 | rm -f conftest.er1 |
| 9776 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9778 | (exit $ac_status); } && { |
| 9779 | test -z "$ac_c_werror_flag" || |
| 9780 | test ! -s conftest.err |
| 9781 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9782 | ac_header_compiler=yes |
| 9783 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9784 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9787 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9788 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9789 | |
| 9790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9791 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9792 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | |
| 9794 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9795 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9796 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9797 | cat >conftest.$ac_ext <<_ACEOF |
| 9798 | /* confdefs.h. */ |
| 9799 | _ACEOF |
| 9800 | cat confdefs.h >>conftest.$ac_ext |
| 9801 | cat >>conftest.$ac_ext <<_ACEOF |
| 9802 | /* end confdefs.h. */ |
| 9803 | #include <$ac_header> |
| 9804 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9805 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9806 | case "(($ac_try" in |
| 9807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9808 | *) ac_try_echo=$ac_try;; |
| 9809 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9811 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9813 | ac_status=$? |
| 9814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9815 | rm -f conftest.er1 |
| 9816 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9818 | (exit $ac_status); } >/dev/null && { |
| 9819 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9820 | test ! -s conftest.err |
| 9821 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9822 | ac_header_preproc=yes |
| 9823 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9824 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9826 | |
| 9827 | ac_header_preproc=no |
| 9828 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9830 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9831 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9832 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9833 | |
| 9834 | # So? What about this header? |
| 9835 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9836 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9837 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9838 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9839 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9840 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9841 | ac_header_preproc=yes |
| 9842 | ;; |
| 9843 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9844 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9845 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9847 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9849 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9851 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9853 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9855 | $as_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] | 9856 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9857 | ;; |
| 9858 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9859 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9860 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9862 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9863 | else |
| 9864 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9865 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9866 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9867 | $as_echo "$as_val"'` |
| 9868 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9869 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9870 | |
| 9871 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9872 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9873 | $as_echo "$as_val"'` |
| 9874 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9875 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9876 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9877 | _ACEOF |
| 9878 | |
| 9879 | fi |
| 9880 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9881 | done |
| 9882 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | |
| 9896 | |
| 9897 | |
| 9898 | |
| 9899 | |
| 9900 | |
| 9901 | |
| 9902 | |
| 9903 | |
| 9904 | |
| 9905 | |
| 9906 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9907 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9908 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9909 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9910 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9911 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9912 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9913 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9915 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9916 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | cat >conftest.$ac_ext <<_ACEOF |
| 9918 | /* confdefs.h. */ |
| 9919 | _ACEOF |
| 9920 | cat confdefs.h >>conftest.$ac_ext |
| 9921 | cat >>conftest.$ac_ext <<_ACEOF |
| 9922 | /* end confdefs.h. */ |
| 9923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9925 | #define $ac_func innocuous_$ac_func |
| 9926 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9927 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9928 | which can conflict with char $ac_func (); below. |
| 9929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9930 | <limits.h> exists even on freestanding compilers. */ |
| 9931 | |
| 9932 | #ifdef __STDC__ |
| 9933 | # include <limits.h> |
| 9934 | #else |
| 9935 | # include <assert.h> |
| 9936 | #endif |
| 9937 | |
| 9938 | #undef $ac_func |
| 9939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9940 | /* Override any GCC internal prototype to avoid an error. |
| 9941 | Use char because int might match the return type of a GCC |
| 9942 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9943 | #ifdef __cplusplus |
| 9944 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9945 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9946 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9947 | /* The GNU C library defines this for functions which it implements |
| 9948 | to always fail with ENOSYS. Some functions are actually named |
| 9949 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9951 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9952 | #endif |
| 9953 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9954 | int |
| 9955 | main () |
| 9956 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9957 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | ; |
| 9959 | return 0; |
| 9960 | } |
| 9961 | _ACEOF |
| 9962 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9963 | if { (ac_try="$ac_link" |
| 9964 | case "(($ac_try" in |
| 9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9966 | *) ac_try_echo=$ac_try;; |
| 9967 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9969 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9970 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9971 | ac_status=$? |
| 9972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9973 | rm -f conftest.er1 |
| 9974 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9976 | (exit $ac_status); } && { |
| 9977 | test -z "$ac_c_werror_flag" || |
| 9978 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9979 | } && test -s conftest$ac_exeext && { |
| 9980 | test "$cross_compiling" = yes || |
| 9981 | $as_test_x conftest$ac_exeext |
| 9982 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9983 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9984 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9985 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9987 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9988 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9989 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9990 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9991 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9992 | 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] | 9993 | conftest$ac_exeext conftest.$ac_ext |
| 9994 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9995 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 9996 | $as_echo "$as_val"'` |
| 9997 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9998 | $as_echo "$ac_res" >&6; } |
| 9999 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 10000 | $as_echo "$as_val"'` |
| 10001 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10002 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10003 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10004 | _ACEOF |
| 10005 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10006 | fi |
| 10007 | done |
| 10008 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10010 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10011 | { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 10012 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10013 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10014 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10015 | else |
| 10016 | cat >conftest.$ac_ext <<_ACEOF |
| 10017 | /* confdefs.h. */ |
| 10018 | _ACEOF |
| 10019 | cat confdefs.h >>conftest.$ac_ext |
| 10020 | cat >>conftest.$ac_ext <<_ACEOF |
| 10021 | /* end confdefs.h. */ |
| 10022 | #include <stdio.h> |
| 10023 | int |
| 10024 | main () |
| 10025 | { |
| 10026 | |
| 10027 | #ifndef _snprintf |
| 10028 | char *p = (char *) _snprintf; |
| 10029 | #endif |
| 10030 | |
| 10031 | ; |
| 10032 | return 0; |
| 10033 | } |
| 10034 | _ACEOF |
| 10035 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10036 | if { (ac_try="$ac_compile" |
| 10037 | case "(($ac_try" in |
| 10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10039 | *) ac_try_echo=$ac_try;; |
| 10040 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10042 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10043 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10044 | ac_status=$? |
| 10045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10046 | rm -f conftest.er1 |
| 10047 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10049 | (exit $ac_status); } && { |
| 10050 | test -z "$ac_c_werror_flag" || |
| 10051 | test ! -s conftest.err |
| 10052 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10053 | ac_cv_have_decl__snprintf=yes |
| 10054 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10055 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10058 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10059 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10060 | |
| 10061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10062 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10063 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 10064 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10065 | if test $ac_cv_have_decl__snprintf = yes; then |
| 10066 | gt_value=1 |
| 10067 | else |
| 10068 | gt_value=0 |
| 10069 | fi |
| 10070 | |
| 10071 | cat >>confdefs.h <<_ACEOF |
| 10072 | #define HAVE_DECL__SNPRINTF $gt_value |
| 10073 | _ACEOF |
| 10074 | |
| 10075 | |
| 10076 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10077 | { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 10078 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10079 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10080 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10081 | else |
| 10082 | cat >conftest.$ac_ext <<_ACEOF |
| 10083 | /* confdefs.h. */ |
| 10084 | _ACEOF |
| 10085 | cat confdefs.h >>conftest.$ac_ext |
| 10086 | cat >>conftest.$ac_ext <<_ACEOF |
| 10087 | /* end confdefs.h. */ |
| 10088 | #include <stdio.h> |
| 10089 | int |
| 10090 | main () |
| 10091 | { |
| 10092 | |
| 10093 | #ifndef _snwprintf |
| 10094 | char *p = (char *) _snwprintf; |
| 10095 | #endif |
| 10096 | |
| 10097 | ; |
| 10098 | return 0; |
| 10099 | } |
| 10100 | _ACEOF |
| 10101 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10102 | if { (ac_try="$ac_compile" |
| 10103 | case "(($ac_try" in |
| 10104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10105 | *) ac_try_echo=$ac_try;; |
| 10106 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10108 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10109 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10110 | ac_status=$? |
| 10111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10112 | rm -f conftest.er1 |
| 10113 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10115 | (exit $ac_status); } && { |
| 10116 | test -z "$ac_c_werror_flag" || |
| 10117 | test ! -s conftest.err |
| 10118 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10119 | ac_cv_have_decl__snwprintf=yes |
| 10120 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10121 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10123 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10124 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10126 | |
| 10127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10128 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10130 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10131 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10132 | gt_value=1 |
| 10133 | else |
| 10134 | gt_value=0 |
| 10135 | fi |
| 10136 | |
| 10137 | cat >>confdefs.h <<_ACEOF |
| 10138 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10139 | _ACEOF |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10144 | { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10145 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10146 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10147 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10148 | else |
| 10149 | cat >conftest.$ac_ext <<_ACEOF |
| 10150 | /* confdefs.h. */ |
| 10151 | _ACEOF |
| 10152 | cat confdefs.h >>conftest.$ac_ext |
| 10153 | cat >>conftest.$ac_ext <<_ACEOF |
| 10154 | /* end confdefs.h. */ |
| 10155 | #include <stdio.h> |
| 10156 | int |
| 10157 | main () |
| 10158 | { |
| 10159 | |
| 10160 | #ifndef feof_unlocked |
| 10161 | char *p = (char *) feof_unlocked; |
| 10162 | #endif |
| 10163 | |
| 10164 | ; |
| 10165 | return 0; |
| 10166 | } |
| 10167 | _ACEOF |
| 10168 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10169 | if { (ac_try="$ac_compile" |
| 10170 | case "(($ac_try" in |
| 10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10172 | *) ac_try_echo=$ac_try;; |
| 10173 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10175 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10176 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10177 | ac_status=$? |
| 10178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10179 | rm -f conftest.er1 |
| 10180 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10182 | (exit $ac_status); } && { |
| 10183 | test -z "$ac_c_werror_flag" || |
| 10184 | test ! -s conftest.err |
| 10185 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10186 | ac_cv_have_decl_feof_unlocked=yes |
| 10187 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10188 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10191 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10192 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10193 | |
| 10194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10195 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10196 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10197 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10198 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10199 | gt_value=1 |
| 10200 | else |
| 10201 | gt_value=0 |
| 10202 | fi |
| 10203 | |
| 10204 | cat >>confdefs.h <<_ACEOF |
| 10205 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10206 | _ACEOF |
| 10207 | |
| 10208 | |
| 10209 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10210 | { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10211 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10212 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10213 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10214 | else |
| 10215 | cat >conftest.$ac_ext <<_ACEOF |
| 10216 | /* confdefs.h. */ |
| 10217 | _ACEOF |
| 10218 | cat confdefs.h >>conftest.$ac_ext |
| 10219 | cat >>conftest.$ac_ext <<_ACEOF |
| 10220 | /* end confdefs.h. */ |
| 10221 | #include <stdio.h> |
| 10222 | int |
| 10223 | main () |
| 10224 | { |
| 10225 | |
| 10226 | #ifndef fgets_unlocked |
| 10227 | char *p = (char *) fgets_unlocked; |
| 10228 | #endif |
| 10229 | |
| 10230 | ; |
| 10231 | return 0; |
| 10232 | } |
| 10233 | _ACEOF |
| 10234 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10235 | if { (ac_try="$ac_compile" |
| 10236 | case "(($ac_try" in |
| 10237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10238 | *) ac_try_echo=$ac_try;; |
| 10239 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10241 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10242 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10243 | ac_status=$? |
| 10244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10245 | rm -f conftest.er1 |
| 10246 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10248 | (exit $ac_status); } && { |
| 10249 | test -z "$ac_c_werror_flag" || |
| 10250 | test ! -s conftest.err |
| 10251 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10252 | ac_cv_have_decl_fgets_unlocked=yes |
| 10253 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10254 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10257 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10259 | |
| 10260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10261 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10263 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10264 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10265 | gt_value=1 |
| 10266 | else |
| 10267 | gt_value=0 |
| 10268 | fi |
| 10269 | |
| 10270 | cat >>confdefs.h <<_ACEOF |
| 10271 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10272 | _ACEOF |
| 10273 | |
| 10274 | |
| 10275 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10276 | { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10277 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10278 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10279 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10280 | else |
| 10281 | cat >conftest.$ac_ext <<_ACEOF |
| 10282 | /* confdefs.h. */ |
| 10283 | _ACEOF |
| 10284 | cat confdefs.h >>conftest.$ac_ext |
| 10285 | cat >>conftest.$ac_ext <<_ACEOF |
| 10286 | /* end confdefs.h. */ |
| 10287 | #include <stdio.h> |
| 10288 | int |
| 10289 | main () |
| 10290 | { |
| 10291 | |
| 10292 | #ifndef getc_unlocked |
| 10293 | char *p = (char *) getc_unlocked; |
| 10294 | #endif |
| 10295 | |
| 10296 | ; |
| 10297 | return 0; |
| 10298 | } |
| 10299 | _ACEOF |
| 10300 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10301 | if { (ac_try="$ac_compile" |
| 10302 | case "(($ac_try" in |
| 10303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10304 | *) ac_try_echo=$ac_try;; |
| 10305 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10307 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10308 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10309 | ac_status=$? |
| 10310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10311 | rm -f conftest.er1 |
| 10312 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10314 | (exit $ac_status); } && { |
| 10315 | test -z "$ac_c_werror_flag" || |
| 10316 | test ! -s conftest.err |
| 10317 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10318 | ac_cv_have_decl_getc_unlocked=yes |
| 10319 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10320 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10322 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10323 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10324 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10325 | |
| 10326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10327 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10329 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10330 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10331 | gt_value=1 |
| 10332 | else |
| 10333 | gt_value=0 |
| 10334 | fi |
| 10335 | |
| 10336 | cat >>confdefs.h <<_ACEOF |
| 10337 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10338 | _ACEOF |
| 10339 | |
| 10340 | |
| 10341 | |
| 10342 | case $gt_cv_func_printf_posix in |
| 10343 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10344 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10345 | esac |
| 10346 | |
| 10347 | if test "$ac_cv_func_asprintf" = yes; then |
| 10348 | HAVE_ASPRINTF=1 |
| 10349 | else |
| 10350 | HAVE_ASPRINTF=0 |
| 10351 | fi |
| 10352 | |
| 10353 | if test "$ac_cv_func_snprintf" = yes; then |
| 10354 | HAVE_SNPRINTF=1 |
| 10355 | else |
| 10356 | HAVE_SNPRINTF=0 |
| 10357 | fi |
| 10358 | |
| 10359 | if test "$ac_cv_func_wprintf" = yes; then |
| 10360 | HAVE_WPRINTF=1 |
| 10361 | else |
| 10362 | HAVE_WPRINTF=0 |
| 10363 | fi |
| 10364 | |
| 10365 | |
| 10366 | |
| 10367 | |
| 10368 | |
| 10369 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10370 | |
| 10371 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10372 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10373 | for element in $INCICONV; do |
| 10374 | haveit= |
| 10375 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10377 | acl_save_prefix="$prefix" |
| 10378 | prefix="$acl_final_prefix" |
| 10379 | acl_save_exec_prefix="$exec_prefix" |
| 10380 | exec_prefix="$acl_final_exec_prefix" |
| 10381 | eval x=\"$x\" |
| 10382 | exec_prefix="$acl_save_exec_prefix" |
| 10383 | prefix="$acl_save_prefix" |
| 10384 | |
| 10385 | if test "X$x" = "X$element"; then |
| 10386 | haveit=yes |
| 10387 | break |
| 10388 | fi |
| 10389 | done |
| 10390 | if test -z "$haveit"; then |
| 10391 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10392 | fi |
| 10393 | done |
| 10394 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10395 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10396 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10397 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10398 | if test "${am_cv_func_iconv+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10399 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10400 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10401 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10402 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10403 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10404 | cat >conftest.$ac_ext <<_ACEOF |
| 10405 | /* confdefs.h. */ |
| 10406 | _ACEOF |
| 10407 | cat confdefs.h >>conftest.$ac_ext |
| 10408 | cat >>conftest.$ac_ext <<_ACEOF |
| 10409 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10410 | #include <stdlib.h> |
| 10411 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10412 | int |
| 10413 | main () |
| 10414 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10415 | iconv_t cd = iconv_open("",""); |
| 10416 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10417 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10418 | ; |
| 10419 | return 0; |
| 10420 | } |
| 10421 | _ACEOF |
| 10422 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10423 | if { (ac_try="$ac_link" |
| 10424 | case "(($ac_try" in |
| 10425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10426 | *) ac_try_echo=$ac_try;; |
| 10427 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10429 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10430 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10431 | ac_status=$? |
| 10432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10433 | rm -f conftest.er1 |
| 10434 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10436 | (exit $ac_status); } && { |
| 10437 | test -z "$ac_c_werror_flag" || |
| 10438 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10439 | } && test -s conftest$ac_exeext && { |
| 10440 | test "$cross_compiling" = yes || |
| 10441 | $as_test_x conftest$ac_exeext |
| 10442 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10443 | am_cv_func_iconv=yes |
| 10444 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10445 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10447 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10448 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10449 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10450 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10451 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10452 | 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] | 10453 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10454 | if test "$am_cv_func_iconv" != yes; then |
| 10455 | am_save_LIBS="$LIBS" |
| 10456 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | cat >conftest.$ac_ext <<_ACEOF |
| 10458 | /* confdefs.h. */ |
| 10459 | _ACEOF |
| 10460 | cat confdefs.h >>conftest.$ac_ext |
| 10461 | cat >>conftest.$ac_ext <<_ACEOF |
| 10462 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10463 | #include <stdlib.h> |
| 10464 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10465 | int |
| 10466 | main () |
| 10467 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10468 | iconv_t cd = iconv_open("",""); |
| 10469 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10470 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10471 | ; |
| 10472 | return 0; |
| 10473 | } |
| 10474 | _ACEOF |
| 10475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10476 | if { (ac_try="$ac_link" |
| 10477 | case "(($ac_try" in |
| 10478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10479 | *) ac_try_echo=$ac_try;; |
| 10480 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10481 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10482 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10483 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10484 | ac_status=$? |
| 10485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10486 | rm -f conftest.er1 |
| 10487 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10489 | (exit $ac_status); } && { |
| 10490 | test -z "$ac_c_werror_flag" || |
| 10491 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10492 | } && test -s conftest$ac_exeext && { |
| 10493 | test "$cross_compiling" = yes || |
| 10494 | $as_test_x conftest$ac_exeext |
| 10495 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10496 | am_cv_lib_iconv=yes |
| 10497 | am_cv_func_iconv=yes |
| 10498 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10499 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10501 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10502 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10503 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10504 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10505 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10506 | 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] | 10507 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10508 | LIBS="$am_save_LIBS" |
| 10509 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10511 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10512 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10513 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10514 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10515 | |
| 10516 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10517 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10518 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10519 | |
| 10520 | fi |
| 10521 | if test "$am_cv_lib_iconv" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10522 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10523 | $as_echo_n "checking how to link with libiconv... " >&6; } |
| 10524 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10525 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10526 | else |
| 10527 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10528 | LIBICONV= |
| 10529 | LTLIBICONV= |
| 10530 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10531 | |
| 10532 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10533 | |
| 10534 | if test "$am_cv_func_iconv" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10535 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10536 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10537 | if test "${am_cv_proto_iconv+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10538 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10539 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10540 | |
| 10541 | cat >conftest.$ac_ext <<_ACEOF |
| 10542 | /* confdefs.h. */ |
| 10543 | _ACEOF |
| 10544 | cat confdefs.h >>conftest.$ac_ext |
| 10545 | cat >>conftest.$ac_ext <<_ACEOF |
| 10546 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10547 | |
| 10548 | #include <stdlib.h> |
| 10549 | #include <iconv.h> |
| 10550 | extern |
| 10551 | #ifdef __cplusplus |
| 10552 | "C" |
| 10553 | #endif |
| 10554 | #if defined(__STDC__) || defined(__cplusplus) |
| 10555 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10556 | #else |
| 10557 | size_t iconv(); |
| 10558 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10559 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10560 | int |
| 10561 | main () |
| 10562 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10564 | ; |
| 10565 | return 0; |
| 10566 | } |
| 10567 | _ACEOF |
| 10568 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10569 | if { (ac_try="$ac_compile" |
| 10570 | case "(($ac_try" in |
| 10571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10572 | *) ac_try_echo=$ac_try;; |
| 10573 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10575 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10576 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10577 | ac_status=$? |
| 10578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10579 | rm -f conftest.er1 |
| 10580 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10582 | (exit $ac_status); } && { |
| 10583 | test -z "$ac_c_werror_flag" || |
| 10584 | test ! -s conftest.err |
| 10585 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10586 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10587 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10588 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10590 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10591 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10592 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10593 | |
| 10594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10595 | 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] | 10596 | fi |
| 10597 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10598 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10599 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10600 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10601 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10602 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10603 | |
| 10604 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10605 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10606 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10607 | |
| 10608 | fi |
| 10609 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10610 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10611 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 10612 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10613 | if test "${am_cv_langinfo_codeset+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10614 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10615 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10616 | cat >conftest.$ac_ext <<_ACEOF |
| 10617 | /* confdefs.h. */ |
| 10618 | _ACEOF |
| 10619 | cat confdefs.h >>conftest.$ac_ext |
| 10620 | cat >>conftest.$ac_ext <<_ACEOF |
| 10621 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10622 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10623 | int |
| 10624 | main () |
| 10625 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10626 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10627 | ; |
| 10628 | return 0; |
| 10629 | } |
| 10630 | _ACEOF |
| 10631 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10632 | if { (ac_try="$ac_link" |
| 10633 | case "(($ac_try" in |
| 10634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10635 | *) ac_try_echo=$ac_try;; |
| 10636 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10638 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10639 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10640 | ac_status=$? |
| 10641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10642 | rm -f conftest.er1 |
| 10643 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10645 | (exit $ac_status); } && { |
| 10646 | test -z "$ac_c_werror_flag" || |
| 10647 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10648 | } && test -s conftest$ac_exeext && { |
| 10649 | test "$cross_compiling" = yes || |
| 10650 | $as_test_x conftest$ac_exeext |
| 10651 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10652 | am_cv_langinfo_codeset=yes |
| 10653 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10654 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10655 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10657 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10658 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10659 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10660 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10661 | 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] | 10662 | conftest$ac_exeext conftest.$ac_ext |
| 10663 | |
| 10664 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10665 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10666 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10667 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10668 | |
| 10669 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10670 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10671 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10672 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10673 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10674 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10675 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10676 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10677 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10678 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10679 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10680 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10681 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10682 | cat >conftest.$ac_ext <<_ACEOF |
| 10683 | /* confdefs.h. */ |
| 10684 | _ACEOF |
| 10685 | cat confdefs.h >>conftest.$ac_ext |
| 10686 | cat >>conftest.$ac_ext <<_ACEOF |
| 10687 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10688 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10689 | int |
| 10690 | main () |
| 10691 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10692 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10693 | ; |
| 10694 | return 0; |
| 10695 | } |
| 10696 | _ACEOF |
| 10697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10698 | if { (ac_try="$ac_link" |
| 10699 | case "(($ac_try" in |
| 10700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10701 | *) ac_try_echo=$ac_try;; |
| 10702 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10704 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10705 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10706 | ac_status=$? |
| 10707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10708 | rm -f conftest.er1 |
| 10709 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10711 | (exit $ac_status); } && { |
| 10712 | test -z "$ac_c_werror_flag" || |
| 10713 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10714 | } && test -s conftest$ac_exeext && { |
| 10715 | test "$cross_compiling" = yes || |
| 10716 | $as_test_x conftest$ac_exeext |
| 10717 | }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10718 | am_cv_val_LC_MESSAGES=yes |
| 10719 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10720 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10721 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10722 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10723 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10724 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10725 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10726 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10727 | 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] | 10728 | conftest$ac_exeext conftest.$ac_ext |
| 10729 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10730 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10731 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10732 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10733 | |
| 10734 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10735 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10736 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10737 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10738 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10739 | |
| 10740 | fi |
| 10741 | |
| 10742 | for ac_prog in bison |
| 10743 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10744 | # 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] | 10745 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10746 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10747 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10748 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10749 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10750 | else |
| 10751 | if test -n "$INTLBISON"; then |
| 10752 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10753 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10755 | for as_dir in $PATH |
| 10756 | do |
| 10757 | IFS=$as_save_IFS |
| 10758 | test -z "$as_dir" && as_dir=. |
| 10759 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10760 | 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] | 10761 | ac_cv_prog_INTLBISON="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10762 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | break 2 |
| 10764 | fi |
| 10765 | done |
| 10766 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10767 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10768 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10769 | fi |
| 10770 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10771 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10772 | if test -n "$INTLBISON"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10773 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10774 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10775 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10776 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10777 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10778 | fi |
| 10779 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10780 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10781 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10782 | done |
| 10783 | |
| 10784 | if test -z "$INTLBISON"; then |
| 10785 | ac_verc_fail=yes |
| 10786 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10787 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10788 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10789 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10790 | case $ac_prog_version in |
| 10791 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10792 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10793 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10794 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10795 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10796 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10797 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10798 | fi |
| 10799 | if test $ac_verc_fail = yes; then |
| 10800 | INTLBISON=: |
| 10801 | fi |
| 10802 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10803 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10804 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10805 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10806 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10807 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10808 | |
| 10809 | |
| 10810 | |
| 10811 | |
| 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10818 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10819 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10820 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10821 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10822 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10823 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10824 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10825 | fi |
| 10826 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10827 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10828 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10829 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10830 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10831 | |
| 10832 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10833 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10834 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10836 | LIBINTL= |
| 10837 | LTLIBINTL= |
| 10838 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10839 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10840 | if test "$USE_NLS" = "yes"; then |
| 10841 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10842 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10843 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10844 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10846 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10847 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10848 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10849 | else |
| 10850 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10851 | fi |
| 10852 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10853 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10854 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10855 | |
| 10856 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10857 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10858 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10864 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10865 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10866 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10867 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10868 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10869 | cat >conftest.$ac_ext <<_ACEOF |
| 10870 | /* confdefs.h. */ |
| 10871 | _ACEOF |
| 10872 | cat confdefs.h >>conftest.$ac_ext |
| 10873 | cat >>conftest.$ac_ext <<_ACEOF |
| 10874 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10875 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10876 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10877 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10878 | int |
| 10879 | main () |
| 10880 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10881 | bindtextdomain ("", ""); |
| 10882 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10883 | ; |
| 10884 | return 0; |
| 10885 | } |
| 10886 | _ACEOF |
| 10887 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10888 | if { (ac_try="$ac_link" |
| 10889 | case "(($ac_try" in |
| 10890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10891 | *) ac_try_echo=$ac_try;; |
| 10892 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10894 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10895 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10896 | ac_status=$? |
| 10897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10898 | rm -f conftest.er1 |
| 10899 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10901 | (exit $ac_status); } && { |
| 10902 | test -z "$ac_c_werror_flag" || |
| 10903 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10904 | } && test -s conftest$ac_exeext && { |
| 10905 | test "$cross_compiling" = yes || |
| 10906 | $as_test_x conftest$ac_exeext |
| 10907 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10908 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10909 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10910 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10911 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10913 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10914 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10915 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10916 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10917 | 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] | 10918 | conftest$ac_exeext conftest.$ac_ext |
| 10919 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10920 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10921 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10922 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10923 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10924 | |
| 10925 | |
| 10926 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10927 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10928 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10929 | acl_save_prefix="$prefix" |
| 10930 | prefix="$acl_final_prefix" |
| 10931 | acl_save_exec_prefix="$exec_prefix" |
| 10932 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10933 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10934 | eval additional_includedir=\"$includedir\" |
| 10935 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10936 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10937 | exec_prefix="$acl_save_exec_prefix" |
| 10938 | prefix="$acl_save_prefix" |
| 10939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10941 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10942 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10943 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10944 | if test "X$withval" = "Xno"; then |
| 10945 | use_additional=no |
| 10946 | else |
| 10947 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10948 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10949 | acl_save_prefix="$prefix" |
| 10950 | prefix="$acl_final_prefix" |
| 10951 | acl_save_exec_prefix="$exec_prefix" |
| 10952 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10953 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10954 | eval additional_includedir=\"$includedir\" |
| 10955 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10956 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10957 | exec_prefix="$acl_save_exec_prefix" |
| 10958 | prefix="$acl_save_prefix" |
| 10959 | |
| 10960 | else |
| 10961 | additional_includedir="$withval/include" |
| 10962 | additional_libdir="$withval/lib" |
| 10963 | fi |
| 10964 | fi |
| 10965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10966 | fi |
| 10967 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10968 | LIBINTL= |
| 10969 | LTLIBINTL= |
| 10970 | INCINTL= |
| 10971 | rpathdirs= |
| 10972 | ltrpathdirs= |
| 10973 | names_already_handled= |
| 10974 | names_next_round='intl ' |
| 10975 | while test -n "$names_next_round"; do |
| 10976 | names_this_round="$names_next_round" |
| 10977 | names_next_round= |
| 10978 | for name in $names_this_round; do |
| 10979 | already_handled= |
| 10980 | for n in $names_already_handled; do |
| 10981 | if test "$n" = "$name"; then |
| 10982 | already_handled=yes |
| 10983 | break |
| 10984 | fi |
| 10985 | done |
| 10986 | if test -z "$already_handled"; then |
| 10987 | names_already_handled="$names_already_handled $name" |
| 10988 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10989 | eval value=\"\$HAVE_LIB$uppername\" |
| 10990 | if test -n "$value"; then |
| 10991 | if test "$value" = yes; then |
| 10992 | eval value=\"\$LIB$uppername\" |
| 10993 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10994 | eval value=\"\$LTLIB$uppername\" |
| 10995 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10996 | else |
| 10997 | : |
| 10998 | fi |
| 10999 | else |
| 11000 | found_dir= |
| 11001 | found_la= |
| 11002 | found_so= |
| 11003 | found_a= |
| 11004 | if test $use_additional = yes; then |
| 11005 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 11006 | found_dir="$additional_libdir" |
| 11007 | found_so="$additional_libdir/lib$name.$shlibext" |
| 11008 | if test -f "$additional_libdir/lib$name.la"; then |
| 11009 | found_la="$additional_libdir/lib$name.la" |
| 11010 | fi |
| 11011 | else |
| 11012 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 11013 | found_dir="$additional_libdir" |
| 11014 | found_a="$additional_libdir/lib$name.$libext" |
| 11015 | if test -f "$additional_libdir/lib$name.la"; then |
| 11016 | found_la="$additional_libdir/lib$name.la" |
| 11017 | fi |
| 11018 | fi |
| 11019 | fi |
| 11020 | fi |
| 11021 | if test "X$found_dir" = "X"; then |
| 11022 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11023 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11024 | acl_save_prefix="$prefix" |
| 11025 | prefix="$acl_final_prefix" |
| 11026 | acl_save_exec_prefix="$exec_prefix" |
| 11027 | exec_prefix="$acl_final_exec_prefix" |
| 11028 | eval x=\"$x\" |
| 11029 | exec_prefix="$acl_save_exec_prefix" |
| 11030 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11031 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11032 | case "$x" in |
| 11033 | -L*) |
| 11034 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11035 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11036 | found_dir="$dir" |
| 11037 | found_so="$dir/lib$name.$shlibext" |
| 11038 | if test -f "$dir/lib$name.la"; then |
| 11039 | found_la="$dir/lib$name.la" |
| 11040 | fi |
| 11041 | else |
| 11042 | if test -f "$dir/lib$name.$libext"; then |
| 11043 | found_dir="$dir" |
| 11044 | found_a="$dir/lib$name.$libext" |
| 11045 | if test -f "$dir/lib$name.la"; then |
| 11046 | found_la="$dir/lib$name.la" |
| 11047 | fi |
| 11048 | fi |
| 11049 | fi |
| 11050 | ;; |
| 11051 | esac |
| 11052 | if test "X$found_dir" != "X"; then |
| 11053 | break |
| 11054 | fi |
| 11055 | done |
| 11056 | fi |
| 11057 | if test "X$found_dir" != "X"; then |
| 11058 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11059 | if test "X$found_so" != "X"; then |
| 11060 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11061 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11062 | else |
| 11063 | haveit= |
| 11064 | for x in $ltrpathdirs; do |
| 11065 | if test "X$x" = "X$found_dir"; then |
| 11066 | haveit=yes |
| 11067 | break |
| 11068 | fi |
| 11069 | done |
| 11070 | if test -z "$haveit"; then |
| 11071 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11072 | fi |
| 11073 | if test "$hardcode_direct" = yes; then |
| 11074 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11075 | else |
| 11076 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11077 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11078 | haveit= |
| 11079 | for x in $rpathdirs; do |
| 11080 | if test "X$x" = "X$found_dir"; then |
| 11081 | haveit=yes |
| 11082 | break |
| 11083 | fi |
| 11084 | done |
| 11085 | if test -z "$haveit"; then |
| 11086 | rpathdirs="$rpathdirs $found_dir" |
| 11087 | fi |
| 11088 | else |
| 11089 | haveit= |
| 11090 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11091 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11092 | acl_save_prefix="$prefix" |
| 11093 | prefix="$acl_final_prefix" |
| 11094 | acl_save_exec_prefix="$exec_prefix" |
| 11095 | exec_prefix="$acl_final_exec_prefix" |
| 11096 | eval x=\"$x\" |
| 11097 | exec_prefix="$acl_save_exec_prefix" |
| 11098 | prefix="$acl_save_prefix" |
| 11099 | |
| 11100 | if test "X$x" = "X-L$found_dir"; then |
| 11101 | haveit=yes |
| 11102 | break |
| 11103 | fi |
| 11104 | done |
| 11105 | if test -z "$haveit"; then |
| 11106 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11107 | fi |
| 11108 | if test "$hardcode_minus_L" != no; then |
| 11109 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11110 | else |
| 11111 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11112 | fi |
| 11113 | fi |
| 11114 | fi |
| 11115 | fi |
| 11116 | else |
| 11117 | if test "X$found_a" != "X"; then |
| 11118 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11119 | else |
| 11120 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11121 | fi |
| 11122 | fi |
| 11123 | additional_includedir= |
| 11124 | case "$found_dir" in |
| 11125 | */lib | */lib/) |
| 11126 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11127 | additional_includedir="$basedir/include" |
| 11128 | ;; |
| 11129 | esac |
| 11130 | if test "X$additional_includedir" != "X"; then |
| 11131 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11132 | haveit= |
| 11133 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11134 | if test -n "$GCC"; then |
| 11135 | case $host_os in |
| 11136 | linux*) haveit=yes;; |
| 11137 | esac |
| 11138 | fi |
| 11139 | fi |
| 11140 | if test -z "$haveit"; then |
| 11141 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11142 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11143 | acl_save_prefix="$prefix" |
| 11144 | prefix="$acl_final_prefix" |
| 11145 | acl_save_exec_prefix="$exec_prefix" |
| 11146 | exec_prefix="$acl_final_exec_prefix" |
| 11147 | eval x=\"$x\" |
| 11148 | exec_prefix="$acl_save_exec_prefix" |
| 11149 | prefix="$acl_save_prefix" |
| 11150 | |
| 11151 | if test "X$x" = "X-I$additional_includedir"; then |
| 11152 | haveit=yes |
| 11153 | break |
| 11154 | fi |
| 11155 | done |
| 11156 | if test -z "$haveit"; then |
| 11157 | if test -d "$additional_includedir"; then |
| 11158 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11159 | fi |
| 11160 | fi |
| 11161 | fi |
| 11162 | fi |
| 11163 | fi |
| 11164 | if test -n "$found_la"; then |
| 11165 | save_libdir="$libdir" |
| 11166 | case "$found_la" in |
| 11167 | */* | *\\*) . "$found_la" ;; |
| 11168 | *) . "./$found_la" ;; |
| 11169 | esac |
| 11170 | libdir="$save_libdir" |
| 11171 | for dep in $dependency_libs; do |
| 11172 | case "$dep" in |
| 11173 | -L*) |
| 11174 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11175 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11176 | haveit= |
| 11177 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11178 | if test -n "$GCC"; then |
| 11179 | case $host_os in |
| 11180 | linux*) haveit=yes;; |
| 11181 | esac |
| 11182 | fi |
| 11183 | fi |
| 11184 | if test -z "$haveit"; then |
| 11185 | haveit= |
| 11186 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11187 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11188 | acl_save_prefix="$prefix" |
| 11189 | prefix="$acl_final_prefix" |
| 11190 | acl_save_exec_prefix="$exec_prefix" |
| 11191 | exec_prefix="$acl_final_exec_prefix" |
| 11192 | eval x=\"$x\" |
| 11193 | exec_prefix="$acl_save_exec_prefix" |
| 11194 | prefix="$acl_save_prefix" |
| 11195 | |
| 11196 | if test "X$x" = "X-L$additional_libdir"; then |
| 11197 | haveit=yes |
| 11198 | break |
| 11199 | fi |
| 11200 | done |
| 11201 | if test -z "$haveit"; then |
| 11202 | if test -d "$additional_libdir"; then |
| 11203 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11204 | fi |
| 11205 | fi |
| 11206 | haveit= |
| 11207 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11208 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11209 | acl_save_prefix="$prefix" |
| 11210 | prefix="$acl_final_prefix" |
| 11211 | acl_save_exec_prefix="$exec_prefix" |
| 11212 | exec_prefix="$acl_final_exec_prefix" |
| 11213 | eval x=\"$x\" |
| 11214 | exec_prefix="$acl_save_exec_prefix" |
| 11215 | prefix="$acl_save_prefix" |
| 11216 | |
| 11217 | if test "X$x" = "X-L$additional_libdir"; then |
| 11218 | haveit=yes |
| 11219 | break |
| 11220 | fi |
| 11221 | done |
| 11222 | if test -z "$haveit"; then |
| 11223 | if test -d "$additional_libdir"; then |
| 11224 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11225 | fi |
| 11226 | fi |
| 11227 | fi |
| 11228 | fi |
| 11229 | ;; |
| 11230 | -R*) |
| 11231 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11232 | if test "$enable_rpath" != no; then |
| 11233 | haveit= |
| 11234 | for x in $rpathdirs; do |
| 11235 | if test "X$x" = "X$dir"; then |
| 11236 | haveit=yes |
| 11237 | break |
| 11238 | fi |
| 11239 | done |
| 11240 | if test -z "$haveit"; then |
| 11241 | rpathdirs="$rpathdirs $dir" |
| 11242 | fi |
| 11243 | haveit= |
| 11244 | for x in $ltrpathdirs; do |
| 11245 | if test "X$x" = "X$dir"; then |
| 11246 | haveit=yes |
| 11247 | break |
| 11248 | fi |
| 11249 | done |
| 11250 | if test -z "$haveit"; then |
| 11251 | ltrpathdirs="$ltrpathdirs $dir" |
| 11252 | fi |
| 11253 | fi |
| 11254 | ;; |
| 11255 | -l*) |
| 11256 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11257 | ;; |
| 11258 | *.la) |
| 11259 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11260 | ;; |
| 11261 | *) |
| 11262 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11263 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11264 | ;; |
| 11265 | esac |
| 11266 | done |
| 11267 | fi |
| 11268 | else |
| 11269 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11270 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11271 | fi |
| 11272 | fi |
| 11273 | fi |
| 11274 | done |
| 11275 | done |
| 11276 | if test "X$rpathdirs" != "X"; then |
| 11277 | if test -n "$hardcode_libdir_separator"; then |
| 11278 | alldirs= |
| 11279 | for found_dir in $rpathdirs; do |
| 11280 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11281 | done |
| 11282 | acl_save_libdir="$libdir" |
| 11283 | libdir="$alldirs" |
| 11284 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11285 | libdir="$acl_save_libdir" |
| 11286 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11287 | else |
| 11288 | for found_dir in $rpathdirs; do |
| 11289 | acl_save_libdir="$libdir" |
| 11290 | libdir="$found_dir" |
| 11291 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11292 | libdir="$acl_save_libdir" |
| 11293 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11294 | done |
| 11295 | fi |
| 11296 | fi |
| 11297 | if test "X$ltrpathdirs" != "X"; then |
| 11298 | for found_dir in $ltrpathdirs; do |
| 11299 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11300 | done |
| 11301 | fi |
| 11302 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11303 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11304 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11306 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11307 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11308 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11309 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11310 | gt_save_LIBS="$LIBS" |
| 11311 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11312 | cat >conftest.$ac_ext <<_ACEOF |
| 11313 | /* confdefs.h. */ |
| 11314 | _ACEOF |
| 11315 | cat confdefs.h >>conftest.$ac_ext |
| 11316 | cat >>conftest.$ac_ext <<_ACEOF |
| 11317 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11318 | #include <libintl.h> |
| 11319 | extern int _nl_msg_cat_cntr; |
| 11320 | extern |
| 11321 | #ifdef __cplusplus |
| 11322 | "C" |
| 11323 | #endif |
| 11324 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11325 | int |
| 11326 | main () |
| 11327 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11328 | bindtextdomain ("", ""); |
| 11329 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11330 | ; |
| 11331 | return 0; |
| 11332 | } |
| 11333 | _ACEOF |
| 11334 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11335 | if { (ac_try="$ac_link" |
| 11336 | case "(($ac_try" in |
| 11337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11338 | *) ac_try_echo=$ac_try;; |
| 11339 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11341 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11342 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11343 | ac_status=$? |
| 11344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11345 | rm -f conftest.er1 |
| 11346 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11348 | (exit $ac_status); } && { |
| 11349 | test -z "$ac_c_werror_flag" || |
| 11350 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11351 | } && test -s conftest$ac_exeext && { |
| 11352 | test "$cross_compiling" = yes || |
| 11353 | $as_test_x conftest$ac_exeext |
| 11354 | }; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11355 | gt_cv_func_gnugettext1_libintl=yes |
| 11356 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11357 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11359 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11360 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11361 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11363 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11364 | 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] | 11365 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11366 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11367 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11368 | cat >conftest.$ac_ext <<_ACEOF |
| 11369 | /* confdefs.h. */ |
| 11370 | _ACEOF |
| 11371 | cat confdefs.h >>conftest.$ac_ext |
| 11372 | cat >>conftest.$ac_ext <<_ACEOF |
| 11373 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11374 | #include <libintl.h> |
| 11375 | extern int _nl_msg_cat_cntr; |
| 11376 | extern |
| 11377 | #ifdef __cplusplus |
| 11378 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11379 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11380 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11381 | int |
| 11382 | main () |
| 11383 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11384 | bindtextdomain ("", ""); |
| 11385 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11386 | ; |
| 11387 | return 0; |
| 11388 | } |
| 11389 | _ACEOF |
| 11390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11391 | if { (ac_try="$ac_link" |
| 11392 | case "(($ac_try" in |
| 11393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11394 | *) ac_try_echo=$ac_try;; |
| 11395 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11397 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11398 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11399 | ac_status=$? |
| 11400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11401 | rm -f conftest.er1 |
| 11402 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11404 | (exit $ac_status); } && { |
| 11405 | test -z "$ac_c_werror_flag" || |
| 11406 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11407 | } && test -s conftest$ac_exeext && { |
| 11408 | test "$cross_compiling" = yes || |
| 11409 | $as_test_x conftest$ac_exeext |
| 11410 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11411 | LIBINTL="$LIBINTL $LIBICONV" |
| 11412 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11413 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11414 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11415 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11416 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11419 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11420 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11421 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11422 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11423 | 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] | 11424 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11425 | fi |
| 11426 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11427 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11428 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11429 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11430 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11431 | fi |
| 11432 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11433 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11434 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11435 | && test "$PACKAGE" != gettext-runtime \ |
| 11436 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11437 | gt_use_preinstalled_gnugettext=yes |
| 11438 | else |
| 11439 | LIBINTL= |
| 11440 | LTLIBINTL= |
| 11441 | INCINTL= |
| 11442 | fi |
| 11443 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11444 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11445 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11446 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11447 | fi |
| 11448 | fi |
| 11449 | |
| 11450 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11451 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11452 | USE_INCLUDED_LIBINTL=yes |
| 11453 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11454 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11455 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11456 | fi |
| 11457 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11458 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11459 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11460 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11461 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11462 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11464 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11465 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11466 | |
| 11467 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11468 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11470 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11471 | else |
| 11472 | USE_NLS=no |
| 11473 | fi |
| 11474 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11475 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11476 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11477 | $as_echo_n "checking whether to use NLS... " >&6; } |
| 11478 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11479 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11480 | if test "$USE_NLS" = "yes"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11481 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11482 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11484 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11485 | gt_source="external libintl" |
| 11486 | else |
| 11487 | gt_source="libc" |
| 11488 | fi |
| 11489 | else |
| 11490 | gt_source="included intl directory" |
| 11491 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11492 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11493 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11494 | fi |
| 11495 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11496 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11498 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11499 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11500 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11501 | $as_echo_n "checking how to link with libintl... " >&6; } |
| 11502 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11503 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11504 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11505 | for element in $INCINTL; do |
| 11506 | haveit= |
| 11507 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11509 | acl_save_prefix="$prefix" |
| 11510 | prefix="$acl_final_prefix" |
| 11511 | acl_save_exec_prefix="$exec_prefix" |
| 11512 | exec_prefix="$acl_final_exec_prefix" |
| 11513 | eval x=\"$x\" |
| 11514 | exec_prefix="$acl_save_exec_prefix" |
| 11515 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11516 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11517 | if test "X$x" = "X$element"; then |
| 11518 | haveit=yes |
| 11519 | break |
| 11520 | fi |
| 11521 | done |
| 11522 | if test -z "$haveit"; then |
| 11523 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11524 | fi |
| 11525 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11526 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11527 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11528 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11529 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11530 | cat >>confdefs.h <<\_ACEOF |
| 11531 | #define HAVE_GETTEXT 1 |
| 11532 | _ACEOF |
| 11533 | |
| 11534 | |
| 11535 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11536 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11537 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11538 | |
| 11539 | fi |
| 11540 | |
| 11541 | POSUB=po |
| 11542 | fi |
| 11543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11544 | |
| 11545 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11546 | BUILD_INCLUDED_LIBINTL=yes |
| 11547 | fi |
| 11548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | |
| 11550 | |
| 11551 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11552 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11553 | nls_cv_header_intl= |
| 11554 | nls_cv_header_libgt= |
| 11555 | |
| 11556 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11557 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11558 | |
| 11559 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11560 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11561 | |
| 11562 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11563 | |
| 11564 | |
| 11565 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11566 | INTLOBJS="\$(GETTOBJS)" |
| 11567 | fi |
| 11568 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11569 | |
| 11570 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11571 | |
| 11572 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11573 | |
| 11574 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11575 | |
| 11576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11577 | |
| 11578 | |
| 11579 | |
| 11580 | |
| 11581 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11582 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 11583 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11584 | set x ${MAKE-make} |
| 11585 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11586 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11587 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11588 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11589 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11590 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11591 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11592 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11593 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11595 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11596 | *@@@%%%=?*=@@@%%%*) |
| 11597 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11598 | *) |
| 11599 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11600 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11601 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11602 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11603 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11604 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11605 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11606 | SET_MAKE= |
| 11607 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11608 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11609 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11610 | SET_MAKE="MAKE=${MAKE-make}" |
| 11611 | fi |
| 11612 | |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11613 | { $as_echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 11614 | $as_echo_n "checking for GNU make... " >&6; } |
| 11615 | if test "${_cv_gnu_make_command+set}" = set; then |
| 11616 | $as_echo_n "(cached) " >&6 |
| 11617 | else |
| 11618 | _cv_gnu_make_command='' ; |
| 11619 | for a in "$MAKE" make gmake gnumake ; do |
| 11620 | if test -z "$a" ; then continue ; fi ; |
| 11621 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11622 | _cv_gnu_make_command=$a ; |
| 11623 | break; |
| 11624 | fi |
| 11625 | done ; |
| 11626 | |
| 11627 | fi |
| 11628 | { $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 |
| 11629 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11630 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11631 | ifGNUmake='' ; |
| 11632 | ifNotGNUmake='#' ; |
| 11633 | else |
| 11634 | ifGNUmake='#' ; |
| 11635 | ifNotGNUmake='' ; |
| 11636 | { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 11637 | $as_echo "\"Not found\"" >&6; }; |
| 11638 | fi |
| 11639 | |
| 11640 | |
| 11641 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11642 | # Extract the first word of "ln", so it can be a program name with args. |
| 11643 | set dummy ln; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11644 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11645 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11646 | if test "${ac_cv_path_LN+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11647 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11648 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11649 | case $LN in |
| 11650 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11651 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11652 | ;; |
| 11653 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11655 | for as_dir in $PATH |
| 11656 | do |
| 11657 | IFS=$as_save_IFS |
| 11658 | test -z "$as_dir" && as_dir=. |
| 11659 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11660 | 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] | 11661 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11662 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11663 | break 2 |
| 11664 | fi |
| 11665 | done |
| 11666 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11667 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11668 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11669 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11670 | ;; |
| 11671 | esac |
| 11672 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11673 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11674 | if test -n "$LN"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11675 | { $as_echo "$as_me:$LINENO: result: $LN" >&5 |
| 11676 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11677 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11678 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11679 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11680 | fi |
| 11681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11682 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11683 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 11684 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11685 | LN_S=$as_ln_s |
| 11686 | if test "$LN_S" = "ln -s"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11687 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11688 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11689 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11690 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 11691 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11694 | # Extract the first word of "mv", so it can be a program name with args. |
| 11695 | set dummy mv; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11696 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11697 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | if test "${ac_cv_path_MV+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11699 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11700 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11701 | case $MV in |
| 11702 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11703 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11704 | ;; |
| 11705 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11707 | for as_dir in $PATH |
| 11708 | do |
| 11709 | IFS=$as_save_IFS |
| 11710 | test -z "$as_dir" && as_dir=. |
| 11711 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11712 | 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] | 11713 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11714 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11715 | break 2 |
| 11716 | fi |
| 11717 | done |
| 11718 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11719 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11720 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11721 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11722 | ;; |
| 11723 | esac |
| 11724 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11725 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11726 | if test -n "$MV"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11727 | { $as_echo "$as_me:$LINENO: result: $MV" >&5 |
| 11728 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11729 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11730 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11731 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11732 | fi |
| 11733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11734 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11735 | # Extract the first word of "cp", so it can be a program name with args. |
| 11736 | set dummy cp; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11737 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11738 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11739 | if test "${ac_cv_path_CP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11740 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11741 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11742 | case $CP in |
| 11743 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11744 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11745 | ;; |
| 11746 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11748 | for as_dir in $PATH |
| 11749 | do |
| 11750 | IFS=$as_save_IFS |
| 11751 | test -z "$as_dir" && as_dir=. |
| 11752 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11753 | 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] | 11754 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11755 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11756 | break 2 |
| 11757 | fi |
| 11758 | done |
| 11759 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11760 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11761 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11762 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11763 | ;; |
| 11764 | esac |
| 11765 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11766 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11767 | if test -n "$CP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11768 | { $as_echo "$as_me:$LINENO: result: $CP" >&5 |
| 11769 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11770 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11771 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11772 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11773 | fi |
| 11774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11775 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11776 | # Extract the first word of "rm", so it can be a program name with args. |
| 11777 | set dummy rm; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11778 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11779 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11780 | if test "${ac_cv_path_RM+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11781 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11782 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11783 | case $RM in |
| 11784 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11785 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11786 | ;; |
| 11787 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11789 | for as_dir in $PATH |
| 11790 | do |
| 11791 | IFS=$as_save_IFS |
| 11792 | test -z "$as_dir" && as_dir=. |
| 11793 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11794 | 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] | 11795 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11796 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11797 | break 2 |
| 11798 | fi |
| 11799 | done |
| 11800 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11801 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11802 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11803 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11804 | ;; |
| 11805 | esac |
| 11806 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11807 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11808 | if test -n "$RM"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11809 | { $as_echo "$as_me:$LINENO: result: $RM" >&5 |
| 11810 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11811 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11812 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11813 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11814 | fi |
| 11815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11816 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11817 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11818 | set dummy chmod; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11819 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11820 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11821 | if test "${ac_cv_path_CHMOD+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11822 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11823 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11824 | case $CHMOD in |
| 11825 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11826 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11827 | ;; |
| 11828 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11830 | for as_dir in $PATH |
| 11831 | do |
| 11832 | IFS=$as_save_IFS |
| 11833 | test -z "$as_dir" && as_dir=. |
| 11834 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11835 | 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] | 11836 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11837 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11838 | break 2 |
| 11839 | fi |
| 11840 | done |
| 11841 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11842 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11843 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11844 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11845 | ;; |
| 11846 | esac |
| 11847 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11848 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11849 | if test -n "$CHMOD"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11850 | { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11851 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11852 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11853 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11854 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11855 | fi |
| 11856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11857 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11858 | for ac_prog in gawk mawk nawk awk |
| 11859 | do |
| 11860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11861 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11862 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11863 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11864 | if test "${ac_cv_prog_AWK+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11865 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11866 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11867 | if test -n "$AWK"; then |
| 11868 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11869 | else |
| 11870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11871 | for as_dir in $PATH |
| 11872 | do |
| 11873 | IFS=$as_save_IFS |
| 11874 | test -z "$as_dir" && as_dir=. |
| 11875 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11876 | 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] | 11877 | ac_cv_prog_AWK="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11878 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11879 | break 2 |
| 11880 | fi |
| 11881 | done |
| 11882 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11883 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11884 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11885 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11886 | fi |
| 11887 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11888 | if test -n "$AWK"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11889 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11890 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11891 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11893 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11894 | fi |
| 11895 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11896 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11897 | test -n "$AWK" && break |
| 11898 | done |
| 11899 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11900 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11901 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11902 | if test "${ac_cv_path_EGREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11903 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11904 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11906 | then ac_cv_path_EGREP="$GREP -E" |
| 11907 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11908 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11909 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11910 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11912 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11913 | do |
| 11914 | IFS=$as_save_IFS |
| 11915 | test -z "$as_dir" && as_dir=. |
| 11916 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11918 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 11919 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 11920 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11921 | # Check for GNU $ac_path_EGREP |
| 11922 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11923 | *GNU*) |
| 11924 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11925 | *) |
| 11926 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11927 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11928 | while : |
| 11929 | do |
| 11930 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11931 | mv "conftest.tmp" "conftest.in" |
| 11932 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11933 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11934 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11935 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11936 | ac_count=`expr $ac_count + 1` |
| 11937 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11938 | # Best one so far, save it but keep looking for a better one |
| 11939 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11940 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11941 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11942 | # 10*(2^10) chars as input seems more than enough |
| 11943 | test $ac_count -gt 10 && break |
| 11944 | done |
| 11945 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11946 | esac |
| 11947 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11948 | $ac_path_EGREP_found && break 3 |
| 11949 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11950 | done |
| 11951 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11952 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11953 | if test -z "$ac_cv_path_EGREP"; then |
| 11954 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11955 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11956 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11957 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11958 | else |
| 11959 | ac_cv_path_EGREP=$EGREP |
| 11960 | fi |
| 11961 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11962 | fi |
| 11963 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11965 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11966 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11967 | |
| 11968 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11969 | # Extract the first word of "sed", so it can be a program name with args. |
| 11970 | set dummy sed; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11971 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11972 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | if test "${ac_cv_path_SED+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11974 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11976 | case $SED in |
| 11977 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11978 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11979 | ;; |
| 11980 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11982 | for as_dir in $PATH |
| 11983 | do |
| 11984 | IFS=$as_save_IFS |
| 11985 | test -z "$as_dir" && as_dir=. |
| 11986 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11987 | 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] | 11988 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11989 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11990 | break 2 |
| 11991 | fi |
| 11992 | done |
| 11993 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11994 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11995 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11996 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11997 | ;; |
| 11998 | esac |
| 11999 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12000 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12001 | if test -n "$SED"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12002 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 |
| 12003 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12004 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12005 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12006 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12007 | fi |
| 12008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12009 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12010 | # Extract the first word of "perl", so it can be a program name with args. |
| 12011 | set dummy perl; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12012 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12013 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12014 | if test "${ac_cv_path_PERL+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12017 | case $PERL in |
| 12018 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12019 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 12020 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12021 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12023 | for as_dir in $PATH |
| 12024 | do |
| 12025 | IFS=$as_save_IFS |
| 12026 | test -z "$as_dir" && as_dir=. |
| 12027 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12028 | 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] | 12029 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12030 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12031 | break 2 |
| 12032 | fi |
| 12033 | done |
| 12034 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12036 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12037 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 12038 | ;; |
| 12039 | esac |
| 12040 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12041 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12042 | if test -n "$PERL"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12043 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
| 12044 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12045 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12046 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12047 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12048 | fi |
| 12049 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12050 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12051 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 12052 | set dummy ldconfig; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12053 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12054 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12055 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12056 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12057 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12058 | case $LDCONFIG in |
| 12059 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12060 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 12061 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12062 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12064 | for as_dir in $PATH |
| 12065 | do |
| 12066 | IFS=$as_save_IFS |
| 12067 | test -z "$as_dir" && as_dir=. |
| 12068 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12069 | 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] | 12070 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12071 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12072 | break 2 |
| 12073 | fi |
| 12074 | done |
| 12075 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12076 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12077 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12078 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 12079 | ;; |
| 12080 | esac |
| 12081 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12082 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12083 | if test -n "$LDCONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12084 | { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 12085 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12086 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12087 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12088 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12089 | fi |
| 12090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12091 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12092 | if test -n "$ac_tool_prefix"; then |
| 12093 | # 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] | 12094 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12095 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12096 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12097 | if test "${ac_cv_prog_AR+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12098 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12099 | else |
| 12100 | if test -n "$AR"; then |
| 12101 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12104 | for as_dir in $PATH |
| 12105 | do |
| 12106 | IFS=$as_save_IFS |
| 12107 | test -z "$as_dir" && as_dir=. |
| 12108 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12109 | 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] | 12110 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12111 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12112 | break 2 |
| 12113 | fi |
| 12114 | done |
| 12115 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12116 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12117 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12118 | fi |
| 12119 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12121 | if test -n "$AR"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12122 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 12123 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12124 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12125 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12126 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12127 | fi |
| 12128 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12129 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12130 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12131 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12132 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12133 | # Extract the first word of "ar", so it can be a program name with args. |
| 12134 | set dummy ar; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12135 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12136 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12137 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12138 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12140 | if test -n "$ac_ct_AR"; then |
| 12141 | 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] | 12142 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12144 | for as_dir in $PATH |
| 12145 | do |
| 12146 | IFS=$as_save_IFS |
| 12147 | test -z "$as_dir" && as_dir=. |
| 12148 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12149 | 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] | 12150 | ac_cv_prog_ac_ct_AR="ar" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12151 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12152 | break 2 |
| 12153 | fi |
| 12154 | done |
| 12155 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12156 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12157 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12158 | fi |
| 12159 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12160 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12161 | if test -n "$ac_ct_AR"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12162 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 12163 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12164 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12165 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12166 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12167 | fi |
| 12168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12169 | if test "x$ac_ct_AR" = x; then |
| 12170 | AR="ar" |
| 12171 | else |
| 12172 | case $cross_compiling:$ac_tool_warned in |
| 12173 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12174 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12176 | ac_tool_warned=yes ;; |
| 12177 | esac |
| 12178 | AR=$ac_ct_AR |
| 12179 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12180 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12181 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12182 | fi |
| 12183 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12184 | if test -n "$ac_tool_prefix"; then |
| 12185 | # 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] | 12186 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12187 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12188 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12189 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12190 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12191 | else |
| 12192 | if test -n "$RANLIB"; then |
| 12193 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12194 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12196 | for as_dir in $PATH |
| 12197 | do |
| 12198 | IFS=$as_save_IFS |
| 12199 | test -z "$as_dir" && as_dir=. |
| 12200 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12201 | 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] | 12202 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12203 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12204 | break 2 |
| 12205 | fi |
| 12206 | done |
| 12207 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12208 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12209 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12212 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12213 | if test -n "$RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12214 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 12215 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12216 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12217 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12218 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12219 | fi |
| 12220 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12221 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12222 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12223 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12224 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12225 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12226 | set dummy ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12227 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12228 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12229 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12230 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12231 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | if test -n "$ac_ct_RANLIB"; then |
| 12233 | 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] | 12234 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12236 | for as_dir in $PATH |
| 12237 | do |
| 12238 | IFS=$as_save_IFS |
| 12239 | test -z "$as_dir" && as_dir=. |
| 12240 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12241 | 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] | 12242 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12243 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12244 | break 2 |
| 12245 | fi |
| 12246 | done |
| 12247 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12248 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12250 | fi |
| 12251 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12252 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12253 | if test -n "$ac_ct_RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12254 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 12255 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12256 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12257 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12258 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12259 | fi |
| 12260 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12261 | if test "x$ac_ct_RANLIB" = x; then |
| 12262 | RANLIB=":" |
| 12263 | else |
| 12264 | case $cross_compiling:$ac_tool_warned in |
| 12265 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12266 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12268 | ac_tool_warned=yes ;; |
| 12269 | esac |
| 12270 | RANLIB=$ac_ct_RANLIB |
| 12271 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12273 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12274 | fi |
| 12275 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12276 | if test -n "$ac_tool_prefix"; then |
| 12277 | # 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] | 12278 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12279 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12280 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12281 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12282 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12283 | else |
| 12284 | if test -n "$STRIP"; then |
| 12285 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12288 | for as_dir in $PATH |
| 12289 | do |
| 12290 | IFS=$as_save_IFS |
| 12291 | test -z "$as_dir" && as_dir=. |
| 12292 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12293 | 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] | 12294 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12295 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12296 | break 2 |
| 12297 | fi |
| 12298 | done |
| 12299 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12300 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12302 | fi |
| 12303 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12304 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12305 | if test -n "$STRIP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12306 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 12307 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12308 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12309 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12310 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12311 | fi |
| 12312 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12314 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12315 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12316 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12317 | # Extract the first word of "strip", so it can be a program name with args. |
| 12318 | set dummy strip; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12319 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12320 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12321 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12322 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12323 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12324 | if test -n "$ac_ct_STRIP"; then |
| 12325 | 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] | 12326 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12328 | for as_dir in $PATH |
| 12329 | do |
| 12330 | IFS=$as_save_IFS |
| 12331 | test -z "$as_dir" && as_dir=. |
| 12332 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12333 | 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] | 12334 | ac_cv_prog_ac_ct_STRIP="strip" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12335 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12336 | break 2 |
| 12337 | fi |
| 12338 | done |
| 12339 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12340 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12341 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12342 | fi |
| 12343 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12344 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12345 | if test -n "$ac_ct_STRIP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12346 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 12347 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12348 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12349 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12350 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12351 | fi |
| 12352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12353 | if test "x$ac_ct_STRIP" = x; then |
| 12354 | STRIP=":" |
| 12355 | else |
| 12356 | case $cross_compiling:$ac_tool_warned in |
| 12357 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12358 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12360 | ac_tool_warned=yes ;; |
| 12361 | esac |
| 12362 | STRIP=$ac_ct_STRIP |
| 12363 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12364 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12365 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12366 | fi |
| 12367 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12368 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12369 | set dummy makeinfo; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12370 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12371 | $as_echo_n "checking for $ac_word... " >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12372 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12373 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12374 | else |
| 12375 | if test -n "$MAKEINFO"; then |
| 12376 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12377 | else |
| 12378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12379 | for as_dir in $PATH |
| 12380 | do |
| 12381 | IFS=$as_save_IFS |
| 12382 | test -z "$as_dir" && as_dir=. |
| 12383 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12385 | ac_cv_prog_MAKEINFO="makeinfo" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12386 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12387 | break 2 |
| 12388 | fi |
| 12389 | done |
| 12390 | done |
| 12391 | IFS=$as_save_IFS |
| 12392 | |
| 12393 | fi |
| 12394 | fi |
| 12395 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12396 | if test -n "$MAKEINFO"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12397 | { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 12398 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12399 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12400 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12401 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12402 | fi |
| 12403 | |
| 12404 | |
| 12405 | if test "_$MAKEINFO" = "_"; then |
| 12406 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12407 | else |
| 12408 | case "$MAKEINFO" in |
| 12409 | */missing.*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12410 | { $as_echo "$as_me:$LINENO: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12411 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12412 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12413 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12414 | ;; |
| 12415 | *) |
| 12416 | ;; |
| 12417 | esac |
| 12418 | fi |
| 12419 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12420 | # Find a good install program. We prefer a C program (faster), |
| 12421 | # so one script is as good as another. But avoid the broken or |
| 12422 | # incompatible versions: |
| 12423 | # SysV /etc/install, /usr/sbin/install |
| 12424 | # SunOS /usr/etc/install |
| 12425 | # IRIX /sbin/install |
| 12426 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12427 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12428 | # 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] | 12429 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 12430 | # 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] | 12431 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12432 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12433 | # Reject install programs that cannot install multiple files. |
| 12434 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 12435 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12436 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | if test "${ac_cv_path_install+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12438 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12439 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12441 | for as_dir in $PATH |
| 12442 | do |
| 12443 | IFS=$as_save_IFS |
| 12444 | test -z "$as_dir" && as_dir=. |
| 12445 | # Account for people who put trailing slashes in PATH elements. |
| 12446 | case $as_dir/ in |
| 12447 | ./ | .// | /cC/* | \ |
| 12448 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 12449 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 12450 | /usr/ucb/* ) ;; |
| 12451 | *) |
| 12452 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 12453 | # Don't use installbsd from OSF since it installs stuff as root |
| 12454 | # by default. |
| 12455 | for ac_prog in ginstall scoinst install; do |
| 12456 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12457 | 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] | 12458 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | 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] | 12460 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12461 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12462 | elif test $ac_prog = install && |
| 12463 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 12464 | # program-specific install script used by HP pwplus--don't use. |
| 12465 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12466 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12467 | rm -rf conftest.one conftest.two conftest.dir |
| 12468 | echo one > conftest.one |
| 12469 | echo two > conftest.two |
| 12470 | mkdir conftest.dir |
| 12471 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 12472 | test -s conftest.one && test -s conftest.two && |
| 12473 | test -s conftest.dir/conftest.one && |
| 12474 | test -s conftest.dir/conftest.two |
| 12475 | then |
| 12476 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 12477 | break 3 |
| 12478 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12479 | fi |
| 12480 | fi |
| 12481 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12482 | done |
| 12483 | ;; |
| 12484 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12486 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12487 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12488 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12489 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12490 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12491 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12492 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12493 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12494 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12495 | # As a last resort, use the slow shell script. Don't cache a |
| 12496 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12497 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12498 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12499 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12500 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12501 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12502 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 12503 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12504 | |
| 12505 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 12506 | # It thinks the first close brace ends the variable substitution. |
| 12507 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 12508 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12509 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12510 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12511 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 12512 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12513 | # See if we need a separate native compiler. |
| 12514 | if test $cross_compiling = no; then |
| 12515 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12517 | else |
| 12518 | for ac_prog in gcc cc |
| 12519 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12520 | # 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] | 12521 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12522 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12523 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12524 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12525 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12526 | else |
| 12527 | if test -n "$BUILD_CC"; then |
| 12528 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12529 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12531 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12532 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12533 | IFS=$as_save_IFS |
| 12534 | test -z "$as_dir" && as_dir=. |
| 12535 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12536 | 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] | 12537 | ac_cv_prog_BUILD_CC="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12538 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12539 | break 2 |
| 12540 | fi |
| 12541 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12542 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12543 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12544 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12545 | fi |
| 12546 | fi |
| 12547 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12548 | if test -n "$BUILD_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12549 | { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 12550 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12551 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12553 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12554 | fi |
| 12555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12556 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12557 | test -n "$BUILD_CC" && break |
| 12558 | done |
| 12559 | |
| 12560 | fi |
| 12561 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 12562 | |
| 12563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12564 | |
| 12565 | |
| 12566 | |
| 12567 | |
| 12568 | |
| 12569 | |
| 12570 | |
| 12571 | |
| 12572 | |
| 12573 | |
| 12574 | |
| 12575 | |
| 12576 | |
| 12577 | |
| 12578 | |
| 12579 | |
| 12580 | |
| 12581 | |
| 12582 | |
| 12583 | |
| 12584 | |
| 12585 | |
| 12586 | |
| 12587 | |
| 12588 | |
| 12589 | |
| 12590 | |
| 12591 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 12592 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 12593 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 12594 | |
| 12595 | |
Theodore Ts'o | 3d05802 | 2008-07-12 22:06:30 -0400 | [diff] [blame] | 12596 | |
Theodore Ts'o | 6ec9ef1 | 2008-08-22 12:15:56 -0400 | [diff] [blame] | 12597 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 12598 | |
| 12599 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12600 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12601 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12603 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12604 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12606 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12608 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12609 | $as_echo "$as_val"'` |
| 12610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12611 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12612 | else |
| 12613 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12614 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12615 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12616 | cat >conftest.$ac_ext <<_ACEOF |
| 12617 | /* confdefs.h. */ |
| 12618 | _ACEOF |
| 12619 | cat confdefs.h >>conftest.$ac_ext |
| 12620 | cat >>conftest.$ac_ext <<_ACEOF |
| 12621 | /* end confdefs.h. */ |
| 12622 | $ac_includes_default |
| 12623 | #include <$ac_header> |
| 12624 | _ACEOF |
| 12625 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12626 | if { (ac_try="$ac_compile" |
| 12627 | case "(($ac_try" in |
| 12628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12629 | *) ac_try_echo=$ac_try;; |
| 12630 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12632 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12633 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12634 | ac_status=$? |
| 12635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12636 | rm -f conftest.er1 |
| 12637 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12639 | (exit $ac_status); } && { |
| 12640 | test -z "$ac_c_werror_flag" || |
| 12641 | test ! -s conftest.err |
| 12642 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12643 | ac_header_compiler=yes |
| 12644 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12645 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12647 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12648 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12650 | |
| 12651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12652 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12653 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12654 | |
| 12655 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12656 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12657 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12658 | cat >conftest.$ac_ext <<_ACEOF |
| 12659 | /* confdefs.h. */ |
| 12660 | _ACEOF |
| 12661 | cat confdefs.h >>conftest.$ac_ext |
| 12662 | cat >>conftest.$ac_ext <<_ACEOF |
| 12663 | /* end confdefs.h. */ |
| 12664 | #include <$ac_header> |
| 12665 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12667 | case "(($ac_try" in |
| 12668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12669 | *) ac_try_echo=$ac_try;; |
| 12670 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12672 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12674 | ac_status=$? |
| 12675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12676 | rm -f conftest.er1 |
| 12677 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12679 | (exit $ac_status); } >/dev/null && { |
| 12680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12681 | test ! -s conftest.err |
| 12682 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12683 | ac_header_preproc=yes |
| 12684 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12685 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12687 | |
| 12688 | ac_header_preproc=no |
| 12689 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12690 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12692 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12693 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12694 | |
| 12695 | # So? What about this header? |
| 12696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12697 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12699 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12701 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12702 | ac_header_preproc=yes |
| 12703 | ;; |
| 12704 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12706 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12708 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12710 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12712 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12714 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12715 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12716 | $as_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] | 12717 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12718 | ;; |
| 12719 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12720 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12721 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12723 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12724 | else |
| 12725 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12726 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12727 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12728 | $as_echo "$as_val"'` |
| 12729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12730 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12731 | |
| 12732 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12733 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12734 | $as_echo "$as_val"'` |
| 12735 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12736 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12737 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12738 | _ACEOF |
| 12739 | |
| 12740 | fi |
| 12741 | |
| 12742 | done |
| 12743 | |
| 12744 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12745 | |
| 12746 | for ac_header in sys/disk.h sys/mount.h |
| 12747 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12748 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12749 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12750 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12752 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12753 | else |
| 12754 | cat >conftest.$ac_ext <<_ACEOF |
| 12755 | /* confdefs.h. */ |
| 12756 | _ACEOF |
| 12757 | cat confdefs.h >>conftest.$ac_ext |
| 12758 | cat >>conftest.$ac_ext <<_ACEOF |
| 12759 | /* end confdefs.h. */ |
| 12760 | |
| 12761 | #if HAVE_SYS_QUEUE_H |
| 12762 | #include <sys/queue.h> |
| 12763 | #endif |
| 12764 | |
| 12765 | |
| 12766 | #include <$ac_header> |
| 12767 | _ACEOF |
| 12768 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12769 | if { (ac_try="$ac_compile" |
| 12770 | case "(($ac_try" in |
| 12771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12772 | *) ac_try_echo=$ac_try;; |
| 12773 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12775 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12776 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12777 | ac_status=$? |
| 12778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12779 | rm -f conftest.er1 |
| 12780 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12782 | (exit $ac_status); } && { |
| 12783 | test -z "$ac_c_werror_flag" || |
| 12784 | test ! -s conftest.err |
| 12785 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12786 | eval "$as_ac_Header=yes" |
| 12787 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12788 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12790 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12791 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -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 | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12795 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12796 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12797 | $as_echo "$as_val"'` |
| 12798 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12799 | $as_echo "$ac_res" >&6; } |
| 12800 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12801 | $as_echo "$as_val"'` |
| 12802 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12803 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12804 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12805 | _ACEOF |
| 12806 | |
| 12807 | fi |
| 12808 | |
| 12809 | done |
| 12810 | |
| 12811 | |
| 12812 | for ac_header in net/if.h |
| 12813 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12814 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12815 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12816 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12818 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12819 | else |
| 12820 | cat >conftest.$ac_ext <<_ACEOF |
| 12821 | /* confdefs.h. */ |
| 12822 | _ACEOF |
| 12823 | cat confdefs.h >>conftest.$ac_ext |
| 12824 | cat >>conftest.$ac_ext <<_ACEOF |
| 12825 | /* end confdefs.h. */ |
| 12826 | |
| 12827 | #if HAVE_SYS_TYPES_H |
| 12828 | #include <sys/types.h> |
| 12829 | #endif |
| 12830 | #if HAVE_SYS_SOCKET |
| 12831 | #include <sys/socket.h> |
| 12832 | #endif |
| 12833 | |
| 12834 | |
| 12835 | #include <$ac_header> |
| 12836 | _ACEOF |
| 12837 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12838 | if { (ac_try="$ac_compile" |
| 12839 | case "(($ac_try" in |
| 12840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12841 | *) ac_try_echo=$ac_try;; |
| 12842 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12844 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12845 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12846 | ac_status=$? |
| 12847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12848 | rm -f conftest.er1 |
| 12849 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12851 | (exit $ac_status); } && { |
| 12852 | test -z "$ac_c_werror_flag" || |
| 12853 | test ! -s conftest.err |
| 12854 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12855 | eval "$as_ac_Header=yes" |
| 12856 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12857 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12860 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12862 | |
| 12863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12864 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12865 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12866 | $as_echo "$as_val"'` |
| 12867 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12868 | $as_echo "$ac_res" >&6; } |
| 12869 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12870 | $as_echo "$as_val"'` |
| 12871 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12872 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12873 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12874 | _ACEOF |
| 12875 | |
| 12876 | fi |
| 12877 | |
| 12878 | done |
| 12879 | |
| 12880 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12881 | for ac_func in vprintf |
| 12882 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12883 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12884 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12885 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12886 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12887 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12888 | else |
| 12889 | cat >conftest.$ac_ext <<_ACEOF |
| 12890 | /* confdefs.h. */ |
| 12891 | _ACEOF |
| 12892 | cat confdefs.h >>conftest.$ac_ext |
| 12893 | cat >>conftest.$ac_ext <<_ACEOF |
| 12894 | /* end confdefs.h. */ |
| 12895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12897 | #define $ac_func innocuous_$ac_func |
| 12898 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12899 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12900 | which can conflict with char $ac_func (); below. |
| 12901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12902 | <limits.h> exists even on freestanding compilers. */ |
| 12903 | |
| 12904 | #ifdef __STDC__ |
| 12905 | # include <limits.h> |
| 12906 | #else |
| 12907 | # include <assert.h> |
| 12908 | #endif |
| 12909 | |
| 12910 | #undef $ac_func |
| 12911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12912 | /* Override any GCC internal prototype to avoid an error. |
| 12913 | Use char because int might match the return type of a GCC |
| 12914 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12915 | #ifdef __cplusplus |
| 12916 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12917 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12918 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12919 | /* The GNU C library defines this for functions which it implements |
| 12920 | to always fail with ENOSYS. Some functions are actually named |
| 12921 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12922 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12923 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12924 | #endif |
| 12925 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12926 | int |
| 12927 | main () |
| 12928 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12929 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12930 | ; |
| 12931 | return 0; |
| 12932 | } |
| 12933 | _ACEOF |
| 12934 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12935 | if { (ac_try="$ac_link" |
| 12936 | case "(($ac_try" in |
| 12937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12938 | *) ac_try_echo=$ac_try;; |
| 12939 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12941 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12942 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | ac_status=$? |
| 12944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12945 | rm -f conftest.er1 |
| 12946 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12948 | (exit $ac_status); } && { |
| 12949 | test -z "$ac_c_werror_flag" || |
| 12950 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12951 | } && test -s conftest$ac_exeext && { |
| 12952 | test "$cross_compiling" = yes || |
| 12953 | $as_test_x conftest$ac_exeext |
| 12954 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12955 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12956 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12957 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12958 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12959 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12960 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12961 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12962 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12963 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12964 | 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] | 12965 | conftest$ac_exeext conftest.$ac_ext |
| 12966 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12967 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 12968 | $as_echo "$as_val"'` |
| 12969 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12970 | $as_echo "$ac_res" >&6; } |
| 12971 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 12972 | $as_echo "$as_val"'` |
| 12973 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12974 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12975 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12976 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12977 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12978 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12979 | $as_echo_n "checking for _doprnt... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12980 | if test "${ac_cv_func__doprnt+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12981 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12982 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12983 | cat >conftest.$ac_ext <<_ACEOF |
| 12984 | /* confdefs.h. */ |
| 12985 | _ACEOF |
| 12986 | cat confdefs.h >>conftest.$ac_ext |
| 12987 | cat >>conftest.$ac_ext <<_ACEOF |
| 12988 | /* end confdefs.h. */ |
| 12989 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12990 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12991 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12992 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12993 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12994 | which can conflict with char _doprnt (); below. |
| 12995 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12996 | <limits.h> exists even on freestanding compilers. */ |
| 12997 | |
| 12998 | #ifdef __STDC__ |
| 12999 | # include <limits.h> |
| 13000 | #else |
| 13001 | # include <assert.h> |
| 13002 | #endif |
| 13003 | |
| 13004 | #undef _doprnt |
| 13005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13006 | /* Override any GCC internal prototype to avoid an error. |
| 13007 | Use char because int might match the return type of a GCC |
| 13008 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13009 | #ifdef __cplusplus |
| 13010 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13011 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13012 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13013 | /* The GNU C library defines this for functions which it implements |
| 13014 | to always fail with ENOSYS. Some functions are actually named |
| 13015 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13016 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13017 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13018 | #endif |
| 13019 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13020 | int |
| 13021 | main () |
| 13022 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13023 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13024 | ; |
| 13025 | return 0; |
| 13026 | } |
| 13027 | _ACEOF |
| 13028 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13029 | if { (ac_try="$ac_link" |
| 13030 | case "(($ac_try" in |
| 13031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13032 | *) ac_try_echo=$ac_try;; |
| 13033 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13035 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13036 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13037 | ac_status=$? |
| 13038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13039 | rm -f conftest.er1 |
| 13040 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13042 | (exit $ac_status); } && { |
| 13043 | test -z "$ac_c_werror_flag" || |
| 13044 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13045 | } && test -s conftest$ac_exeext && { |
| 13046 | test "$cross_compiling" = yes || |
| 13047 | $as_test_x conftest$ac_exeext |
| 13048 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13049 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13050 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13051 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13052 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13054 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13055 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13056 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13057 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13058 | 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] | 13059 | conftest$ac_exeext conftest.$ac_ext |
| 13060 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13061 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 13062 | $as_echo "$ac_cv_func__doprnt" >&6; } |
| 13063 | if test "x$ac_cv_func__doprnt" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13064 | |
| 13065 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13066 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13067 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13068 | |
| 13069 | fi |
| 13070 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13071 | fi |
| 13072 | done |
| 13073 | |
| 13074 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13075 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 13076 | $as_echo_n "checking for struct dirent.d_reclen... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13077 | if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13078 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13080 | cat >conftest.$ac_ext <<_ACEOF |
| 13081 | /* confdefs.h. */ |
| 13082 | _ACEOF |
| 13083 | cat confdefs.h >>conftest.$ac_ext |
| 13084 | cat >>conftest.$ac_ext <<_ACEOF |
| 13085 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13086 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13088 | int |
| 13089 | main () |
| 13090 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13091 | static struct dirent ac_aggr; |
| 13092 | if (ac_aggr.d_reclen) |
| 13093 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13094 | ; |
| 13095 | return 0; |
| 13096 | } |
| 13097 | _ACEOF |
| 13098 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13099 | if { (ac_try="$ac_compile" |
| 13100 | case "(($ac_try" in |
| 13101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13102 | *) ac_try_echo=$ac_try;; |
| 13103 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13105 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13106 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13107 | ac_status=$? |
| 13108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13109 | rm -f conftest.er1 |
| 13110 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13112 | (exit $ac_status); } && { |
| 13113 | test -z "$ac_c_werror_flag" || |
| 13114 | test ! -s conftest.err |
| 13115 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13116 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13117 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13118 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13121 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13122 | /* confdefs.h. */ |
| 13123 | _ACEOF |
| 13124 | cat confdefs.h >>conftest.$ac_ext |
| 13125 | cat >>conftest.$ac_ext <<_ACEOF |
| 13126 | /* end confdefs.h. */ |
| 13127 | #include <dirent.h> |
| 13128 | |
| 13129 | int |
| 13130 | main () |
| 13131 | { |
| 13132 | static struct dirent ac_aggr; |
| 13133 | if (sizeof ac_aggr.d_reclen) |
| 13134 | return 0; |
| 13135 | ; |
| 13136 | return 0; |
| 13137 | } |
| 13138 | _ACEOF |
| 13139 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13140 | if { (ac_try="$ac_compile" |
| 13141 | case "(($ac_try" in |
| 13142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13143 | *) ac_try_echo=$ac_try;; |
| 13144 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13146 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13147 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13148 | ac_status=$? |
| 13149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13150 | rm -f conftest.er1 |
| 13151 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13153 | (exit $ac_status); } && { |
| 13154 | test -z "$ac_c_werror_flag" || |
| 13155 | test ! -s conftest.err |
| 13156 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13157 | ac_cv_member_struct_dirent_d_reclen=yes |
| 13158 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13159 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13162 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13164 | |
| 13165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13166 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13167 | |
| 13168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13169 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13170 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 13171 | $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; } |
| 13172 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13173 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13174 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13175 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13176 | |
| 13177 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13178 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13179 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 13180 | $as_echo_n "checking for ssize_t... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13181 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13182 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13183 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13184 | ac_cv_type_ssize_t=no |
| 13185 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13186 | /* confdefs.h. */ |
| 13187 | _ACEOF |
| 13188 | cat confdefs.h >>conftest.$ac_ext |
| 13189 | cat >>conftest.$ac_ext <<_ACEOF |
| 13190 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13191 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13193 | int |
| 13194 | main () |
| 13195 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13196 | if (sizeof (ssize_t)) |
| 13197 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13198 | ; |
| 13199 | return 0; |
| 13200 | } |
| 13201 | _ACEOF |
| 13202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13203 | if { (ac_try="$ac_compile" |
| 13204 | case "(($ac_try" in |
| 13205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13206 | *) ac_try_echo=$ac_try;; |
| 13207 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13209 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13210 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13211 | ac_status=$? |
| 13212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13213 | rm -f conftest.er1 |
| 13214 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13216 | (exit $ac_status); } && { |
| 13217 | test -z "$ac_c_werror_flag" || |
| 13218 | test ! -s conftest.err |
| 13219 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13220 | cat >conftest.$ac_ext <<_ACEOF |
| 13221 | /* confdefs.h. */ |
| 13222 | _ACEOF |
| 13223 | cat confdefs.h >>conftest.$ac_ext |
| 13224 | cat >>conftest.$ac_ext <<_ACEOF |
| 13225 | /* end confdefs.h. */ |
| 13226 | #include <sys/types.h> |
| 13227 | |
| 13228 | int |
| 13229 | main () |
| 13230 | { |
| 13231 | if (sizeof ((ssize_t))) |
| 13232 | return 0; |
| 13233 | ; |
| 13234 | return 0; |
| 13235 | } |
| 13236 | _ACEOF |
| 13237 | rm -f conftest.$ac_objext |
| 13238 | if { (ac_try="$ac_compile" |
| 13239 | case "(($ac_try" in |
| 13240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13241 | *) ac_try_echo=$ac_try;; |
| 13242 | esac |
| 13243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13244 | $as_echo "$ac_try_echo") >&5 |
| 13245 | (eval "$ac_compile") 2>conftest.er1 |
| 13246 | ac_status=$? |
| 13247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13248 | rm -f conftest.er1 |
| 13249 | cat conftest.err >&5 |
| 13250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13251 | (exit $ac_status); } && { |
| 13252 | test -z "$ac_c_werror_flag" || |
| 13253 | test ! -s conftest.err |
| 13254 | } && test -s conftest.$ac_objext; then |
| 13255 | : |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13256 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13257 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13259 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13260 | ac_cv_type_ssize_t=yes |
| 13261 | fi |
| 13262 | |
| 13263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13264 | else |
| 13265 | $as_echo "$as_me: failed program was:" >&5 |
| 13266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13267 | |
| 13268 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13270 | |
| 13271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13272 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13273 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 13274 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 13275 | if test "x$ac_cv_type_ssize_t" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13276 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13277 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13278 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13279 | |
| 13280 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13281 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13282 | { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 13283 | $as_echo_n "checking whether llseek is declared... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13284 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13285 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13287 | cat >conftest.$ac_ext <<_ACEOF |
| 13288 | /* confdefs.h. */ |
| 13289 | _ACEOF |
| 13290 | cat confdefs.h >>conftest.$ac_ext |
| 13291 | cat >>conftest.$ac_ext <<_ACEOF |
| 13292 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13293 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13294 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13295 | int |
| 13296 | main () |
| 13297 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13298 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13299 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13300 | #endif |
| 13301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13302 | ; |
| 13303 | return 0; |
| 13304 | } |
| 13305 | _ACEOF |
| 13306 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13307 | if { (ac_try="$ac_compile" |
| 13308 | case "(($ac_try" in |
| 13309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13310 | *) ac_try_echo=$ac_try;; |
| 13311 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13313 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13314 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13315 | ac_status=$? |
| 13316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13317 | rm -f conftest.er1 |
| 13318 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13320 | (exit $ac_status); } && { |
| 13321 | test -z "$ac_c_werror_flag" || |
| 13322 | test ! -s conftest.err |
| 13323 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13324 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13325 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13326 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13328 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13329 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13330 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13331 | |
| 13332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13333 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13334 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 13335 | $as_echo "$ac_cv_have_decl_llseek" >&6; } |
| 13336 | if test "x$ac_cv_have_decl_llseek" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13337 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13338 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13339 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13340 | |
| 13341 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13342 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13343 | { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 13344 | $as_echo_n "checking whether lseek64 is declared... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13345 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13346 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13347 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13348 | cat >conftest.$ac_ext <<_ACEOF |
| 13349 | /* confdefs.h. */ |
| 13350 | _ACEOF |
| 13351 | cat confdefs.h >>conftest.$ac_ext |
| 13352 | cat >>conftest.$ac_ext <<_ACEOF |
| 13353 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13354 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13355 | #define _LARGEFILE64_SOURCE |
| 13356 | #include <unistd.h> |
| 13357 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13358 | int |
| 13359 | main () |
| 13360 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13361 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13362 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13363 | #endif |
| 13364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13365 | ; |
| 13366 | return 0; |
| 13367 | } |
| 13368 | _ACEOF |
| 13369 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13370 | if { (ac_try="$ac_compile" |
| 13371 | case "(($ac_try" in |
| 13372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13373 | *) ac_try_echo=$ac_try;; |
| 13374 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13376 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13377 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13378 | ac_status=$? |
| 13379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13380 | rm -f conftest.er1 |
| 13381 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13383 | (exit $ac_status); } && { |
| 13384 | test -z "$ac_c_werror_flag" || |
| 13385 | test ! -s conftest.err |
| 13386 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13387 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13388 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13389 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13392 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13393 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13394 | |
| 13395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13396 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 13398 | $as_echo "$ac_cv_have_decl_lseek64" >&6; } |
| 13399 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13400 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13401 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13402 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13403 | |
| 13404 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13405 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13406 | # The cast to long int works around a bug in the HP C Compiler |
| 13407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13409 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13410 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
| 13411 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13412 | if test "${ac_cv_sizeof_short+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13413 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13414 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13415 | if test "$cross_compiling" = yes; then |
| 13416 | # Depending upon the size, compute the lo and hi bounds. |
| 13417 | cat >conftest.$ac_ext <<_ACEOF |
| 13418 | /* confdefs.h. */ |
| 13419 | _ACEOF |
| 13420 | cat confdefs.h >>conftest.$ac_ext |
| 13421 | cat >>conftest.$ac_ext <<_ACEOF |
| 13422 | /* end confdefs.h. */ |
| 13423 | $ac_includes_default |
| 13424 | int |
| 13425 | main () |
| 13426 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13427 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13428 | test_array [0] = 0 |
| 13429 | |
| 13430 | ; |
| 13431 | return 0; |
| 13432 | } |
| 13433 | _ACEOF |
| 13434 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13435 | if { (ac_try="$ac_compile" |
| 13436 | case "(($ac_try" in |
| 13437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13438 | *) ac_try_echo=$ac_try;; |
| 13439 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13441 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13442 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13443 | ac_status=$? |
| 13444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13445 | rm -f conftest.er1 |
| 13446 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13448 | (exit $ac_status); } && { |
| 13449 | test -z "$ac_c_werror_flag" || |
| 13450 | test ! -s conftest.err |
| 13451 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13452 | ac_lo=0 ac_mid=0 |
| 13453 | while :; do |
| 13454 | cat >conftest.$ac_ext <<_ACEOF |
| 13455 | /* confdefs.h. */ |
| 13456 | _ACEOF |
| 13457 | cat confdefs.h >>conftest.$ac_ext |
| 13458 | cat >>conftest.$ac_ext <<_ACEOF |
| 13459 | /* end confdefs.h. */ |
| 13460 | $ac_includes_default |
| 13461 | int |
| 13462 | main () |
| 13463 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13464 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13465 | test_array [0] = 0 |
| 13466 | |
| 13467 | ; |
| 13468 | return 0; |
| 13469 | } |
| 13470 | _ACEOF |
| 13471 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13472 | if { (ac_try="$ac_compile" |
| 13473 | case "(($ac_try" in |
| 13474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13475 | *) ac_try_echo=$ac_try;; |
| 13476 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13478 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13479 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13480 | ac_status=$? |
| 13481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13482 | rm -f conftest.er1 |
| 13483 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13485 | (exit $ac_status); } && { |
| 13486 | test -z "$ac_c_werror_flag" || |
| 13487 | test ! -s conftest.err |
| 13488 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13489 | ac_hi=$ac_mid; break |
| 13490 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13491 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13493 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13494 | ac_lo=`expr $ac_mid + 1` |
| 13495 | if test $ac_lo -le $ac_mid; then |
| 13496 | ac_lo= ac_hi= |
| 13497 | break |
| 13498 | fi |
| 13499 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13500 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13501 | |
| 13502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13503 | done |
| 13504 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13505 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13507 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13508 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13509 | /* confdefs.h. */ |
| 13510 | _ACEOF |
| 13511 | cat confdefs.h >>conftest.$ac_ext |
| 13512 | cat >>conftest.$ac_ext <<_ACEOF |
| 13513 | /* end confdefs.h. */ |
| 13514 | $ac_includes_default |
| 13515 | int |
| 13516 | main () |
| 13517 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13518 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13519 | test_array [0] = 0 |
| 13520 | |
| 13521 | ; |
| 13522 | return 0; |
| 13523 | } |
| 13524 | _ACEOF |
| 13525 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13526 | if { (ac_try="$ac_compile" |
| 13527 | case "(($ac_try" in |
| 13528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13529 | *) ac_try_echo=$ac_try;; |
| 13530 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13532 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13533 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13534 | ac_status=$? |
| 13535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13536 | rm -f conftest.er1 |
| 13537 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13539 | (exit $ac_status); } && { |
| 13540 | test -z "$ac_c_werror_flag" || |
| 13541 | test ! -s conftest.err |
| 13542 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13543 | ac_hi=-1 ac_mid=-1 |
| 13544 | while :; do |
| 13545 | cat >conftest.$ac_ext <<_ACEOF |
| 13546 | /* confdefs.h. */ |
| 13547 | _ACEOF |
| 13548 | cat confdefs.h >>conftest.$ac_ext |
| 13549 | cat >>conftest.$ac_ext <<_ACEOF |
| 13550 | /* end confdefs.h. */ |
| 13551 | $ac_includes_default |
| 13552 | int |
| 13553 | main () |
| 13554 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13555 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | test_array [0] = 0 |
| 13557 | |
| 13558 | ; |
| 13559 | return 0; |
| 13560 | } |
| 13561 | _ACEOF |
| 13562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13563 | if { (ac_try="$ac_compile" |
| 13564 | case "(($ac_try" in |
| 13565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13566 | *) ac_try_echo=$ac_try;; |
| 13567 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13569 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13570 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13571 | ac_status=$? |
| 13572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13573 | rm -f conftest.er1 |
| 13574 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13576 | (exit $ac_status); } && { |
| 13577 | test -z "$ac_c_werror_flag" || |
| 13578 | test ! -s conftest.err |
| 13579 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13580 | ac_lo=$ac_mid; break |
| 13581 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13582 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13584 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13585 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13586 | if test $ac_mid -le $ac_hi; then |
| 13587 | ac_lo= ac_hi= |
| 13588 | break |
| 13589 | fi |
| 13590 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13591 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13592 | |
| 13593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13594 | done |
| 13595 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13596 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13598 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13599 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13601 | |
| 13602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13603 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13604 | |
| 13605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13606 | # Binary search between lo and hi bounds. |
| 13607 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13608 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13609 | cat >conftest.$ac_ext <<_ACEOF |
| 13610 | /* confdefs.h. */ |
| 13611 | _ACEOF |
| 13612 | cat confdefs.h >>conftest.$ac_ext |
| 13613 | cat >>conftest.$ac_ext <<_ACEOF |
| 13614 | /* end confdefs.h. */ |
| 13615 | $ac_includes_default |
| 13616 | int |
| 13617 | main () |
| 13618 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13619 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13620 | test_array [0] = 0 |
| 13621 | |
| 13622 | ; |
| 13623 | return 0; |
| 13624 | } |
| 13625 | _ACEOF |
| 13626 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13627 | if { (ac_try="$ac_compile" |
| 13628 | case "(($ac_try" in |
| 13629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13630 | *) ac_try_echo=$ac_try;; |
| 13631 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13633 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13634 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13635 | ac_status=$? |
| 13636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13637 | rm -f conftest.er1 |
| 13638 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13640 | (exit $ac_status); } && { |
| 13641 | test -z "$ac_c_werror_flag" || |
| 13642 | test ! -s conftest.err |
| 13643 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13644 | ac_hi=$ac_mid |
| 13645 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13646 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13648 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13649 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13650 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13651 | |
| 13652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13653 | done |
| 13654 | case $ac_lo in |
| 13655 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13656 | '') if test "$ac_cv_type_short" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13657 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13658 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13659 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13660 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13661 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13662 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13663 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13664 | else |
| 13665 | ac_cv_sizeof_short=0 |
| 13666 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13667 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13668 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13669 | cat >conftest.$ac_ext <<_ACEOF |
| 13670 | /* confdefs.h. */ |
| 13671 | _ACEOF |
| 13672 | cat confdefs.h >>conftest.$ac_ext |
| 13673 | cat >>conftest.$ac_ext <<_ACEOF |
| 13674 | /* end confdefs.h. */ |
| 13675 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13676 | static long int longval () { return (long int) (sizeof (short)); } |
| 13677 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13678 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13679 | #include <stdlib.h> |
| 13680 | int |
| 13681 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13682 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13683 | |
| 13684 | FILE *f = fopen ("conftest.val", "w"); |
| 13685 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13686 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13687 | if (((long int) (sizeof (short))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13688 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13689 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13690 | if (i != ((long int) (sizeof (short)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13691 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13692 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13693 | } |
| 13694 | else |
| 13695 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13696 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13697 | if (i != ((long int) (sizeof (short)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13698 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13699 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13700 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13701 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 13702 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13703 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13704 | |
| 13705 | ; |
| 13706 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13707 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13708 | _ACEOF |
| 13709 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13710 | if { (ac_try="$ac_link" |
| 13711 | case "(($ac_try" in |
| 13712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13713 | *) ac_try_echo=$ac_try;; |
| 13714 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13716 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13717 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13718 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13721 | { (case "(($ac_try" in |
| 13722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13723 | *) ac_try_echo=$ac_try;; |
| 13724 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13726 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13727 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13728 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13730 | (exit $ac_status); }; }; then |
| 13731 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13732 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13733 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13734 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13736 | |
| 13737 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13738 | if test "$ac_cv_type_short" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13739 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13741 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13742 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13743 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13744 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13745 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13746 | else |
| 13747 | ac_cv_sizeof_short=0 |
| 13748 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13749 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13750 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13751 | 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] | 13752 | fi |
| 13753 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13754 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13756 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13757 | |
| 13758 | |
| 13759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13760 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13761 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13762 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13763 | |
| 13764 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13765 | # The cast to long int works around a bug in the HP C Compiler |
| 13766 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13767 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13768 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13769 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 13770 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13771 | if test "${ac_cv_sizeof_int+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13772 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13773 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13774 | if test "$cross_compiling" = yes; then |
| 13775 | # Depending upon the size, compute the lo and hi bounds. |
| 13776 | cat >conftest.$ac_ext <<_ACEOF |
| 13777 | /* confdefs.h. */ |
| 13778 | _ACEOF |
| 13779 | cat confdefs.h >>conftest.$ac_ext |
| 13780 | cat >>conftest.$ac_ext <<_ACEOF |
| 13781 | /* end confdefs.h. */ |
| 13782 | $ac_includes_default |
| 13783 | int |
| 13784 | main () |
| 13785 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13786 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13787 | test_array [0] = 0 |
| 13788 | |
| 13789 | ; |
| 13790 | return 0; |
| 13791 | } |
| 13792 | _ACEOF |
| 13793 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13794 | if { (ac_try="$ac_compile" |
| 13795 | case "(($ac_try" in |
| 13796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13797 | *) ac_try_echo=$ac_try;; |
| 13798 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13800 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13801 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13802 | ac_status=$? |
| 13803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13804 | rm -f conftest.er1 |
| 13805 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13807 | (exit $ac_status); } && { |
| 13808 | test -z "$ac_c_werror_flag" || |
| 13809 | test ! -s conftest.err |
| 13810 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | ac_lo=0 ac_mid=0 |
| 13812 | while :; do |
| 13813 | cat >conftest.$ac_ext <<_ACEOF |
| 13814 | /* confdefs.h. */ |
| 13815 | _ACEOF |
| 13816 | cat confdefs.h >>conftest.$ac_ext |
| 13817 | cat >>conftest.$ac_ext <<_ACEOF |
| 13818 | /* end confdefs.h. */ |
| 13819 | $ac_includes_default |
| 13820 | int |
| 13821 | main () |
| 13822 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13823 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13824 | test_array [0] = 0 |
| 13825 | |
| 13826 | ; |
| 13827 | return 0; |
| 13828 | } |
| 13829 | _ACEOF |
| 13830 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13831 | if { (ac_try="$ac_compile" |
| 13832 | case "(($ac_try" in |
| 13833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13834 | *) ac_try_echo=$ac_try;; |
| 13835 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13837 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13838 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13839 | ac_status=$? |
| 13840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13841 | rm -f conftest.er1 |
| 13842 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13844 | (exit $ac_status); } && { |
| 13845 | test -z "$ac_c_werror_flag" || |
| 13846 | test ! -s conftest.err |
| 13847 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13848 | ac_hi=$ac_mid; break |
| 13849 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13850 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13852 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13853 | ac_lo=`expr $ac_mid + 1` |
| 13854 | if test $ac_lo -le $ac_mid; then |
| 13855 | ac_lo= ac_hi= |
| 13856 | break |
| 13857 | fi |
| 13858 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13859 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13860 | |
| 13861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13862 | done |
| 13863 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13864 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13867 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13868 | /* confdefs.h. */ |
| 13869 | _ACEOF |
| 13870 | cat confdefs.h >>conftest.$ac_ext |
| 13871 | cat >>conftest.$ac_ext <<_ACEOF |
| 13872 | /* end confdefs.h. */ |
| 13873 | $ac_includes_default |
| 13874 | int |
| 13875 | main () |
| 13876 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13877 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | test_array [0] = 0 |
| 13879 | |
| 13880 | ; |
| 13881 | return 0; |
| 13882 | } |
| 13883 | _ACEOF |
| 13884 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13885 | if { (ac_try="$ac_compile" |
| 13886 | case "(($ac_try" in |
| 13887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13888 | *) ac_try_echo=$ac_try;; |
| 13889 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13891 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13892 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13893 | ac_status=$? |
| 13894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13895 | rm -f conftest.er1 |
| 13896 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13898 | (exit $ac_status); } && { |
| 13899 | test -z "$ac_c_werror_flag" || |
| 13900 | test ! -s conftest.err |
| 13901 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13902 | ac_hi=-1 ac_mid=-1 |
| 13903 | while :; do |
| 13904 | cat >conftest.$ac_ext <<_ACEOF |
| 13905 | /* confdefs.h. */ |
| 13906 | _ACEOF |
| 13907 | cat confdefs.h >>conftest.$ac_ext |
| 13908 | cat >>conftest.$ac_ext <<_ACEOF |
| 13909 | /* end confdefs.h. */ |
| 13910 | $ac_includes_default |
| 13911 | int |
| 13912 | main () |
| 13913 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13914 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13915 | test_array [0] = 0 |
| 13916 | |
| 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
| 13921 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13922 | if { (ac_try="$ac_compile" |
| 13923 | case "(($ac_try" in |
| 13924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13925 | *) ac_try_echo=$ac_try;; |
| 13926 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13928 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13929 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13930 | ac_status=$? |
| 13931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13932 | rm -f conftest.er1 |
| 13933 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13935 | (exit $ac_status); } && { |
| 13936 | test -z "$ac_c_werror_flag" || |
| 13937 | test ! -s conftest.err |
| 13938 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13939 | ac_lo=$ac_mid; break |
| 13940 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13941 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13944 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13945 | if test $ac_mid -le $ac_hi; then |
| 13946 | ac_lo= ac_hi= |
| 13947 | break |
| 13948 | fi |
| 13949 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13950 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13951 | |
| 13952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13953 | done |
| 13954 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13955 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13958 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13960 | |
| 13961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13962 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13963 | |
| 13964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13965 | # Binary search between lo and hi bounds. |
| 13966 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13967 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13968 | cat >conftest.$ac_ext <<_ACEOF |
| 13969 | /* confdefs.h. */ |
| 13970 | _ACEOF |
| 13971 | cat confdefs.h >>conftest.$ac_ext |
| 13972 | cat >>conftest.$ac_ext <<_ACEOF |
| 13973 | /* end confdefs.h. */ |
| 13974 | $ac_includes_default |
| 13975 | int |
| 13976 | main () |
| 13977 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13978 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13979 | test_array [0] = 0 |
| 13980 | |
| 13981 | ; |
| 13982 | return 0; |
| 13983 | } |
| 13984 | _ACEOF |
| 13985 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13986 | if { (ac_try="$ac_compile" |
| 13987 | case "(($ac_try" in |
| 13988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13989 | *) ac_try_echo=$ac_try;; |
| 13990 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13992 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13993 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13994 | ac_status=$? |
| 13995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13996 | rm -f conftest.er1 |
| 13997 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13999 | (exit $ac_status); } && { |
| 14000 | test -z "$ac_c_werror_flag" || |
| 14001 | test ! -s conftest.err |
| 14002 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14003 | ac_hi=$ac_mid |
| 14004 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14005 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14007 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14008 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14009 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14010 | |
| 14011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14012 | done |
| 14013 | case $ac_lo in |
| 14014 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14015 | '') if test "$ac_cv_type_int" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14016 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14017 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14018 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14019 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14020 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14021 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14022 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14023 | else |
| 14024 | ac_cv_sizeof_int=0 |
| 14025 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14026 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14027 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14028 | cat >conftest.$ac_ext <<_ACEOF |
| 14029 | /* confdefs.h. */ |
| 14030 | _ACEOF |
| 14031 | cat confdefs.h >>conftest.$ac_ext |
| 14032 | cat >>conftest.$ac_ext <<_ACEOF |
| 14033 | /* end confdefs.h. */ |
| 14034 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14035 | static long int longval () { return (long int) (sizeof (int)); } |
| 14036 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14037 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14038 | #include <stdlib.h> |
| 14039 | int |
| 14040 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14041 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14042 | |
| 14043 | FILE *f = fopen ("conftest.val", "w"); |
| 14044 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14045 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14046 | if (((long int) (sizeof (int))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14047 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14048 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14049 | if (i != ((long int) (sizeof (int)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14050 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14051 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14052 | } |
| 14053 | else |
| 14054 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14055 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14056 | if (i != ((long int) (sizeof (int)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14057 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14058 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14059 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14060 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14061 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14062 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | |
| 14064 | ; |
| 14065 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14066 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14067 | _ACEOF |
| 14068 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14069 | if { (ac_try="$ac_link" |
| 14070 | case "(($ac_try" in |
| 14071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14072 | *) ac_try_echo=$ac_try;; |
| 14073 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14075 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14076 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14077 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14080 | { (case "(($ac_try" in |
| 14081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14082 | *) ac_try_echo=$ac_try;; |
| 14083 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14084 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14085 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14086 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14087 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14089 | (exit $ac_status); }; }; then |
| 14090 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14091 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14092 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14093 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14095 | |
| 14096 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14097 | if test "$ac_cv_type_int" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14098 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14099 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14100 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14101 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14102 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14103 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14104 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14105 | else |
| 14106 | ac_cv_sizeof_int=0 |
| 14107 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14108 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14109 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14110 | 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] | 14111 | fi |
| 14112 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14113 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14114 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14115 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14116 | |
| 14117 | |
| 14118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14119 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14120 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14121 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14122 | |
| 14123 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14124 | # The cast to long int works around a bug in the HP C Compiler |
| 14125 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14126 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14127 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14128 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
| 14129 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14130 | if test "${ac_cv_sizeof_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14131 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14133 | if test "$cross_compiling" = yes; then |
| 14134 | # Depending upon the size, compute the lo and hi bounds. |
| 14135 | cat >conftest.$ac_ext <<_ACEOF |
| 14136 | /* confdefs.h. */ |
| 14137 | _ACEOF |
| 14138 | cat confdefs.h >>conftest.$ac_ext |
| 14139 | cat >>conftest.$ac_ext <<_ACEOF |
| 14140 | /* end confdefs.h. */ |
| 14141 | $ac_includes_default |
| 14142 | int |
| 14143 | main () |
| 14144 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14145 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14146 | test_array [0] = 0 |
| 14147 | |
| 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14153 | if { (ac_try="$ac_compile" |
| 14154 | case "(($ac_try" in |
| 14155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14156 | *) ac_try_echo=$ac_try;; |
| 14157 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14159 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14160 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14161 | ac_status=$? |
| 14162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14163 | rm -f conftest.er1 |
| 14164 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14166 | (exit $ac_status); } && { |
| 14167 | test -z "$ac_c_werror_flag" || |
| 14168 | test ! -s conftest.err |
| 14169 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14170 | ac_lo=0 ac_mid=0 |
| 14171 | while :; do |
| 14172 | cat >conftest.$ac_ext <<_ACEOF |
| 14173 | /* confdefs.h. */ |
| 14174 | _ACEOF |
| 14175 | cat confdefs.h >>conftest.$ac_ext |
| 14176 | cat >>conftest.$ac_ext <<_ACEOF |
| 14177 | /* end confdefs.h. */ |
| 14178 | $ac_includes_default |
| 14179 | int |
| 14180 | main () |
| 14181 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14182 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14183 | test_array [0] = 0 |
| 14184 | |
| 14185 | ; |
| 14186 | return 0; |
| 14187 | } |
| 14188 | _ACEOF |
| 14189 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14190 | if { (ac_try="$ac_compile" |
| 14191 | case "(($ac_try" in |
| 14192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14193 | *) ac_try_echo=$ac_try;; |
| 14194 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14196 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14197 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14198 | ac_status=$? |
| 14199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14200 | rm -f conftest.er1 |
| 14201 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14203 | (exit $ac_status); } && { |
| 14204 | test -z "$ac_c_werror_flag" || |
| 14205 | test ! -s conftest.err |
| 14206 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14207 | ac_hi=$ac_mid; break |
| 14208 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14209 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14211 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14212 | ac_lo=`expr $ac_mid + 1` |
| 14213 | if test $ac_lo -le $ac_mid; then |
| 14214 | ac_lo= ac_hi= |
| 14215 | break |
| 14216 | fi |
| 14217 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14218 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14219 | |
| 14220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14221 | done |
| 14222 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14223 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14225 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14226 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14227 | /* confdefs.h. */ |
| 14228 | _ACEOF |
| 14229 | cat confdefs.h >>conftest.$ac_ext |
| 14230 | cat >>conftest.$ac_ext <<_ACEOF |
| 14231 | /* end confdefs.h. */ |
| 14232 | $ac_includes_default |
| 14233 | int |
| 14234 | main () |
| 14235 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14236 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14237 | test_array [0] = 0 |
| 14238 | |
| 14239 | ; |
| 14240 | return 0; |
| 14241 | } |
| 14242 | _ACEOF |
| 14243 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14244 | if { (ac_try="$ac_compile" |
| 14245 | case "(($ac_try" in |
| 14246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14247 | *) ac_try_echo=$ac_try;; |
| 14248 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14250 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14251 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14252 | ac_status=$? |
| 14253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14254 | rm -f conftest.er1 |
| 14255 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14257 | (exit $ac_status); } && { |
| 14258 | test -z "$ac_c_werror_flag" || |
| 14259 | test ! -s conftest.err |
| 14260 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14261 | ac_hi=-1 ac_mid=-1 |
| 14262 | while :; do |
| 14263 | cat >conftest.$ac_ext <<_ACEOF |
| 14264 | /* confdefs.h. */ |
| 14265 | _ACEOF |
| 14266 | cat confdefs.h >>conftest.$ac_ext |
| 14267 | cat >>conftest.$ac_ext <<_ACEOF |
| 14268 | /* end confdefs.h. */ |
| 14269 | $ac_includes_default |
| 14270 | int |
| 14271 | main () |
| 14272 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14273 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14274 | test_array [0] = 0 |
| 14275 | |
| 14276 | ; |
| 14277 | return 0; |
| 14278 | } |
| 14279 | _ACEOF |
| 14280 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14281 | if { (ac_try="$ac_compile" |
| 14282 | case "(($ac_try" in |
| 14283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14284 | *) ac_try_echo=$ac_try;; |
| 14285 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14287 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14288 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14289 | ac_status=$? |
| 14290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14291 | rm -f conftest.er1 |
| 14292 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14294 | (exit $ac_status); } && { |
| 14295 | test -z "$ac_c_werror_flag" || |
| 14296 | test ! -s conftest.err |
| 14297 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14298 | ac_lo=$ac_mid; break |
| 14299 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14300 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14302 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14303 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14304 | if test $ac_mid -le $ac_hi; then |
| 14305 | ac_lo= ac_hi= |
| 14306 | break |
| 14307 | fi |
| 14308 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14309 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14310 | |
| 14311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14312 | done |
| 14313 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14314 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14317 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14318 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14319 | |
| 14320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14321 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14322 | |
| 14323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14324 | # Binary search between lo and hi bounds. |
| 14325 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14326 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14327 | cat >conftest.$ac_ext <<_ACEOF |
| 14328 | /* confdefs.h. */ |
| 14329 | _ACEOF |
| 14330 | cat confdefs.h >>conftest.$ac_ext |
| 14331 | cat >>conftest.$ac_ext <<_ACEOF |
| 14332 | /* end confdefs.h. */ |
| 14333 | $ac_includes_default |
| 14334 | int |
| 14335 | main () |
| 14336 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14337 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14338 | test_array [0] = 0 |
| 14339 | |
| 14340 | ; |
| 14341 | return 0; |
| 14342 | } |
| 14343 | _ACEOF |
| 14344 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14345 | if { (ac_try="$ac_compile" |
| 14346 | case "(($ac_try" in |
| 14347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14348 | *) ac_try_echo=$ac_try;; |
| 14349 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14351 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14352 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14353 | ac_status=$? |
| 14354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14355 | rm -f conftest.er1 |
| 14356 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14358 | (exit $ac_status); } && { |
| 14359 | test -z "$ac_c_werror_flag" || |
| 14360 | test ! -s conftest.err |
| 14361 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14362 | ac_hi=$ac_mid |
| 14363 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14364 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14366 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14367 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14368 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | |
| 14370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14371 | done |
| 14372 | case $ac_lo in |
| 14373 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14374 | '') if test "$ac_cv_type_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14375 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14377 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14378 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14379 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14380 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14381 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14382 | else |
| 14383 | ac_cv_sizeof_long=0 |
| 14384 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14385 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14386 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14387 | cat >conftest.$ac_ext <<_ACEOF |
| 14388 | /* confdefs.h. */ |
| 14389 | _ACEOF |
| 14390 | cat confdefs.h >>conftest.$ac_ext |
| 14391 | cat >>conftest.$ac_ext <<_ACEOF |
| 14392 | /* end confdefs.h. */ |
| 14393 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14394 | static long int longval () { return (long int) (sizeof (long)); } |
| 14395 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14396 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14397 | #include <stdlib.h> |
| 14398 | int |
| 14399 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14400 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14401 | |
| 14402 | FILE *f = fopen ("conftest.val", "w"); |
| 14403 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14404 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14405 | if (((long int) (sizeof (long))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14406 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14407 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14408 | if (i != ((long int) (sizeof (long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14409 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14410 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14411 | } |
| 14412 | else |
| 14413 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14414 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14415 | if (i != ((long int) (sizeof (long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14416 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14417 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14418 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14419 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14420 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14421 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | |
| 14423 | ; |
| 14424 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14425 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14426 | _ACEOF |
| 14427 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14428 | if { (ac_try="$ac_link" |
| 14429 | case "(($ac_try" in |
| 14430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14431 | *) ac_try_echo=$ac_try;; |
| 14432 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14434 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14435 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14436 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14439 | { (case "(($ac_try" in |
| 14440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14441 | *) ac_try_echo=$ac_try;; |
| 14442 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14444 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14445 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14446 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14448 | (exit $ac_status); }; }; then |
| 14449 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14450 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14451 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14452 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14454 | |
| 14455 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14456 | if test "$ac_cv_type_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14457 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14458 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14459 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14460 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14461 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14462 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14463 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14464 | else |
| 14465 | ac_cv_sizeof_long=0 |
| 14466 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14467 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14468 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14469 | 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] | 14470 | fi |
| 14471 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14472 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14473 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 14474 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14475 | |
| 14476 | |
| 14477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14478 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14479 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14481 | |
| 14482 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14483 | # The cast to long int works around a bug in the HP C Compiler |
| 14484 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14485 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14486 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14487 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
| 14488 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14489 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14490 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14492 | if test "$cross_compiling" = yes; then |
| 14493 | # Depending upon the size, compute the lo and hi bounds. |
| 14494 | cat >conftest.$ac_ext <<_ACEOF |
| 14495 | /* confdefs.h. */ |
| 14496 | _ACEOF |
| 14497 | cat confdefs.h >>conftest.$ac_ext |
| 14498 | cat >>conftest.$ac_ext <<_ACEOF |
| 14499 | /* end confdefs.h. */ |
| 14500 | $ac_includes_default |
| 14501 | int |
| 14502 | main () |
| 14503 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14504 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14505 | test_array [0] = 0 |
| 14506 | |
| 14507 | ; |
| 14508 | return 0; |
| 14509 | } |
| 14510 | _ACEOF |
| 14511 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14512 | if { (ac_try="$ac_compile" |
| 14513 | case "(($ac_try" in |
| 14514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14515 | *) ac_try_echo=$ac_try;; |
| 14516 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14518 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14519 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14520 | ac_status=$? |
| 14521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14522 | rm -f conftest.er1 |
| 14523 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14525 | (exit $ac_status); } && { |
| 14526 | test -z "$ac_c_werror_flag" || |
| 14527 | test ! -s conftest.err |
| 14528 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | ac_lo=0 ac_mid=0 |
| 14530 | while :; do |
| 14531 | cat >conftest.$ac_ext <<_ACEOF |
| 14532 | /* confdefs.h. */ |
| 14533 | _ACEOF |
| 14534 | cat confdefs.h >>conftest.$ac_ext |
| 14535 | cat >>conftest.$ac_ext <<_ACEOF |
| 14536 | /* end confdefs.h. */ |
| 14537 | $ac_includes_default |
| 14538 | int |
| 14539 | main () |
| 14540 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14541 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14542 | test_array [0] = 0 |
| 14543 | |
| 14544 | ; |
| 14545 | return 0; |
| 14546 | } |
| 14547 | _ACEOF |
| 14548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14549 | if { (ac_try="$ac_compile" |
| 14550 | case "(($ac_try" in |
| 14551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14552 | *) ac_try_echo=$ac_try;; |
| 14553 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14555 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14556 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14557 | ac_status=$? |
| 14558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14559 | rm -f conftest.er1 |
| 14560 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14562 | (exit $ac_status); } && { |
| 14563 | test -z "$ac_c_werror_flag" || |
| 14564 | test ! -s conftest.err |
| 14565 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14566 | ac_hi=$ac_mid; break |
| 14567 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14568 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14570 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14571 | ac_lo=`expr $ac_mid + 1` |
| 14572 | if test $ac_lo -le $ac_mid; then |
| 14573 | ac_lo= ac_hi= |
| 14574 | break |
| 14575 | fi |
| 14576 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14578 | |
| 14579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14580 | done |
| 14581 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14582 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14584 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14586 | /* confdefs.h. */ |
| 14587 | _ACEOF |
| 14588 | cat confdefs.h >>conftest.$ac_ext |
| 14589 | cat >>conftest.$ac_ext <<_ACEOF |
| 14590 | /* end confdefs.h. */ |
| 14591 | $ac_includes_default |
| 14592 | int |
| 14593 | main () |
| 14594 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14595 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14596 | test_array [0] = 0 |
| 14597 | |
| 14598 | ; |
| 14599 | return 0; |
| 14600 | } |
| 14601 | _ACEOF |
| 14602 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14603 | if { (ac_try="$ac_compile" |
| 14604 | case "(($ac_try" in |
| 14605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14606 | *) ac_try_echo=$ac_try;; |
| 14607 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14609 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14610 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14611 | ac_status=$? |
| 14612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14613 | rm -f conftest.er1 |
| 14614 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14616 | (exit $ac_status); } && { |
| 14617 | test -z "$ac_c_werror_flag" || |
| 14618 | test ! -s conftest.err |
| 14619 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14620 | ac_hi=-1 ac_mid=-1 |
| 14621 | while :; do |
| 14622 | cat >conftest.$ac_ext <<_ACEOF |
| 14623 | /* confdefs.h. */ |
| 14624 | _ACEOF |
| 14625 | cat confdefs.h >>conftest.$ac_ext |
| 14626 | cat >>conftest.$ac_ext <<_ACEOF |
| 14627 | /* end confdefs.h. */ |
| 14628 | $ac_includes_default |
| 14629 | int |
| 14630 | main () |
| 14631 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14632 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14633 | test_array [0] = 0 |
| 14634 | |
| 14635 | ; |
| 14636 | return 0; |
| 14637 | } |
| 14638 | _ACEOF |
| 14639 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14640 | if { (ac_try="$ac_compile" |
| 14641 | case "(($ac_try" in |
| 14642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14643 | *) ac_try_echo=$ac_try;; |
| 14644 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14646 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14647 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14648 | ac_status=$? |
| 14649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14650 | rm -f conftest.er1 |
| 14651 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14653 | (exit $ac_status); } && { |
| 14654 | test -z "$ac_c_werror_flag" || |
| 14655 | test ! -s conftest.err |
| 14656 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14657 | ac_lo=$ac_mid; break |
| 14658 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14659 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14662 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14663 | if test $ac_mid -le $ac_hi; then |
| 14664 | ac_lo= ac_hi= |
| 14665 | break |
| 14666 | fi |
| 14667 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14668 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14669 | |
| 14670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14671 | done |
| 14672 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14673 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14675 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14676 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14677 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14678 | |
| 14679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14680 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14681 | |
| 14682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14683 | # Binary search between lo and hi bounds. |
| 14684 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14685 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14686 | cat >conftest.$ac_ext <<_ACEOF |
| 14687 | /* confdefs.h. */ |
| 14688 | _ACEOF |
| 14689 | cat confdefs.h >>conftest.$ac_ext |
| 14690 | cat >>conftest.$ac_ext <<_ACEOF |
| 14691 | /* end confdefs.h. */ |
| 14692 | $ac_includes_default |
| 14693 | int |
| 14694 | main () |
| 14695 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14696 | static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14697 | test_array [0] = 0 |
| 14698 | |
| 14699 | ; |
| 14700 | return 0; |
| 14701 | } |
| 14702 | _ACEOF |
| 14703 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14704 | if { (ac_try="$ac_compile" |
| 14705 | case "(($ac_try" in |
| 14706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14707 | *) ac_try_echo=$ac_try;; |
| 14708 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14710 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14711 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14712 | ac_status=$? |
| 14713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14714 | rm -f conftest.er1 |
| 14715 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14717 | (exit $ac_status); } && { |
| 14718 | test -z "$ac_c_werror_flag" || |
| 14719 | test ! -s conftest.err |
| 14720 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14721 | ac_hi=$ac_mid |
| 14722 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14723 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14725 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14726 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14727 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14728 | |
| 14729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14730 | done |
| 14731 | case $ac_lo in |
| 14732 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14733 | '') if test "$ac_cv_type_long_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14734 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14735 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14736 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14737 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14738 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14739 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14740 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14741 | else |
| 14742 | ac_cv_sizeof_long_long=0 |
| 14743 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14744 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14745 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14746 | cat >conftest.$ac_ext <<_ACEOF |
| 14747 | /* confdefs.h. */ |
| 14748 | _ACEOF |
| 14749 | cat confdefs.h >>conftest.$ac_ext |
| 14750 | cat >>conftest.$ac_ext <<_ACEOF |
| 14751 | /* end confdefs.h. */ |
| 14752 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14753 | static long int longval () { return (long int) (sizeof (long long)); } |
| 14754 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14755 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14756 | #include <stdlib.h> |
| 14757 | int |
| 14758 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14759 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14760 | |
| 14761 | FILE *f = fopen ("conftest.val", "w"); |
| 14762 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14763 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14764 | if (((long int) (sizeof (long long))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14765 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14766 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14767 | if (i != ((long int) (sizeof (long long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14768 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14769 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14770 | } |
| 14771 | else |
| 14772 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14773 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14774 | if (i != ((long int) (sizeof (long long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14775 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14776 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14777 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14778 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14779 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14780 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14781 | |
| 14782 | ; |
| 14783 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14784 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14785 | _ACEOF |
| 14786 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14787 | if { (ac_try="$ac_link" |
| 14788 | case "(($ac_try" in |
| 14789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14790 | *) ac_try_echo=$ac_try;; |
| 14791 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14793 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14794 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14795 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14798 | { (case "(($ac_try" in |
| 14799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14800 | *) ac_try_echo=$ac_try;; |
| 14801 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14803 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14804 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14805 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14807 | (exit $ac_status); }; }; then |
| 14808 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14809 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14810 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14811 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14813 | |
| 14814 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14815 | if test "$ac_cv_type_long_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14816 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14818 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14819 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14820 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14821 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14822 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14823 | else |
| 14824 | ac_cv_sizeof_long_long=0 |
| 14825 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14826 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14827 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14828 | 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] | 14829 | fi |
| 14830 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14831 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14832 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14833 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14834 | |
| 14835 | |
| 14836 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14837 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14838 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14839 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14840 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14841 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14842 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14843 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14844 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14845 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14846 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14847 | |
| 14848 | |
| 14849 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14850 | |
| 14851 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14852 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14853 | if test "${ac_cv_c_bigendian+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14854 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14855 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14856 | ac_cv_c_bigendian=unknown |
| 14857 | # See if we're dealing with a universal compiler. |
| 14858 | cat >conftest.$ac_ext <<_ACEOF |
| 14859 | /* confdefs.h. */ |
| 14860 | _ACEOF |
| 14861 | cat confdefs.h >>conftest.$ac_ext |
| 14862 | cat >>conftest.$ac_ext <<_ACEOF |
| 14863 | /* end confdefs.h. */ |
| 14864 | #ifndef __APPLE_CC__ |
| 14865 | not a universal capable compiler |
| 14866 | #endif |
| 14867 | typedef int dummy; |
| 14868 | |
| 14869 | _ACEOF |
| 14870 | rm -f conftest.$ac_objext |
| 14871 | if { (ac_try="$ac_compile" |
| 14872 | case "(($ac_try" in |
| 14873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14874 | *) ac_try_echo=$ac_try;; |
| 14875 | esac |
| 14876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14877 | $as_echo "$ac_try_echo") >&5 |
| 14878 | (eval "$ac_compile") 2>conftest.er1 |
| 14879 | ac_status=$? |
| 14880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14881 | rm -f conftest.er1 |
| 14882 | cat conftest.err >&5 |
| 14883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14884 | (exit $ac_status); } && { |
| 14885 | test -z "$ac_c_werror_flag" || |
| 14886 | test ! -s conftest.err |
| 14887 | } && test -s conftest.$ac_objext; then |
| 14888 | |
| 14889 | # Check for potential -arch flags. It is not universal unless |
| 14890 | # there are some -arch flags. Note that *ppc* also matches |
| 14891 | # ppc64. This check is also rather less than ideal. |
| 14892 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 14893 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 14894 | esac |
| 14895 | else |
| 14896 | $as_echo "$as_me: failed program was:" >&5 |
| 14897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14898 | |
| 14899 | |
| 14900 | fi |
| 14901 | |
| 14902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14903 | if test $ac_cv_c_bigendian = unknown; then |
| 14904 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14905 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14906 | /* confdefs.h. */ |
| 14907 | _ACEOF |
| 14908 | cat confdefs.h >>conftest.$ac_ext |
| 14909 | cat >>conftest.$ac_ext <<_ACEOF |
| 14910 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14911 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14912 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14914 | int |
| 14915 | main () |
| 14916 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14917 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14918 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14919 | && LITTLE_ENDIAN) |
| 14920 | bogus endian macros |
| 14921 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14922 | |
| 14923 | ; |
| 14924 | return 0; |
| 14925 | } |
| 14926 | _ACEOF |
| 14927 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14928 | if { (ac_try="$ac_compile" |
| 14929 | case "(($ac_try" in |
| 14930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14931 | *) ac_try_echo=$ac_try;; |
| 14932 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14934 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14935 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14936 | ac_status=$? |
| 14937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14938 | rm -f conftest.er1 |
| 14939 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14941 | (exit $ac_status); } && { |
| 14942 | test -z "$ac_c_werror_flag" || |
| 14943 | test ! -s conftest.err |
| 14944 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14945 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14946 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14947 | /* confdefs.h. */ |
| 14948 | _ACEOF |
| 14949 | cat confdefs.h >>conftest.$ac_ext |
| 14950 | cat >>conftest.$ac_ext <<_ACEOF |
| 14951 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14952 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14953 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14954 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14955 | int |
| 14956 | main () |
| 14957 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14958 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14959 | not big endian |
| 14960 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14961 | |
| 14962 | ; |
| 14963 | return 0; |
| 14964 | } |
| 14965 | _ACEOF |
| 14966 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14967 | if { (ac_try="$ac_compile" |
| 14968 | case "(($ac_try" in |
| 14969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14970 | *) ac_try_echo=$ac_try;; |
| 14971 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14973 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14974 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14975 | ac_status=$? |
| 14976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14977 | rm -f conftest.er1 |
| 14978 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14980 | (exit $ac_status); } && { |
| 14981 | test -z "$ac_c_werror_flag" || |
| 14982 | test ! -s conftest.err |
| 14983 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14984 | ac_cv_c_bigendian=yes |
| 14985 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14986 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14989 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14990 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14991 | |
| 14992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14993 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14994 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14996 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14997 | |
| 14998 | fi |
| 14999 | |
| 15000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15001 | fi |
| 15002 | if test $ac_cv_c_bigendian = unknown; then |
| 15003 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 15004 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15005 | /* confdefs.h. */ |
| 15006 | _ACEOF |
| 15007 | cat confdefs.h >>conftest.$ac_ext |
| 15008 | cat >>conftest.$ac_ext <<_ACEOF |
| 15009 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15010 | #include <limits.h> |
| 15011 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15012 | int |
| 15013 | main () |
| 15014 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15015 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 15016 | bogus endian macros |
| 15017 | #endif |
| 15018 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15019 | ; |
| 15020 | return 0; |
| 15021 | } |
| 15022 | _ACEOF |
| 15023 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15024 | if { (ac_try="$ac_compile" |
| 15025 | case "(($ac_try" in |
| 15026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15027 | *) ac_try_echo=$ac_try;; |
| 15028 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15030 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15031 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15032 | ac_status=$? |
| 15033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15034 | rm -f conftest.er1 |
| 15035 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15037 | (exit $ac_status); } && { |
| 15038 | test -z "$ac_c_werror_flag" || |
| 15039 | test ! -s conftest.err |
| 15040 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15041 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 15042 | cat >conftest.$ac_ext <<_ACEOF |
| 15043 | /* confdefs.h. */ |
| 15044 | _ACEOF |
| 15045 | cat confdefs.h >>conftest.$ac_ext |
| 15046 | cat >>conftest.$ac_ext <<_ACEOF |
| 15047 | /* end confdefs.h. */ |
| 15048 | #include <limits.h> |
| 15049 | |
| 15050 | int |
| 15051 | main () |
| 15052 | { |
| 15053 | #ifndef _BIG_ENDIAN |
| 15054 | not big endian |
| 15055 | #endif |
| 15056 | |
| 15057 | ; |
| 15058 | return 0; |
| 15059 | } |
| 15060 | _ACEOF |
| 15061 | rm -f conftest.$ac_objext |
| 15062 | if { (ac_try="$ac_compile" |
| 15063 | case "(($ac_try" in |
| 15064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15065 | *) ac_try_echo=$ac_try;; |
| 15066 | esac |
| 15067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15068 | $as_echo "$ac_try_echo") >&5 |
| 15069 | (eval "$ac_compile") 2>conftest.er1 |
| 15070 | ac_status=$? |
| 15071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15072 | rm -f conftest.er1 |
| 15073 | cat conftest.err >&5 |
| 15074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15075 | (exit $ac_status); } && { |
| 15076 | test -z "$ac_c_werror_flag" || |
| 15077 | test ! -s conftest.err |
| 15078 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15079 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15080 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15081 | $as_echo "$as_me: failed program was:" >&5 |
| 15082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15083 | |
| 15084 | ac_cv_c_bigendian=no |
| 15085 | fi |
| 15086 | |
| 15087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15088 | else |
| 15089 | $as_echo "$as_me: failed program was:" >&5 |
| 15090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15091 | |
| 15092 | |
| 15093 | fi |
| 15094 | |
| 15095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15096 | fi |
| 15097 | if test $ac_cv_c_bigendian = unknown; then |
| 15098 | # Compile a test program. |
| 15099 | if test "$cross_compiling" = yes; then |
| 15100 | # Try to guess by grepping values from an object file. |
| 15101 | cat >conftest.$ac_ext <<_ACEOF |
| 15102 | /* confdefs.h. */ |
| 15103 | _ACEOF |
| 15104 | cat confdefs.h >>conftest.$ac_ext |
| 15105 | cat >>conftest.$ac_ext <<_ACEOF |
| 15106 | /* end confdefs.h. */ |
| 15107 | short int ascii_mm[] = |
| 15108 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15109 | short int ascii_ii[] = |
| 15110 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15111 | int use_ascii (int i) { |
| 15112 | return ascii_mm[i] + ascii_ii[i]; |
| 15113 | } |
| 15114 | short int ebcdic_ii[] = |
| 15115 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15116 | short int ebcdic_mm[] = |
| 15117 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15118 | int use_ebcdic (int i) { |
| 15119 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 15120 | } |
| 15121 | extern int foo; |
| 15122 | |
| 15123 | int |
| 15124 | main () |
| 15125 | { |
| 15126 | return use_ascii (foo) == use_ebcdic (foo); |
| 15127 | ; |
| 15128 | return 0; |
| 15129 | } |
| 15130 | _ACEOF |
| 15131 | rm -f conftest.$ac_objext |
| 15132 | if { (ac_try="$ac_compile" |
| 15133 | case "(($ac_try" in |
| 15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15135 | *) ac_try_echo=$ac_try;; |
| 15136 | esac |
| 15137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15138 | $as_echo "$ac_try_echo") >&5 |
| 15139 | (eval "$ac_compile") 2>conftest.er1 |
| 15140 | ac_status=$? |
| 15141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15142 | rm -f conftest.er1 |
| 15143 | cat conftest.err >&5 |
| 15144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15145 | (exit $ac_status); } && { |
| 15146 | test -z "$ac_c_werror_flag" || |
| 15147 | test ! -s conftest.err |
| 15148 | } && test -s conftest.$ac_objext; then |
| 15149 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 15150 | ac_cv_c_bigendian=yes |
| 15151 | fi |
| 15152 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15153 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15154 | ac_cv_c_bigendian=no |
| 15155 | else |
| 15156 | # finding both strings is unlikely to happen, but who knows? |
| 15157 | ac_cv_c_bigendian=unknown |
| 15158 | fi |
| 15159 | fi |
| 15160 | else |
| 15161 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15164 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15165 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15166 | |
| 15167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15168 | else |
| 15169 | cat >conftest.$ac_ext <<_ACEOF |
| 15170 | /* confdefs.h. */ |
| 15171 | _ACEOF |
| 15172 | cat confdefs.h >>conftest.$ac_ext |
| 15173 | cat >>conftest.$ac_ext <<_ACEOF |
| 15174 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15175 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15176 | int |
| 15177 | main () |
| 15178 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15179 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15180 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15181 | union |
| 15182 | { |
| 15183 | long int l; |
| 15184 | char c[sizeof (long int)]; |
| 15185 | } u; |
| 15186 | u.l = 1; |
| 15187 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15188 | |
| 15189 | ; |
| 15190 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15191 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15192 | _ACEOF |
| 15193 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15194 | if { (ac_try="$ac_link" |
| 15195 | case "(($ac_try" in |
| 15196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15197 | *) ac_try_echo=$ac_try;; |
| 15198 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15200 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15201 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15202 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15205 | { (case "(($ac_try" in |
| 15206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15207 | *) ac_try_echo=$ac_try;; |
| 15208 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15210 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15211 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15212 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15214 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15215 | ac_cv_c_bigendian=no |
| 15216 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15217 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15218 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15219 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15220 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15221 | ( exit $ac_status ) |
| 15222 | ac_cv_c_bigendian=yes |
| 15223 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15224 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15225 | 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] | 15226 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15227 | |
| 15228 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15229 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15230 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15231 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15232 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 15233 | case $ac_cv_c_bigendian in #( |
| 15234 | yes) |
| 15235 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15236 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15237 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15238 | ;; #( |
| 15239 | no) |
| 15240 | ;; #( |
| 15241 | universal) |
| 15242 | |
| 15243 | cat >>confdefs.h <<\_ACEOF |
| 15244 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 15245 | _ACEOF |
| 15246 | |
| 15247 | ;; #( |
| 15248 | *) |
| 15249 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 15250 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15251 | $as_echo "$as_me: error: unknown endianness |
| 15252 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15253 | { (exit 1); exit 1; }; } ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15254 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15255 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15256 | 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] | 15257 | ASM_TYPES_HEADER=./asm_types.h |
| 15258 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15259 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 15260 | > public_config.h |
| 15261 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 15262 | uniq tmp_config.$$ >> public_config.h |
| 15263 | else |
| 15264 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 15265 | fi |
| 15266 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 15267 | uniq tmp_config.$$ >> public_config.h |
| 15268 | else |
| 15269 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 15270 | fi |
| 15271 | rm -f tmp_config.$$ |
| 15272 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 15273 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15274 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15275 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15276 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15277 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15279 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15280 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15282 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15283 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15284 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 15285 | $as_echo "$as_val"'` |
| 15286 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15287 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15288 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15289 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15290 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15291 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15292 | cat >conftest.$ac_ext <<_ACEOF |
| 15293 | /* confdefs.h. */ |
| 15294 | _ACEOF |
| 15295 | cat confdefs.h >>conftest.$ac_ext |
| 15296 | cat >>conftest.$ac_ext <<_ACEOF |
| 15297 | /* end confdefs.h. */ |
| 15298 | $ac_includes_default |
| 15299 | #include <$ac_header> |
| 15300 | _ACEOF |
| 15301 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15302 | if { (ac_try="$ac_compile" |
| 15303 | case "(($ac_try" in |
| 15304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15305 | *) ac_try_echo=$ac_try;; |
| 15306 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15308 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15309 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15310 | ac_status=$? |
| 15311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15312 | rm -f conftest.er1 |
| 15313 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15315 | (exit $ac_status); } && { |
| 15316 | test -z "$ac_c_werror_flag" || |
| 15317 | test ! -s conftest.err |
| 15318 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15319 | ac_header_compiler=yes |
| 15320 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15321 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15324 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15325 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15326 | |
| 15327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15328 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15329 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15330 | |
| 15331 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15332 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15333 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15334 | cat >conftest.$ac_ext <<_ACEOF |
| 15335 | /* confdefs.h. */ |
| 15336 | _ACEOF |
| 15337 | cat confdefs.h >>conftest.$ac_ext |
| 15338 | cat >>conftest.$ac_ext <<_ACEOF |
| 15339 | /* end confdefs.h. */ |
| 15340 | #include <$ac_header> |
| 15341 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15342 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15343 | case "(($ac_try" in |
| 15344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15345 | *) ac_try_echo=$ac_try;; |
| 15346 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15348 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15349 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15350 | ac_status=$? |
| 15351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15352 | rm -f conftest.er1 |
| 15353 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15355 | (exit $ac_status); } >/dev/null && { |
| 15356 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15357 | test ! -s conftest.err |
| 15358 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15359 | ac_header_preproc=yes |
| 15360 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15361 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15363 | |
| 15364 | ac_header_preproc=no |
| 15365 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15366 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15367 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15368 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15369 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15370 | |
| 15371 | # So? What about this header? |
| 15372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15373 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15374 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15375 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15377 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15378 | ac_header_preproc=yes |
| 15379 | ;; |
| 15380 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15381 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15382 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15383 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15384 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15385 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15386 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15388 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15390 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15392 | $as_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] | 15393 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15394 | ;; |
| 15395 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15396 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15397 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15399 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15400 | else |
| 15401 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15402 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15403 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 15404 | $as_echo "$as_val"'` |
| 15405 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15406 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15407 | |
| 15408 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15409 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 15410 | $as_echo "$as_val"'` |
| 15411 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15412 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15413 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15414 | _ACEOF |
| 15415 | |
| 15416 | fi |
| 15417 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15418 | done |
| 15419 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15420 | { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 15421 | $as_echo_n "checking for intptr_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15422 | if test "${ac_cv_type_intptr_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15423 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15424 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15425 | ac_cv_type_intptr_t=no |
| 15426 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15427 | /* confdefs.h. */ |
| 15428 | _ACEOF |
| 15429 | cat confdefs.h >>conftest.$ac_ext |
| 15430 | cat >>conftest.$ac_ext <<_ACEOF |
| 15431 | /* end confdefs.h. */ |
| 15432 | $ac_includes_default |
| 15433 | int |
| 15434 | main () |
| 15435 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15436 | if (sizeof (intptr_t)) |
| 15437 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15438 | ; |
| 15439 | return 0; |
| 15440 | } |
| 15441 | _ACEOF |
| 15442 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15443 | if { (ac_try="$ac_compile" |
| 15444 | case "(($ac_try" in |
| 15445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15446 | *) ac_try_echo=$ac_try;; |
| 15447 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15449 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15450 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15451 | ac_status=$? |
| 15452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15453 | rm -f conftest.er1 |
| 15454 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15456 | (exit $ac_status); } && { |
| 15457 | test -z "$ac_c_werror_flag" || |
| 15458 | test ! -s conftest.err |
| 15459 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15460 | cat >conftest.$ac_ext <<_ACEOF |
| 15461 | /* confdefs.h. */ |
| 15462 | _ACEOF |
| 15463 | cat confdefs.h >>conftest.$ac_ext |
| 15464 | cat >>conftest.$ac_ext <<_ACEOF |
| 15465 | /* end confdefs.h. */ |
| 15466 | $ac_includes_default |
| 15467 | int |
| 15468 | main () |
| 15469 | { |
| 15470 | if (sizeof ((intptr_t))) |
| 15471 | return 0; |
| 15472 | ; |
| 15473 | return 0; |
| 15474 | } |
| 15475 | _ACEOF |
| 15476 | rm -f conftest.$ac_objext |
| 15477 | if { (ac_try="$ac_compile" |
| 15478 | case "(($ac_try" in |
| 15479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15480 | *) ac_try_echo=$ac_try;; |
| 15481 | esac |
| 15482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15483 | $as_echo "$ac_try_echo") >&5 |
| 15484 | (eval "$ac_compile") 2>conftest.er1 |
| 15485 | ac_status=$? |
| 15486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15487 | rm -f conftest.er1 |
| 15488 | cat conftest.err >&5 |
| 15489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15490 | (exit $ac_status); } && { |
| 15491 | test -z "$ac_c_werror_flag" || |
| 15492 | test ! -s conftest.err |
| 15493 | } && test -s conftest.$ac_objext; then |
| 15494 | : |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15495 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15496 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15497 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15498 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15499 | ac_cv_type_intptr_t=yes |
| 15500 | fi |
| 15501 | |
| 15502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15503 | else |
| 15504 | $as_echo "$as_me: failed program was:" >&5 |
| 15505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15506 | |
| 15507 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15508 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15509 | |
| 15510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15511 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15512 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 15513 | $as_echo "$ac_cv_type_intptr_t" >&6; } |
| 15514 | if test "x$ac_cv_type_intptr_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15515 | |
| 15516 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 15517 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15518 | _ACEOF |
| 15519 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 15520 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15521 | fi |
| 15522 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15523 | { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 15524 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15525 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15526 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15527 | else |
| 15528 | cat >conftest.$ac_ext <<_ACEOF |
| 15529 | /* confdefs.h. */ |
| 15530 | _ACEOF |
| 15531 | cat confdefs.h >>conftest.$ac_ext |
| 15532 | cat >>conftest.$ac_ext <<_ACEOF |
| 15533 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15534 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15535 | int |
| 15536 | main () |
| 15537 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15538 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15539 | ; |
| 15540 | return 0; |
| 15541 | } |
| 15542 | _ACEOF |
| 15543 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15544 | if { (ac_try="$ac_compile" |
| 15545 | case "(($ac_try" in |
| 15546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15547 | *) ac_try_echo=$ac_try;; |
| 15548 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15550 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15551 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15552 | ac_status=$? |
| 15553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15554 | rm -f conftest.er1 |
| 15555 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15557 | (exit $ac_status); } && { |
| 15558 | test -z "$ac_c_werror_flag" || |
| 15559 | test ! -s conftest.err |
| 15560 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15561 | e2fsprogs_cv_struct_st_flags=yes |
| 15562 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15563 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15565 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15566 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15567 | fi |
| 15568 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15570 | fi |
| 15571 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15572 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 15573 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15574 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15575 | { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 15576 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15577 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15578 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15579 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15580 | cat >conftest.$ac_ext <<_ACEOF |
| 15581 | /* confdefs.h. */ |
| 15582 | _ACEOF |
| 15583 | cat confdefs.h >>conftest.$ac_ext |
| 15584 | cat >>conftest.$ac_ext <<_ACEOF |
| 15585 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15586 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15587 | int |
| 15588 | main () |
| 15589 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15590 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15591 | ; |
| 15592 | return 0; |
| 15593 | } |
| 15594 | _ACEOF |
| 15595 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15596 | if { (ac_try="$ac_compile" |
| 15597 | case "(($ac_try" in |
| 15598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15599 | *) ac_try_echo=$ac_try;; |
| 15600 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15602 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15603 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15604 | ac_status=$? |
| 15605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15606 | rm -f conftest.er1 |
| 15607 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15609 | (exit $ac_status); } && { |
| 15610 | test -z "$ac_c_werror_flag" || |
| 15611 | test ! -s conftest.err |
| 15612 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15613 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 15614 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15615 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15618 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15619 | fi |
| 15620 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15622 | fi |
| 15623 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15624 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 15625 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15626 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15627 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15628 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15629 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15630 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15631 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15632 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15633 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 15634 | $as_echo_n "checking for struct sockaddr.sa_len... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15635 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15636 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15637 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15638 | cat >conftest.$ac_ext <<_ACEOF |
| 15639 | /* confdefs.h. */ |
| 15640 | _ACEOF |
| 15641 | cat confdefs.h >>conftest.$ac_ext |
| 15642 | cat >>conftest.$ac_ext <<_ACEOF |
| 15643 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15644 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15645 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15646 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15647 | int |
| 15648 | main () |
| 15649 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15650 | static struct sockaddr ac_aggr; |
| 15651 | if (ac_aggr.sa_len) |
| 15652 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15653 | ; |
| 15654 | return 0; |
| 15655 | } |
| 15656 | _ACEOF |
| 15657 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15658 | if { (ac_try="$ac_compile" |
| 15659 | case "(($ac_try" in |
| 15660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15661 | *) ac_try_echo=$ac_try;; |
| 15662 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15664 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15665 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15666 | ac_status=$? |
| 15667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15668 | rm -f conftest.er1 |
| 15669 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15671 | (exit $ac_status); } && { |
| 15672 | test -z "$ac_c_werror_flag" || |
| 15673 | test ! -s conftest.err |
| 15674 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15675 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15676 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15677 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15680 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15681 | /* confdefs.h. */ |
| 15682 | _ACEOF |
| 15683 | cat confdefs.h >>conftest.$ac_ext |
| 15684 | cat >>conftest.$ac_ext <<_ACEOF |
| 15685 | /* end confdefs.h. */ |
| 15686 | #include <sys/types.h> |
| 15687 | #include <sys/socket.h> |
| 15688 | |
| 15689 | int |
| 15690 | main () |
| 15691 | { |
| 15692 | static struct sockaddr ac_aggr; |
| 15693 | if (sizeof ac_aggr.sa_len) |
| 15694 | return 0; |
| 15695 | ; |
| 15696 | return 0; |
| 15697 | } |
| 15698 | _ACEOF |
| 15699 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15700 | if { (ac_try="$ac_compile" |
| 15701 | case "(($ac_try" in |
| 15702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15703 | *) ac_try_echo=$ac_try;; |
| 15704 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15706 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15707 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15708 | ac_status=$? |
| 15709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15710 | rm -f conftest.er1 |
| 15711 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15713 | (exit $ac_status); } && { |
| 15714 | test -z "$ac_c_werror_flag" || |
| 15715 | test ! -s conftest.err |
| 15716 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15717 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15718 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15719 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15721 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15722 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15723 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15724 | |
| 15725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15727 | |
| 15728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15729 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15730 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 15731 | $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
| 15732 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15733 | |
| 15734 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15735 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15736 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15737 | |
| 15738 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15739 | |
| 15740 | |
| 15741 | |
| 15742 | |
| 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | |
| 15750 | |
| 15751 | |
| 15752 | |
| 15753 | |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15758 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 15759 | |
| 15760 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 15761 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 15762 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 15763 | |
| 15764 | |
| 15765 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 15766 | |
| 15767 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 15768 | |
Theodore Ts'o | c13ab4f | 2008-07-13 16:17:57 -0400 | [diff] [blame] | 15769 | |
| 15770 | |
Theodore Ts'o | 1207e36 | 2009-04-15 13:05:09 -0400 | [diff] [blame] | 15771 | |
| 15772 | |
| 15773 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15774 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15775 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15776 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15777 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15778 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15779 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15780 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15781 | cat >conftest.$ac_ext <<_ACEOF |
| 15782 | /* confdefs.h. */ |
| 15783 | _ACEOF |
| 15784 | cat confdefs.h >>conftest.$ac_ext |
| 15785 | cat >>conftest.$ac_ext <<_ACEOF |
| 15786 | /* end confdefs.h. */ |
| 15787 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15789 | #define $ac_func innocuous_$ac_func |
| 15790 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15791 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15792 | which can conflict with char $ac_func (); below. |
| 15793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15794 | <limits.h> exists even on freestanding compilers. */ |
| 15795 | |
| 15796 | #ifdef __STDC__ |
| 15797 | # include <limits.h> |
| 15798 | #else |
| 15799 | # include <assert.h> |
| 15800 | #endif |
| 15801 | |
| 15802 | #undef $ac_func |
| 15803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15804 | /* Override any GCC internal prototype to avoid an error. |
| 15805 | Use char because int might match the return type of a GCC |
| 15806 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15807 | #ifdef __cplusplus |
| 15808 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15809 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15810 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15811 | /* The GNU C library defines this for functions which it implements |
| 15812 | to always fail with ENOSYS. Some functions are actually named |
| 15813 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15814 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15815 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15816 | #endif |
| 15817 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15818 | int |
| 15819 | main () |
| 15820 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15821 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15822 | ; |
| 15823 | return 0; |
| 15824 | } |
| 15825 | _ACEOF |
| 15826 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15827 | if { (ac_try="$ac_link" |
| 15828 | case "(($ac_try" in |
| 15829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15830 | *) ac_try_echo=$ac_try;; |
| 15831 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15833 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15834 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15835 | ac_status=$? |
| 15836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15837 | rm -f conftest.er1 |
| 15838 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15840 | (exit $ac_status); } && { |
| 15841 | test -z "$ac_c_werror_flag" || |
| 15842 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15843 | } && test -s conftest$ac_exeext && { |
| 15844 | test "$cross_compiling" = yes || |
| 15845 | $as_test_x conftest$ac_exeext |
| 15846 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15847 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15848 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15849 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15850 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15852 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15853 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15854 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15855 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15856 | 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] | 15857 | conftest$ac_exeext conftest.$ac_ext |
| 15858 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15859 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15860 | $as_echo "$as_val"'` |
| 15861 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15862 | $as_echo "$ac_res" >&6; } |
| 15863 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 15864 | $as_echo "$as_val"'` |
| 15865 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15866 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15867 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15868 | _ACEOF |
| 15869 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15870 | fi |
| 15871 | done |
| 15872 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15873 | SOCKET_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15874 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15875 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15876 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15877 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15878 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15879 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15880 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15881 | cat >conftest.$ac_ext <<_ACEOF |
| 15882 | /* confdefs.h. */ |
| 15883 | _ACEOF |
| 15884 | cat confdefs.h >>conftest.$ac_ext |
| 15885 | cat >>conftest.$ac_ext <<_ACEOF |
| 15886 | /* end confdefs.h. */ |
| 15887 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15888 | /* Override any GCC internal prototype to avoid an error. |
| 15889 | Use char because int might match the return type of a GCC |
| 15890 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15891 | #ifdef __cplusplus |
| 15892 | extern "C" |
| 15893 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15894 | char socket (); |
| 15895 | int |
| 15896 | main () |
| 15897 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15898 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15899 | ; |
| 15900 | return 0; |
| 15901 | } |
| 15902 | _ACEOF |
| 15903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15904 | if { (ac_try="$ac_link" |
| 15905 | case "(($ac_try" in |
| 15906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15907 | *) ac_try_echo=$ac_try;; |
| 15908 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15910 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15911 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15912 | ac_status=$? |
| 15913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15914 | rm -f conftest.er1 |
| 15915 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15917 | (exit $ac_status); } && { |
| 15918 | test -z "$ac_c_werror_flag" || |
| 15919 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15920 | } && test -s conftest$ac_exeext && { |
| 15921 | test "$cross_compiling" = yes || |
| 15922 | $as_test_x conftest$ac_exeext |
| 15923 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15924 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15925 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15926 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15927 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15929 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15930 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15931 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15932 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15933 | 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] | 15934 | conftest$ac_exeext conftest.$ac_ext |
| 15935 | LIBS=$ac_check_lib_save_LIBS |
| 15936 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15937 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15938 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 15939 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15940 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15941 | fi |
| 15942 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15943 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15944 | DLOPEN_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15945 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15946 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15947 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15948 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15949 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15950 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15951 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15952 | cat >conftest.$ac_ext <<_ACEOF |
| 15953 | /* confdefs.h. */ |
| 15954 | _ACEOF |
| 15955 | cat confdefs.h >>conftest.$ac_ext |
| 15956 | cat >>conftest.$ac_ext <<_ACEOF |
| 15957 | /* end confdefs.h. */ |
| 15958 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15959 | /* Override any GCC internal prototype to avoid an error. |
| 15960 | Use char because int might match the return type of a GCC |
| 15961 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15962 | #ifdef __cplusplus |
| 15963 | extern "C" |
| 15964 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15965 | char dlopen (); |
| 15966 | int |
| 15967 | main () |
| 15968 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15969 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15970 | ; |
| 15971 | return 0; |
| 15972 | } |
| 15973 | _ACEOF |
| 15974 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15975 | if { (ac_try="$ac_link" |
| 15976 | case "(($ac_try" in |
| 15977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15978 | *) ac_try_echo=$ac_try;; |
| 15979 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15981 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15982 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15983 | ac_status=$? |
| 15984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15985 | rm -f conftest.er1 |
| 15986 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15988 | (exit $ac_status); } && { |
| 15989 | test -z "$ac_c_werror_flag" || |
| 15990 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15991 | } && test -s conftest$ac_exeext && { |
| 15992 | test "$cross_compiling" = yes || |
| 15993 | $as_test_x conftest$ac_exeext |
| 15994 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15995 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15996 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15997 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15998 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16000 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16001 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16002 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16003 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16004 | 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] | 16005 | conftest$ac_exeext conftest.$ac_ext |
| 16006 | LIBS=$ac_check_lib_save_LIBS |
| 16007 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16008 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16009 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 16010 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16011 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16012 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16013 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16014 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16015 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 16016 | fi |
| 16017 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16018 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16019 | { $as_echo "$as_me:$LINENO: checking for optreset" >&5 |
| 16020 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16021 | if test "${ac_cv_have_optreset+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16022 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16023 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16024 | cat >conftest.$ac_ext <<_ACEOF |
| 16025 | /* confdefs.h. */ |
| 16026 | _ACEOF |
| 16027 | cat confdefs.h >>conftest.$ac_ext |
| 16028 | cat >>conftest.$ac_ext <<_ACEOF |
| 16029 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16030 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16031 | |
| 16032 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16034 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16035 | ac_cv_have_optreset=yes |
| 16036 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16037 | ac_cv_have_optreset=no |
| 16038 | fi |
| 16039 | rm -f conftest* |
| 16040 | |
| 16041 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16042 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 16043 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16044 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16045 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16046 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16047 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16048 | |
| 16049 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16050 | SEM_INIT_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16051 | { $as_echo "$as_me:$LINENO: checking for sem_init" >&5 |
| 16052 | $as_echo_n "checking for sem_init... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16053 | if test "${ac_cv_func_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16054 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16055 | else |
| 16056 | cat >conftest.$ac_ext <<_ACEOF |
| 16057 | /* confdefs.h. */ |
| 16058 | _ACEOF |
| 16059 | cat confdefs.h >>conftest.$ac_ext |
| 16060 | cat >>conftest.$ac_ext <<_ACEOF |
| 16061 | /* end confdefs.h. */ |
| 16062 | /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. |
| 16063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16064 | #define sem_init innocuous_sem_init |
| 16065 | |
| 16066 | /* System header to define __stub macros and hopefully few prototypes, |
| 16067 | which can conflict with char sem_init (); below. |
| 16068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16069 | <limits.h> exists even on freestanding compilers. */ |
| 16070 | |
| 16071 | #ifdef __STDC__ |
| 16072 | # include <limits.h> |
| 16073 | #else |
| 16074 | # include <assert.h> |
| 16075 | #endif |
| 16076 | |
| 16077 | #undef sem_init |
| 16078 | |
| 16079 | /* Override any GCC internal prototype to avoid an error. |
| 16080 | Use char because int might match the return type of a GCC |
| 16081 | builtin and then its argument prototype would still apply. */ |
| 16082 | #ifdef __cplusplus |
| 16083 | extern "C" |
| 16084 | #endif |
| 16085 | char sem_init (); |
| 16086 | /* The GNU C library defines this for functions which it implements |
| 16087 | to always fail with ENOSYS. Some functions are actually named |
| 16088 | something starting with __ and the normal name is an alias. */ |
| 16089 | #if defined __stub_sem_init || defined __stub___sem_init |
| 16090 | choke me |
| 16091 | #endif |
| 16092 | |
| 16093 | int |
| 16094 | main () |
| 16095 | { |
| 16096 | return sem_init (); |
| 16097 | ; |
| 16098 | return 0; |
| 16099 | } |
| 16100 | _ACEOF |
| 16101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16102 | if { (ac_try="$ac_link" |
| 16103 | case "(($ac_try" in |
| 16104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16105 | *) ac_try_echo=$ac_try;; |
| 16106 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16108 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16109 | (eval "$ac_link") 2>conftest.er1 |
| 16110 | ac_status=$? |
| 16111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16112 | rm -f conftest.er1 |
| 16113 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16115 | (exit $ac_status); } && { |
| 16116 | test -z "$ac_c_werror_flag" || |
| 16117 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16118 | } && test -s conftest$ac_exeext && { |
| 16119 | test "$cross_compiling" = yes || |
| 16120 | $as_test_x conftest$ac_exeext |
| 16121 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16122 | ac_cv_func_sem_init=yes |
| 16123 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16124 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16126 | |
| 16127 | ac_cv_func_sem_init=no |
| 16128 | fi |
| 16129 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16130 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16131 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16132 | conftest$ac_exeext conftest.$ac_ext |
| 16133 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 |
| 16135 | $as_echo "$ac_cv_func_sem_init" >&6; } |
| 16136 | if test "x$ac_cv_func_sem_init" = x""yes; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16137 | : |
| 16138 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16139 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 |
| 16140 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16141 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16142 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16143 | else |
| 16144 | ac_check_lib_save_LIBS=$LIBS |
| 16145 | LIBS="-lpthread $LIBS" |
| 16146 | cat >conftest.$ac_ext <<_ACEOF |
| 16147 | /* confdefs.h. */ |
| 16148 | _ACEOF |
| 16149 | cat confdefs.h >>conftest.$ac_ext |
| 16150 | cat >>conftest.$ac_ext <<_ACEOF |
| 16151 | /* end confdefs.h. */ |
| 16152 | |
| 16153 | /* Override any GCC internal prototype to avoid an error. |
| 16154 | Use char because int might match the return type of a GCC |
| 16155 | builtin and then its argument prototype would still apply. */ |
| 16156 | #ifdef __cplusplus |
| 16157 | extern "C" |
| 16158 | #endif |
| 16159 | char sem_init (); |
| 16160 | int |
| 16161 | main () |
| 16162 | { |
| 16163 | return sem_init (); |
| 16164 | ; |
| 16165 | return 0; |
| 16166 | } |
| 16167 | _ACEOF |
| 16168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16169 | if { (ac_try="$ac_link" |
| 16170 | case "(($ac_try" in |
| 16171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16172 | *) ac_try_echo=$ac_try;; |
| 16173 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16175 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16176 | (eval "$ac_link") 2>conftest.er1 |
| 16177 | ac_status=$? |
| 16178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16179 | rm -f conftest.er1 |
| 16180 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16182 | (exit $ac_status); } && { |
| 16183 | test -z "$ac_c_werror_flag" || |
| 16184 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16185 | } && test -s conftest$ac_exeext && { |
| 16186 | test "$cross_compiling" = yes || |
| 16187 | $as_test_x conftest$ac_exeext |
| 16188 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16189 | ac_cv_lib_pthread_sem_init=yes |
| 16190 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16191 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16193 | |
| 16194 | ac_cv_lib_pthread_sem_init=no |
| 16195 | fi |
| 16196 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16197 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16199 | conftest$ac_exeext conftest.$ac_ext |
| 16200 | LIBS=$ac_check_lib_save_LIBS |
| 16201 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16202 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 |
| 16203 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
| 16204 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16205 | cat >>confdefs.h <<\_ACEOF |
| 16206 | #define HAVE_SEM_INIT 1 |
| 16207 | _ACEOF |
| 16208 | |
| 16209 | SEM_INIT_LIB=-lpthread |
| 16210 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16211 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 16212 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16213 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16214 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16215 | else |
| 16216 | ac_check_lib_save_LIBS=$LIBS |
| 16217 | LIBS="-lrt $LIBS" |
| 16218 | cat >conftest.$ac_ext <<_ACEOF |
| 16219 | /* confdefs.h. */ |
| 16220 | _ACEOF |
| 16221 | cat confdefs.h >>conftest.$ac_ext |
| 16222 | cat >>conftest.$ac_ext <<_ACEOF |
| 16223 | /* end confdefs.h. */ |
| 16224 | |
| 16225 | /* Override any GCC internal prototype to avoid an error. |
| 16226 | Use char because int might match the return type of a GCC |
| 16227 | builtin and then its argument prototype would still apply. */ |
| 16228 | #ifdef __cplusplus |
| 16229 | extern "C" |
| 16230 | #endif |
| 16231 | char sem_init (); |
| 16232 | int |
| 16233 | main () |
| 16234 | { |
| 16235 | return sem_init (); |
| 16236 | ; |
| 16237 | return 0; |
| 16238 | } |
| 16239 | _ACEOF |
| 16240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16241 | if { (ac_try="$ac_link" |
| 16242 | case "(($ac_try" in |
| 16243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16244 | *) ac_try_echo=$ac_try;; |
| 16245 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16247 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16248 | (eval "$ac_link") 2>conftest.er1 |
| 16249 | ac_status=$? |
| 16250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16251 | rm -f conftest.er1 |
| 16252 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16254 | (exit $ac_status); } && { |
| 16255 | test -z "$ac_c_werror_flag" || |
| 16256 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16257 | } && test -s conftest$ac_exeext && { |
| 16258 | test "$cross_compiling" = yes || |
| 16259 | $as_test_x conftest$ac_exeext |
| 16260 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16261 | ac_cv_lib_rt_sem_init=yes |
| 16262 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16263 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16265 | |
| 16266 | ac_cv_lib_rt_sem_init=no |
| 16267 | fi |
| 16268 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16269 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16270 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16271 | conftest$ac_exeext conftest.$ac_ext |
| 16272 | LIBS=$ac_check_lib_save_LIBS |
| 16273 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16274 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 16275 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
| 16276 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16277 | cat >>confdefs.h <<\_ACEOF |
| 16278 | #define HAVE_SEM_INIT 1 |
| 16279 | _ACEOF |
| 16280 | |
| 16281 | SEM_INIT_LIB=-lrt |
| 16282 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16283 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 |
| 16284 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16285 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16286 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16287 | else |
| 16288 | ac_check_lib_save_LIBS=$LIBS |
| 16289 | LIBS="-lposix4 $LIBS" |
| 16290 | cat >conftest.$ac_ext <<_ACEOF |
| 16291 | /* confdefs.h. */ |
| 16292 | _ACEOF |
| 16293 | cat confdefs.h >>conftest.$ac_ext |
| 16294 | cat >>conftest.$ac_ext <<_ACEOF |
| 16295 | /* end confdefs.h. */ |
| 16296 | |
| 16297 | /* Override any GCC internal prototype to avoid an error. |
| 16298 | Use char because int might match the return type of a GCC |
| 16299 | builtin and then its argument prototype would still apply. */ |
| 16300 | #ifdef __cplusplus |
| 16301 | extern "C" |
| 16302 | #endif |
| 16303 | char sem_init (); |
| 16304 | int |
| 16305 | main () |
| 16306 | { |
| 16307 | return sem_init (); |
| 16308 | ; |
| 16309 | return 0; |
| 16310 | } |
| 16311 | _ACEOF |
| 16312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16313 | if { (ac_try="$ac_link" |
| 16314 | case "(($ac_try" in |
| 16315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16316 | *) ac_try_echo=$ac_try;; |
| 16317 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16319 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16320 | (eval "$ac_link") 2>conftest.er1 |
| 16321 | ac_status=$? |
| 16322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16323 | rm -f conftest.er1 |
| 16324 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16326 | (exit $ac_status); } && { |
| 16327 | test -z "$ac_c_werror_flag" || |
| 16328 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16329 | } && test -s conftest$ac_exeext && { |
| 16330 | test "$cross_compiling" = yes || |
| 16331 | $as_test_x conftest$ac_exeext |
| 16332 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16333 | ac_cv_lib_posix4_sem_init=yes |
| 16334 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16335 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16337 | |
| 16338 | ac_cv_lib_posix4_sem_init=no |
| 16339 | fi |
| 16340 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16341 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16343 | conftest$ac_exeext conftest.$ac_ext |
| 16344 | LIBS=$ac_check_lib_save_LIBS |
| 16345 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16346 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 |
| 16347 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
| 16348 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16349 | cat >>confdefs.h <<\_ACEOF |
| 16350 | #define HAVE_SEM_INIT 1 |
| 16351 | _ACEOF |
| 16352 | |
| 16353 | SEM_INIT_LIB=-lposix4 |
| 16354 | fi |
| 16355 | |
| 16356 | fi |
| 16357 | |
| 16358 | fi |
| 16359 | |
| 16360 | fi |
| 16361 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16362 | { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 16363 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 16364 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16365 | UNI_DIFF_OPTS=-u |
| 16366 | else |
| 16367 | UNI_DIFF_OPTS=-c |
| 16368 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16369 | { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 16370 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16371 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16372 | case "$host_os" in |
| 16373 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16374 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16375 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16376 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16377 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16378 | ;; |
| 16379 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16380 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16381 | CYGWIN_CMT="#" |
| 16382 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16383 | case "$host_os" in |
| 16384 | linux*) |
| 16385 | LINUX_CMT= |
| 16386 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16387 | cygwin) |
| 16388 | CYGWIN_CMT= |
| 16389 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16390 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16391 | esac |
| 16392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16393 | |
| 16394 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16395 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16396 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16397 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 16398 | root_prefix=""; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16399 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
| 16400 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16401 | fi |
| 16402 | ;; |
| 16403 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16404 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16405 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16406 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16407 | prefix="/usr"; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16408 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
| 16409 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16410 | if test "$mandir" = '${prefix}/man' ; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16411 | { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
| 16412 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16413 | mandir=/usr/share/man |
| 16414 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16415 | fi |
| 16416 | ;; |
| 16417 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16418 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 16419 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16420 | root_prefix="$ac_default_prefix" |
| 16421 | else |
| 16422 | root_prefix="$prefix" |
| 16423 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 16424 | root_bindir=$bindir |
| 16425 | root_sbindir=$sbindir |
| 16426 | root_libdir=$libdir |
| 16427 | root_sysconfdir=$sysconfdir |
| 16428 | else |
| 16429 | root_bindir='${root_prefix}/bin' |
| 16430 | root_sbindir='${root_prefix}/sbin' |
| 16431 | root_libdir='${root_prefix}/lib' |
| 16432 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16433 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16434 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 16435 | root_bindir=$bindir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16436 | { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
| 16437 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16438 | fi |
| 16439 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 16440 | root_sbindir=$sbindir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16441 | { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
| 16442 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16443 | fi |
| 16444 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 16445 | root_libdir=$libdir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16446 | { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
| 16447 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16448 | fi |
| 16449 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 16450 | root_sysconfdir=$sysconfdir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16451 | { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
| 16452 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16453 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16454 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16455 | |
| 16456 | |
| 16457 | |
| 16458 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16459 | { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 16460 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16461 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16462 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16463 | else |
| 16464 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16465 | cat >conftest.$ac_ext <<_ACEOF |
| 16466 | /* confdefs.h. */ |
| 16467 | _ACEOF |
| 16468 | cat confdefs.h >>conftest.$ac_ext |
| 16469 | cat >>conftest.$ac_ext <<_ACEOF |
| 16470 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16471 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16472 | int |
| 16473 | main () |
| 16474 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16475 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16476 | ; |
| 16477 | return 0; |
| 16478 | } |
| 16479 | _ACEOF |
| 16480 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16481 | if { (ac_try="$ac_link" |
| 16482 | case "(($ac_try" in |
| 16483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16484 | *) ac_try_echo=$ac_try;; |
| 16485 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16487 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16488 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16489 | ac_status=$? |
| 16490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16491 | rm -f conftest.er1 |
| 16492 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16494 | (exit $ac_status); } && { |
| 16495 | test -z "$ac_c_werror_flag" || |
| 16496 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16497 | } && test -s conftest$ac_exeext && { |
| 16498 | test "$cross_compiling" = yes || |
| 16499 | $as_test_x conftest$ac_exeext |
| 16500 | }; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16501 | ac_cv_e2fsprogs_use_static=yes |
| 16502 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16503 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16505 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16506 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16507 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16508 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16509 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16510 | 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] | 16511 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16512 | LDFLAGS=$SAVE_LDFLAGS |
| 16513 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16514 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16515 | case "$host_os" in |
| 16516 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16517 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16518 | ;; |
| 16519 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16520 | { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 16521 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 16522 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16523 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16524 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16525 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16526 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16527 | case "$host_os" in |
| 16528 | darwin*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16529 | { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
| 16530 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16531 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16532 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16533 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16534 | |
| 16535 | ;; |
| 16536 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16537 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 16538 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 16539 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16540 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16541 | if test "$cross_compiling" = yes ; then |
| 16542 | DO_TEST_SUITE= |
| 16543 | else |
| 16544 | DO_TEST_SUITE=check |
| 16545 | fi |
| 16546 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 16547 | INTL_FLAGS= |
| 16548 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 16549 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 16550 | fi |
| 16551 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 16552 | if test $cross_compiling = no; then |
| 16553 | BUILD_CFLAGS="$CFLAGS" |
| 16554 | BUILD_LDFLAGS="$LDFLAGS" |
| 16555 | else |
| 16556 | BUILD_CFLAGS= |
| 16557 | BUILD_LDFLAGS= |
| 16558 | fi |
| 16559 | |
| 16560 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16561 | test -d lib || mkdir lib |
| 16562 | test -d include || mkdir include |
| 16563 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16564 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 16565 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 16566 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 16567 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 16568 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16569 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 16570 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 16571 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 16572 | 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] | 16573 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16574 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 16575 | resize/Makefile doc/Makefile intl/Makefile \ |
| 16576 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16577 | if test -d `dirname ${srcdir}/$i` ; then |
| 16578 | outlist="$outlist $i" |
| 16579 | fi |
| 16580 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16581 | ac_config_files="$ac_config_files $outlist" |
| 16582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16583 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16584 | # This file is a shell script that caches the results of configure |
| 16585 | # 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] | 16586 | # scripts and configure runs, see configure's option --config-cache. |
| 16587 | # It is not useful on other systems. If it contains results you don't |
| 16588 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16589 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16590 | # config.status only pays attention to the cache file if you give it |
| 16591 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16592 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16593 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16594 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16595 | # following values. |
| 16596 | |
| 16597 | _ACEOF |
| 16598 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16599 | # The following way of writing the cache mishandles newlines in values, |
| 16600 | # 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] | 16601 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16602 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16603 | # 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] | 16604 | ( |
| 16605 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16606 | eval ac_val=\$$ac_var |
| 16607 | case $ac_val in #( |
| 16608 | *${as_nl}*) |
| 16609 | case $ac_var in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16610 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16611 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16612 | esac |
| 16613 | case $ac_var in #( |
| 16614 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16615 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16616 | *) $as_unset $ac_var ;; |
| 16617 | esac ;; |
| 16618 | esac |
| 16619 | done |
| 16620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16621 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16622 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16623 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16624 | # `set' does not quote correctly, so add quotes (double-quote |
| 16625 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16626 | sed -n \ |
| 16627 | "s/'/'\\\\''/g; |
| 16628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16629 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16630 | *) |
| 16631 | # `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] | 16632 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16633 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16634 | esac | |
| 16635 | sort |
| 16636 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16637 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16638 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16639 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16640 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16641 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16642 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16643 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16644 | :end' >>confcache |
| 16645 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16646 | if test -w "$cache_file"; then |
| 16647 | test "x$cache_file" != "x/dev/null" && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16648 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16649 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16650 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16651 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16652 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16653 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16654 | fi |
| 16655 | fi |
| 16656 | rm -f confcache |
| 16657 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16658 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16659 | # Let make expand exec_prefix. |
| 16660 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16661 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16662 | # Transform confdefs.h into DEFS. |
| 16663 | # Protect against shell expansion while executing Makefile rules. |
| 16664 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16665 | # |
| 16666 | # 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] | 16667 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16668 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16669 | ac_script=' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16670 | :mline |
| 16671 | /\\$/{ |
| 16672 | N |
| 16673 | s,\\\n,, |
| 16674 | b mline |
| 16675 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16676 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16677 | :clear |
| 16678 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16679 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16680 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16681 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16682 | b any |
| 16683 | :quote |
| 16684 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16685 | s/\[/\\&/g |
| 16686 | s/\]/\\&/g |
| 16687 | s/\$/$$/g |
| 16688 | H |
| 16689 | :any |
| 16690 | ${ |
| 16691 | g |
| 16692 | s/^\n// |
| 16693 | s/\n/ /g |
| 16694 | p |
| 16695 | } |
| 16696 | ' |
| 16697 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16698 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16699 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16700 | ac_libobjs= |
| 16701 | ac_ltlibobjs= |
| 16702 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16703 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16704 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16705 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16706 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16707 | # will be set to the directory where LIBOBJS objects are built. |
| 16708 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16709 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16710 | done |
| 16711 | LIBOBJS=$ac_libobjs |
| 16712 | |
| 16713 | LTLIBOBJS=$ac_ltlibobjs |
| 16714 | |
| 16715 | |
| 16716 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16717 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16718 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16719 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16720 | ac_clean_files_save=$ac_clean_files |
| 16721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16722 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16723 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16724 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16725 | #! $SHELL |
| 16726 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16727 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16728 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16729 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16731 | debug=false |
| 16732 | ac_cs_recheck=false |
| 16733 | ac_cs_silent=false |
| 16734 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16735 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16736 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16738 | ## --------------------- ## |
| 16739 | ## M4sh Initialization. ## |
| 16740 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16741 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16742 | # Be more Bourne compatible |
| 16743 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16744 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16745 | emulate sh |
| 16746 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16747 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16748 | # is contrary to our usage. Disable this feature. |
| 16749 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16750 | setopt NO_GLOB_SUBST |
| 16751 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16752 | case `(set -o) 2>/dev/null` in |
| 16753 | *posix*) set -o posix ;; |
| 16754 | esac |
| 16755 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16756 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16757 | |
| 16758 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16759 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16760 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16761 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16762 | # Avoid depending upon Character Ranges. |
| 16763 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16764 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16765 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16766 | as_cr_digits='0123456789' |
| 16767 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16768 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16769 | as_nl=' |
| 16770 | ' |
| 16771 | export as_nl |
| 16772 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16773 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16774 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16775 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16776 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16777 | as_echo='printf %s\n' |
| 16778 | as_echo_n='printf %s' |
| 16779 | else |
| 16780 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16781 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16782 | as_echo_n='/usr/ucb/echo -n' |
| 16783 | else |
| 16784 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16785 | as_echo_n_body='eval |
| 16786 | arg=$1; |
| 16787 | case $arg in |
| 16788 | *"$as_nl"*) |
| 16789 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16790 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16791 | esac; |
| 16792 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16793 | ' |
| 16794 | export as_echo_n_body |
| 16795 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16796 | fi |
| 16797 | export as_echo_body |
| 16798 | as_echo='sh -c $as_echo_body as_echo' |
| 16799 | fi |
| 16800 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16801 | # The user is always right. |
| 16802 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16803 | PATH_SEPARATOR=: |
| 16804 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16805 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16806 | PATH_SEPARATOR=';' |
| 16807 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16808 | fi |
| 16809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16810 | # Support unset when possible. |
| 16811 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 16812 | as_unset=unset |
| 16813 | else |
| 16814 | as_unset=false |
| 16815 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16817 | |
| 16818 | # IFS |
| 16819 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16820 | # there to prevent editors from complaining about space-tab. |
| 16821 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16822 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16823 | IFS=" "" $as_nl" |
| 16824 | |
| 16825 | # Find who we are. Look in the path if we contain no directory separator. |
| 16826 | case $0 in |
| 16827 | *[\\/]* ) as_myself=$0 ;; |
| 16828 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16829 | for as_dir in $PATH |
| 16830 | do |
| 16831 | IFS=$as_save_IFS |
| 16832 | test -z "$as_dir" && as_dir=. |
| 16833 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16834 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16835 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16837 | ;; |
| 16838 | esac |
| 16839 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16840 | # in which case we are not to be found in the path. |
| 16841 | if test "x$as_myself" = x; then |
| 16842 | as_myself=$0 |
| 16843 | fi |
| 16844 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16845 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16846 | { (exit 1); exit 1; } |
| 16847 | fi |
| 16848 | |
| 16849 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16850 | for as_var in ENV MAIL MAILPATH |
| 16851 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 16852 | done |
| 16853 | PS1='$ ' |
| 16854 | PS2='> ' |
| 16855 | PS4='+ ' |
| 16856 | |
| 16857 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16858 | LC_ALL=C |
| 16859 | export LC_ALL |
| 16860 | LANGUAGE=C |
| 16861 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16862 | |
| 16863 | # Required to use basename. |
| 16864 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16865 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16866 | as_expr=expr |
| 16867 | else |
| 16868 | as_expr=false |
| 16869 | fi |
| 16870 | |
| 16871 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16872 | as_basename=basename |
| 16873 | else |
| 16874 | as_basename=false |
| 16875 | fi |
| 16876 | |
| 16877 | |
| 16878 | # Name of the executable. |
| 16879 | as_me=`$as_basename -- "$0" || |
| 16880 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16881 | X"$0" : 'X\(//\)$' \| \ |
| 16882 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16883 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16884 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16885 | s//\1/ |
| 16886 | q |
| 16887 | } |
| 16888 | /^X\/\(\/\/\)$/{ |
| 16889 | s//\1/ |
| 16890 | q |
| 16891 | } |
| 16892 | /^X\/\(\/\).*/{ |
| 16893 | s//\1/ |
| 16894 | q |
| 16895 | } |
| 16896 | s/.*/./; q'` |
| 16897 | |
| 16898 | # CDPATH. |
| 16899 | $as_unset CDPATH |
| 16900 | |
| 16901 | |
| 16902 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16903 | as_lineno_1=$LINENO |
| 16904 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16905 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16906 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16908 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16909 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16910 | # line-number line after each line using $LINENO; the second 'sed' |
| 16911 | # does the real work. The second script uses 'N' to pair each |
| 16912 | # line-number line with the line containing $LINENO, and appends |
| 16913 | # trailing '-' during substitution so that $LINENO is not a special |
| 16914 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16915 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16916 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 16917 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 16918 | sed -n ' |
| 16919 | p |
| 16920 | /[$]LINENO/= |
| 16921 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16922 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16923 | s/[$]LINENO.*/&-/ |
| 16924 | t lineno |
| 16925 | b |
| 16926 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16927 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16928 | :loop |
| 16929 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16930 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16931 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16932 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16933 | chmod +x "$as_me.lineno" || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16934 | { $as_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] | 16935 | { (exit 1); exit 1; }; } |
| 16936 | |
| 16937 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16938 | # (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] | 16939 | # original and so on. Autoconf is especially sensitive to this). |
| 16940 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16941 | # Exit status is that of the last command. |
| 16942 | exit |
| 16943 | } |
| 16944 | |
| 16945 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16946 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16947 | as_dirname=dirname |
| 16948 | else |
| 16949 | as_dirname=false |
| 16950 | fi |
| 16951 | |
| 16952 | ECHO_C= ECHO_N= ECHO_T= |
| 16953 | case `echo -n x` in |
| 16954 | -n*) |
| 16955 | case `echo 'x\c'` in |
| 16956 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16957 | *) ECHO_C='\c';; |
| 16958 | esac;; |
| 16959 | *) |
| 16960 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16961 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16962 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16963 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16964 | as_expr=expr |
| 16965 | else |
| 16966 | as_expr=false |
| 16967 | fi |
| 16968 | |
| 16969 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16970 | if test -d conf$$.dir; then |
| 16971 | rm -f conf$$.dir/conf$$.file |
| 16972 | else |
| 16973 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16974 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16975 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16976 | if (echo >conf$$.file) 2>/dev/null; then |
| 16977 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16978 | as_ln_s='ln -s' |
| 16979 | # ... but there are two gotchas: |
| 16980 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16981 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16982 | # In both cases, we have to default to `cp -p'. |
| 16983 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16984 | as_ln_s='cp -p' |
| 16985 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16986 | as_ln_s=ln |
| 16987 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16988 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 16989 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16990 | else |
| 16991 | as_ln_s='cp -p' |
| 16992 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16993 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16994 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16995 | |
| 16996 | if mkdir -p . 2>/dev/null; then |
| 16997 | as_mkdir_p=: |
| 16998 | else |
| 16999 | test -d ./-p && rmdir ./-p |
| 17000 | as_mkdir_p=false |
| 17001 | fi |
| 17002 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17003 | if test -x / >/dev/null 2>&1; then |
| 17004 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17005 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17006 | if ls -dL / >/dev/null 2>&1; then |
| 17007 | as_ls_L_option=L |
| 17008 | else |
| 17009 | as_ls_L_option= |
| 17010 | fi |
| 17011 | as_test_x=' |
| 17012 | eval sh -c '\'' |
| 17013 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17014 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17015 | else |
| 17016 | case $1 in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17017 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17018 | esac; |
| 17019 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 17020 | ???[sx]*):;;*)false;;esac;fi |
| 17021 | '\'' sh |
| 17022 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17023 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17024 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17025 | |
| 17026 | # Sed expression to map a string onto a valid CPP name. |
| 17027 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 17028 | |
| 17029 | # Sed expression to map a string onto a valid variable name. |
| 17030 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 17031 | |
| 17032 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17033 | exec 6>&1 |
| 17034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17035 | # 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] | 17036 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17037 | # values after options handling. |
| 17038 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17039 | This file was extended by $as_me, which was |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17040 | generated by GNU Autoconf 2.63. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17041 | |
| 17042 | CONFIG_FILES = $CONFIG_FILES |
| 17043 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17044 | CONFIG_LINKS = $CONFIG_LINKS |
| 17045 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17046 | $ $0 $@ |
| 17047 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17048 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17049 | " |
| 17050 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17051 | _ACEOF |
| 17052 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17053 | case $ac_config_files in *" |
| 17054 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17055 | esac |
| 17056 | |
| 17057 | |
| 17058 | |
| 17059 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17060 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17061 | config_files="$ac_config_files" |
| 17062 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17063 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17064 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17065 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17067 | ac_cs_usage="\ |
| 17068 | \`$as_me' instantiates files from templates according to the |
| 17069 | current configuration. |
| 17070 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17071 | Usage: $0 [OPTION]... [FILE]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17072 | |
| 17073 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17074 | -V, --version print version number and configuration settings, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17075 | -q, --quiet, --silent |
| 17076 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17077 | -d, --debug don't remove temporary files |
| 17078 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17079 | --file=FILE[:TEMPLATE] |
| 17080 | instantiate the configuration file FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17081 | |
| 17082 | Configuration files: |
| 17083 | $config_files |
| 17084 | |
| 17085 | Configuration commands: |
| 17086 | $config_commands |
| 17087 | |
| 17088 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17090 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17091 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17092 | ac_cs_version="\\ |
| 17093 | config.status |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17094 | configured by $0, generated by GNU Autoconf 2.63, |
| 17095 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17096 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17097 | Copyright (C) 2008 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17098 | This config.status script is free software; the Free Software Foundation |
| 17099 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17100 | |
| 17101 | ac_pwd='$ac_pwd' |
| 17102 | srcdir='$srcdir' |
| 17103 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17104 | AWK='$AWK' |
| 17105 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17106 | _ACEOF |
| 17107 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17109 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17110 | ac_need_defaults=: |
| 17111 | while test $# != 0 |
| 17112 | do |
| 17113 | case $1 in |
| 17114 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17115 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17116 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17117 | ac_shift=: |
| 17118 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17119 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17120 | ac_option=$1 |
| 17121 | ac_optarg=$2 |
| 17122 | ac_shift=shift |
| 17123 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17124 | esac |
| 17125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17126 | case $ac_option in |
| 17127 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17128 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17129 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17130 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17131 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17132 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17133 | debug=: ;; |
| 17134 | --file | --fil | --fi | --f ) |
| 17135 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17136 | case $ac_optarg in |
| 17137 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17138 | esac |
| 17139 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17140 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17141 | --he | --h | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17142 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17144 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17145 | ac_cs_silent=: ;; |
| 17146 | |
| 17147 | # This is an error. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17148 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17149 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17150 | { (exit 1); exit 1; }; } ;; |
| 17151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17152 | *) ac_config_targets="$ac_config_targets $1" |
| 17153 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17154 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17155 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17156 | shift |
| 17157 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17159 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17160 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17161 | if $ac_cs_silent; then |
| 17162 | exec 6>/dev/null |
| 17163 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17164 | fi |
| 17165 | |
| 17166 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17167 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17168 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17169 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17170 | shift |
| 17171 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17172 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17173 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17174 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17175 | fi |
| 17176 | |
| 17177 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17178 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17179 | exec 5>>config.log |
| 17180 | { |
| 17181 | echo |
| 17182 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17183 | ## Running $as_me. ## |
| 17184 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17185 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17186 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17187 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17188 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17190 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17191 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17192 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17193 | # 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] | 17194 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17195 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17196 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17197 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 17198 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17199 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17200 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17201 | _ACEOF |
| 17202 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17204 | |
| 17205 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17206 | for ac_config_target in $ac_config_targets |
| 17207 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17208 | case $ac_config_target in |
| 17209 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 17210 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 17211 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17212 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17213 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17214 | { (exit 1); exit 1; }; };; |
| 17215 | esac |
| 17216 | done |
| 17217 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17218 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17219 | # If the user did not use the arguments to specify the items to instantiate, |
| 17220 | # then the envvar interface is used. Set only those that are not. |
| 17221 | # We use the long form for the default assignment because of an extremely |
| 17222 | # bizarre bug on SunOS 4.1.3. |
| 17223 | if $ac_need_defaults; then |
| 17224 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17225 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 17226 | fi |
| 17227 | |
| 17228 | # 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] | 17229 | # 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] | 17230 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17231 | # Hook for its removal unless debugging. |
| 17232 | # Note that there is a small window in which the directory will not be cleaned: |
| 17233 | # 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] | 17234 | $debug || |
| 17235 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17236 | tmp= |
| 17237 | trap 'exit_status=$? |
| 17238 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17239 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17240 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17241 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17242 | # Create a (secure) tmp directory for tmp files. |
| 17243 | |
| 17244 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17245 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17246 | test -n "$tmp" && test -d "$tmp" |
| 17247 | } || |
| 17248 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17249 | tmp=./conf$$-$RANDOM |
| 17250 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17251 | } || |
| 17252 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17253 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17254 | { (exit 1); exit 1; } |
| 17255 | } |
| 17256 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17257 | # Set up the scripts for CONFIG_FILES section. |
| 17258 | # No need to generate them if there are no CONFIG_FILES. |
| 17259 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17260 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17261 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17262 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 17263 | ac_cs_awk_getline=: |
| 17264 | ac_cs_awk_pipe_init= |
| 17265 | ac_cs_awk_read_file=' |
| 17266 | while ((getline aline < (F[key])) > 0) |
| 17267 | print(aline) |
| 17268 | close(F[key])' |
| 17269 | ac_cs_awk_pipe_fini= |
| 17270 | else |
| 17271 | ac_cs_awk_getline=false |
| 17272 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 17273 | ac_cs_awk_read_file=' |
| 17274 | print "|#_!!_#|" |
| 17275 | print "cat " F[key] " &&" |
| 17276 | '$ac_cs_awk_pipe_init |
| 17277 | # The final `:' finishes the AND list. |
| 17278 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 17279 | fi |
| 17280 | ac_cr='
' |
| 17281 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17282 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17283 | ac_cs_awk_cr='\\r' |
| 17284 | else |
| 17285 | ac_cs_awk_cr=$ac_cr |
| 17286 | fi |
| 17287 | |
| 17288 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17289 | _ACEOF |
| 17290 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17291 | # Create commands to substitute file output variables. |
| 17292 | { |
| 17293 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 17294 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 17295 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 17296 | echo "_ACAWK" && |
| 17297 | echo "_ACEOF" |
| 17298 | } >conf$$files.sh && |
| 17299 | . ./conf$$files.sh || |
| 17300 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17301 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17302 | { (exit 1); exit 1; }; } |
| 17303 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17304 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17305 | { |
| 17306 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17307 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17308 | echo "_ACEOF" |
| 17309 | } >conf$$subs.sh || |
| 17310 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17311 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17312 | { (exit 1); exit 1; }; } |
| 17313 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17314 | ac_delim='%!_!# ' |
| 17315 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17316 | . ./conf$$subs.sh || |
| 17317 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17318 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17319 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17320 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17321 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17322 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17323 | break |
| 17324 | elif $ac_last_try; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17325 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17326 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17327 | { (exit 1); exit 1; }; } |
| 17328 | else |
| 17329 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17330 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17331 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17332 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17333 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17334 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17335 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17336 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17337 | sed -n ' |
| 17338 | h |
| 17339 | s/^/S["/; s/!.*/"]=/ |
| 17340 | p |
| 17341 | g |
| 17342 | s/^[^!]*!// |
| 17343 | :repl |
| 17344 | t repl |
| 17345 | s/'"$ac_delim"'$// |
| 17346 | t delim |
| 17347 | :nl |
| 17348 | h |
| 17349 | s/\(.\{148\}\).*/\1/ |
| 17350 | t more1 |
| 17351 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17352 | p |
| 17353 | n |
| 17354 | b repl |
| 17355 | :more1 |
| 17356 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17357 | p |
| 17358 | g |
| 17359 | s/.\{148\}// |
| 17360 | t nl |
| 17361 | :delim |
| 17362 | h |
| 17363 | s/\(.\{148\}\).*/\1/ |
| 17364 | t more2 |
| 17365 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17366 | p |
| 17367 | b |
| 17368 | :more2 |
| 17369 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17370 | p |
| 17371 | g |
| 17372 | s/.\{148\}// |
| 17373 | t delim |
| 17374 | ' <conf$$subs.awk | sed ' |
| 17375 | /^[^""]/{ |
| 17376 | N |
| 17377 | s/\n// |
| 17378 | } |
| 17379 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17380 | rm -f conf$$subs.awk |
| 17381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17382 | _ACAWK |
| 17383 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17384 | for (key in S) S_is_set[key] = 1 |
| 17385 | FS = "" |
| 17386 | \$ac_cs_awk_pipe_init |
| 17387 | } |
| 17388 | { |
| 17389 | line = $ 0 |
| 17390 | nfields = split(line, field, "@") |
| 17391 | substed = 0 |
| 17392 | len = length(field[1]) |
| 17393 | for (i = 2; i < nfields; i++) { |
| 17394 | key = field[i] |
| 17395 | keylen = length(key) |
| 17396 | if (S_is_set[key]) { |
| 17397 | value = S[key] |
| 17398 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17399 | len += length(value) + length(field[++i]) |
| 17400 | substed = 1 |
| 17401 | } else |
| 17402 | len += 1 + keylen |
| 17403 | } |
| 17404 | if (nfields == 3 && !substed) { |
| 17405 | key = field[2] |
| 17406 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 17407 | \$ac_cs_awk_read_file |
| 17408 | next |
| 17409 | } |
| 17410 | } |
| 17411 | print line |
| 17412 | } |
| 17413 | \$ac_cs_awk_pipe_fini |
| 17414 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17415 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17417 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17418 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17419 | else |
| 17420 | cat |
| 17421 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17422 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17423 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17424 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17425 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17426 | |
| 17427 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17428 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17429 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17430 | # (actually we leave an empty line to preserve line numbers). |
| 17431 | if test "x$srcdir" = x.; then |
| 17432 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17433 | s/:*\$(srcdir):*/:/ |
| 17434 | s/:*\${srcdir}:*/:/ |
| 17435 | s/:*@srcdir@:*/:/ |
| 17436 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17437 | s/:*$// |
| 17438 | s/^[^=]*=[ ]*$// |
| 17439 | }' |
| 17440 | fi |
| 17441 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17443 | fi # test -n "$CONFIG_FILES" |
| 17444 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17445 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17446 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 17447 | shift |
| 17448 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17449 | do |
| 17450 | case $ac_tag in |
| 17451 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17452 | esac |
| 17453 | case $ac_mode$ac_tag in |
| 17454 | :[FHL]*:*);; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17455 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 17456 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17457 | { (exit 1); exit 1; }; };; |
| 17458 | :[FH]-) ac_tag=-:-;; |
| 17459 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17460 | esac |
| 17461 | ac_save_IFS=$IFS |
| 17462 | IFS=: |
| 17463 | set x $ac_tag |
| 17464 | IFS=$ac_save_IFS |
| 17465 | shift |
| 17466 | ac_file=$1 |
| 17467 | shift |
| 17468 | |
| 17469 | case $ac_mode in |
| 17470 | :L) ac_source=$1;; |
| 17471 | :[FH]) |
| 17472 | ac_file_inputs= |
| 17473 | for ac_f |
| 17474 | do |
| 17475 | case $ac_f in |
| 17476 | -) ac_f="$tmp/stdin";; |
| 17477 | *) # Look for the file first in the build tree, then in the source tree |
| 17478 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17479 | # because $ac_f cannot contain `:'. |
| 17480 | test -f "$ac_f" || |
| 17481 | case $ac_f in |
| 17482 | [\\/$]*) false;; |
| 17483 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17484 | esac || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17485 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17486 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17487 | { (exit 1); exit 1; }; };; |
| 17488 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17489 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17490 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17491 | done |
| 17492 | |
| 17493 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17494 | # use $as_me), people would be surprised to read: |
| 17495 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17496 | configure_input='Generated from '` |
| 17497 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17498 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17499 | if test x"$ac_file" != x-; then |
| 17500 | configure_input="$ac_file. $configure_input" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17501 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17502 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17503 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17504 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17505 | case $configure_input in #( |
| 17506 | *\&* | *\|* | *\\* ) |
| 17507 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17508 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17509 | *) ac_sed_conf_input=$configure_input;; |
| 17510 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17511 | |
| 17512 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17513 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 17514 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17515 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17516 | { (exit 1); exit 1; }; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17517 | esac |
| 17518 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17519 | esac |
| 17520 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17521 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17522 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17523 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17524 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17525 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17526 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17527 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17528 | s//\1/ |
| 17529 | q |
| 17530 | } |
| 17531 | /^X\(\/\/\)[^/].*/{ |
| 17532 | s//\1/ |
| 17533 | q |
| 17534 | } |
| 17535 | /^X\(\/\/\)$/{ |
| 17536 | s//\1/ |
| 17537 | q |
| 17538 | } |
| 17539 | /^X\(\/\).*/{ |
| 17540 | s//\1/ |
| 17541 | q |
| 17542 | } |
| 17543 | s/.*/./; q'` |
| 17544 | { as_dir="$ac_dir" |
| 17545 | case $as_dir in #( |
| 17546 | -*) as_dir=./$as_dir;; |
| 17547 | esac |
| 17548 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17549 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17550 | while :; do |
| 17551 | case $as_dir in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17552 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17553 | *) as_qdir=$as_dir;; |
| 17554 | esac |
| 17555 | as_dirs="'$as_qdir' $as_dirs" |
| 17556 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17558 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17559 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17560 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17561 | $as_echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17563 | s//\1/ |
| 17564 | q |
| 17565 | } |
| 17566 | /^X\(\/\/\)[^/].*/{ |
| 17567 | s//\1/ |
| 17568 | q |
| 17569 | } |
| 17570 | /^X\(\/\/\)$/{ |
| 17571 | s//\1/ |
| 17572 | q |
| 17573 | } |
| 17574 | /^X\(\/\).*/{ |
| 17575 | s//\1/ |
| 17576 | q |
| 17577 | } |
| 17578 | s/.*/./; q'` |
| 17579 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17580 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17581 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17582 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17583 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17584 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17585 | ac_builddir=. |
| 17586 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17587 | case "$ac_dir" in |
| 17588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17589 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17591 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17593 | case $ac_top_builddir_sub in |
| 17594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17596 | esac ;; |
| 17597 | esac |
| 17598 | ac_abs_top_builddir=$ac_pwd |
| 17599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17600 | # for backward compatibility: |
| 17601 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17602 | |
| 17603 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17604 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17605 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17606 | ac_top_srcdir=$ac_top_builddir_sub |
| 17607 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17608 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17609 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17610 | ac_top_srcdir=$srcdir |
| 17611 | ac_abs_top_srcdir=$srcdir ;; |
| 17612 | *) # Relative name. |
| 17613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17614 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17616 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17618 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17620 | case $ac_mode in |
| 17621 | :F) |
| 17622 | # |
| 17623 | # CONFIG_FILE |
| 17624 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17625 | |
| 17626 | case $INSTALL in |
| 17627 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17628 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17629 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17630 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17631 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17632 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17633 | # If the template does not know about datarootdir, expand it. |
| 17634 | # FIXME: This hack should be removed a few years after 2.60. |
| 17635 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17636 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17637 | ac_sed_dataroot=' |
| 17638 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17639 | p |
| 17640 | q |
| 17641 | } |
| 17642 | /@datadir@/p |
| 17643 | /@docdir@/p |
| 17644 | /@infodir@/p |
| 17645 | /@localedir@/p |
| 17646 | /@mandir@/p |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17647 | ' |
| 17648 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17649 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17650 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17652 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17653 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17654 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17655 | ac_datarootdir_hack=' |
| 17656 | s&@datadir@&$datadir&g |
| 17657 | s&@docdir@&$docdir&g |
| 17658 | s&@infodir@&$infodir&g |
| 17659 | s&@localedir@&$localedir&g |
| 17660 | s&@mandir@&$mandir&g |
| 17661 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17662 | esac |
| 17663 | _ACEOF |
| 17664 | |
| 17665 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17666 | # Shell code in configure.ac might set extrasub. |
| 17667 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17669 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17670 | $extrasub |
| 17671 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17673 | :t |
| 17674 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17675 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17676 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17677 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17678 | s&@srcdir@&$ac_srcdir&;t t |
| 17679 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17680 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17681 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17682 | s&@builddir@&$ac_builddir&;t t |
| 17683 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17684 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17685 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17686 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17687 | " |
| 17688 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 17689 | if $ac_cs_awk_getline; then |
| 17690 | $AWK -f "$tmp/subs.awk" |
| 17691 | else |
| 17692 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 17693 | fi >$tmp/out \ |
| 17694 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17695 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17696 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17698 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17699 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17700 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17702 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17703 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17704 | 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] | 17705 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17706 | rm -f "$tmp/stdin" |
| 17707 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17708 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 17709 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 17710 | esac \ |
| 17711 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17712 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17713 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17714 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17715 | |
| 17716 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17717 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 17718 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17719 | ;; |
| 17720 | esac |
| 17721 | |
| 17722 | |
| 17723 | case $ac_file$ac_mode in |
| 17724 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17725 | for ac_file in $CONFIG_FILES; do |
| 17726 | # Support "outfile[:infile[:infile...]]" |
| 17727 | case "$ac_file" in |
| 17728 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 17729 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17730 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 17731 | case "$ac_file" in */Makefile.in) |
| 17732 | # Adjust a relative srcdir. |
| 17733 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 17734 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 17735 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 17736 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 17737 | # In autoconf-2.50 it is called $srcdir. |
| 17738 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 17739 | case "$ac_given_srcdir" in |
| 17740 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 17741 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 17742 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 17743 | esac |
| 17744 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 17745 | rm -f "$ac_dir/POTFILES" |
| 17746 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 17747 | 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] | 17748 | POMAKEFILEDEPS="POTFILES.in" |
| 17749 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17750 | # on $ac_dir but don't depend on user-specified configuration |
| 17751 | # parameters. |
| 17752 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 17753 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17754 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17755 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 17756 | fi |
| 17757 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 17758 | # Hide the ALL_LINGUAS assigment from automake. |
| 17759 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17760 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 17761 | else |
| 17762 | # The set of available languages was given in configure.in. |
| 17763 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17764 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17765 | # Compute POFILES |
| 17766 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 17767 | # Compute UPDATEPOFILES |
| 17768 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 17769 | # Compute DUMMYPOFILES |
| 17770 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 17771 | # Compute GMOFILES |
| 17772 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17773 | case "$ac_given_srcdir" in |
| 17774 | .) srcdirpre= ;; |
| 17775 | *) srcdirpre='$(srcdir)/' ;; |
| 17776 | esac |
| 17777 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17778 | UPDATEPOFILES= |
| 17779 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17780 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17781 | for lang in $ALL_LINGUAS; do |
| 17782 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17783 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 17784 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17785 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17786 | done |
| 17787 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 17788 | # environment variable. |
| 17789 | INST_LINGUAS= |
| 17790 | if test -n "$ALL_LINGUAS"; then |
| 17791 | for presentlang in $ALL_LINGUAS; do |
| 17792 | useit=no |
| 17793 | if test "%UNSET%" != "$LINGUAS"; then |
| 17794 | desiredlanguages="$LINGUAS" |
| 17795 | else |
| 17796 | desiredlanguages="$ALL_LINGUAS" |
| 17797 | fi |
| 17798 | for desiredlang in $desiredlanguages; do |
| 17799 | # Use the presentlang catalog if desiredlang is |
| 17800 | # a. equal to presentlang, or |
| 17801 | # b. a variant of presentlang (because in this case, |
| 17802 | # presentlang can be used as a fallback for messages |
| 17803 | # which are not translated in the desiredlang catalog). |
| 17804 | case "$desiredlang" in |
| 17805 | "$presentlang"*) useit=yes;; |
| 17806 | esac |
| 17807 | done |
| 17808 | if test $useit = yes; then |
| 17809 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 17810 | fi |
| 17811 | done |
| 17812 | fi |
| 17813 | CATALOGS= |
| 17814 | if test -n "$INST_LINGUAS"; then |
| 17815 | for lang in $INST_LINGUAS; do |
| 17816 | CATALOGS="$CATALOGS $lang.gmo" |
| 17817 | done |
| 17818 | fi |
| 17819 | 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] | 17820 | 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] | 17821 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 17822 | if test -f "$f"; then |
| 17823 | case "$f" in |
| 17824 | *.orig | *.bak | *~) ;; |
| 17825 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 17826 | esac |
| 17827 | fi |
| 17828 | done |
| 17829 | fi |
| 17830 | ;; |
| 17831 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17832 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17833 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17834 | esac |
| 17835 | done # for ac_tag |
| 17836 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17837 | |
| 17838 | { (exit 0); exit 0; } |
| 17839 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17840 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17841 | ac_clean_files=$ac_clean_files_save |
| 17842 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17843 | test $ac_write_fail = 0 || |
| 17844 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 17845 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 17846 | { (exit 1); exit 1; }; } |
| 17847 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17848 | |
| 17849 | # configure is writing to config.log, and then calls config.status. |
| 17850 | # config.status does its own redirection, appending to config.log. |
| 17851 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17852 | # by configure, so config.status won't be able to write to it; its |
| 17853 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17854 | # effectively closing config.log, so it can be properly (re)opened and |
| 17855 | # appended to by config.status. When coming back to configure, we |
| 17856 | # need to make the FD available again. |
| 17857 | if test "$no_create" != yes; then |
| 17858 | ac_cs_success=: |
| 17859 | ac_config_status_args= |
| 17860 | test "$silent" = yes && |
| 17861 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17862 | exec 5>/dev/null |
| 17863 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17864 | exec 5>>config.log |
| 17865 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17866 | # would make configure fail if this is the last instruction. |
| 17867 | $ac_cs_success || { (exit 1); exit 1; } |
| 17868 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 17869 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17870 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17871 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17872 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17873 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 17874 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |