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 |
| 677 | BINARY_TYPE |
| 678 | POSUB |
| 679 | LTLIBINTL |
| 680 | LIBINTL |
| 681 | INTLLIBS |
| 682 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 683 | INTLOBJS |
| 684 | GENCAT |
| 685 | INSTOBJEXT |
| 686 | DATADIRNAME |
| 687 | CATOBJEXT |
| 688 | USE_INCLUDED_LIBINTL |
| 689 | BUILD_INCLUDED_LIBINTL |
| 690 | INTLBISON |
| 691 | LTLIBICONV |
| 692 | LIBICONV |
| 693 | HAVE_WPRINTF |
| 694 | HAVE_SNPRINTF |
| 695 | HAVE_ASPRINTF |
| 696 | HAVE_POSIX_PRINTF |
| 697 | GLIBC21 |
| 698 | ALLOCA |
| 699 | RANLIB |
| 700 | MSGMERGE |
| 701 | XGETTEXT |
| 702 | GMSGFMT |
| 703 | MSGFMT |
| 704 | USE_NLS |
| 705 | MKINSTALLDIRS |
| 706 | INSTALL_DATA |
| 707 | INSTALL_SCRIPT |
| 708 | INSTALL_PROGRAM |
| 709 | SET_MAKE |
| 710 | VERSION |
| 711 | PACKAGE |
| 712 | GETTEXT_PACKAGE |
| 713 | UUIDD_CMT |
| 714 | E2INITRD_MAN |
| 715 | E2INITRD_PROG |
| 716 | FSCK_MAN |
| 717 | FSCK_PROG |
| 718 | RESIZER_CMT |
| 719 | IMAGER_CMT |
| 720 | DEBUGFS_CMT |
| 721 | BLKID_CMT |
| 722 | DEPPROFILED_LIBBLKID |
| 723 | PROFILED_LIBBLKID |
| 724 | DEPSTATIC_LIBBLKID |
| 725 | STATIC_LIBBLKID |
| 726 | DEPLIBBLKID |
| 727 | LIBBLKID |
| 728 | UUID_CMT |
| 729 | DEPPROFILED_LIBUUID |
| 730 | PROFILED_LIBUUID |
| 731 | DEPSTATIC_LIBUUID |
| 732 | STATIC_LIBUUID |
| 733 | DEPLIBUUID |
| 734 | LIBUUID |
| 735 | PKG_CONFIG |
| 736 | TEST_IO_CMT |
| 737 | PRIVATE_LIBS_CMT |
| 738 | LDFLAG_DYNAMIC |
| 739 | PROFILED_LIB_EXT |
| 740 | STATIC_LIB_EXT |
| 741 | LIB_EXT |
| 742 | CHECKER_CMT |
| 743 | PROFILE_CMT |
| 744 | BSDLIB_CMT |
| 745 | ELF_CMT |
| 746 | HTREE_CMT |
| 747 | MAINTAINER_CMT |
| 748 | LINUX_INCLUDE |
| 749 | EGREP |
| 750 | GREP |
| 751 | LD |
| 752 | CPP |
| 753 | OBJEXT |
| 754 | EXEEXT |
| 755 | ac_ct_CC |
| 756 | CPPFLAGS |
| 757 | LDFLAGS |
| 758 | CFLAGS |
| 759 | CC |
| 760 | host_os |
| 761 | host_vendor |
| 762 | host_cpu |
| 763 | host |
| 764 | build_os |
| 765 | build_vendor |
| 766 | build_cpu |
| 767 | build |
| 768 | E2FSPROGS_PKGVER |
| 769 | E2FSPROGS_VERSION |
| 770 | E2FSPROGS_DAY |
| 771 | E2FSPROGS_MONTH |
| 772 | E2FSPROGS_YEAR |
| 773 | target_alias |
| 774 | host_alias |
| 775 | build_alias |
| 776 | LIBS |
| 777 | ECHO_T |
| 778 | ECHO_N |
| 779 | ECHO_C |
| 780 | DEFS |
| 781 | mandir |
| 782 | localedir |
| 783 | libdir |
| 784 | psdir |
| 785 | pdfdir |
| 786 | dvidir |
| 787 | htmldir |
| 788 | infodir |
| 789 | docdir |
| 790 | oldincludedir |
| 791 | includedir |
| 792 | localstatedir |
| 793 | sharedstatedir |
| 794 | sysconfdir |
| 795 | datadir |
| 796 | datarootdir |
| 797 | libexecdir |
| 798 | sbindir |
| 799 | bindir |
| 800 | program_transform_name |
| 801 | prefix |
| 802 | exec_prefix |
| 803 | PACKAGE_BUGREPORT |
| 804 | PACKAGE_STRING |
| 805 | PACKAGE_VERSION |
| 806 | PACKAGE_TARNAME |
| 807 | PACKAGE_NAME |
| 808 | PATH_SEPARATOR |
| 809 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 810 | ac_subst_files='MCONFIG |
| 811 | MAKEFILE_ELF |
| 812 | MAKEFILE_BSDLIB |
| 813 | MAKEFILE_PROFILE |
| 814 | MAKEFILE_CHECKER |
| 815 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 816 | ASM_TYPES_HEADER |
| 817 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 818 | ac_user_opts=' |
| 819 | enable_option_checking |
| 820 | with_diet_libc |
| 821 | with_cc |
| 822 | with_linker |
| 823 | with_ccopts |
| 824 | with_ldopts |
| 825 | with_root_prefix |
| 826 | enable_maintainer_mode |
| 827 | enable_compression |
| 828 | enable_htree |
| 829 | enable_elf_shlibs |
| 830 | enable_bsd_shlibs |
| 831 | enable_profile |
| 832 | enable_checker |
| 833 | enable_jbd_debug |
| 834 | enable_blkid_debug |
| 835 | enable_testio_debug |
| 836 | enable_libuuid |
| 837 | enable_libblkid |
| 838 | enable_debugfs |
| 839 | enable_imager |
| 840 | enable_resizer |
| 841 | enable_fsck |
| 842 | enable_e2initrd_helper |
| 843 | enable_tls |
| 844 | enable_uuidd |
| 845 | enable_nls |
| 846 | with_gnu_ld |
| 847 | enable_rpath |
| 848 | with_libiconv_prefix |
| 849 | with_included_gettext |
| 850 | with_libintl_prefix |
| 851 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 852 | ac_precious_vars='build_alias |
| 853 | host_alias |
| 854 | target_alias |
| 855 | CC |
| 856 | CFLAGS |
| 857 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 858 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 859 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 860 | CPP |
| 861 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 862 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 863 | |
| 864 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 865 | ac_init_help= |
| 866 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 867 | ac_unrecognized_opts= |
| 868 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 869 | # The variables have the same names as the options, with |
| 870 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 871 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 872 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 873 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 874 | no_recursion= |
| 875 | prefix=NONE |
| 876 | program_prefix=NONE |
| 877 | program_suffix=NONE |
| 878 | program_transform_name=s,x,x, |
| 879 | silent= |
| 880 | site= |
| 881 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 882 | verbose= |
| 883 | x_includes=NONE |
| 884 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 885 | |
| 886 | # Installation directory options. |
| 887 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 888 | # and all the variables that are supposed to be based on exec_prefix |
| 889 | # by default will actually change. |
| 890 | # 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] | 891 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 892 | bindir='${exec_prefix}/bin' |
| 893 | sbindir='${exec_prefix}/sbin' |
| 894 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 895 | datarootdir='${prefix}/share' |
| 896 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 897 | sysconfdir='${prefix}/etc' |
| 898 | sharedstatedir='${prefix}/com' |
| 899 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 900 | includedir='${prefix}/include' |
| 901 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 902 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 903 | infodir='${datarootdir}/info' |
| 904 | htmldir='${docdir}' |
| 905 | dvidir='${docdir}' |
| 906 | pdfdir='${docdir}' |
| 907 | psdir='${docdir}' |
| 908 | libdir='${exec_prefix}/lib' |
| 909 | localedir='${datarootdir}/locale' |
| 910 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 912 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 913 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | for ac_option |
| 915 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | # If the previous option needs an argument, assign it. |
| 917 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 918 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | ac_prev= |
| 920 | continue |
| 921 | fi |
| 922 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 923 | case $ac_option in |
| 924 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 925 | *) ac_optarg=yes ;; |
| 926 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 927 | |
| 928 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 930 | case $ac_dashdash$ac_option in |
| 931 | --) |
| 932 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 933 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 935 | ac_prev=bindir ;; |
| 936 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 937 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 938 | |
| 939 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 940 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 941 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 942 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 943 | |
| 944 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 945 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 946 | ac_prev=cache_file ;; |
| 947 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 948 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 949 | cache_file=$ac_optarg ;; |
| 950 | |
| 951 | --config-cache | -C) |
| 952 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 953 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 954 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 955 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 956 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 957 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 958 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 959 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 960 | | --dataroo | --dataro | --datar) |
| 961 | ac_prev=datarootdir ;; |
| 962 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 963 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 964 | datarootdir=$ac_optarg ;; |
| 965 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 966 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 967 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 968 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 970 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 971 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 972 | ac_useropt_orig=$ac_useropt |
| 973 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 974 | case $ac_user_opts in |
| 975 | *" |
| 976 | "enable_$ac_useropt" |
| 977 | "*) ;; |
| 978 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 979 | ac_unrecognized_sep=', ';; |
| 980 | esac |
| 981 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 982 | |
| 983 | -docdir | --docdir | --docdi | --doc | --do) |
| 984 | ac_prev=docdir ;; |
| 985 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 986 | docdir=$ac_optarg ;; |
| 987 | |
| 988 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 989 | ac_prev=dvidir ;; |
| 990 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 991 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | |
| 993 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 994 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 996 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 997 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 998 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 999 | ac_useropt_orig=$ac_useropt |
| 1000 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1001 | case $ac_user_opts in |
| 1002 | *" |
| 1003 | "enable_$ac_useropt" |
| 1004 | "*) ;; |
| 1005 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1006 | ac_unrecognized_sep=', ';; |
| 1007 | esac |
| 1008 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1009 | |
| 1010 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1011 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1012 | | --exec | --exe | --ex) |
| 1013 | ac_prev=exec_prefix ;; |
| 1014 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1015 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1016 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1017 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1018 | |
| 1019 | -gas | --gas | --ga | --g) |
| 1020 | # Obsolete; use --with-gas. |
| 1021 | with_gas=yes ;; |
| 1022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1023 | -help | --help | --hel | --he | -h) |
| 1024 | ac_init_help=long ;; |
| 1025 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1026 | ac_init_help=recursive ;; |
| 1027 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1028 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1029 | |
| 1030 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1031 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1032 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1033 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1035 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1036 | ac_prev=htmldir ;; |
| 1037 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1038 | | --ht=*) |
| 1039 | htmldir=$ac_optarg ;; |
| 1040 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1041 | -includedir | --includedir | --includedi | --included | --include \ |
| 1042 | | --includ | --inclu | --incl | --inc) |
| 1043 | ac_prev=includedir ;; |
| 1044 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1045 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1046 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1047 | |
| 1048 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1049 | ac_prev=infodir ;; |
| 1050 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1051 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1052 | |
| 1053 | -libdir | --libdir | --libdi | --libd) |
| 1054 | ac_prev=libdir ;; |
| 1055 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1056 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1057 | |
| 1058 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1059 | | --libexe | --libex | --libe) |
| 1060 | ac_prev=libexecdir ;; |
| 1061 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1062 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1063 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1065 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1066 | ac_prev=localedir ;; |
| 1067 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1068 | localedir=$ac_optarg ;; |
| 1069 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1070 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1071 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1072 | ac_prev=localstatedir ;; |
| 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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1075 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1076 | |
| 1077 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1078 | ac_prev=mandir ;; |
| 1079 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1081 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1082 | -nfp | --nfp | --nf) |
| 1083 | # Obsolete; use --without-fp. |
| 1084 | with_fp=no ;; |
| 1085 | |
| 1086 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1088 | no_create=yes ;; |
| 1089 | |
| 1090 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1091 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1092 | no_recursion=yes ;; |
| 1093 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1094 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1095 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1096 | | --oldin | --oldi | --old | --ol | --o) |
| 1097 | ac_prev=oldincludedir ;; |
| 1098 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1099 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1100 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1101 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1102 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1103 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1104 | ac_prev=prefix ;; |
| 1105 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1106 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1107 | |
| 1108 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1109 | | --program-pre | --program-pr | --program-p) |
| 1110 | ac_prev=program_prefix ;; |
| 1111 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1112 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1113 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1114 | |
| 1115 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1116 | | --program-suf | --program-su | --program-s) |
| 1117 | ac_prev=program_suffix ;; |
| 1118 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1119 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1121 | |
| 1122 | -program-transform-name | --program-transform-name \ |
| 1123 | | --program-transform-nam | --program-transform-na \ |
| 1124 | | --program-transform-n | --program-transform- \ |
| 1125 | | --program-transform | --program-transfor \ |
| 1126 | | --program-transfo | --program-transf \ |
| 1127 | | --program-trans | --program-tran \ |
| 1128 | | --progr-tra | --program-tr | --program-t) |
| 1129 | ac_prev=program_transform_name ;; |
| 1130 | -program-transform-name=* | --program-transform-name=* \ |
| 1131 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1132 | | --program-transform-n=* | --program-transform-=* \ |
| 1133 | | --program-transform=* | --program-transfor=* \ |
| 1134 | | --program-transfo=* | --program-transf=* \ |
| 1135 | | --program-trans=* | --program-tran=* \ |
| 1136 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1137 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1138 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1139 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1140 | ac_prev=pdfdir ;; |
| 1141 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1142 | pdfdir=$ac_optarg ;; |
| 1143 | |
| 1144 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1145 | ac_prev=psdir ;; |
| 1146 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1147 | psdir=$ac_optarg ;; |
| 1148 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1149 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1150 | | -silent | --silent | --silen | --sile | --sil) |
| 1151 | silent=yes ;; |
| 1152 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1153 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1154 | ac_prev=sbindir ;; |
| 1155 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1156 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1157 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1158 | |
| 1159 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1160 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1161 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1162 | | --sha | --sh) |
| 1163 | ac_prev=sharedstatedir ;; |
| 1164 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1165 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1166 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1167 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1168 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1169 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1170 | -site | --site | --sit) |
| 1171 | ac_prev=site ;; |
| 1172 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1173 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1174 | |
| 1175 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1176 | ac_prev=srcdir ;; |
| 1177 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1178 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1180 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1181 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1182 | ac_prev=sysconfdir ;; |
| 1183 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1184 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1185 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1186 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1187 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1188 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1189 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1190 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1191 | |
| 1192 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1193 | verbose=yes ;; |
| 1194 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1195 | -version | --version | --versio | --versi | --vers | -V) |
| 1196 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1197 | |
| 1198 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1199 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1200 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1201 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1202 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1203 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1204 | ac_useropt_orig=$ac_useropt |
| 1205 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1206 | case $ac_user_opts in |
| 1207 | *" |
| 1208 | "with_$ac_useropt" |
| 1209 | "*) ;; |
| 1210 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1211 | ac_unrecognized_sep=', ';; |
| 1212 | esac |
| 1213 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1214 | |
| 1215 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1217 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1219 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1220 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1221 | ac_useropt_orig=$ac_useropt |
| 1222 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1223 | case $ac_user_opts in |
| 1224 | *" |
| 1225 | "with_$ac_useropt" |
| 1226 | "*) ;; |
| 1227 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1228 | ac_unrecognized_sep=', ';; |
| 1229 | esac |
| 1230 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1231 | |
| 1232 | --x) |
| 1233 | # Obsolete; use --with-x. |
| 1234 | with_x=yes ;; |
| 1235 | |
| 1236 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1237 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1238 | ac_prev=x_includes ;; |
| 1239 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1240 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1241 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1242 | |
| 1243 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1244 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1245 | ac_prev=x_libraries ;; |
| 1246 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1247 | | --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] | 1248 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1249 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1250 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1251 | Try \`$0 --help' for more information." >&2 |
| 1252 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1253 | ;; |
| 1254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1255 | *=*) |
| 1256 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1257 | # Reject names that are not valid shell variable names. |
| 1258 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1259 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1260 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1262 | export $ac_envvar ;; |
| 1263 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1264 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1265 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1266 | $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] | 1267 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1268 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1269 | : ${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] | 1270 | ;; |
| 1271 | |
| 1272 | esac |
| 1273 | done |
| 1274 | |
| 1275 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1276 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1277 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1278 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1279 | fi |
| 1280 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1281 | if test -n "$ac_unrecognized_opts"; then |
| 1282 | case $enable_option_checking in |
| 1283 | no) ;; |
| 1284 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1285 | { (exit 1); exit 1; }; } ;; |
| 1286 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1287 | esac |
| 1288 | fi |
| 1289 | |
| 1290 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1291 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1292 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1293 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1294 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1295 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1296 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1297 | # Remove trailing slashes. |
| 1298 | case $ac_val in |
| 1299 | */ ) |
| 1300 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1301 | eval $ac_var=\$ac_val;; |
| 1302 | esac |
| 1303 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1304 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1305 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1306 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1307 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1308 | { $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] | 1309 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1310 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1312 | # There might be people who depend on the old broken behavior: `$host' |
| 1313 | # used to hold the argument of --host etc. |
| 1314 | # FIXME: To remove some day. |
| 1315 | build=$build_alias |
| 1316 | host=$host_alias |
| 1317 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1318 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1319 | # FIXME: To remove some day. |
| 1320 | if test "x$host_alias" != x; then |
| 1321 | if test "x$build_alias" = x; then |
| 1322 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1323 | $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] | 1324 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1325 | elif test "x$build_alias" != "x$host_alias"; then |
| 1326 | cross_compiling=yes |
| 1327 | fi |
| 1328 | fi |
| 1329 | |
| 1330 | ac_tool_prefix= |
| 1331 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1332 | |
| 1333 | test "$silent" = yes && exec 6>/dev/null |
| 1334 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1336 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1337 | ac_ls_di=`ls -di .` && |
| 1338 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1339 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1340 | { (exit 1); exit 1; }; } |
| 1341 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1342 | { $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] | 1343 | { (exit 1); exit 1; }; } |
| 1344 | |
| 1345 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1346 | # Find the source files, if location was not specified. |
| 1347 | if test -z "$srcdir"; then |
| 1348 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1349 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1350 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1351 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1352 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1353 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1354 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1355 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1357 | s//\1/ |
| 1358 | q |
| 1359 | } |
| 1360 | /^X\(\/\/\)[^/].*/{ |
| 1361 | s//\1/ |
| 1362 | q |
| 1363 | } |
| 1364 | /^X\(\/\/\)$/{ |
| 1365 | s//\1/ |
| 1366 | q |
| 1367 | } |
| 1368 | /^X\(\/\).*/{ |
| 1369 | s//\1/ |
| 1370 | q |
| 1371 | } |
| 1372 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1373 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1374 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1375 | srcdir=.. |
| 1376 | fi |
| 1377 | else |
| 1378 | ac_srcdir_defaulted=no |
| 1379 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1380 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1381 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1382 | { $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] | 1383 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1384 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1385 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1386 | ac_abs_confdir=`( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1387 | 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] | 1388 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1389 | pwd)` |
| 1390 | # When building in place, set srcdir=. |
| 1391 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1392 | srcdir=. |
| 1393 | fi |
| 1394 | # Remove unnecessary trailing slashes from srcdir. |
| 1395 | # Double slashes in file names in object file debugging info |
| 1396 | # mess up M-x gdb in Emacs. |
| 1397 | case $srcdir in |
| 1398 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1399 | esac |
| 1400 | for ac_var in $ac_precious_vars; do |
| 1401 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1402 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1403 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1404 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1405 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1407 | # |
| 1408 | # Report the --help message. |
| 1409 | # |
| 1410 | if test "$ac_init_help" = "long"; then |
| 1411 | # Omit some internal or obsolete options to make the list less imposing. |
| 1412 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1413 | cat <<_ACEOF |
| 1414 | \`configure' configures this package to adapt to many kinds of systems. |
| 1415 | |
| 1416 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1417 | |
| 1418 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1419 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1420 | |
| 1421 | Defaults for the options are specified in brackets. |
| 1422 | |
| 1423 | Configuration: |
| 1424 | -h, --help display this help and exit |
| 1425 | --help=short display options specific to this package |
| 1426 | --help=recursive display the short help of all the included packages |
| 1427 | -V, --version display version information and exit |
| 1428 | -q, --quiet, --silent do not print \`checking...' messages |
| 1429 | --cache-file=FILE cache test results in FILE [disabled] |
| 1430 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1431 | -n, --no-create do not create output files |
| 1432 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1433 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1434 | Installation directories: |
| 1435 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1436 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1438 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | |
| 1440 | By default, \`make install' will install all the files in |
| 1441 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1442 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1443 | for instance \`--prefix=\$HOME'. |
| 1444 | |
| 1445 | For better control, use the options below. |
| 1446 | |
| 1447 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1448 | --bindir=DIR user executables [EPREFIX/bin] |
| 1449 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1450 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1451 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1452 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1453 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1454 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1455 | --includedir=DIR C header files [PREFIX/include] |
| 1456 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1457 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1458 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1459 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1460 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1461 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1462 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1463 | --htmldir=DIR html documentation [DOCDIR] |
| 1464 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1465 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1466 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1467 | _ACEOF |
| 1468 | |
| 1469 | cat <<\_ACEOF |
| 1470 | |
| 1471 | System types: |
| 1472 | --build=BUILD configure for building on BUILD [guessed] |
| 1473 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1474 | _ACEOF |
| 1475 | fi |
| 1476 | |
| 1477 | if test -n "$ac_init_help"; then |
| 1478 | |
| 1479 | cat <<\_ACEOF |
| 1480 | |
| 1481 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1482 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1484 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1485 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1486 | --enable-compression enable EXPERIMENTAL compression support |
| 1487 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1488 | --enable-elf-shlibs select ELF shared libraries |
| 1489 | --enable-bsd-shlibs select BSD shared libraries |
| 1490 | --enable-profile build profiling libraries |
| 1491 | --enable-checker build checker libraries |
| 1492 | --enable-jbd-debug enable journal debugging |
| 1493 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1494 | --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^] | 1495 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1496 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1497 | --disable-debugfs disable support of debugfs program |
| 1498 | --disable-imager disable support of e2image program |
| 1499 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1500 | --enable-fsck build fsck wrapper program |
| 1501 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1502 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1503 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1504 | --disable-nls do not use Native Language Support |
| 1505 | --disable-rpath do not hardcode runtime library paths |
| 1506 | |
| 1507 | Optional Packages: |
| 1508 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1509 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1510 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1511 | --with-cc=COMPILER select compiler to use |
| 1512 | --with-linker=LINKER select linker to use |
| 1513 | --with-ccopts=CCOPTS select compiler command line options |
| 1514 | --with-ldopts=LDOPTS select linker command line options |
| 1515 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1516 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1517 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1518 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1519 | --with-included-gettext use the GNU gettext library included here |
| 1520 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1521 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1522 | |
| 1523 | Some influential environment variables: |
| 1524 | CC C compiler command |
| 1525 | CFLAGS C compiler flags |
| 1526 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1527 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1528 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1529 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1530 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1531 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1532 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1533 | |
| 1534 | Use these variables to override the choices made by `configure' or to help |
| 1535 | it to find libraries and programs with nonstandard names/locations. |
| 1536 | |
| 1537 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1538 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1539 | fi |
| 1540 | |
| 1541 | if test "$ac_init_help" = "recursive"; then |
| 1542 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1543 | 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^] | 1544 | test -d "$ac_dir" || |
| 1545 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1546 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | ac_builddir=. |
| 1548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1549 | case "$ac_dir" in |
| 1550 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1551 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1552 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1553 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1554 | 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] | 1555 | case $ac_top_builddir_sub in |
| 1556 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1557 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1558 | esac ;; |
| 1559 | esac |
| 1560 | ac_abs_top_builddir=$ac_pwd |
| 1561 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1562 | # for backward compatibility: |
| 1563 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | |
| 1565 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1566 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1567 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1568 | ac_top_srcdir=$ac_top_builddir_sub |
| 1569 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1570 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1571 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1572 | ac_top_srcdir=$srcdir |
| 1573 | ac_abs_top_srcdir=$srcdir ;; |
| 1574 | *) # Relative name. |
| 1575 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1576 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1577 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1578 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1579 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1581 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1582 | # Check for guested configure. |
| 1583 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1584 | echo && |
| 1585 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1586 | elif test -f "$ac_srcdir/configure"; then |
| 1587 | echo && |
| 1588 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1589 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1590 | $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] | 1591 | fi || ac_status=$? |
| 1592 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1593 | done |
| 1594 | fi |
| 1595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1596 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1597 | if $ac_init_version; then |
| 1598 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1599 | configure |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1600 | generated by GNU Autoconf 2.63 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1602 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1603 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1604 | This configure script is free software; the Free Software Foundation |
| 1605 | gives unlimited permission to copy, distribute and modify it. |
| 1606 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1607 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1608 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1609 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1610 | This file contains any messages produced by compilers while |
| 1611 | running configure, to aid debugging if configure makes a mistake. |
| 1612 | |
| 1613 | It was created by $as_me, which was |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1614 | generated by GNU Autoconf 2.63. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1615 | |
| 1616 | $ $0 $@ |
| 1617 | |
| 1618 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1619 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1620 | { |
| 1621 | cat <<_ASUNAME |
| 1622 | ## --------- ## |
| 1623 | ## Platform. ## |
| 1624 | ## --------- ## |
| 1625 | |
| 1626 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1627 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1628 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1629 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1630 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1631 | |
| 1632 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1633 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1634 | |
| 1635 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1636 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1637 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1638 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1639 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1640 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1641 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1642 | |
| 1643 | _ASUNAME |
| 1644 | |
| 1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1646 | for as_dir in $PATH |
| 1647 | do |
| 1648 | IFS=$as_save_IFS |
| 1649 | test -z "$as_dir" && as_dir=. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1650 | $as_echo "PATH: $as_dir" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1651 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1652 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1653 | |
| 1654 | } >&5 |
| 1655 | |
| 1656 | cat >&5 <<_ACEOF |
| 1657 | |
| 1658 | |
| 1659 | ## ----------- ## |
| 1660 | ## Core tests. ## |
| 1661 | ## ----------- ## |
| 1662 | |
| 1663 | _ACEOF |
| 1664 | |
| 1665 | |
| 1666 | # Keep a trace of the command line. |
| 1667 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1668 | # Strip out --silent because we don't want to record it for future runs. |
| 1669 | # Also quote any args containing shell meta-characters. |
| 1670 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1671 | ac_configure_args= |
| 1672 | ac_configure_args0= |
| 1673 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1674 | ac_must_keep_next=false |
| 1675 | for ac_pass in 1 2 |
| 1676 | do |
| 1677 | for ac_arg |
| 1678 | do |
| 1679 | case $ac_arg in |
| 1680 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1682 | | -silent | --silent | --silen | --sile | --sil) |
| 1683 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1684 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1685 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1686 | esac |
| 1687 | case $ac_pass in |
| 1688 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1689 | 2) |
| 1690 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1691 | if test $ac_must_keep_next = true; then |
| 1692 | ac_must_keep_next=false # Got value, back to normal. |
| 1693 | else |
| 1694 | case $ac_arg in |
| 1695 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1696 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1697 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1698 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1699 | case "$ac_configure_args0 " in |
| 1700 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1701 | esac |
| 1702 | ;; |
| 1703 | -* ) ac_must_keep_next=true ;; |
| 1704 | esac |
| 1705 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1706 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1707 | ;; |
| 1708 | esac |
| 1709 | done |
| 1710 | done |
| 1711 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1712 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1713 | |
| 1714 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1715 | # config.log. We remove comments because anyway the quotes in there |
| 1716 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1717 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1718 | # 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] | 1719 | trap 'exit_status=$? |
| 1720 | # Save into config.log some information that might help in debugging. |
| 1721 | { |
| 1722 | echo |
| 1723 | |
| 1724 | cat <<\_ASBOX |
| 1725 | ## ---------------- ## |
| 1726 | ## Cache variables. ## |
| 1727 | ## ---------------- ## |
| 1728 | _ASBOX |
| 1729 | echo |
| 1730 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1731 | ( |
| 1732 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1733 | eval ac_val=\$$ac_var |
| 1734 | case $ac_val in #( |
| 1735 | *${as_nl}*) |
| 1736 | case $ac_var in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1737 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1738 | $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] | 1739 | esac |
| 1740 | case $ac_var in #( |
| 1741 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1742 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1743 | *) $as_unset $ac_var ;; |
| 1744 | esac ;; |
| 1745 | esac |
| 1746 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1747 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1748 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1749 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1750 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1751 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1752 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1753 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1754 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1755 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1756 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1757 | esac | |
| 1758 | sort |
| 1759 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1760 | echo |
| 1761 | |
| 1762 | cat <<\_ASBOX |
| 1763 | ## ----------------- ## |
| 1764 | ## Output variables. ## |
| 1765 | ## ----------------- ## |
| 1766 | _ASBOX |
| 1767 | echo |
| 1768 | for ac_var in $ac_subst_vars |
| 1769 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1770 | eval ac_val=\$$ac_var |
| 1771 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1772 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1773 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1774 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1775 | done | sort |
| 1776 | echo |
| 1777 | |
| 1778 | if test -n "$ac_subst_files"; then |
| 1779 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1780 | ## ------------------- ## |
| 1781 | ## File substitutions. ## |
| 1782 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1783 | _ASBOX |
| 1784 | echo |
| 1785 | for ac_var in $ac_subst_files |
| 1786 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1787 | eval ac_val=\$$ac_var |
| 1788 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1789 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1790 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1791 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1792 | done | sort |
| 1793 | echo |
| 1794 | fi |
| 1795 | |
| 1796 | if test -s confdefs.h; then |
| 1797 | cat <<\_ASBOX |
| 1798 | ## ----------- ## |
| 1799 | ## confdefs.h. ## |
| 1800 | ## ----------- ## |
| 1801 | _ASBOX |
| 1802 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1803 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1804 | echo |
| 1805 | fi |
| 1806 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1807 | $as_echo "$as_me: caught signal $ac_signal" |
| 1808 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1809 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1810 | rm -f core *.core core.conftest.* && |
| 1811 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1812 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1813 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1814 | for ac_signal in 1 2 13 15; do |
| 1815 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1816 | done |
| 1817 | ac_signal=0 |
| 1818 | |
| 1819 | # 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] | 1820 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1821 | |
| 1822 | # Predefined preprocessor variables. |
| 1823 | |
| 1824 | cat >>confdefs.h <<_ACEOF |
| 1825 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1826 | _ACEOF |
| 1827 | |
| 1828 | |
| 1829 | cat >>confdefs.h <<_ACEOF |
| 1830 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1831 | _ACEOF |
| 1832 | |
| 1833 | |
| 1834 | cat >>confdefs.h <<_ACEOF |
| 1835 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1836 | _ACEOF |
| 1837 | |
| 1838 | |
| 1839 | cat >>confdefs.h <<_ACEOF |
| 1840 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1841 | _ACEOF |
| 1842 | |
| 1843 | |
| 1844 | cat >>confdefs.h <<_ACEOF |
| 1845 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1846 | _ACEOF |
| 1847 | |
| 1848 | |
| 1849 | # 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^] | 1850 | # Prefer an explicitly selected file to automatically selected ones. |
| 1851 | ac_site_file1=NONE |
| 1852 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1853 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1854 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1855 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1856 | ac_site_file1=$prefix/share/config.site |
| 1857 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1858 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1859 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1860 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1861 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1862 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1863 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1864 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1865 | if test -r "$ac_site_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1866 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1867 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1868 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1869 | . "$ac_site_file" |
| 1870 | fi |
| 1871 | done |
| 1872 | |
| 1873 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1874 | # Some versions of bash will fail to source /dev/null (special |
| 1875 | # files actually), so we avoid doing that. |
| 1876 | if test -f "$cache_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1877 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1878 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1879 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1880 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1881 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1882 | esac |
| 1883 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1884 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1885 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1886 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1887 | >$cache_file |
| 1888 | fi |
| 1889 | |
| 1890 | # Check that the precious variables saved in the cache have kept the same |
| 1891 | # value. |
| 1892 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1893 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1894 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1895 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1896 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1897 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1898 | case $ac_old_set,$ac_new_set in |
| 1899 | set,) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1900 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1901 | $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] | 1902 | ac_cache_corrupted=: ;; |
| 1903 | ,set) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1904 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1905 | $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] | 1906 | ac_cache_corrupted=: ;; |
| 1907 | ,);; |
| 1908 | *) |
| 1909 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1910 | # differences in whitespace do not lead to failure. |
| 1911 | ac_old_val_w=`echo x $ac_old_val` |
| 1912 | ac_new_val_w=`echo x $ac_new_val` |
| 1913 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1914 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1915 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1916 | ac_cache_corrupted=: |
| 1917 | else |
| 1918 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1919 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1920 | eval $ac_var=\$ac_old_val |
| 1921 | fi |
| 1922 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1923 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1924 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1925 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1926 | fi;; |
| 1927 | esac |
| 1928 | # Pass precious variables to config.status. |
| 1929 | if test "$ac_new_set" = set; then |
| 1930 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1931 | *\'*) 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] | 1932 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1933 | esac |
| 1934 | case " $ac_configure_args " in |
| 1935 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1936 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1937 | esac |
| 1938 | fi |
| 1939 | done |
| 1940 | if $ac_cache_corrupted; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1941 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1942 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1943 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1944 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1945 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1946 | $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] | 1947 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1948 | fi |
| 1949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | |
| 1963 | |
| 1964 | |
| 1965 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1966 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1967 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1971 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1972 | |
| 1973 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1974 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1975 | for ac_dir in config "$srcdir"/config; do |
| 1976 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1977 | ac_aux_dir=$ac_dir |
| 1978 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1979 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1980 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1981 | ac_aux_dir=$ac_dir |
| 1982 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1983 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1984 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1985 | ac_aux_dir=$ac_dir |
| 1986 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1987 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1988 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1989 | done |
| 1990 | if test -z "$ac_aux_dir"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 1991 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1992 | $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] | 1993 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1994 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1995 | |
| 1996 | # These three variables are undocumented and unsupported, |
| 1997 | # and are intended to be withdrawn in a future Autoconf release. |
| 1998 | # They can cause serious problems if a builder's source tree is in a directory |
| 1999 | # whose full name contains unusual characters. |
| 2000 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2001 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2002 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2003 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2004 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2005 | MCONFIG=./MCONFIG |
| 2006 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2007 | BINARY_TYPE=bin |
| 2008 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2009 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2010 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2011 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2012 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2013 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2014 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2015 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2016 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2017 | E2FSPROGS_YEAR=$YEAR |
| 2018 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2019 | E2FSPROGS_YEAR=19$YEAR |
| 2020 | else |
| 2021 | E2FSPROGS_YEAR=20$YEAR |
| 2022 | fi |
| 2023 | |
| 2024 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2025 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2026 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2027 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2028 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2029 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2030 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2031 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2032 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2033 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2034 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2035 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2036 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2037 | *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
| 2038 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2039 | esac |
| 2040 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2041 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2042 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2043 | |
| 2044 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2045 | |
| 2046 | case $E2FSPROGS_VERSION in |
| 2047 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2048 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2049 | ;; |
| 2050 | *) |
| 2051 | E2FSPROGS_PKGVER="$base_ver" |
| 2052 | ;; |
| 2053 | esac |
| 2054 | |
| 2055 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2056 | { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
| 2057 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
| 2058 | { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
| 2059 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2060 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2061 | |
| 2062 | |
| 2063 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2064 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2065 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2066 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2067 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2068 | $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] | 2069 | { (exit 1); exit 1; }; } |
| 2070 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2071 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
| 2072 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2073 | if test "${ac_cv_build+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2074 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2075 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2076 | ac_build_alias=$build_alias |
| 2077 | test "x$ac_build_alias" = x && |
| 2078 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2079 | test "x$ac_build_alias" = x && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2080 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2081 | $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] | 2082 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2083 | 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^] | 2084 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2085 | $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] | 2086 | { (exit 1); exit 1; }; } |
| 2087 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2088 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2090 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2091 | case $ac_cv_build in |
| 2092 | *-*-*) ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2093 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2094 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2095 | { (exit 1); exit 1; }; };; |
| 2096 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2097 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2098 | ac_save_IFS=$IFS; IFS='-' |
| 2099 | set x $ac_cv_build |
| 2100 | shift |
| 2101 | build_cpu=$1 |
| 2102 | build_vendor=$2 |
| 2103 | shift; shift |
| 2104 | # Remember, the first character of IFS is used to create $*, |
| 2105 | # except with old shells: |
| 2106 | build_os=$* |
| 2107 | IFS=$ac_save_IFS |
| 2108 | 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] | 2109 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2110 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2111 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 2112 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2113 | if test "${ac_cv_host+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2114 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2115 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2116 | if test "x$host_alias" = x; then |
| 2117 | ac_cv_host=$ac_cv_build |
| 2118 | else |
| 2119 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2120 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2121 | $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] | 2122 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2123 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2124 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2125 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2126 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2127 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2128 | case $ac_cv_host in |
| 2129 | *-*-*) ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2130 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2131 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2132 | { (exit 1); exit 1; }; };; |
| 2133 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2134 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2135 | ac_save_IFS=$IFS; IFS='-' |
| 2136 | set x $ac_cv_host |
| 2137 | shift |
| 2138 | host_cpu=$1 |
| 2139 | host_vendor=$2 |
| 2140 | shift; shift |
| 2141 | # Remember, the first character of IFS is used to create $*, |
| 2142 | # except with old shells: |
| 2143 | host_os=$* |
| 2144 | IFS=$ac_save_IFS |
| 2145 | 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] | 2146 | |
| 2147 | |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2148 | WITH_DIET_LIBC= |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2150 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2151 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2152 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2153 | WITH_DIET_LIBC=yes |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2154 | { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2155 | $as_echo "CC=$CC" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2156 | fi |
| 2157 | |
| 2158 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2159 | if test "${with_cc+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2160 | withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2161 | $as_echo "CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2162 | CC=$withval |
| 2163 | else |
| 2164 | if test -z "$CC" ; then CC=cc; fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2165 | { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2166 | $as_echo "CC defaults to $CC" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2167 | fi |
| 2168 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2169 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2170 | ac_ext=c |
| 2171 | ac_cpp='$CPP $CPPFLAGS' |
| 2172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2175 | if test -n "$ac_tool_prefix"; then |
| 2176 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2177 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2178 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2179 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2180 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2181 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2182 | else |
| 2183 | if test -n "$CC"; then |
| 2184 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2185 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2187 | for as_dir in $PATH |
| 2188 | do |
| 2189 | IFS=$as_save_IFS |
| 2190 | test -z "$as_dir" && as_dir=. |
| 2191 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2192 | 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] | 2193 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2194 | $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] | 2195 | break 2 |
| 2196 | fi |
| 2197 | done |
| 2198 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2199 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2200 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2201 | fi |
| 2202 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2203 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2204 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2205 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2206 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2207 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2208 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2209 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2210 | fi |
| 2211 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2212 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2213 | fi |
| 2214 | if test -z "$ac_cv_prog_CC"; then |
| 2215 | ac_ct_CC=$CC |
| 2216 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2217 | set dummy gcc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2218 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2219 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2220 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2221 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2222 | else |
| 2223 | if test -n "$ac_ct_CC"; then |
| 2224 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2225 | else |
| 2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2227 | for as_dir in $PATH |
| 2228 | do |
| 2229 | IFS=$as_save_IFS |
| 2230 | test -z "$as_dir" && as_dir=. |
| 2231 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2232 | 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] | 2233 | ac_cv_prog_ac_ct_CC="gcc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2234 | $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] | 2235 | break 2 |
| 2236 | fi |
| 2237 | done |
| 2238 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2239 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2240 | |
| 2241 | fi |
| 2242 | fi |
| 2243 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2244 | if test -n "$ac_ct_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2245 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2246 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2247 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2248 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2249 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2250 | fi |
| 2251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2252 | if test "x$ac_ct_CC" = x; then |
| 2253 | CC="" |
| 2254 | else |
| 2255 | case $cross_compiling:$ac_tool_warned in |
| 2256 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2257 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2258 | $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] | 2259 | ac_tool_warned=yes ;; |
| 2260 | esac |
| 2261 | CC=$ac_ct_CC |
| 2262 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2263 | else |
| 2264 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2265 | fi |
| 2266 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2267 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2268 | if test -n "$ac_tool_prefix"; then |
| 2269 | # 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] | 2270 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2271 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2272 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2273 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2274 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2275 | else |
| 2276 | if test -n "$CC"; then |
| 2277 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2278 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2280 | for as_dir in $PATH |
| 2281 | do |
| 2282 | IFS=$as_save_IFS |
| 2283 | test -z "$as_dir" && as_dir=. |
| 2284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2286 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2287 | $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] | 2288 | break 2 |
| 2289 | fi |
| 2290 | done |
| 2291 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2292 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | |
| 2294 | fi |
| 2295 | fi |
| 2296 | CC=$ac_cv_prog_CC |
| 2297 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2298 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2299 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2300 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2301 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2302 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2303 | fi |
| 2304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2306 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | fi |
| 2308 | if test -z "$CC"; then |
| 2309 | # Extract the first word of "cc", so it can be a program name with args. |
| 2310 | set dummy cc; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2311 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2312 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2313 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2314 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2315 | else |
| 2316 | if test -n "$CC"; then |
| 2317 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2318 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2319 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2321 | for as_dir in $PATH |
| 2322 | do |
| 2323 | IFS=$as_save_IFS |
| 2324 | test -z "$as_dir" && as_dir=. |
| 2325 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2326 | 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] | 2327 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2328 | ac_prog_rejected=yes |
| 2329 | continue |
| 2330 | fi |
| 2331 | ac_cv_prog_CC="cc" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2332 | $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] | 2333 | break 2 |
| 2334 | fi |
| 2335 | done |
| 2336 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2337 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2338 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2339 | if test $ac_prog_rejected = yes; then |
| 2340 | # We found a bogon in the path, so make sure we never use it. |
| 2341 | set dummy $ac_cv_prog_CC |
| 2342 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2343 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2344 | # We chose a different compiler from the bogus one. |
| 2345 | # However, it has the same basename, so the bogon will be chosen |
| 2346 | # first if we set CC to just the basename; use the full file name. |
| 2347 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2349 | fi |
| 2350 | fi |
| 2351 | fi |
| 2352 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2353 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2354 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2355 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2356 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2357 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2358 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2359 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2360 | fi |
| 2361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2362 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2363 | fi |
| 2364 | if test -z "$CC"; then |
| 2365 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2366 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2367 | do |
| 2368 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2369 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2370 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2371 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2372 | if test "${ac_cv_prog_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2373 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2374 | else |
| 2375 | if test -n "$CC"; then |
| 2376 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2377 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2379 | for as_dir in $PATH |
| 2380 | do |
| 2381 | IFS=$as_save_IFS |
| 2382 | test -z "$as_dir" && as_dir=. |
| 2383 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2384 | 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] | 2385 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2386 | $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] | 2387 | break 2 |
| 2388 | fi |
| 2389 | done |
| 2390 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2391 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2393 | fi |
| 2394 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2395 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2396 | if test -n "$CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2397 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2398 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2399 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2400 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2401 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2402 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2404 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2405 | test -n "$CC" && break |
| 2406 | done |
| 2407 | fi |
| 2408 | if test -z "$CC"; then |
| 2409 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2410 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2411 | do |
| 2412 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2413 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2414 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2415 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2416 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2417 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2418 | else |
| 2419 | if test -n "$ac_ct_CC"; then |
| 2420 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2421 | else |
| 2422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2423 | for as_dir in $PATH |
| 2424 | do |
| 2425 | IFS=$as_save_IFS |
| 2426 | test -z "$as_dir" && as_dir=. |
| 2427 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2428 | 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] | 2429 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2430 | $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] | 2431 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2432 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2433 | done |
| 2434 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2435 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2436 | |
| 2437 | fi |
| 2438 | fi |
| 2439 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2440 | if test -n "$ac_ct_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2441 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2442 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2443 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2444 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2445 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2446 | fi |
| 2447 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2448 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2449 | test -n "$ac_ct_CC" && break |
| 2450 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | if test "x$ac_ct_CC" = x; then |
| 2453 | CC="" |
| 2454 | else |
| 2455 | case $cross_compiling:$ac_tool_warned in |
| 2456 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2457 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2458 | $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] | 2459 | ac_tool_warned=yes ;; |
| 2460 | esac |
| 2461 | CC=$ac_ct_CC |
| 2462 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2464 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2465 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2466 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2467 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2468 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2470 | { { $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] | 2471 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2472 | $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] | 2473 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2474 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2475 | |
| 2476 | # Provide some information about the compiler. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2477 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2478 | set X $ac_compile |
| 2479 | ac_compiler=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2480 | { (ac_try="$ac_compiler --version >&5" |
| 2481 | case "(($ac_try" in |
| 2482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2483 | *) ac_try_echo=$ac_try;; |
| 2484 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2486 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2487 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2488 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2490 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2491 | { (ac_try="$ac_compiler -v >&5" |
| 2492 | case "(($ac_try" in |
| 2493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2494 | *) ac_try_echo=$ac_try;; |
| 2495 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2497 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2498 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2499 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2501 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2502 | { (ac_try="$ac_compiler -V >&5" |
| 2503 | case "(($ac_try" in |
| 2504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2505 | *) ac_try_echo=$ac_try;; |
| 2506 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2508 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2509 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2512 | (exit $ac_status); } |
| 2513 | |
| 2514 | cat >conftest.$ac_ext <<_ACEOF |
| 2515 | /* confdefs.h. */ |
| 2516 | _ACEOF |
| 2517 | cat confdefs.h >>conftest.$ac_ext |
| 2518 | cat >>conftest.$ac_ext <<_ACEOF |
| 2519 | /* end confdefs.h. */ |
| 2520 | |
| 2521 | int |
| 2522 | main () |
| 2523 | { |
| 2524 | |
| 2525 | ; |
| 2526 | return 0; |
| 2527 | } |
| 2528 | _ACEOF |
| 2529 | ac_clean_files_save=$ac_clean_files |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2530 | 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] | 2531 | # Try to create an executable without -o first, disregard a.out. |
| 2532 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2533 | # of exeext. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2534 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2535 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2536 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2537 | |
| 2538 | # The possible output files: |
| 2539 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2541 | ac_rmfiles= |
| 2542 | for ac_file in $ac_files |
| 2543 | do |
| 2544 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2545 | *.$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] | 2546 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2547 | esac |
| 2548 | done |
| 2549 | rm -f $ac_rmfiles |
| 2550 | |
| 2551 | if { (ac_try="$ac_link_default" |
| 2552 | case "(($ac_try" in |
| 2553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2554 | *) ac_try_echo=$ac_try;; |
| 2555 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2557 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2558 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2559 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2562 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2563 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2564 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2565 | # so that the user can short-circuit this test for compilers unknown to |
| 2566 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2567 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2568 | do |
| 2569 | test -f "$ac_file" || continue |
| 2570 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2571 | *.$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] | 2572 | ;; |
| 2573 | [ab].out ) |
| 2574 | # We found the default executable, but exeext='' is most |
| 2575 | # certainly right. |
| 2576 | break;; |
| 2577 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2578 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2579 | then :; else |
| 2580 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2581 | fi |
| 2582 | # We set ac_cv_exeext here because the later test for it is not |
| 2583 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2584 | # argument, so we may need to know it at that point already. |
| 2585 | # Even if this section looks crufty: it has the advantage of |
| 2586 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | break;; |
| 2588 | * ) |
| 2589 | break;; |
| 2590 | esac |
| 2591 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2592 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2594 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2595 | ac_file='' |
| 2596 | fi |
| 2597 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2598 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2599 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2600 | if test -z "$ac_file"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2601 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2603 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2604 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2605 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2606 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2607 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2608 | $as_echo "$as_me: error: C compiler cannot create executables |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2609 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2610 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2611 | fi |
| 2612 | |
| 2613 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | # 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] | 2616 | # the compiler is broken, or we cross compile. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2617 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2618 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2619 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2620 | # If not cross compiling, check that we can run a simple program. |
| 2621 | if test "$cross_compiling" != yes; then |
| 2622 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2623 | { (case "(($ac_try" in |
| 2624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2625 | *) ac_try_echo=$ac_try;; |
| 2626 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2628 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2629 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2630 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2632 | (exit $ac_status); }; }; then |
| 2633 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2634 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2635 | if test "$cross_compiling" = maybe; then |
| 2636 | cross_compiling=yes |
| 2637 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2638 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2640 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2641 | If you meant to cross compile, use \`--host'. |
| 2642 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2643 | $as_echo "$as_me: error: cannot run C compiled programs. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2644 | If you meant to cross compile, use \`--host'. |
| 2645 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2646 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2647 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2648 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2649 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2650 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2651 | $as_echo "yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2652 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2653 | 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] | 2654 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2655 | # 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] | 2656 | # the compiler is broken, or we cross compile. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2657 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2658 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2659 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2660 | $as_echo "$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2661 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2662 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2663 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2664 | if { (ac_try="$ac_link" |
| 2665 | case "(($ac_try" in |
| 2666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2667 | *) ac_try_echo=$ac_try;; |
| 2668 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2670 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2671 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2672 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2674 | (exit $ac_status); }; then |
| 2675 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2676 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2677 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2678 | # `rm'. |
| 2679 | for ac_file in conftest.exe conftest conftest.*; do |
| 2680 | test -f "$ac_file" || continue |
| 2681 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2682 | *.$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] | 2683 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2684 | break;; |
| 2685 | * ) break;; |
| 2686 | esac |
| 2687 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2688 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2689 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2691 | { { $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] | 2692 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2693 | $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] | 2694 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2695 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2696 | fi |
| 2697 | |
| 2698 | rm -f conftest$ac_cv_exeext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2699 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2700 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2701 | |
| 2702 | rm -f conftest.$ac_ext |
| 2703 | EXEEXT=$ac_cv_exeext |
| 2704 | ac_exeext=$EXEEXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2705 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2706 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2707 | if test "${ac_cv_objext+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2708 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2709 | else |
| 2710 | cat >conftest.$ac_ext <<_ACEOF |
| 2711 | /* confdefs.h. */ |
| 2712 | _ACEOF |
| 2713 | cat confdefs.h >>conftest.$ac_ext |
| 2714 | cat >>conftest.$ac_ext <<_ACEOF |
| 2715 | /* end confdefs.h. */ |
| 2716 | |
| 2717 | int |
| 2718 | main () |
| 2719 | { |
| 2720 | |
| 2721 | ; |
| 2722 | return 0; |
| 2723 | } |
| 2724 | _ACEOF |
| 2725 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2726 | if { (ac_try="$ac_compile" |
| 2727 | case "(($ac_try" in |
| 2728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2729 | *) ac_try_echo=$ac_try;; |
| 2730 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2732 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2733 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2734 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2736 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2737 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2738 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2739 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2740 | *.$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] | 2741 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2742 | break;; |
| 2743 | esac |
| 2744 | done |
| 2745 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2746 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2748 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2749 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2751 | { { $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] | 2752 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2753 | $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] | 2754 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2755 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2756 | fi |
| 2757 | |
| 2758 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2759 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2761 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2762 | OBJEXT=$ac_cv_objext |
| 2763 | ac_objext=$OBJEXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2764 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2765 | $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] | 2766 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2767 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2768 | else |
| 2769 | cat >conftest.$ac_ext <<_ACEOF |
| 2770 | /* confdefs.h. */ |
| 2771 | _ACEOF |
| 2772 | cat confdefs.h >>conftest.$ac_ext |
| 2773 | cat >>conftest.$ac_ext <<_ACEOF |
| 2774 | /* end confdefs.h. */ |
| 2775 | |
| 2776 | int |
| 2777 | main () |
| 2778 | { |
| 2779 | #ifndef __GNUC__ |
| 2780 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2781 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2782 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2783 | ; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | _ACEOF |
| 2787 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2788 | if { (ac_try="$ac_compile" |
| 2789 | case "(($ac_try" in |
| 2790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2791 | *) ac_try_echo=$ac_try;; |
| 2792 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2794 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2795 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2796 | ac_status=$? |
| 2797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2798 | rm -f conftest.er1 |
| 2799 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2801 | (exit $ac_status); } && { |
| 2802 | test -z "$ac_c_werror_flag" || |
| 2803 | test ! -s conftest.err |
| 2804 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2805 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2806 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2807 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2809 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2810 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2812 | |
| 2813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2814 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2816 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2817 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2818 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2819 | if test $ac_compiler_gnu = yes; then |
| 2820 | GCC=yes |
| 2821 | else |
| 2822 | GCC= |
| 2823 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2824 | ac_test_CFLAGS=${CFLAGS+set} |
| 2825 | ac_save_CFLAGS=$CFLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2826 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2827 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2829 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2830 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2831 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2832 | ac_c_werror_flag=yes |
| 2833 | ac_cv_prog_cc_g=no |
| 2834 | CFLAGS="-g" |
| 2835 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2836 | /* confdefs.h. */ |
| 2837 | _ACEOF |
| 2838 | cat confdefs.h >>conftest.$ac_ext |
| 2839 | cat >>conftest.$ac_ext <<_ACEOF |
| 2840 | /* end confdefs.h. */ |
| 2841 | |
| 2842 | int |
| 2843 | main () |
| 2844 | { |
| 2845 | |
| 2846 | ; |
| 2847 | return 0; |
| 2848 | } |
| 2849 | _ACEOF |
| 2850 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2851 | if { (ac_try="$ac_compile" |
| 2852 | case "(($ac_try" in |
| 2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2854 | *) ac_try_echo=$ac_try;; |
| 2855 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2857 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2858 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2859 | ac_status=$? |
| 2860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2861 | rm -f conftest.er1 |
| 2862 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2864 | (exit $ac_status); } && { |
| 2865 | test -z "$ac_c_werror_flag" || |
| 2866 | test ! -s conftest.err |
| 2867 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2868 | ac_cv_prog_cc_g=yes |
| 2869 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2870 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2873 | CFLAGS="" |
| 2874 | cat >conftest.$ac_ext <<_ACEOF |
| 2875 | /* confdefs.h. */ |
| 2876 | _ACEOF |
| 2877 | cat confdefs.h >>conftest.$ac_ext |
| 2878 | cat >>conftest.$ac_ext <<_ACEOF |
| 2879 | /* end confdefs.h. */ |
| 2880 | |
| 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | |
| 2885 | ; |
| 2886 | return 0; |
| 2887 | } |
| 2888 | _ACEOF |
| 2889 | rm -f conftest.$ac_objext |
| 2890 | if { (ac_try="$ac_compile" |
| 2891 | case "(($ac_try" in |
| 2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2893 | *) ac_try_echo=$ac_try;; |
| 2894 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2896 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2897 | (eval "$ac_compile") 2>conftest.er1 |
| 2898 | ac_status=$? |
| 2899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2900 | rm -f conftest.er1 |
| 2901 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2903 | (exit $ac_status); } && { |
| 2904 | test -z "$ac_c_werror_flag" || |
| 2905 | test ! -s conftest.err |
| 2906 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2907 | : |
| 2908 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2909 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2911 | |
| 2912 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2913 | CFLAGS="-g" |
| 2914 | cat >conftest.$ac_ext <<_ACEOF |
| 2915 | /* confdefs.h. */ |
| 2916 | _ACEOF |
| 2917 | cat confdefs.h >>conftest.$ac_ext |
| 2918 | cat >>conftest.$ac_ext <<_ACEOF |
| 2919 | /* end confdefs.h. */ |
| 2920 | |
| 2921 | int |
| 2922 | main () |
| 2923 | { |
| 2924 | |
| 2925 | ; |
| 2926 | return 0; |
| 2927 | } |
| 2928 | _ACEOF |
| 2929 | rm -f conftest.$ac_objext |
| 2930 | if { (ac_try="$ac_compile" |
| 2931 | case "(($ac_try" in |
| 2932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2933 | *) ac_try_echo=$ac_try;; |
| 2934 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2936 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2937 | (eval "$ac_compile") 2>conftest.er1 |
| 2938 | ac_status=$? |
| 2939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2940 | rm -f conftest.er1 |
| 2941 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2943 | (exit $ac_status); } && { |
| 2944 | test -z "$ac_c_werror_flag" || |
| 2945 | test ! -s conftest.err |
| 2946 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2947 | ac_cv_prog_cc_g=yes |
| 2948 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2949 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2951 | |
| 2952 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2953 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2954 | |
| 2955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2956 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2957 | |
| 2958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2959 | fi |
| 2960 | |
| 2961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2962 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2963 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2965 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2966 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2967 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2968 | elif test $ac_cv_prog_cc_g = yes; then |
| 2969 | if test "$GCC" = yes; then |
| 2970 | CFLAGS="-g -O2" |
| 2971 | else |
| 2972 | CFLAGS="-g" |
| 2973 | fi |
| 2974 | else |
| 2975 | if test "$GCC" = yes; then |
| 2976 | CFLAGS="-O2" |
| 2977 | else |
| 2978 | CFLAGS= |
| 2979 | fi |
| 2980 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2981 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2982 | $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] | 2983 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 2984 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2985 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2986 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2987 | ac_save_CC=$CC |
| 2988 | cat >conftest.$ac_ext <<_ACEOF |
| 2989 | /* confdefs.h. */ |
| 2990 | _ACEOF |
| 2991 | cat confdefs.h >>conftest.$ac_ext |
| 2992 | cat >>conftest.$ac_ext <<_ACEOF |
| 2993 | /* end confdefs.h. */ |
| 2994 | #include <stdarg.h> |
| 2995 | #include <stdio.h> |
| 2996 | #include <sys/types.h> |
| 2997 | #include <sys/stat.h> |
| 2998 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2999 | struct buf { int x; }; |
| 3000 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3001 | static char *e (p, i) |
| 3002 | char **p; |
| 3003 | int i; |
| 3004 | { |
| 3005 | return p[i]; |
| 3006 | } |
| 3007 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3008 | { |
| 3009 | char *s; |
| 3010 | va_list v; |
| 3011 | va_start (v,p); |
| 3012 | s = g (p, va_arg (v,int)); |
| 3013 | va_end (v); |
| 3014 | return s; |
| 3015 | } |
| 3016 | |
| 3017 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3018 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3019 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | 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] | 3021 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3022 | 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] | 3023 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3024 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3026 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3027 | inside strings and character constants. */ |
| 3028 | #define FOO(x) 'x' |
| 3029 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3030 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3031 | int test (int i, double x); |
| 3032 | struct s1 {int (*f) (int a);}; |
| 3033 | struct s2 {int (*f) (double a);}; |
| 3034 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3035 | int argc; |
| 3036 | char **argv; |
| 3037 | int |
| 3038 | main () |
| 3039 | { |
| 3040 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3041 | ; |
| 3042 | return 0; |
| 3043 | } |
| 3044 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3045 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3046 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3047 | do |
| 3048 | CC="$ac_save_CC $ac_arg" |
| 3049 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3050 | if { (ac_try="$ac_compile" |
| 3051 | case "(($ac_try" in |
| 3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3053 | *) ac_try_echo=$ac_try;; |
| 3054 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3056 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3057 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3058 | ac_status=$? |
| 3059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3060 | rm -f conftest.er1 |
| 3061 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3063 | (exit $ac_status); } && { |
| 3064 | test -z "$ac_c_werror_flag" || |
| 3065 | test ! -s conftest.err |
| 3066 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3067 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3068 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3069 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3071 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3072 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3073 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3074 | |
| 3075 | rm -f core conftest.err conftest.$ac_objext |
| 3076 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3077 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3078 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3079 | CC=$ac_save_CC |
| 3080 | |
| 3081 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3082 | # AC_CACHE_VAL |
| 3083 | case "x$ac_cv_prog_cc_c89" in |
| 3084 | x) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3085 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3086 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3087 | xno) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3088 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3089 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3090 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3091 | CC="$CC $ac_cv_prog_cc_c89" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3093 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3094 | esac |
| 3095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3096 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | ac_ext=c |
| 3098 | ac_cpp='$CPP $CPPFLAGS' |
| 3099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3102 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | ac_ext=c |
| 3104 | ac_cpp='$CPP $CPPFLAGS' |
| 3105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3108 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3109 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3110 | # On Suns, sometimes $CPP names a directory. |
| 3111 | if test -n "$CPP" && test -d "$CPP"; then |
| 3112 | CPP= |
| 3113 | fi |
| 3114 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3115 | if test "${ac_cv_prog_CPP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3116 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3117 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | # Double quotes because CPP needs to be expanded |
| 3119 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3120 | do |
| 3121 | ac_preproc_ok=false |
| 3122 | for ac_c_preproc_warn_flag in '' yes |
| 3123 | do |
| 3124 | # Use a header file that comes with gcc, so configuring glibc |
| 3125 | # with a fresh cross-compiler works. |
| 3126 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3127 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3128 | # 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] | 3129 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3130 | cat >conftest.$ac_ext <<_ACEOF |
| 3131 | /* confdefs.h. */ |
| 3132 | _ACEOF |
| 3133 | cat confdefs.h >>conftest.$ac_ext |
| 3134 | cat >>conftest.$ac_ext <<_ACEOF |
| 3135 | /* end confdefs.h. */ |
| 3136 | #ifdef __STDC__ |
| 3137 | # include <limits.h> |
| 3138 | #else |
| 3139 | # include <assert.h> |
| 3140 | #endif |
| 3141 | Syntax error |
| 3142 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3143 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3144 | case "(($ac_try" in |
| 3145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3146 | *) ac_try_echo=$ac_try;; |
| 3147 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3149 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3150 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | ac_status=$? |
| 3152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3153 | rm -f conftest.er1 |
| 3154 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3156 | (exit $ac_status); } >/dev/null && { |
| 3157 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3158 | test ! -s conftest.err |
| 3159 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3160 | : |
| 3161 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3162 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3163 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3164 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3165 | # Broken: fails on valid input. |
| 3166 | continue |
| 3167 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3169 | rm -f conftest.err conftest.$ac_ext |
| 3170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3171 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | # can be detected and how. |
| 3173 | cat >conftest.$ac_ext <<_ACEOF |
| 3174 | /* confdefs.h. */ |
| 3175 | _ACEOF |
| 3176 | cat confdefs.h >>conftest.$ac_ext |
| 3177 | cat >>conftest.$ac_ext <<_ACEOF |
| 3178 | /* end confdefs.h. */ |
| 3179 | #include <ac_nonexistent.h> |
| 3180 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3181 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3182 | case "(($ac_try" in |
| 3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3184 | *) ac_try_echo=$ac_try;; |
| 3185 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3187 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3189 | ac_status=$? |
| 3190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3191 | rm -f conftest.er1 |
| 3192 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3194 | (exit $ac_status); } >/dev/null && { |
| 3195 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3196 | test ! -s conftest.err |
| 3197 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | # Broken: success on invalid input. |
| 3199 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3200 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3201 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3203 | |
| 3204 | # Passes both tests. |
| 3205 | ac_preproc_ok=: |
| 3206 | break |
| 3207 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3208 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3209 | rm -f conftest.err conftest.$ac_ext |
| 3210 | |
| 3211 | done |
| 3212 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3213 | rm -f conftest.err conftest.$ac_ext |
| 3214 | if $ac_preproc_ok; then |
| 3215 | break |
| 3216 | fi |
| 3217 | |
| 3218 | done |
| 3219 | ac_cv_prog_CPP=$CPP |
| 3220 | |
| 3221 | fi |
| 3222 | CPP=$ac_cv_prog_CPP |
| 3223 | else |
| 3224 | ac_cv_prog_CPP=$CPP |
| 3225 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3226 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3227 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3228 | ac_preproc_ok=false |
| 3229 | for ac_c_preproc_warn_flag in '' yes |
| 3230 | do |
| 3231 | # Use a header file that comes with gcc, so configuring glibc |
| 3232 | # with a fresh cross-compiler works. |
| 3233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3234 | # <limits.h> exists even on freestanding compilers. |
| 3235 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3236 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3237 | cat >conftest.$ac_ext <<_ACEOF |
| 3238 | /* confdefs.h. */ |
| 3239 | _ACEOF |
| 3240 | cat confdefs.h >>conftest.$ac_ext |
| 3241 | cat >>conftest.$ac_ext <<_ACEOF |
| 3242 | /* end confdefs.h. */ |
| 3243 | #ifdef __STDC__ |
| 3244 | # include <limits.h> |
| 3245 | #else |
| 3246 | # include <assert.h> |
| 3247 | #endif |
| 3248 | Syntax error |
| 3249 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3250 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3251 | case "(($ac_try" in |
| 3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3253 | *) ac_try_echo=$ac_try;; |
| 3254 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3256 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3258 | ac_status=$? |
| 3259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3260 | rm -f conftest.er1 |
| 3261 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3263 | (exit $ac_status); } >/dev/null && { |
| 3264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3265 | test ! -s conftest.err |
| 3266 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3267 | : |
| 3268 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3269 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3271 | |
| 3272 | # Broken: fails on valid input. |
| 3273 | continue |
| 3274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3275 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3276 | rm -f conftest.err conftest.$ac_ext |
| 3277 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3278 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3279 | # can be detected and how. |
| 3280 | cat >conftest.$ac_ext <<_ACEOF |
| 3281 | /* confdefs.h. */ |
| 3282 | _ACEOF |
| 3283 | cat confdefs.h >>conftest.$ac_ext |
| 3284 | cat >>conftest.$ac_ext <<_ACEOF |
| 3285 | /* end confdefs.h. */ |
| 3286 | #include <ac_nonexistent.h> |
| 3287 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3288 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3289 | case "(($ac_try" in |
| 3290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3291 | *) ac_try_echo=$ac_try;; |
| 3292 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3294 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3295 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | ac_status=$? |
| 3297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3298 | rm -f conftest.er1 |
| 3299 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3301 | (exit $ac_status); } >/dev/null && { |
| 3302 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3303 | test ! -s conftest.err |
| 3304 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3305 | # Broken: success on invalid input. |
| 3306 | continue |
| 3307 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3308 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3310 | |
| 3311 | # Passes both tests. |
| 3312 | ac_preproc_ok=: |
| 3313 | break |
| 3314 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3315 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3316 | rm -f conftest.err conftest.$ac_ext |
| 3317 | |
| 3318 | done |
| 3319 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3320 | rm -f conftest.err conftest.$ac_ext |
| 3321 | if $ac_preproc_ok; then |
| 3322 | : |
| 3323 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3324 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3326 | { { $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] | 3327 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3328 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3329 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3330 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3331 | fi |
| 3332 | |
| 3333 | ac_ext=c |
| 3334 | ac_cpp='$CPP $CPPFLAGS' |
| 3335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3338 | |
| 3339 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3340 | # Check whether --with-linker was given. |
| 3341 | if test "${with_linker+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3342 | withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3343 | $as_echo "LD=$withval" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3344 | LD=$withval |
| 3345 | else |
| 3346 | if test -z "$LD" ; then LD=$CC; fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3347 | { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3348 | $as_echo "LD defaults to $LD" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3349 | fi |
| 3350 | export LD |
| 3351 | |
| 3352 | |
| 3353 | # Check whether --with-ccopts was given. |
| 3354 | if test "${with_ccopts+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3355 | withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3356 | $as_echo "CCOPTS is $withval" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3357 | CFLAGS=$withval |
| 3358 | fi |
| 3359 | |
| 3360 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3361 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3362 | $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] | 3363 | if test "${ac_cv_path_GREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3364 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3365 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3366 | if test -z "$GREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3367 | ac_path_GREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3368 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3370 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3371 | do |
| 3372 | IFS=$as_save_IFS |
| 3373 | test -z "$as_dir" && as_dir=. |
| 3374 | for ac_prog in grep ggrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3375 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3376 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3377 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3378 | # 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] | 3379 | # Check for GNU $ac_path_GREP |
| 3380 | case `"$ac_path_GREP" --version 2>&1` in |
| 3381 | *GNU*) |
| 3382 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3383 | *) |
| 3384 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3385 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3386 | while : |
| 3387 | do |
| 3388 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3389 | mv "conftest.tmp" "conftest.in" |
| 3390 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3391 | $as_echo 'GREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3392 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3393 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3394 | ac_count=`expr $ac_count + 1` |
| 3395 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3396 | # Best one so far, save it but keep looking for a better one |
| 3397 | ac_cv_path_GREP="$ac_path_GREP" |
| 3398 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3399 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3400 | # 10*(2^10) chars as input seems more than enough |
| 3401 | test $ac_count -gt 10 && break |
| 3402 | done |
| 3403 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3404 | esac |
| 3405 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3406 | $ac_path_GREP_found && break 3 |
| 3407 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3408 | done |
| 3409 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3410 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3411 | if test -z "$ac_cv_path_GREP"; then |
| 3412 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3413 | $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] | 3414 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3415 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3416 | else |
| 3417 | ac_cv_path_GREP=$GREP |
| 3418 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3419 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3420 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3422 | $as_echo "$ac_cv_path_GREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3423 | GREP="$ac_cv_path_GREP" |
| 3424 | |
| 3425 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3426 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3427 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3428 | if test "${ac_cv_path_EGREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3429 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3430 | else |
| 3431 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3432 | then ac_cv_path_EGREP="$GREP -E" |
| 3433 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3434 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3435 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3436 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3438 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3439 | do |
| 3440 | IFS=$as_save_IFS |
| 3441 | test -z "$as_dir" && as_dir=. |
| 3442 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3444 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3445 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3446 | # 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] | 3447 | # Check for GNU $ac_path_EGREP |
| 3448 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3449 | *GNU*) |
| 3450 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3451 | *) |
| 3452 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3453 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3454 | while : |
| 3455 | do |
| 3456 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3457 | mv "conftest.tmp" "conftest.in" |
| 3458 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3459 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3460 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3461 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3462 | ac_count=`expr $ac_count + 1` |
| 3463 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3464 | # Best one so far, save it but keep looking for a better one |
| 3465 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3466 | ac_path_EGREP_max=$ac_count |
| 3467 | fi |
| 3468 | # 10*(2^10) chars as input seems more than enough |
| 3469 | test $ac_count -gt 10 && break |
| 3470 | done |
| 3471 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3472 | esac |
| 3473 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3474 | $ac_path_EGREP_found && break 3 |
| 3475 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3476 | done |
| 3477 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3478 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3479 | if test -z "$ac_cv_path_EGREP"; then |
| 3480 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3481 | $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] | 3482 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3483 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3484 | else |
| 3485 | ac_cv_path_EGREP=$EGREP |
| 3486 | fi |
| 3487 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3488 | fi |
| 3489 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3491 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3492 | EGREP="$ac_cv_path_EGREP" |
| 3493 | |
| 3494 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3495 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3496 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3497 | if test "${ac_cv_header_stdc+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3498 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3499 | else |
| 3500 | cat >conftest.$ac_ext <<_ACEOF |
| 3501 | /* confdefs.h. */ |
| 3502 | _ACEOF |
| 3503 | cat confdefs.h >>conftest.$ac_ext |
| 3504 | cat >>conftest.$ac_ext <<_ACEOF |
| 3505 | /* end confdefs.h. */ |
| 3506 | #include <stdlib.h> |
| 3507 | #include <stdarg.h> |
| 3508 | #include <string.h> |
| 3509 | #include <float.h> |
| 3510 | |
| 3511 | int |
| 3512 | main () |
| 3513 | { |
| 3514 | |
| 3515 | ; |
| 3516 | return 0; |
| 3517 | } |
| 3518 | _ACEOF |
| 3519 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3520 | if { (ac_try="$ac_compile" |
| 3521 | case "(($ac_try" in |
| 3522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3523 | *) ac_try_echo=$ac_try;; |
| 3524 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3526 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3527 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3528 | ac_status=$? |
| 3529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3530 | rm -f conftest.er1 |
| 3531 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3533 | (exit $ac_status); } && { |
| 3534 | test -z "$ac_c_werror_flag" || |
| 3535 | test ! -s conftest.err |
| 3536 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | ac_cv_header_stdc=yes |
| 3538 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3539 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3542 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3544 | |
| 3545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3546 | |
| 3547 | if test $ac_cv_header_stdc = yes; then |
| 3548 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #include <string.h> |
| 3556 | |
| 3557 | _ACEOF |
| 3558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3559 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3560 | : |
| 3561 | else |
| 3562 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3563 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3564 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3565 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3566 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3567 | |
| 3568 | if test $ac_cv_header_stdc = yes; then |
| 3569 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3570 | cat >conftest.$ac_ext <<_ACEOF |
| 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | cat confdefs.h >>conftest.$ac_ext |
| 3574 | cat >>conftest.$ac_ext <<_ACEOF |
| 3575 | /* end confdefs.h. */ |
| 3576 | #include <stdlib.h> |
| 3577 | |
| 3578 | _ACEOF |
| 3579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3580 | $EGREP "free" >/dev/null 2>&1; then |
| 3581 | : |
| 3582 | else |
| 3583 | ac_cv_header_stdc=no |
| 3584 | fi |
| 3585 | rm -f conftest* |
| 3586 | |
| 3587 | fi |
| 3588 | |
| 3589 | if test $ac_cv_header_stdc = yes; then |
| 3590 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3591 | if test "$cross_compiling" = yes; then |
| 3592 | : |
| 3593 | else |
| 3594 | cat >conftest.$ac_ext <<_ACEOF |
| 3595 | /* confdefs.h. */ |
| 3596 | _ACEOF |
| 3597 | cat confdefs.h >>conftest.$ac_ext |
| 3598 | cat >>conftest.$ac_ext <<_ACEOF |
| 3599 | /* end confdefs.h. */ |
| 3600 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3601 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | #if ((' ' & 0x0FF) == 0x020) |
| 3603 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3604 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3605 | #else |
| 3606 | # define ISLOWER(c) \ |
| 3607 | (('a' <= (c) && (c) <= 'i') \ |
| 3608 | || ('j' <= (c) && (c) <= 'r') \ |
| 3609 | || ('s' <= (c) && (c) <= 'z')) |
| 3610 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3611 | #endif |
| 3612 | |
| 3613 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3614 | int |
| 3615 | main () |
| 3616 | { |
| 3617 | int i; |
| 3618 | for (i = 0; i < 256; i++) |
| 3619 | if (XOR (islower (i), ISLOWER (i)) |
| 3620 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3621 | return 2; |
| 3622 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3623 | } |
| 3624 | _ACEOF |
| 3625 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3626 | if { (ac_try="$ac_link" |
| 3627 | case "(($ac_try" in |
| 3628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3629 | *) ac_try_echo=$ac_try;; |
| 3630 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3632 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3633 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3634 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3637 | { (case "(($ac_try" in |
| 3638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3639 | *) ac_try_echo=$ac_try;; |
| 3640 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3642 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3643 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3644 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3646 | (exit $ac_status); }; }; then |
| 3647 | : |
| 3648 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3649 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 3650 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3652 | |
| 3653 | ( exit $ac_status ) |
| 3654 | ac_cv_header_stdc=no |
| 3655 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3656 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3657 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3658 | fi |
| 3659 | |
| 3660 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3661 | fi |
| 3662 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3664 | $as_echo "$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3665 | if test $ac_cv_header_stdc = yes; then |
| 3666 | |
| 3667 | cat >>confdefs.h <<\_ACEOF |
| 3668 | #define STDC_HEADERS 1 |
| 3669 | _ACEOF |
| 3670 | |
| 3671 | fi |
| 3672 | |
| 3673 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | |
| 3678 | |
| 3679 | |
| 3680 | |
| 3681 | |
| 3682 | |
| 3683 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3684 | inttypes.h stdint.h unistd.h |
| 3685 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3686 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3687 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3688 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3689 | 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^] | 3690 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3691 | else |
| 3692 | cat >conftest.$ac_ext <<_ACEOF |
| 3693 | /* confdefs.h. */ |
| 3694 | _ACEOF |
| 3695 | cat confdefs.h >>conftest.$ac_ext |
| 3696 | cat >>conftest.$ac_ext <<_ACEOF |
| 3697 | /* end confdefs.h. */ |
| 3698 | $ac_includes_default |
| 3699 | |
| 3700 | #include <$ac_header> |
| 3701 | _ACEOF |
| 3702 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3703 | if { (ac_try="$ac_compile" |
| 3704 | case "(($ac_try" in |
| 3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3706 | *) ac_try_echo=$ac_try;; |
| 3707 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3709 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3710 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3711 | ac_status=$? |
| 3712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3713 | rm -f conftest.er1 |
| 3714 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3716 | (exit $ac_status); } && { |
| 3717 | test -z "$ac_c_werror_flag" || |
| 3718 | test ! -s conftest.err |
| 3719 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3720 | eval "$as_ac_Header=yes" |
| 3721 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3722 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3725 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3727 | |
| 3728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3729 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3730 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 3731 | $as_echo "$as_val"'` |
| 3732 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3733 | $as_echo "$ac_res" >&6; } |
| 3734 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 3735 | $as_echo "$as_val"'` |
| 3736 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3737 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3738 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3739 | _ACEOF |
| 3740 | |
| 3741 | fi |
| 3742 | |
| 3743 | done |
| 3744 | |
| 3745 | |
| 3746 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3747 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3748 | $as_echo_n "checking for linux/fs.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3749 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3750 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3751 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3753 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3754 | else |
| 3755 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3756 | { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3757 | $as_echo_n "checking linux/fs.h usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3758 | cat >conftest.$ac_ext <<_ACEOF |
| 3759 | /* confdefs.h. */ |
| 3760 | _ACEOF |
| 3761 | cat confdefs.h >>conftest.$ac_ext |
| 3762 | cat >>conftest.$ac_ext <<_ACEOF |
| 3763 | /* end confdefs.h. */ |
| 3764 | $ac_includes_default |
| 3765 | #include <linux/fs.h> |
| 3766 | _ACEOF |
| 3767 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3768 | if { (ac_try="$ac_compile" |
| 3769 | case "(($ac_try" in |
| 3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3771 | *) ac_try_echo=$ac_try;; |
| 3772 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3774 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3775 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3776 | ac_status=$? |
| 3777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3778 | rm -f conftest.er1 |
| 3779 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3781 | (exit $ac_status); } && { |
| 3782 | test -z "$ac_c_werror_flag" || |
| 3783 | test ! -s conftest.err |
| 3784 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3785 | ac_header_compiler=yes |
| 3786 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3787 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3790 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3791 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3792 | |
| 3793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3794 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3795 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3796 | |
| 3797 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3798 | { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3799 | $as_echo_n "checking linux/fs.h presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3800 | cat >conftest.$ac_ext <<_ACEOF |
| 3801 | /* confdefs.h. */ |
| 3802 | _ACEOF |
| 3803 | cat confdefs.h >>conftest.$ac_ext |
| 3804 | cat >>conftest.$ac_ext <<_ACEOF |
| 3805 | /* end confdefs.h. */ |
| 3806 | #include <linux/fs.h> |
| 3807 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3808 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3809 | case "(($ac_try" in |
| 3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3811 | *) ac_try_echo=$ac_try;; |
| 3812 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3814 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3816 | ac_status=$? |
| 3817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3818 | rm -f conftest.er1 |
| 3819 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3821 | (exit $ac_status); } >/dev/null && { |
| 3822 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3823 | test ! -s conftest.err |
| 3824 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3825 | ac_header_preproc=yes |
| 3826 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3827 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3829 | |
| 3830 | ac_header_preproc=no |
| 3831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3832 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3833 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3834 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3835 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3836 | |
| 3837 | # So? What about this header? |
| 3838 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3839 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3840 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3841 | $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3842 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3843 | $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] | 3844 | ac_header_preproc=yes |
| 3845 | ;; |
| 3846 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3847 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3848 | $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3849 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3850 | $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3851 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3852 | $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3853 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3854 | $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3855 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3856 | $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3857 | { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3858 | $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] | 3859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3860 | ;; |
| 3861 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3862 | { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3863 | $as_echo_n "checking for linux/fs.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3864 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3865 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3866 | else |
| 3867 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3868 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3870 | $as_echo "$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3871 | |
| 3872 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3873 | 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] | 3874 | linux_headers=yes |
| 3875 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3876 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3877 | fi |
| 3878 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3879 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3880 | if test "$linux_headers" != yes; then |
| 3881 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3882 | fi |
| 3883 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3884 | { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3885 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3886 | if test "$GCC" = yes |
| 3887 | then |
| 3888 | case "$host_cpu" in |
| 3889 | alpha) addcflags="-mieee" ;; |
| 3890 | esac |
| 3891 | fi |
| 3892 | if test "x$addcflags" != x |
| 3893 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3894 | { $as_echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3895 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3896 | CFLAGS="$addcflags $CFLAGS" |
| 3897 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3898 | { $as_echo "$as_me:$LINENO: result: (none)" >&5 |
| 3899 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3900 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3901 | LIB_EXT=.a |
| 3902 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 3903 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3904 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3905 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3906 | if test "${with_ldopts+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3907 | withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3908 | $as_echo "LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3909 | LDFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3910 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3911 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3912 | |
| 3913 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3914 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3915 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3916 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3917 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3918 | fi |
| 3919 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3920 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3921 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3922 | then |
| 3923 | MAINTAINER_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3924 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
| 3925 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3926 | else |
| 3927 | MAINTAINER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3928 | { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
| 3929 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3930 | fi |
| 3931 | |
| 3932 | else |
| 3933 | MAINTAINER_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3934 | { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
| 3935 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3936 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3937 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3939 | |
| 3940 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3941 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3942 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3943 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3944 | { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
| 3945 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3947 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3948 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3949 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3950 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3951 | { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
| 3952 | $as_echo "Enabling compression support" >&6; } |
| 3953 | { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 |
| 3954 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3955 | fi |
| 3956 | |
| 3957 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3958 | { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
| 3959 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3960 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3961 | fi |
| 3962 | |
| 3963 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3964 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3965 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3966 | then |
| 3967 | HTREE_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3968 | { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
| 3969 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3970 | else |
| 3971 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3972 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3973 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3974 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3975 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3976 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
| 3977 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3978 | fi |
| 3979 | |
| 3980 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3981 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3982 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3983 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3984 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3985 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 3986 | { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
| 3987 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3989 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3990 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3991 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3992 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 3993 | LDFLAG_DYNAMIC= |
| 3994 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3995 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3996 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3997 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3998 | then |
| 3999 | ELF_CMT=# |
| 4000 | MAKEFILE_ELF=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4001 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
| 4002 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4003 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4004 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4005 | ELF_CMT= |
| 4006 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4007 | case "$host_os" in |
| 4008 | solaris2.*) |
| 4009 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4010 | ;; |
| 4011 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4012 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4013 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4014 | PRIVATE_LIBS_CMT=# |
| 4015 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4016 | { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
| 4017 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4018 | fi |
| 4019 | |
| 4020 | else |
| 4021 | MAKEFILE_ELF=/dev/null |
| 4022 | ELF_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4023 | { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
| 4024 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4026 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4027 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4029 | |
| 4030 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4031 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4032 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4033 | then |
| 4034 | BSDLIB_CMT=# |
| 4035 | MAKEFILE_BSDLIB=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4036 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
| 4037 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4038 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4039 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4040 | BSDLIB_CMT= |
| 4041 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4042 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4043 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4044 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4045 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4046 | LIB_EXT=.dylib |
| 4047 | ;; |
| 4048 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4049 | { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
| 4050 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4051 | fi |
| 4052 | |
| 4053 | else |
| 4054 | MAKEFILE_BSDLIB=/dev/null |
| 4055 | BSDLIB_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4056 | { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
| 4057 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4059 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4060 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4061 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4062 | |
| 4063 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4064 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4065 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4066 | then |
| 4067 | PROFILE_CMT=# |
| 4068 | MAKEFILE_PROFILE=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4069 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
| 4070 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4071 | else |
| 4072 | PROFILE_CMT= |
| 4073 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4074 | PROFILED_LIB_EXT=_p.a |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4075 | { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
| 4076 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4077 | fi |
| 4078 | |
| 4079 | else |
| 4080 | PROFILE_CMT=# |
| 4081 | MAKEFILE_PROFILE=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4082 | { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
| 4083 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4085 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4086 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4087 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4088 | |
| 4089 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4090 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4091 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4092 | then |
| 4093 | CHECKER_CMT=# |
| 4094 | MAKEFILE_CHECKER=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4095 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
| 4096 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4097 | else |
| 4098 | CHECKER_CMT= |
| 4099 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4100 | { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
| 4101 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4102 | fi |
| 4103 | |
| 4104 | else |
| 4105 | CHECKER_CMT=# |
| 4106 | MAKEFILE_CHECKER=/dev/null |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4107 | { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
| 4108 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4109 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4110 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4116 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4117 | |
| 4118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4119 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 4120 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4121 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4122 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4123 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
| 4124 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4125 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4126 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 4127 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4128 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4129 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4130 | { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
| 4131 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4132 | fi |
| 4133 | |
| 4134 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4135 | { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 |
| 4136 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4138 | fi |
| 4139 | |
| 4140 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4141 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4142 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4143 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4144 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
| 4145 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4147 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4148 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4149 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4150 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4151 | { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
| 4152 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4153 | fi |
| 4154 | |
| 4155 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4156 | { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 |
| 4157 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4158 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4159 | fi |
| 4160 | |
| 4161 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4162 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4163 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4164 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4165 | { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
| 4166 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4167 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4168 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4169 | TEST_IO_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4170 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4171 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4172 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4173 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4174 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
| 4175 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4176 | fi |
| 4177 | |
| 4178 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4179 | { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 |
| 4180 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4181 | cat >>confdefs.h <<\_ACEOF |
| 4182 | #define CONFIG_TESTIO_DEBUG 1 |
| 4183 | _ACEOF |
| 4184 | |
| 4185 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4186 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4187 | fi |
| 4188 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4189 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4190 | |
| 4191 | |
| 4192 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4193 | if test -n "$ac_tool_prefix"; then |
| 4194 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4195 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4196 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4197 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4198 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4199 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4200 | else |
| 4201 | case $PKG_CONFIG in |
| 4202 | [\\/]* | ?:[\\/]*) |
| 4203 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4204 | ;; |
| 4205 | *) |
| 4206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4207 | for as_dir in $PATH |
| 4208 | do |
| 4209 | IFS=$as_save_IFS |
| 4210 | test -z "$as_dir" && as_dir=. |
| 4211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4213 | 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^] | 4214 | $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] | 4215 | break 2 |
| 4216 | fi |
| 4217 | done |
| 4218 | done |
| 4219 | IFS=$as_save_IFS |
| 4220 | |
| 4221 | ;; |
| 4222 | esac |
| 4223 | fi |
| 4224 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4225 | if test -n "$PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4226 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4227 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4228 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4229 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4230 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4231 | fi |
| 4232 | |
| 4233 | |
| 4234 | fi |
| 4235 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4236 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4237 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4238 | set dummy pkg-config; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4239 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4240 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4241 | 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^] | 4242 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4243 | else |
| 4244 | case $ac_pt_PKG_CONFIG in |
| 4245 | [\\/]* | ?:[\\/]*) |
| 4246 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4247 | ;; |
| 4248 | *) |
| 4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4250 | for as_dir in $PATH |
| 4251 | do |
| 4252 | IFS=$as_save_IFS |
| 4253 | test -z "$as_dir" && as_dir=. |
| 4254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4256 | 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^] | 4257 | $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] | 4258 | break 2 |
| 4259 | fi |
| 4260 | done |
| 4261 | done |
| 4262 | IFS=$as_save_IFS |
| 4263 | |
| 4264 | ;; |
| 4265 | esac |
| 4266 | fi |
| 4267 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4268 | if test -n "$ac_pt_PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4269 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4270 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4271 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4272 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4273 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4274 | fi |
| 4275 | |
| 4276 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4277 | PKG_CONFIG="" |
| 4278 | else |
| 4279 | case $cross_compiling:$ac_tool_warned in |
| 4280 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4281 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4282 | $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] | 4283 | ac_tool_warned=yes ;; |
| 4284 | esac |
| 4285 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4286 | fi |
| 4287 | else |
| 4288 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4289 | fi |
| 4290 | |
| 4291 | fi |
| 4292 | if test -n "$PKG_CONFIG"; then |
| 4293 | _pkg_min_version=0.9.0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4294 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4295 | $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] | 4296 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4297 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4298 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4299 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4300 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4301 | $as_echo "no" >&6; } |
| 4302 | PKG_CONFIG="" |
| 4303 | fi |
| 4304 | |
| 4305 | fi |
| 4306 | LIBUUID= |
| 4307 | DEPLIBUUID= |
| 4308 | STATIC_LIBUUID= |
| 4309 | DEPSTATIC_LIBUUID= |
| 4310 | PROFILED_LIBUUID= |
| 4311 | DEPPROFILED_LIBUUID= |
| 4312 | UUID_CMT= |
| 4313 | # Check whether --enable-libuuid was given. |
| 4314 | if test "${enable_libuuid+set}" = set; then |
| 4315 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4316 | then |
| 4317 | if test -z "$PKG_CONFIG"; then |
| 4318 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
| 4319 | $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;} |
| 4320 | { (exit 1); exit 1; }; } |
| 4321 | fi |
| 4322 | |
| 4323 | { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 4324 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
| 4325 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 4326 | $as_echo_n "(cached) " >&6 |
| 4327 | else |
| 4328 | ac_check_lib_save_LIBS=$LIBS |
| 4329 | LIBS="-luuid $LIBUUID $LIBS" |
| 4330 | cat >conftest.$ac_ext <<_ACEOF |
| 4331 | /* confdefs.h. */ |
| 4332 | _ACEOF |
| 4333 | cat confdefs.h >>conftest.$ac_ext |
| 4334 | cat >>conftest.$ac_ext <<_ACEOF |
| 4335 | /* end confdefs.h. */ |
| 4336 | |
| 4337 | /* Override any GCC internal prototype to avoid an error. |
| 4338 | Use char because int might match the return type of a GCC |
| 4339 | builtin and then its argument prototype would still apply. */ |
| 4340 | #ifdef __cplusplus |
| 4341 | extern "C" |
| 4342 | #endif |
| 4343 | char uuid_generate (); |
| 4344 | int |
| 4345 | main () |
| 4346 | { |
| 4347 | return uuid_generate (); |
| 4348 | ; |
| 4349 | return 0; |
| 4350 | } |
| 4351 | _ACEOF |
| 4352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4353 | if { (ac_try="$ac_link" |
| 4354 | case "(($ac_try" in |
| 4355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4356 | *) ac_try_echo=$ac_try;; |
| 4357 | esac |
| 4358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4359 | $as_echo "$ac_try_echo") >&5 |
| 4360 | (eval "$ac_link") 2>conftest.er1 |
| 4361 | ac_status=$? |
| 4362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4363 | rm -f conftest.er1 |
| 4364 | cat conftest.err >&5 |
| 4365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4366 | (exit $ac_status); } && { |
| 4367 | test -z "$ac_c_werror_flag" || |
| 4368 | test ! -s conftest.err |
| 4369 | } && test -s conftest$ac_exeext && { |
| 4370 | test "$cross_compiling" = yes || |
| 4371 | $as_test_x conftest$ac_exeext |
| 4372 | }; then |
| 4373 | ac_cv_lib_uuid_uuid_generate=yes |
| 4374 | else |
| 4375 | $as_echo "$as_me: failed program was:" >&5 |
| 4376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4377 | |
| 4378 | ac_cv_lib_uuid_uuid_generate=no |
| 4379 | fi |
| 4380 | |
| 4381 | rm -rf conftest.dSYM |
| 4382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4383 | conftest$ac_exeext conftest.$ac_ext |
| 4384 | LIBS=$ac_check_lib_save_LIBS |
| 4385 | fi |
| 4386 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 4387 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
| 4388 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then |
| 4389 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4390 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4391 | else |
| 4392 | { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5 |
| 4393 | $as_echo "$as_me: error: external uuid library not found" >&2;} |
| 4394 | { (exit 1); exit 1; }; } |
| 4395 | fi |
| 4396 | |
| 4397 | UUID_CMT=# |
| 4398 | { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5 |
| 4399 | $as_echo "Disabling private uuid library" >&6; } |
| 4400 | else |
| 4401 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4402 | DEPLIBUUID=$LIBUUID |
| 4403 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4404 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4405 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4406 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
| 4407 | { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5 |
| 4408 | $as_echo "Enabling private uuid library" >&6; } |
| 4409 | fi |
| 4410 | |
| 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 by default" >&5 |
| 4419 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4420 | |
| 4421 | fi |
| 4422 | |
| 4423 | |
| 4424 | |
| 4425 | |
| 4426 | |
| 4427 | |
| 4428 | |
| 4429 | |
| 4430 | |
| 4431 | |
| 4432 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4433 | if test -n "$ac_tool_prefix"; then |
| 4434 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4435 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4436 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4437 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4438 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4439 | $as_echo_n "(cached) " >&6 |
| 4440 | else |
| 4441 | case $PKG_CONFIG in |
| 4442 | [\\/]* | ?:[\\/]*) |
| 4443 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4444 | ;; |
| 4445 | *) |
| 4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4447 | for as_dir in $PATH |
| 4448 | do |
| 4449 | IFS=$as_save_IFS |
| 4450 | test -z "$as_dir" && as_dir=. |
| 4451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4453 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4454 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4455 | break 2 |
| 4456 | fi |
| 4457 | done |
| 4458 | done |
| 4459 | IFS=$as_save_IFS |
| 4460 | |
| 4461 | ;; |
| 4462 | esac |
| 4463 | fi |
| 4464 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4465 | if test -n "$PKG_CONFIG"; then |
| 4466 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4467 | $as_echo "$PKG_CONFIG" >&6; } |
| 4468 | else |
| 4469 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4470 | $as_echo "no" >&6; } |
| 4471 | fi |
| 4472 | |
| 4473 | |
| 4474 | fi |
| 4475 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4476 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4477 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4478 | set dummy pkg-config; ac_word=$2 |
| 4479 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4480 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4481 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4482 | $as_echo_n "(cached) " >&6 |
| 4483 | else |
| 4484 | case $ac_pt_PKG_CONFIG in |
| 4485 | [\\/]* | ?:[\\/]*) |
| 4486 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4487 | ;; |
| 4488 | *) |
| 4489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4490 | for as_dir in $PATH |
| 4491 | do |
| 4492 | IFS=$as_save_IFS |
| 4493 | test -z "$as_dir" && as_dir=. |
| 4494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4496 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4497 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4498 | break 2 |
| 4499 | fi |
| 4500 | done |
| 4501 | done |
| 4502 | IFS=$as_save_IFS |
| 4503 | |
| 4504 | ;; |
| 4505 | esac |
| 4506 | fi |
| 4507 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4508 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4509 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4510 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4511 | else |
| 4512 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4513 | $as_echo "no" >&6; } |
| 4514 | fi |
| 4515 | |
| 4516 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4517 | PKG_CONFIG="" |
| 4518 | else |
| 4519 | case $cross_compiling:$ac_tool_warned in |
| 4520 | yes:) |
| 4521 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4522 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4523 | ac_tool_warned=yes ;; |
| 4524 | esac |
| 4525 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4526 | fi |
| 4527 | else |
| 4528 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4529 | fi |
| 4530 | |
| 4531 | fi |
| 4532 | if test -n "$PKG_CONFIG"; then |
| 4533 | _pkg_min_version=0.9.0 |
| 4534 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4535 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 4536 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4538 | $as_echo "yes" >&6; } |
| 4539 | else |
| 4540 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4541 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4542 | PKG_CONFIG="" |
| 4543 | fi |
| 4544 | |
| 4545 | fi |
| 4546 | LIBBLKID= |
| 4547 | DEPLIBBLKID= |
| 4548 | STATIC_LIBBLKID= |
| 4549 | DEPSTATIC_LIBBLKID= |
| 4550 | PROFILED_LIBBLKID= |
| 4551 | DEPPROFILED_LIBBLKID= |
| 4552 | BLKID_CMT= |
| 4553 | # Check whether --enable-libblkid was given. |
| 4554 | if test "${enable_libblkid+set}" = set; then |
| 4555 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 4556 | then |
| 4557 | if test -z "$PKG_CONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4558 | { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
| 4559 | $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] | 4560 | { (exit 1); exit 1; }; } |
| 4561 | fi |
| 4562 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4563 | { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 |
| 4564 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4565 | 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^] | 4566 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4567 | else |
| 4568 | ac_check_lib_save_LIBS=$LIBS |
| 4569 | LIBS="-lblkid $LIBBLKID $LIBS" |
| 4570 | cat >conftest.$ac_ext <<_ACEOF |
| 4571 | /* confdefs.h. */ |
| 4572 | _ACEOF |
| 4573 | cat confdefs.h >>conftest.$ac_ext |
| 4574 | cat >>conftest.$ac_ext <<_ACEOF |
| 4575 | /* end confdefs.h. */ |
| 4576 | |
| 4577 | /* Override any GCC internal prototype to avoid an error. |
| 4578 | Use char because int might match the return type of a GCC |
| 4579 | builtin and then its argument prototype would still apply. */ |
| 4580 | #ifdef __cplusplus |
| 4581 | extern "C" |
| 4582 | #endif |
| 4583 | char blkid_get_cache (); |
| 4584 | int |
| 4585 | main () |
| 4586 | { |
| 4587 | return blkid_get_cache (); |
| 4588 | ; |
| 4589 | return 0; |
| 4590 | } |
| 4591 | _ACEOF |
| 4592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4593 | if { (ac_try="$ac_link" |
| 4594 | case "(($ac_try" in |
| 4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4596 | *) ac_try_echo=$ac_try;; |
| 4597 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4599 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4600 | (eval "$ac_link") 2>conftest.er1 |
| 4601 | ac_status=$? |
| 4602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4603 | rm -f conftest.er1 |
| 4604 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4606 | (exit $ac_status); } && { |
| 4607 | test -z "$ac_c_werror_flag" || |
| 4608 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4609 | } && test -s conftest$ac_exeext && { |
| 4610 | test "$cross_compiling" = yes || |
| 4611 | $as_test_x conftest$ac_exeext |
| 4612 | }; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4613 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 4614 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4615 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4617 | |
| 4618 | ac_cv_lib_blkid_blkid_get_cache=no |
| 4619 | fi |
| 4620 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4621 | rm -rf conftest.dSYM |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4623 | conftest$ac_exeext conftest.$ac_ext |
| 4624 | LIBS=$ac_check_lib_save_LIBS |
| 4625 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4626 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 4627 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 4628 | 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] | 4629 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 4630 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 4631 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4632 | { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5 |
| 4633 | $as_echo "$as_me: error: external blkid library not found" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4634 | { (exit 1); exit 1; }; } |
| 4635 | fi |
| 4636 | |
| 4637 | BLKID_CMT=# |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4638 | { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5 |
| 4639 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4640 | else |
| 4641 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4642 | DEPLIBBLKID=$LIBBLKID |
| 4643 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4644 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4645 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4646 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4647 | cat >>confdefs.h <<\_ACEOF |
| 4648 | #define CONFIG_BUILD_FINDFS 1 |
| 4649 | _ACEOF |
| 4650 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4651 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5 |
| 4652 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4653 | fi |
| 4654 | |
| 4655 | else |
| 4656 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4657 | DEPLIBBLKID=$LIBBLKID |
| 4658 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4659 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4660 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4661 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4662 | cat >>confdefs.h <<\_ACEOF |
| 4663 | #define CONFIG_BUILD_FINDFS 1 |
| 4664 | _ACEOF |
| 4665 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4666 | { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5 |
| 4667 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4668 | |
| 4669 | fi |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4678 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4679 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4680 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4681 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4682 | { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
| 4683 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4684 | DEBUGFS_CMT="#" |
| 4685 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4686 | DEBUGFS_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4687 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
| 4688 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4689 | fi |
| 4690 | |
| 4691 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4692 | { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
| 4693 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4694 | DEBUGFS_CMT= |
| 4695 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4696 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4698 | |
| 4699 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4700 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4701 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4702 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4703 | { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
| 4704 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4705 | IMAGER_CMT="#" |
| 4706 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4707 | IMAGER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4708 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
| 4709 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4710 | fi |
| 4711 | |
| 4712 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4713 | { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
| 4714 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4715 | IMAGER_CMT= |
| 4716 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4717 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4719 | |
| 4720 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4721 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4722 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4723 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4724 | { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
| 4725 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4726 | RESIZER_CMT="#" |
| 4727 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4728 | RESIZER_CMT= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4729 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
| 4730 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4731 | fi |
| 4732 | |
| 4733 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4734 | { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
| 4735 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4736 | RESIZER_CMT= |
| 4737 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4738 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4739 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4740 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4741 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4742 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4743 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4744 | then |
| 4745 | FSCK_PROG='' FSCK_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4746 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
| 4747 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4748 | else |
| 4749 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4750 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
| 4751 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4752 | fi |
| 4753 | |
| 4754 | else |
| 4755 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4756 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4757 | FSCK_PROG='' FSCK_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4758 | { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
| 4759 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4760 | ;; |
| 4761 | *) |
| 4762 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4763 | { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
| 4764 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4765 | esac |
| 4766 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4767 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4768 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4770 | |
| 4771 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4772 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4773 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4774 | then |
| 4775 | E2INITRD_PROG='' E2INITRD_MAN='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4776 | { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
| 4777 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4778 | else |
| 4779 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4780 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
| 4781 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4782 | fi |
| 4783 | |
| 4784 | else |
| 4785 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4786 | { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
| 4787 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4789 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4790 | |
| 4791 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4792 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4793 | # Check whether --enable-tls was given. |
| 4794 | if test "${enable_tls+set}" = set; then |
| 4795 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4796 | then |
| 4797 | try_tls="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4798 | { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
| 4799 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4800 | else |
| 4801 | try_tls="yes" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4802 | { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
| 4803 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4804 | fi |
| 4805 | |
| 4806 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4807 | if test -n "$WITH_DIET_LIBC" |
| 4808 | then |
| 4809 | try_tls="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4810 | { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
| 4811 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4812 | else |
| 4813 | try_tls="yes" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4814 | { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
| 4815 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4816 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4817 | |
| 4818 | fi |
| 4819 | |
| 4820 | if test "$try_tls" = "yes" |
| 4821 | then |
| 4822 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4823 | { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4824 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4825 | if test "${ac_cv_tls+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4826 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4827 | else |
| 4828 | |
| 4829 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4830 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4831 | case $ax_tls_keyword in |
| 4832 | none) ac_cv_tls=none ; break ;; |
| 4833 | *) |
| 4834 | cat >conftest.$ac_ext <<_ACEOF |
| 4835 | /* confdefs.h. */ |
| 4836 | _ACEOF |
| 4837 | cat confdefs.h >>conftest.$ac_ext |
| 4838 | cat >>conftest.$ac_ext <<_ACEOF |
| 4839 | /* end confdefs.h. */ |
| 4840 | #include <stdlib.h> |
| 4841 | static void |
| 4842 | foo(void) { |
| 4843 | static $ax_tls_keyword int bar; |
| 4844 | exit(1); |
| 4845 | } |
| 4846 | int |
| 4847 | main () |
| 4848 | { |
| 4849 | |
| 4850 | ; |
| 4851 | return 0; |
| 4852 | } |
| 4853 | _ACEOF |
| 4854 | rm -f conftest.$ac_objext |
| 4855 | if { (ac_try="$ac_compile" |
| 4856 | case "(($ac_try" in |
| 4857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4858 | *) ac_try_echo=$ac_try;; |
| 4859 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4861 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4862 | (eval "$ac_compile") 2>conftest.er1 |
| 4863 | ac_status=$? |
| 4864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4865 | rm -f conftest.er1 |
| 4866 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4868 | (exit $ac_status); } && { |
| 4869 | test -z "$ac_c_werror_flag" || |
| 4870 | test ! -s conftest.err |
| 4871 | } && test -s conftest.$ac_objext; then |
| 4872 | ac_cv_tls=$ax_tls_keyword ; break |
| 4873 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4874 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4876 | |
| 4877 | ac_cv_tls=none |
| 4878 | |
| 4879 | fi |
| 4880 | |
| 4881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4882 | esac |
| 4883 | done |
| 4884 | |
| 4885 | fi |
| 4886 | |
| 4887 | |
| 4888 | if test "$ac_cv_tls" != "none"; then |
| 4889 | |
| 4890 | cat >>confdefs.h <<_ACEOF |
| 4891 | #define TLS $ac_cv_tls |
| 4892 | _ACEOF |
| 4893 | |
| 4894 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4895 | { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4896 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4897 | |
| 4898 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4899 | # Check whether --enable-uuidd was given. |
| 4900 | if test "${enable_uuidd+set}" = set; then |
| 4901 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4902 | then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4903 | { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
| 4904 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4905 | UUIDD_CMT="#" |
| 4906 | else |
| 4907 | cat >>confdefs.h <<\_ACEOF |
| 4908 | #define USE_UUIDD 1 |
| 4909 | _ACEOF |
| 4910 | |
| 4911 | UUIDD_CMT="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4912 | { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5 |
| 4913 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4914 | fi |
| 4915 | |
| 4916 | else |
| 4917 | cat >>confdefs.h <<\_ACEOF |
| 4918 | #define USE_UUIDD 1 |
| 4919 | _ACEOF |
| 4920 | |
| 4921 | UUIDD_CMT="" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4922 | { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
| 4923 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4924 | |
| 4925 | fi |
| 4926 | |
| 4927 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4928 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4929 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4930 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4931 | PACKAGE=e2fsprogs |
| 4932 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4933 | VERSION=0.14.1 |
| 4934 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4935 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4936 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4937 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4938 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4939 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4940 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4941 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4942 | |
| 4943 | |
| 4944 | |
| 4945 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4946 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4947 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4948 | set x ${MAKE-make} |
| 4949 | 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] | 4950 | 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^] | 4951 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4952 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4953 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4954 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4955 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4956 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4957 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4958 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4959 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4960 | *@@@%%%=?*=@@@%%%*) |
| 4961 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4962 | *) |
| 4963 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4964 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4965 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4966 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4967 | 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^] | 4968 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 4969 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4970 | SET_MAKE= |
| 4971 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4972 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4973 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4974 | SET_MAKE="MAKE=${MAKE-make}" |
| 4975 | fi |
| 4976 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4977 | # Find a good install program. We prefer a C program (faster), |
| 4978 | # so one script is as good as another. But avoid the broken or |
| 4979 | # incompatible versions: |
| 4980 | # SysV /etc/install, /usr/sbin/install |
| 4981 | # SunOS /usr/etc/install |
| 4982 | # IRIX /sbin/install |
| 4983 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4984 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4985 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4986 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4987 | # 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] | 4988 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4989 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4990 | # Reject install programs that cannot install multiple files. |
| 4991 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4992 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4993 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4994 | if test "${ac_cv_path_install+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 4995 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4996 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4998 | for as_dir in $PATH |
| 4999 | do |
| 5000 | IFS=$as_save_IFS |
| 5001 | test -z "$as_dir" && as_dir=. |
| 5002 | # Account for people who put trailing slashes in PATH elements. |
| 5003 | case $as_dir/ in |
| 5004 | ./ | .// | /cC/* | \ |
| 5005 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5006 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5007 | /usr/ucb/* ) ;; |
| 5008 | *) |
| 5009 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5010 | # Don't use installbsd from OSF since it installs stuff as root |
| 5011 | # by default. |
| 5012 | for ac_prog in ginstall scoinst install; do |
| 5013 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5014 | 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] | 5015 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5016 | 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] | 5017 | # AIX install. It has an incompatible calling convention. |
| 5018 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5019 | elif test $ac_prog = install && |
| 5020 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5021 | # program-specific install script used by HP pwplus--don't use. |
| 5022 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5023 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5024 | rm -rf conftest.one conftest.two conftest.dir |
| 5025 | echo one > conftest.one |
| 5026 | echo two > conftest.two |
| 5027 | mkdir conftest.dir |
| 5028 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5029 | test -s conftest.one && test -s conftest.two && |
| 5030 | test -s conftest.dir/conftest.one && |
| 5031 | test -s conftest.dir/conftest.two |
| 5032 | then |
| 5033 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5034 | break 3 |
| 5035 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5036 | fi |
| 5037 | fi |
| 5038 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5039 | done |
| 5040 | ;; |
| 5041 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5042 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5043 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5044 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5045 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5046 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5047 | |
| 5048 | fi |
| 5049 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5050 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5051 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5052 | # As a last resort, use the slow shell script. Don't cache a |
| 5053 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5054 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5055 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5056 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5057 | fi |
| 5058 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5059 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5060 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5061 | |
| 5062 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5063 | # It thinks the first close brace ends the variable substitution. |
| 5064 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5065 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5066 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5067 | |
| 5068 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5069 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5070 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5071 | MKINSTALLDIRS= |
| 5072 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5073 | case "$ac_aux_dir" in |
| 5074 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5075 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5076 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5077 | fi |
| 5078 | if test -z "$MKINSTALLDIRS"; then |
| 5079 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5080 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5081 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5082 | |
| 5083 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5084 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 5085 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5086 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5087 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5088 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5089 | else |
| 5090 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5091 | fi |
| 5092 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5093 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 5094 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5095 | |
| 5096 | |
| 5097 | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | # Prepare PATH_SEPARATOR. |
| 5102 | # The user is always right. |
| 5103 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5104 | echo "#! /bin/sh" >conf$$.sh |
| 5105 | echo "exit 0" >>conf$$.sh |
| 5106 | chmod +x conf$$.sh |
| 5107 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5108 | PATH_SEPARATOR=';' |
| 5109 | else |
| 5110 | PATH_SEPARATOR=: |
| 5111 | fi |
| 5112 | rm -f conf$$.sh |
| 5113 | fi |
| 5114 | |
| 5115 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5116 | # as systems may use methods other than mode bits to determine executability. |
| 5117 | cat >conf$$.file <<_ASEOF |
| 5118 | #! /bin/sh |
| 5119 | exit 0 |
| 5120 | _ASEOF |
| 5121 | chmod +x conf$$.file |
| 5122 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5123 | ac_executable_p="test -x" |
| 5124 | else |
| 5125 | ac_executable_p="test -f" |
| 5126 | fi |
| 5127 | rm -f conf$$.file |
| 5128 | |
| 5129 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5130 | set dummy msgfmt; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5131 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5132 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5133 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5134 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5135 | else |
| 5136 | case "$MSGFMT" in |
| 5137 | [\\/]* | ?:[\\/]*) |
| 5138 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5139 | ;; |
| 5140 | *) |
| 5141 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5142 | for ac_dir in $PATH; do |
| 5143 | IFS="$ac_save_IFS" |
| 5144 | test -z "$ac_dir" && ac_dir=. |
| 5145 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5146 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5147 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5148 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5149 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5150 | break 2 |
| 5151 | fi |
| 5152 | fi |
| 5153 | done |
| 5154 | done |
| 5155 | IFS="$ac_save_IFS" |
| 5156 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5157 | ;; |
| 5158 | esac |
| 5159 | fi |
| 5160 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5161 | if test "$MSGFMT" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5162 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 5163 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5164 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5165 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5166 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5167 | fi |
| 5168 | |
| 5169 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5170 | set dummy gmsgfmt; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5171 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5172 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5173 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5174 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5175 | else |
| 5176 | case $GMSGFMT in |
| 5177 | [\\/]* | ?:[\\/]*) |
| 5178 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5179 | ;; |
| 5180 | *) |
| 5181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5182 | for as_dir in $PATH |
| 5183 | do |
| 5184 | IFS=$as_save_IFS |
| 5185 | test -z "$as_dir" && as_dir=. |
| 5186 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5187 | 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] | 5188 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5189 | $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] | 5190 | break 2 |
| 5191 | fi |
| 5192 | done |
| 5193 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5194 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5195 | |
| 5196 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5197 | ;; |
| 5198 | esac |
| 5199 | fi |
| 5200 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5201 | if test -n "$GMSGFMT"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5202 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 5203 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5204 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5205 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5206 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5207 | fi |
| 5208 | |
| 5209 | |
| 5210 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5211 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5212 | # Prepare PATH_SEPARATOR. |
| 5213 | # The user is always right. |
| 5214 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5215 | echo "#! /bin/sh" >conf$$.sh |
| 5216 | echo "exit 0" >>conf$$.sh |
| 5217 | chmod +x conf$$.sh |
| 5218 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5219 | PATH_SEPARATOR=';' |
| 5220 | else |
| 5221 | PATH_SEPARATOR=: |
| 5222 | fi |
| 5223 | rm -f conf$$.sh |
| 5224 | fi |
| 5225 | |
| 5226 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5227 | # as systems may use methods other than mode bits to determine executability. |
| 5228 | cat >conf$$.file <<_ASEOF |
| 5229 | #! /bin/sh |
| 5230 | exit 0 |
| 5231 | _ASEOF |
| 5232 | chmod +x conf$$.file |
| 5233 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5234 | ac_executable_p="test -x" |
| 5235 | else |
| 5236 | ac_executable_p="test -f" |
| 5237 | fi |
| 5238 | rm -f conf$$.file |
| 5239 | |
| 5240 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5241 | set dummy xgettext; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5242 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5243 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5244 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5245 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5246 | else |
| 5247 | case "$XGETTEXT" in |
| 5248 | [\\/]* | ?:[\\/]*) |
| 5249 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5250 | ;; |
| 5251 | *) |
| 5252 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5253 | for ac_dir in $PATH; do |
| 5254 | IFS="$ac_save_IFS" |
| 5255 | test -z "$ac_dir" && ac_dir=. |
| 5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5257 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5258 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5259 | (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 |
| 5260 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5261 | break 2 |
| 5262 | fi |
| 5263 | fi |
| 5264 | done |
| 5265 | done |
| 5266 | IFS="$ac_save_IFS" |
| 5267 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5268 | ;; |
| 5269 | esac |
| 5270 | fi |
| 5271 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5272 | if test "$XGETTEXT" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5273 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 5274 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5275 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5277 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5278 | fi |
| 5279 | |
| 5280 | rm -f messages.po |
| 5281 | |
| 5282 | |
| 5283 | # Prepare PATH_SEPARATOR. |
| 5284 | # The user is always right. |
| 5285 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5286 | echo "#! /bin/sh" >conf$$.sh |
| 5287 | echo "exit 0" >>conf$$.sh |
| 5288 | chmod +x conf$$.sh |
| 5289 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5290 | PATH_SEPARATOR=';' |
| 5291 | else |
| 5292 | PATH_SEPARATOR=: |
| 5293 | fi |
| 5294 | rm -f conf$$.sh |
| 5295 | fi |
| 5296 | |
| 5297 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5298 | # as systems may use methods other than mode bits to determine executability. |
| 5299 | cat >conf$$.file <<_ASEOF |
| 5300 | #! /bin/sh |
| 5301 | exit 0 |
| 5302 | _ASEOF |
| 5303 | chmod +x conf$$.file |
| 5304 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5305 | ac_executable_p="test -x" |
| 5306 | else |
| 5307 | ac_executable_p="test -f" |
| 5308 | fi |
| 5309 | rm -f conf$$.file |
| 5310 | |
| 5311 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5312 | set dummy msgmerge; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5313 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5314 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5315 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5316 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5317 | else |
| 5318 | case "$MSGMERGE" in |
| 5319 | [\\/]* | ?:[\\/]*) |
| 5320 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5321 | ;; |
| 5322 | *) |
| 5323 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5324 | for ac_dir in $PATH; do |
| 5325 | IFS="$ac_save_IFS" |
| 5326 | test -z "$ac_dir" && ac_dir=. |
| 5327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5328 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5329 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5330 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5331 | break 2 |
| 5332 | fi |
| 5333 | fi |
| 5334 | done |
| 5335 | done |
| 5336 | IFS="$ac_save_IFS" |
| 5337 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5338 | ;; |
| 5339 | esac |
| 5340 | fi |
| 5341 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5342 | if test "$MSGMERGE" != ":"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5343 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 5344 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5345 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5346 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5347 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5348 | fi |
| 5349 | |
| 5350 | |
| 5351 | if test "$GMSGFMT" != ":"; then |
| 5352 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5353 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5354 | : ; |
| 5355 | else |
| 5356 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5357 | { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 5358 | $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] | 5359 | GMSGFMT=":" |
| 5360 | fi |
| 5361 | fi |
| 5362 | |
| 5363 | if test "$XGETTEXT" != ":"; then |
| 5364 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5365 | (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 |
| 5366 | : ; |
| 5367 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5368 | { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 5369 | $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] | 5370 | XGETTEXT=":" |
| 5371 | fi |
| 5372 | rm -f messages.po |
| 5373 | fi |
| 5374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5376 | |
| 5377 | |
| 5378 | if test -n "$ac_tool_prefix"; then |
| 5379 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5380 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5381 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5382 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5383 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5384 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5385 | else |
| 5386 | if test -n "$RANLIB"; then |
| 5387 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5388 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5390 | for as_dir in $PATH |
| 5391 | do |
| 5392 | IFS=$as_save_IFS |
| 5393 | test -z "$as_dir" && as_dir=. |
| 5394 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5395 | 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] | 5396 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5397 | $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] | 5398 | break 2 |
| 5399 | fi |
| 5400 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5401 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5402 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5403 | |
| 5404 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5405 | fi |
| 5406 | RANLIB=$ac_cv_prog_RANLIB |
| 5407 | if test -n "$RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5408 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5409 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5410 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5411 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5412 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5413 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5414 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5415 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5416 | fi |
| 5417 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5418 | ac_ct_RANLIB=$RANLIB |
| 5419 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5420 | set dummy ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5421 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5422 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5423 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5424 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5425 | else |
| 5426 | if test -n "$ac_ct_RANLIB"; then |
| 5427 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5428 | else |
| 5429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5430 | for as_dir in $PATH |
| 5431 | do |
| 5432 | IFS=$as_save_IFS |
| 5433 | test -z "$as_dir" && as_dir=. |
| 5434 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5435 | 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] | 5436 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5437 | $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] | 5438 | break 2 |
| 5439 | fi |
| 5440 | done |
| 5441 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5442 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5443 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5444 | fi |
| 5445 | fi |
| 5446 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5447 | if test -n "$ac_ct_RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5448 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5449 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5450 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5451 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5452 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5453 | fi |
| 5454 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5455 | if test "x$ac_ct_RANLIB" = x; then |
| 5456 | RANLIB=":" |
| 5457 | else |
| 5458 | case $cross_compiling:$ac_tool_warned in |
| 5459 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5460 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5461 | $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] | 5462 | ac_tool_warned=yes ;; |
| 5463 | esac |
| 5464 | RANLIB=$ac_ct_RANLIB |
| 5465 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5466 | else |
| 5467 | RANLIB="$ac_cv_prog_RANLIB" |
| 5468 | fi |
| 5469 | |
| 5470 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5471 | { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5472 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5473 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5474 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5475 | else |
| 5476 | ac_check_lib_save_LIBS=$LIBS |
| 5477 | LIBS="-lcposix $LIBS" |
| 5478 | cat >conftest.$ac_ext <<_ACEOF |
| 5479 | /* confdefs.h. */ |
| 5480 | _ACEOF |
| 5481 | cat confdefs.h >>conftest.$ac_ext |
| 5482 | cat >>conftest.$ac_ext <<_ACEOF |
| 5483 | /* end confdefs.h. */ |
| 5484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5485 | /* Override any GCC internal prototype to avoid an error. |
| 5486 | Use char because int might match the return type of a GCC |
| 5487 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5488 | #ifdef __cplusplus |
| 5489 | extern "C" |
| 5490 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5491 | char strerror (); |
| 5492 | int |
| 5493 | main () |
| 5494 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5495 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5496 | ; |
| 5497 | return 0; |
| 5498 | } |
| 5499 | _ACEOF |
| 5500 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5501 | if { (ac_try="$ac_link" |
| 5502 | case "(($ac_try" in |
| 5503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5504 | *) ac_try_echo=$ac_try;; |
| 5505 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5507 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5508 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5509 | ac_status=$? |
| 5510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5511 | rm -f conftest.er1 |
| 5512 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5514 | (exit $ac_status); } && { |
| 5515 | test -z "$ac_c_werror_flag" || |
| 5516 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5517 | } && test -s conftest$ac_exeext && { |
| 5518 | test "$cross_compiling" = yes || |
| 5519 | $as_test_x conftest$ac_exeext |
| 5520 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5521 | ac_cv_lib_cposix_strerror=yes |
| 5522 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5523 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5526 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5527 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5528 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5529 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5530 | 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] | 5531 | conftest$ac_exeext conftest.$ac_ext |
| 5532 | LIBS=$ac_check_lib_save_LIBS |
| 5533 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5534 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5535 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
| 5536 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5537 | LIBS="$LIBS -lcposix" |
| 5538 | fi |
| 5539 | |
| 5540 | |
| 5541 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5542 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5543 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5544 | if test "${ac_cv_c_const+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5545 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5546 | else |
| 5547 | cat >conftest.$ac_ext <<_ACEOF |
| 5548 | /* confdefs.h. */ |
| 5549 | _ACEOF |
| 5550 | cat confdefs.h >>conftest.$ac_ext |
| 5551 | cat >>conftest.$ac_ext <<_ACEOF |
| 5552 | /* end confdefs.h. */ |
| 5553 | |
| 5554 | int |
| 5555 | main () |
| 5556 | { |
| 5557 | /* FIXME: Include the comments suggested by Paul. */ |
| 5558 | #ifndef __cplusplus |
| 5559 | /* Ultrix mips cc rejects this. */ |
| 5560 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5561 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5562 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5563 | char const *const *pcpcc; |
| 5564 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5565 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5566 | struct point {int x, y;}; |
| 5567 | static struct point const zero = {0,0}; |
| 5568 | /* AIX XL C 1.02.0.0 rejects this. |
| 5569 | It does not let you subtract one const X* pointer from another in |
| 5570 | an arm of an if-expression whose if-part is not a constant |
| 5571 | expression */ |
| 5572 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5573 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5574 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5575 | ++pcpcc; |
| 5576 | ppc = (char**) pcpcc; |
| 5577 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5578 | { /* SCO 3.2v4 cc rejects this. */ |
| 5579 | char *t; |
| 5580 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5581 | |
| 5582 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5583 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5584 | } |
| 5585 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5586 | int x[] = {25, 17}; |
| 5587 | const int *foo = &x[0]; |
| 5588 | ++foo; |
| 5589 | } |
| 5590 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5591 | typedef const int *iptr; |
| 5592 | iptr p = 0; |
| 5593 | ++p; |
| 5594 | } |
| 5595 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5596 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5597 | struct s { int j; const int *ap[3]; }; |
| 5598 | struct s *b; b->j = 5; |
| 5599 | } |
| 5600 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5601 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5602 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5603 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5604 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5605 | #endif |
| 5606 | |
| 5607 | ; |
| 5608 | return 0; |
| 5609 | } |
| 5610 | _ACEOF |
| 5611 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5612 | if { (ac_try="$ac_compile" |
| 5613 | case "(($ac_try" in |
| 5614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5615 | *) ac_try_echo=$ac_try;; |
| 5616 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5618 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5619 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5620 | ac_status=$? |
| 5621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5622 | rm -f conftest.er1 |
| 5623 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5625 | (exit $ac_status); } && { |
| 5626 | test -z "$ac_c_werror_flag" || |
| 5627 | test ! -s conftest.err |
| 5628 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5629 | ac_cv_c_const=yes |
| 5630 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5631 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5633 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5634 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5635 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5636 | |
| 5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5638 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5640 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5641 | if test $ac_cv_c_const = no; then |
| 5642 | |
| 5643 | cat >>confdefs.h <<\_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5644 | #define const /**/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5645 | _ACEOF |
| 5646 | |
| 5647 | fi |
| 5648 | |
| 5649 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5650 | { $as_echo "$as_me:$LINENO: checking for signed" >&5 |
| 5651 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | if test "${bh_cv_c_signed+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5653 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5654 | else |
| 5655 | cat >conftest.$ac_ext <<_ACEOF |
| 5656 | /* confdefs.h. */ |
| 5657 | _ACEOF |
| 5658 | cat confdefs.h >>conftest.$ac_ext |
| 5659 | cat >>conftest.$ac_ext <<_ACEOF |
| 5660 | /* end confdefs.h. */ |
| 5661 | |
| 5662 | int |
| 5663 | main () |
| 5664 | { |
| 5665 | signed char x; |
| 5666 | ; |
| 5667 | return 0; |
| 5668 | } |
| 5669 | _ACEOF |
| 5670 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5671 | if { (ac_try="$ac_compile" |
| 5672 | case "(($ac_try" in |
| 5673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5674 | *) ac_try_echo=$ac_try;; |
| 5675 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5677 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5678 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5679 | ac_status=$? |
| 5680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5681 | rm -f conftest.er1 |
| 5682 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5684 | (exit $ac_status); } && { |
| 5685 | test -z "$ac_c_werror_flag" || |
| 5686 | test ! -s conftest.err |
| 5687 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5688 | bh_cv_c_signed=yes |
| 5689 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5690 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5693 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5694 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5695 | |
| 5696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5697 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5698 | { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5699 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5700 | if test $bh_cv_c_signed = no; then |
| 5701 | |
| 5702 | cat >>confdefs.h <<\_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5703 | #define signed /**/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5704 | _ACEOF |
| 5705 | |
| 5706 | fi |
| 5707 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5708 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
| 5709 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5710 | if test "${ac_cv_c_inline+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5711 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5712 | else |
| 5713 | ac_cv_c_inline=no |
| 5714 | for ac_kw in inline __inline__ __inline; do |
| 5715 | cat >conftest.$ac_ext <<_ACEOF |
| 5716 | /* confdefs.h. */ |
| 5717 | _ACEOF |
| 5718 | cat confdefs.h >>conftest.$ac_ext |
| 5719 | cat >>conftest.$ac_ext <<_ACEOF |
| 5720 | /* end confdefs.h. */ |
| 5721 | #ifndef __cplusplus |
| 5722 | typedef int foo_t; |
| 5723 | static $ac_kw foo_t static_foo () {return 0; } |
| 5724 | $ac_kw foo_t foo () {return 0; } |
| 5725 | #endif |
| 5726 | |
| 5727 | _ACEOF |
| 5728 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5729 | if { (ac_try="$ac_compile" |
| 5730 | case "(($ac_try" in |
| 5731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5732 | *) ac_try_echo=$ac_try;; |
| 5733 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5735 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5736 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5737 | ac_status=$? |
| 5738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5739 | rm -f conftest.er1 |
| 5740 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5742 | (exit $ac_status); } && { |
| 5743 | test -z "$ac_c_werror_flag" || |
| 5744 | test ! -s conftest.err |
| 5745 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5746 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5747 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5748 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5751 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5752 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5753 | |
| 5754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5755 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5756 | done |
| 5757 | |
| 5758 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5760 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5761 | |
| 5762 | |
| 5763 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5764 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5765 | *) |
| 5766 | case $ac_cv_c_inline in |
| 5767 | no) ac_val=;; |
| 5768 | *) ac_val=$ac_cv_c_inline;; |
| 5769 | esac |
| 5770 | cat >>confdefs.h <<_ACEOF |
| 5771 | #ifndef __cplusplus |
| 5772 | #define inline $ac_val |
| 5773 | #endif |
| 5774 | _ACEOF |
| 5775 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5776 | esac |
| 5777 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5778 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5779 | $as_echo_n "checking for off_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5780 | if test "${ac_cv_type_off_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5781 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5782 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5783 | ac_cv_type_off_t=no |
| 5784 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5785 | /* confdefs.h. */ |
| 5786 | _ACEOF |
| 5787 | cat confdefs.h >>conftest.$ac_ext |
| 5788 | cat >>conftest.$ac_ext <<_ACEOF |
| 5789 | /* end confdefs.h. */ |
| 5790 | $ac_includes_default |
| 5791 | int |
| 5792 | main () |
| 5793 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5794 | if (sizeof (off_t)) |
| 5795 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5796 | ; |
| 5797 | return 0; |
| 5798 | } |
| 5799 | _ACEOF |
| 5800 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5801 | if { (ac_try="$ac_compile" |
| 5802 | case "(($ac_try" in |
| 5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5804 | *) ac_try_echo=$ac_try;; |
| 5805 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5807 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5808 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5809 | ac_status=$? |
| 5810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5811 | rm -f conftest.er1 |
| 5812 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5814 | (exit $ac_status); } && { |
| 5815 | test -z "$ac_c_werror_flag" || |
| 5816 | test ! -s conftest.err |
| 5817 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5818 | cat >conftest.$ac_ext <<_ACEOF |
| 5819 | /* confdefs.h. */ |
| 5820 | _ACEOF |
| 5821 | cat confdefs.h >>conftest.$ac_ext |
| 5822 | cat >>conftest.$ac_ext <<_ACEOF |
| 5823 | /* end confdefs.h. */ |
| 5824 | $ac_includes_default |
| 5825 | int |
| 5826 | main () |
| 5827 | { |
| 5828 | if (sizeof ((off_t))) |
| 5829 | return 0; |
| 5830 | ; |
| 5831 | return 0; |
| 5832 | } |
| 5833 | _ACEOF |
| 5834 | rm -f conftest.$ac_objext |
| 5835 | if { (ac_try="$ac_compile" |
| 5836 | case "(($ac_try" in |
| 5837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5838 | *) ac_try_echo=$ac_try;; |
| 5839 | esac |
| 5840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5841 | $as_echo "$ac_try_echo") >&5 |
| 5842 | (eval "$ac_compile") 2>conftest.er1 |
| 5843 | ac_status=$? |
| 5844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5845 | rm -f conftest.er1 |
| 5846 | cat conftest.err >&5 |
| 5847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5848 | (exit $ac_status); } && { |
| 5849 | test -z "$ac_c_werror_flag" || |
| 5850 | test ! -s conftest.err |
| 5851 | } && test -s conftest.$ac_objext; then |
| 5852 | : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5853 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5854 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5855 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5856 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5857 | ac_cv_type_off_t=yes |
| 5858 | fi |
| 5859 | |
| 5860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5861 | else |
| 5862 | $as_echo "$as_me: failed program was:" >&5 |
| 5863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5864 | |
| 5865 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5866 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5867 | |
| 5868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5869 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5871 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 5872 | if test "x$ac_cv_type_off_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5873 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5874 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5875 | |
| 5876 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5877 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5878 | _ACEOF |
| 5879 | |
| 5880 | fi |
| 5881 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5882 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5883 | $as_echo_n "checking for size_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5884 | if test "${ac_cv_type_size_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5885 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5886 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5887 | ac_cv_type_size_t=no |
| 5888 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5889 | /* confdefs.h. */ |
| 5890 | _ACEOF |
| 5891 | cat confdefs.h >>conftest.$ac_ext |
| 5892 | cat >>conftest.$ac_ext <<_ACEOF |
| 5893 | /* end confdefs.h. */ |
| 5894 | $ac_includes_default |
| 5895 | int |
| 5896 | main () |
| 5897 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5898 | if (sizeof (size_t)) |
| 5899 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5905 | if { (ac_try="$ac_compile" |
| 5906 | case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5911 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5912 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5913 | ac_status=$? |
| 5914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5915 | rm -f conftest.er1 |
| 5916 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5918 | (exit $ac_status); } && { |
| 5919 | test -z "$ac_c_werror_flag" || |
| 5920 | test ! -s conftest.err |
| 5921 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5922 | cat >conftest.$ac_ext <<_ACEOF |
| 5923 | /* confdefs.h. */ |
| 5924 | _ACEOF |
| 5925 | cat confdefs.h >>conftest.$ac_ext |
| 5926 | cat >>conftest.$ac_ext <<_ACEOF |
| 5927 | /* end confdefs.h. */ |
| 5928 | $ac_includes_default |
| 5929 | int |
| 5930 | main () |
| 5931 | { |
| 5932 | if (sizeof ((size_t))) |
| 5933 | return 0; |
| 5934 | ; |
| 5935 | return 0; |
| 5936 | } |
| 5937 | _ACEOF |
| 5938 | rm -f conftest.$ac_objext |
| 5939 | if { (ac_try="$ac_compile" |
| 5940 | case "(($ac_try" in |
| 5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5942 | *) ac_try_echo=$ac_try;; |
| 5943 | esac |
| 5944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5945 | $as_echo "$ac_try_echo") >&5 |
| 5946 | (eval "$ac_compile") 2>conftest.er1 |
| 5947 | ac_status=$? |
| 5948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5949 | rm -f conftest.er1 |
| 5950 | cat conftest.err >&5 |
| 5951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5952 | (exit $ac_status); } && { |
| 5953 | test -z "$ac_c_werror_flag" || |
| 5954 | test ! -s conftest.err |
| 5955 | } && test -s conftest.$ac_objext; then |
| 5956 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5957 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5958 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5960 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5961 | ac_cv_type_size_t=yes |
| 5962 | fi |
| 5963 | |
| 5964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5965 | else |
| 5966 | $as_echo "$as_me: failed program was:" >&5 |
| 5967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5968 | |
| 5969 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5971 | |
| 5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5973 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5975 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 5976 | if test "x$ac_cv_type_size_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5977 | : |
| 5978 | else |
| 5979 | |
| 5980 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5981 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5982 | _ACEOF |
| 5983 | |
| 5984 | fi |
| 5985 | |
| 5986 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5987 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 |
| 5988 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5989 | if test "${ac_cv_type_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 5990 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5991 | else |
| 5992 | cat >conftest.$ac_ext <<_ACEOF |
| 5993 | /* confdefs.h. */ |
| 5994 | _ACEOF |
| 5995 | cat confdefs.h >>conftest.$ac_ext |
| 5996 | cat >>conftest.$ac_ext <<_ACEOF |
| 5997 | /* end confdefs.h. */ |
| 5998 | long long ll = 1LL; int i = 63; |
| 5999 | int |
| 6000 | main () |
| 6001 | { |
| 6002 | long long llmax = (long long) -1; |
| 6003 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6004 | ; |
| 6005 | return 0; |
| 6006 | } |
| 6007 | _ACEOF |
| 6008 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6009 | if { (ac_try="$ac_link" |
| 6010 | case "(($ac_try" in |
| 6011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6012 | *) ac_try_echo=$ac_try;; |
| 6013 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6015 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6016 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6017 | ac_status=$? |
| 6018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6019 | rm -f conftest.er1 |
| 6020 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6022 | (exit $ac_status); } && { |
| 6023 | test -z "$ac_c_werror_flag" || |
| 6024 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6025 | } && test -s conftest$ac_exeext && { |
| 6026 | test "$cross_compiling" = yes || |
| 6027 | $as_test_x conftest$ac_exeext |
| 6028 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | ac_cv_type_long_long=yes |
| 6030 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6031 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6033 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6034 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6035 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6036 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6037 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6038 | 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] | 6039 | conftest$ac_exeext conftest.$ac_ext |
| 6040 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 6042 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | if test $ac_cv_type_long_long = yes; then |
| 6044 | |
| 6045 | cat >>confdefs.h <<\_ACEOF |
| 6046 | #define HAVE_LONG_LONG 1 |
| 6047 | _ACEOF |
| 6048 | |
| 6049 | fi |
| 6050 | |
| 6051 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6052 | { $as_echo "$as_me:$LINENO: checking for long double" >&5 |
| 6053 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | if test "${gt_cv_c_long_double+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6055 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6056 | else |
| 6057 | if test "$GCC" = yes; then |
| 6058 | gt_cv_c_long_double=yes |
| 6059 | else |
| 6060 | cat >conftest.$ac_ext <<_ACEOF |
| 6061 | /* confdefs.h. */ |
| 6062 | _ACEOF |
| 6063 | cat confdefs.h >>conftest.$ac_ext |
| 6064 | cat >>conftest.$ac_ext <<_ACEOF |
| 6065 | /* end confdefs.h. */ |
| 6066 | |
| 6067 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6068 | long double foo = 0.0; |
| 6069 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6070 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6071 | |
| 6072 | int |
| 6073 | main () |
| 6074 | { |
| 6075 | |
| 6076 | ; |
| 6077 | return 0; |
| 6078 | } |
| 6079 | _ACEOF |
| 6080 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6081 | if { (ac_try="$ac_compile" |
| 6082 | case "(($ac_try" in |
| 6083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6084 | *) ac_try_echo=$ac_try;; |
| 6085 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6087 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6088 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | ac_status=$? |
| 6090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6091 | rm -f conftest.er1 |
| 6092 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6094 | (exit $ac_status); } && { |
| 6095 | test -z "$ac_c_werror_flag" || |
| 6096 | test ! -s conftest.err |
| 6097 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | gt_cv_c_long_double=yes |
| 6099 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6100 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6103 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6104 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6105 | |
| 6106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6107 | fi |
| 6108 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6109 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 6110 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6111 | if test $gt_cv_c_long_double = yes; then |
| 6112 | |
| 6113 | cat >>confdefs.h <<\_ACEOF |
| 6114 | #define HAVE_LONG_DOUBLE 1 |
| 6115 | _ACEOF |
| 6116 | |
| 6117 | fi |
| 6118 | |
| 6119 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6120 | { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 6121 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6122 | if test "${gt_cv_c_wchar_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6123 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6124 | else |
| 6125 | cat >conftest.$ac_ext <<_ACEOF |
| 6126 | /* confdefs.h. */ |
| 6127 | _ACEOF |
| 6128 | cat confdefs.h >>conftest.$ac_ext |
| 6129 | cat >>conftest.$ac_ext <<_ACEOF |
| 6130 | /* end confdefs.h. */ |
| 6131 | #include <stddef.h> |
| 6132 | wchar_t foo = (wchar_t)'\0'; |
| 6133 | int |
| 6134 | main () |
| 6135 | { |
| 6136 | |
| 6137 | ; |
| 6138 | return 0; |
| 6139 | } |
| 6140 | _ACEOF |
| 6141 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6142 | if { (ac_try="$ac_compile" |
| 6143 | case "(($ac_try" in |
| 6144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6145 | *) ac_try_echo=$ac_try;; |
| 6146 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6148 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6149 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6150 | ac_status=$? |
| 6151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6152 | rm -f conftest.er1 |
| 6153 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6155 | (exit $ac_status); } && { |
| 6156 | test -z "$ac_c_werror_flag" || |
| 6157 | test ! -s conftest.err |
| 6158 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6159 | gt_cv_c_wchar_t=yes |
| 6160 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6161 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6164 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6165 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6166 | |
| 6167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6168 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6169 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 6170 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6171 | if test $gt_cv_c_wchar_t = yes; then |
| 6172 | |
| 6173 | cat >>confdefs.h <<\_ACEOF |
| 6174 | #define HAVE_WCHAR_T 1 |
| 6175 | _ACEOF |
| 6176 | |
| 6177 | fi |
| 6178 | |
| 6179 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6180 | { $as_echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 6181 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | if test "${gt_cv_c_wint_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6183 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6184 | else |
| 6185 | cat >conftest.$ac_ext <<_ACEOF |
| 6186 | /* confdefs.h. */ |
| 6187 | _ACEOF |
| 6188 | cat confdefs.h >>conftest.$ac_ext |
| 6189 | cat >>conftest.$ac_ext <<_ACEOF |
| 6190 | /* end confdefs.h. */ |
| 6191 | #include <wchar.h> |
| 6192 | wint_t foo = (wchar_t)'\0'; |
| 6193 | int |
| 6194 | main () |
| 6195 | { |
| 6196 | |
| 6197 | ; |
| 6198 | return 0; |
| 6199 | } |
| 6200 | _ACEOF |
| 6201 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6202 | if { (ac_try="$ac_compile" |
| 6203 | case "(($ac_try" in |
| 6204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6205 | *) ac_try_echo=$ac_try;; |
| 6206 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6208 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6210 | ac_status=$? |
| 6211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6212 | rm -f conftest.er1 |
| 6213 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6215 | (exit $ac_status); } && { |
| 6216 | test -z "$ac_c_werror_flag" || |
| 6217 | test ! -s conftest.err |
| 6218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6219 | gt_cv_c_wint_t=yes |
| 6220 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6221 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6224 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6225 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6226 | |
| 6227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6228 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6229 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 6230 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6231 | if test $gt_cv_c_wint_t = yes; then |
| 6232 | |
| 6233 | cat >>confdefs.h <<\_ACEOF |
| 6234 | #define HAVE_WINT_T 1 |
| 6235 | _ACEOF |
| 6236 | |
| 6237 | fi |
| 6238 | |
| 6239 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6240 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6241 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6242 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6243 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6244 | else |
| 6245 | cat >conftest.$ac_ext <<_ACEOF |
| 6246 | /* confdefs.h. */ |
| 6247 | _ACEOF |
| 6248 | cat confdefs.h >>conftest.$ac_ext |
| 6249 | cat >>conftest.$ac_ext <<_ACEOF |
| 6250 | /* end confdefs.h. */ |
| 6251 | #include <sys/types.h> |
| 6252 | #include <inttypes.h> |
| 6253 | int |
| 6254 | main () |
| 6255 | { |
| 6256 | uintmax_t i = (uintmax_t) -1; |
| 6257 | ; |
| 6258 | return 0; |
| 6259 | } |
| 6260 | _ACEOF |
| 6261 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6262 | if { (ac_try="$ac_compile" |
| 6263 | case "(($ac_try" in |
| 6264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6265 | *) ac_try_echo=$ac_try;; |
| 6266 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6268 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6269 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6270 | ac_status=$? |
| 6271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6272 | rm -f conftest.er1 |
| 6273 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6275 | (exit $ac_status); } && { |
| 6276 | test -z "$ac_c_werror_flag" || |
| 6277 | test ! -s conftest.err |
| 6278 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6279 | jm_ac_cv_header_inttypes_h=yes |
| 6280 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6281 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6284 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6285 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6286 | |
| 6287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6288 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6289 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 6290 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6291 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6292 | |
| 6293 | cat >>confdefs.h <<_ACEOF |
| 6294 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6295 | _ACEOF |
| 6296 | |
| 6297 | fi |
| 6298 | |
| 6299 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6300 | { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6301 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6302 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6303 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6304 | else |
| 6305 | cat >conftest.$ac_ext <<_ACEOF |
| 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
| 6311 | #include <sys/types.h> |
| 6312 | #include <stdint.h> |
| 6313 | int |
| 6314 | main () |
| 6315 | { |
| 6316 | uintmax_t i = (uintmax_t) -1; |
| 6317 | ; |
| 6318 | return 0; |
| 6319 | } |
| 6320 | _ACEOF |
| 6321 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6322 | if { (ac_try="$ac_compile" |
| 6323 | case "(($ac_try" in |
| 6324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6325 | *) ac_try_echo=$ac_try;; |
| 6326 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6328 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6329 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6330 | ac_status=$? |
| 6331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6332 | rm -f conftest.er1 |
| 6333 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6335 | (exit $ac_status); } && { |
| 6336 | test -z "$ac_c_werror_flag" || |
| 6337 | test ! -s conftest.err |
| 6338 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6339 | jm_ac_cv_header_stdint_h=yes |
| 6340 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6341 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6344 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6345 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6346 | |
| 6347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6348 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6349 | { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 6350 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6351 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6352 | |
| 6353 | cat >>confdefs.h <<_ACEOF |
| 6354 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6355 | _ACEOF |
| 6356 | |
| 6357 | fi |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6362 | { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 6363 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6364 | if test "${gt_cv_c_intmax_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6365 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6366 | else |
| 6367 | cat >conftest.$ac_ext <<_ACEOF |
| 6368 | /* confdefs.h. */ |
| 6369 | _ACEOF |
| 6370 | cat confdefs.h >>conftest.$ac_ext |
| 6371 | cat >>conftest.$ac_ext <<_ACEOF |
| 6372 | /* end confdefs.h. */ |
| 6373 | |
| 6374 | #include <stddef.h> |
| 6375 | #include <stdlib.h> |
| 6376 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6377 | #include <stdint.h> |
| 6378 | #endif |
| 6379 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6380 | #include <inttypes.h> |
| 6381 | #endif |
| 6382 | |
| 6383 | int |
| 6384 | main () |
| 6385 | { |
| 6386 | intmax_t x = -1; |
| 6387 | ; |
| 6388 | return 0; |
| 6389 | } |
| 6390 | _ACEOF |
| 6391 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6392 | if { (ac_try="$ac_compile" |
| 6393 | case "(($ac_try" in |
| 6394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6395 | *) ac_try_echo=$ac_try;; |
| 6396 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6398 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6399 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | ac_status=$? |
| 6401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6402 | rm -f conftest.er1 |
| 6403 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6405 | (exit $ac_status); } && { |
| 6406 | test -z "$ac_c_werror_flag" || |
| 6407 | test ! -s conftest.err |
| 6408 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6409 | gt_cv_c_intmax_t=yes |
| 6410 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6411 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6413 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6414 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6415 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6416 | |
| 6417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6418 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6419 | { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 6420 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6421 | if test $gt_cv_c_intmax_t = yes; then |
| 6422 | |
| 6423 | cat >>confdefs.h <<\_ACEOF |
| 6424 | #define HAVE_INTMAX_T 1 |
| 6425 | _ACEOF |
| 6426 | |
| 6427 | fi |
| 6428 | |
| 6429 | |
| 6430 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6431 | { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 6432 | $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] | 6433 | if test "${gt_cv_func_printf_posix+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6434 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6435 | else |
| 6436 | |
| 6437 | if test "$cross_compiling" = yes; then |
| 6438 | |
| 6439 | cat >conftest.$ac_ext <<_ACEOF |
| 6440 | /* confdefs.h. */ |
| 6441 | _ACEOF |
| 6442 | cat confdefs.h >>conftest.$ac_ext |
| 6443 | cat >>conftest.$ac_ext <<_ACEOF |
| 6444 | /* end confdefs.h. */ |
| 6445 | |
| 6446 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6447 | notposix |
| 6448 | #endif |
| 6449 | |
| 6450 | _ACEOF |
| 6451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6452 | $EGREP "notposix" >/dev/null 2>&1; then |
| 6453 | gt_cv_func_printf_posix="guessing no" |
| 6454 | else |
| 6455 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6456 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6457 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6459 | |
| 6460 | else |
| 6461 | cat >conftest.$ac_ext <<_ACEOF |
| 6462 | /* confdefs.h. */ |
| 6463 | _ACEOF |
| 6464 | cat confdefs.h >>conftest.$ac_ext |
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
| 6466 | /* end confdefs.h. */ |
| 6467 | |
| 6468 | #include <stdio.h> |
| 6469 | #include <string.h> |
| 6470 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6471 | dollar expansion (possibly an autoconf bug). */ |
| 6472 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6473 | static char buf[100]; |
| 6474 | int main () |
| 6475 | { |
| 6476 | sprintf (buf, format, 33, 55); |
| 6477 | return (strcmp (buf, "55 33") != 0); |
| 6478 | } |
| 6479 | _ACEOF |
| 6480 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6481 | if { (ac_try="$ac_link" |
| 6482 | case "(($ac_try" in |
| 6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6484 | *) ac_try_echo=$ac_try;; |
| 6485 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6487 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6488 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6489 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6492 | { (case "(($ac_try" in |
| 6493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6494 | *) ac_try_echo=$ac_try;; |
| 6495 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6497 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6498 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6499 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | (exit $ac_status); }; }; then |
| 6502 | gt_cv_func_printf_posix=yes |
| 6503 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6504 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6505 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6507 | |
| 6508 | ( exit $ac_status ) |
| 6509 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6510 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6511 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6512 | 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] | 6513 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6514 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6515 | |
| 6516 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6517 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6518 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6519 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6520 | case $gt_cv_func_printf_posix in |
| 6521 | *yes) |
| 6522 | |
| 6523 | cat >>confdefs.h <<\_ACEOF |
| 6524 | #define HAVE_POSIX_PRINTF 1 |
| 6525 | _ACEOF |
| 6526 | |
| 6527 | ;; |
| 6528 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6529 | |
| 6530 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6531 | # for constant arguments. Useless! |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6532 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6533 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6534 | if test "${ac_cv_working_alloca_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6535 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6536 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6537 | cat >conftest.$ac_ext <<_ACEOF |
| 6538 | /* confdefs.h. */ |
| 6539 | _ACEOF |
| 6540 | cat confdefs.h >>conftest.$ac_ext |
| 6541 | cat >>conftest.$ac_ext <<_ACEOF |
| 6542 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6543 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6544 | int |
| 6545 | main () |
| 6546 | { |
| 6547 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6548 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6549 | ; |
| 6550 | return 0; |
| 6551 | } |
| 6552 | _ACEOF |
| 6553 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6554 | if { (ac_try="$ac_link" |
| 6555 | case "(($ac_try" in |
| 6556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6557 | *) ac_try_echo=$ac_try;; |
| 6558 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6560 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6561 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6562 | ac_status=$? |
| 6563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6564 | rm -f conftest.er1 |
| 6565 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6567 | (exit $ac_status); } && { |
| 6568 | test -z "$ac_c_werror_flag" || |
| 6569 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6570 | } && test -s conftest$ac_exeext && { |
| 6571 | test "$cross_compiling" = yes || |
| 6572 | $as_test_x conftest$ac_exeext |
| 6573 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6574 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6575 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6576 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6577 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6578 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6579 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6580 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6581 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6582 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6583 | 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] | 6584 | conftest$ac_exeext conftest.$ac_ext |
| 6585 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6587 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | if test $ac_cv_working_alloca_h = yes; then |
| 6589 | |
| 6590 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6591 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6592 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6593 | |
| 6594 | fi |
| 6595 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6596 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6597 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6598 | if test "${ac_cv_func_alloca_works+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6599 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6600 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | cat >conftest.$ac_ext <<_ACEOF |
| 6602 | /* confdefs.h. */ |
| 6603 | _ACEOF |
| 6604 | cat confdefs.h >>conftest.$ac_ext |
| 6605 | cat >>conftest.$ac_ext <<_ACEOF |
| 6606 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6607 | #ifdef __GNUC__ |
| 6608 | # define alloca __builtin_alloca |
| 6609 | #else |
| 6610 | # ifdef _MSC_VER |
| 6611 | # include <malloc.h> |
| 6612 | # define alloca _alloca |
| 6613 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6614 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6615 | # include <alloca.h> |
| 6616 | # else |
| 6617 | # ifdef _AIX |
| 6618 | #pragma alloca |
| 6619 | # else |
| 6620 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6621 | char *alloca (); |
| 6622 | # endif |
| 6623 | # endif |
| 6624 | # endif |
| 6625 | # endif |
| 6626 | #endif |
| 6627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | int |
| 6629 | main () |
| 6630 | { |
| 6631 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6632 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6633 | ; |
| 6634 | return 0; |
| 6635 | } |
| 6636 | _ACEOF |
| 6637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6638 | if { (ac_try="$ac_link" |
| 6639 | case "(($ac_try" in |
| 6640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6641 | *) ac_try_echo=$ac_try;; |
| 6642 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6644 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6645 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | ac_status=$? |
| 6647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6648 | rm -f conftest.er1 |
| 6649 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6651 | (exit $ac_status); } && { |
| 6652 | test -z "$ac_c_werror_flag" || |
| 6653 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6654 | } && test -s conftest$ac_exeext && { |
| 6655 | test "$cross_compiling" = yes || |
| 6656 | $as_test_x conftest$ac_exeext |
| 6657 | }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6658 | ac_cv_func_alloca_works=yes |
| 6659 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6660 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6661 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6662 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6663 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6665 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6666 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6667 | 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] | 6668 | conftest$ac_exeext conftest.$ac_ext |
| 6669 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6671 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6673 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6674 | |
| 6675 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6676 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6678 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6679 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6680 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6681 | # that cause trouble. Some versions do not even contain alloca or |
| 6682 | # contain a buggy version. If you still want to use their alloca, |
| 6683 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6684 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6685 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6686 | |
| 6687 | cat >>confdefs.h <<\_ACEOF |
| 6688 | #define C_ALLOCA 1 |
| 6689 | _ACEOF |
| 6690 | |
| 6691 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6692 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6693 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | if test "${ac_cv_os_cray+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6695 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6696 | else |
| 6697 | cat >conftest.$ac_ext <<_ACEOF |
| 6698 | /* confdefs.h. */ |
| 6699 | _ACEOF |
| 6700 | cat confdefs.h >>conftest.$ac_ext |
| 6701 | cat >>conftest.$ac_ext <<_ACEOF |
| 6702 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6703 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6704 | webecray |
| 6705 | #else |
| 6706 | wenotbecray |
| 6707 | #endif |
| 6708 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6709 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6711 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6712 | ac_cv_os_cray=yes |
| 6713 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6714 | ac_cv_os_cray=no |
| 6715 | fi |
| 6716 | rm -f conftest* |
| 6717 | |
| 6718 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6720 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6721 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6722 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6723 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6724 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6725 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6726 | 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^] | 6727 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6728 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | cat >conftest.$ac_ext <<_ACEOF |
| 6730 | /* confdefs.h. */ |
| 6731 | _ACEOF |
| 6732 | cat confdefs.h >>conftest.$ac_ext |
| 6733 | cat >>conftest.$ac_ext <<_ACEOF |
| 6734 | /* end confdefs.h. */ |
| 6735 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6736 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6737 | #define $ac_func innocuous_$ac_func |
| 6738 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6739 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | which can conflict with char $ac_func (); below. |
| 6741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6742 | <limits.h> exists even on freestanding compilers. */ |
| 6743 | |
| 6744 | #ifdef __STDC__ |
| 6745 | # include <limits.h> |
| 6746 | #else |
| 6747 | # include <assert.h> |
| 6748 | #endif |
| 6749 | |
| 6750 | #undef $ac_func |
| 6751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6752 | /* Override any GCC internal prototype to avoid an error. |
| 6753 | Use char because int might match the return type of a GCC |
| 6754 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6755 | #ifdef __cplusplus |
| 6756 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6758 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6759 | /* The GNU C library defines this for functions which it implements |
| 6760 | to always fail with ENOSYS. Some functions are actually named |
| 6761 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6762 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6763 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6764 | #endif |
| 6765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | int |
| 6767 | main () |
| 6768 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6769 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | ; |
| 6771 | return 0; |
| 6772 | } |
| 6773 | _ACEOF |
| 6774 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6775 | if { (ac_try="$ac_link" |
| 6776 | case "(($ac_try" in |
| 6777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6778 | *) ac_try_echo=$ac_try;; |
| 6779 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6781 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6782 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6783 | ac_status=$? |
| 6784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6785 | rm -f conftest.er1 |
| 6786 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6788 | (exit $ac_status); } && { |
| 6789 | test -z "$ac_c_werror_flag" || |
| 6790 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6791 | } && test -s conftest$ac_exeext && { |
| 6792 | test "$cross_compiling" = yes || |
| 6793 | $as_test_x conftest$ac_exeext |
| 6794 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6796 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6797 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6800 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6802 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6803 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6804 | 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] | 6805 | conftest$ac_exeext conftest.$ac_ext |
| 6806 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6807 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 6808 | $as_echo "$as_val"'` |
| 6809 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6810 | $as_echo "$ac_res" >&6; } |
| 6811 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 6812 | $as_echo "$as_val"'` |
| 6813 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6814 | |
| 6815 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6816 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6817 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6819 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6820 | fi |
| 6821 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6822 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6823 | fi |
| 6824 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6825 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6826 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6827 | if test "${ac_cv_c_stack_direction+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6828 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6829 | else |
| 6830 | if test "$cross_compiling" = yes; then |
| 6831 | ac_cv_c_stack_direction=0 |
| 6832 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | cat >conftest.$ac_ext <<_ACEOF |
| 6834 | /* confdefs.h. */ |
| 6835 | _ACEOF |
| 6836 | cat confdefs.h >>conftest.$ac_ext |
| 6837 | cat >>conftest.$ac_ext <<_ACEOF |
| 6838 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6839 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6840 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6841 | find_stack_direction () |
| 6842 | { |
| 6843 | static char *addr = 0; |
| 6844 | auto char dummy; |
| 6845 | if (addr == 0) |
| 6846 | { |
| 6847 | addr = &dummy; |
| 6848 | return find_stack_direction (); |
| 6849 | } |
| 6850 | else |
| 6851 | return (&dummy > addr) ? 1 : -1; |
| 6852 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6853 | |
| 6854 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6855 | main () |
| 6856 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6857 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6858 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6859 | _ACEOF |
| 6860 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6861 | if { (ac_try="$ac_link" |
| 6862 | case "(($ac_try" in |
| 6863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6864 | *) ac_try_echo=$ac_try;; |
| 6865 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6867 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6868 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6869 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6872 | { (case "(($ac_try" in |
| 6873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6874 | *) ac_try_echo=$ac_try;; |
| 6875 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6877 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6878 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6879 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6881 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6882 | ac_cv_c_stack_direction=1 |
| 6883 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6884 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6885 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6886 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | ( exit $ac_status ) |
| 6889 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6890 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6891 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6892 | 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] | 6893 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6894 | |
| 6895 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6896 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6898 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6899 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6901 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6902 | _ACEOF |
| 6903 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6904 | |
| 6905 | fi |
| 6906 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | |
| 6908 | |
| 6909 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6910 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6911 | 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] | 6912 | 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^] | 6913 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6914 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6915 | 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^] | 6916 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6917 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6918 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6919 | $as_echo "$as_val"'` |
| 6920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6921 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6922 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6924 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6925 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6926 | cat >conftest.$ac_ext <<_ACEOF |
| 6927 | /* confdefs.h. */ |
| 6928 | _ACEOF |
| 6929 | cat confdefs.h >>conftest.$ac_ext |
| 6930 | cat >>conftest.$ac_ext <<_ACEOF |
| 6931 | /* end confdefs.h. */ |
| 6932 | $ac_includes_default |
| 6933 | #include <$ac_header> |
| 6934 | _ACEOF |
| 6935 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6936 | if { (ac_try="$ac_compile" |
| 6937 | case "(($ac_try" in |
| 6938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6939 | *) ac_try_echo=$ac_try;; |
| 6940 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6942 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6943 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6944 | ac_status=$? |
| 6945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6946 | rm -f conftest.er1 |
| 6947 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6949 | (exit $ac_status); } && { |
| 6950 | test -z "$ac_c_werror_flag" || |
| 6951 | test ! -s conftest.err |
| 6952 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6953 | ac_header_compiler=yes |
| 6954 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6955 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6957 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6958 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6959 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6960 | |
| 6961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6962 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6963 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | |
| 6965 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6966 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6967 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6968 | cat >conftest.$ac_ext <<_ACEOF |
| 6969 | /* confdefs.h. */ |
| 6970 | _ACEOF |
| 6971 | cat confdefs.h >>conftest.$ac_ext |
| 6972 | cat >>conftest.$ac_ext <<_ACEOF |
| 6973 | /* end confdefs.h. */ |
| 6974 | #include <$ac_header> |
| 6975 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6977 | case "(($ac_try" in |
| 6978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6979 | *) ac_try_echo=$ac_try;; |
| 6980 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6982 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | ac_status=$? |
| 6985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6986 | rm -f conftest.er1 |
| 6987 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6989 | (exit $ac_status); } >/dev/null && { |
| 6990 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6991 | test ! -s conftest.err |
| 6992 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6993 | ac_header_preproc=yes |
| 6994 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 6995 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6997 | |
| 6998 | ac_header_preproc=no |
| 6999 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7000 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7001 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7002 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7003 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7004 | |
| 7005 | # So? What about this header? |
| 7006 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7007 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7009 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7011 | $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] | 7012 | ac_header_preproc=yes |
| 7013 | ;; |
| 7014 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7016 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7018 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7020 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7022 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7024 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7026 | $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] | 7027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7028 | ;; |
| 7029 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7030 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7031 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7032 | 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^] | 7033 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7034 | else |
| 7035 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7036 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7038 | $as_echo "$as_val"'` |
| 7039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7040 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7041 | |
| 7042 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7043 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7044 | $as_echo "$as_val"'` |
| 7045 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7046 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7047 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7048 | _ACEOF |
| 7049 | |
| 7050 | fi |
| 7051 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7052 | done |
| 7053 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7054 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7055 | for ac_func in getpagesize |
| 7056 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7057 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7058 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7059 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7060 | 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^] | 7061 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7062 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7063 | cat >conftest.$ac_ext <<_ACEOF |
| 7064 | /* confdefs.h. */ |
| 7065 | _ACEOF |
| 7066 | cat confdefs.h >>conftest.$ac_ext |
| 7067 | cat >>conftest.$ac_ext <<_ACEOF |
| 7068 | /* end confdefs.h. */ |
| 7069 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7070 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7071 | #define $ac_func innocuous_$ac_func |
| 7072 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7073 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7074 | which can conflict with char $ac_func (); below. |
| 7075 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7076 | <limits.h> exists even on freestanding compilers. */ |
| 7077 | |
| 7078 | #ifdef __STDC__ |
| 7079 | # include <limits.h> |
| 7080 | #else |
| 7081 | # include <assert.h> |
| 7082 | #endif |
| 7083 | |
| 7084 | #undef $ac_func |
| 7085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7086 | /* Override any GCC internal prototype to avoid an error. |
| 7087 | Use char because int might match the return type of a GCC |
| 7088 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | #ifdef __cplusplus |
| 7090 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7091 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7092 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7093 | /* The GNU C library defines this for functions which it implements |
| 7094 | to always fail with ENOSYS. Some functions are actually named |
| 7095 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7096 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7097 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7098 | #endif |
| 7099 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | int |
| 7101 | main () |
| 7102 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7103 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7104 | ; |
| 7105 | return 0; |
| 7106 | } |
| 7107 | _ACEOF |
| 7108 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7109 | if { (ac_try="$ac_link" |
| 7110 | case "(($ac_try" in |
| 7111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7112 | *) ac_try_echo=$ac_try;; |
| 7113 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7115 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7116 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7117 | ac_status=$? |
| 7118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7119 | rm -f conftest.er1 |
| 7120 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7122 | (exit $ac_status); } && { |
| 7123 | test -z "$ac_c_werror_flag" || |
| 7124 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7125 | } && test -s conftest$ac_exeext && { |
| 7126 | test "$cross_compiling" = yes || |
| 7127 | $as_test_x conftest$ac_exeext |
| 7128 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7129 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7130 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7131 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7132 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7134 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7135 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7136 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7137 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7138 | 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] | 7139 | conftest$ac_exeext conftest.$ac_ext |
| 7140 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7141 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 7142 | $as_echo "$as_val"'` |
| 7143 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7144 | $as_echo "$ac_res" >&6; } |
| 7145 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 7146 | $as_echo "$as_val"'` |
| 7147 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7149 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7150 | _ACEOF |
| 7151 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7152 | fi |
| 7153 | done |
| 7154 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7155 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 7156 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7157 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7158 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7159 | else |
| 7160 | if test "$cross_compiling" = yes; then |
| 7161 | ac_cv_func_mmap_fixed_mapped=no |
| 7162 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | cat >conftest.$ac_ext <<_ACEOF |
| 7164 | /* confdefs.h. */ |
| 7165 | _ACEOF |
| 7166 | cat confdefs.h >>conftest.$ac_ext |
| 7167 | cat >>conftest.$ac_ext <<_ACEOF |
| 7168 | /* end confdefs.h. */ |
| 7169 | $ac_includes_default |
| 7170 | /* malloc might have been renamed as rpl_malloc. */ |
| 7171 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7172 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7173 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7174 | Here is a matrix of mmap possibilities: |
| 7175 | mmap private not fixed |
| 7176 | mmap private fixed at somewhere currently unmapped |
| 7177 | mmap private fixed at somewhere already mapped |
| 7178 | mmap shared not fixed |
| 7179 | mmap shared fixed at somewhere currently unmapped |
| 7180 | mmap shared fixed at somewhere already mapped |
| 7181 | For private mappings, we should verify that changes cannot be read() |
| 7182 | back from the file, nor mmap's back from the file at a different |
| 7183 | address. (There have been systems where private was not correctly |
| 7184 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7185 | 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] | 7186 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7187 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7188 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7189 | |
| 7190 | Grep wants private fixed already mapped. |
| 7191 | The main things grep needs to know about mmap are: |
| 7192 | * does it exist and is it safe to write into the mmap'd area |
| 7193 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7195 | #include <fcntl.h> |
| 7196 | #include <sys/mman.h> |
| 7197 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7198 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7199 | char *malloc (); |
| 7200 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7202 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7203 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7204 | /* 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] | 7205 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7206 | # define HAVE_SYS_PARAM_H 1 |
| 7207 | # endif |
| 7208 | |
| 7209 | # ifdef _SC_PAGESIZE |
| 7210 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7211 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7212 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7213 | # include <sys/param.h> |
| 7214 | # ifdef EXEC_PAGESIZE |
| 7215 | # define getpagesize() EXEC_PAGESIZE |
| 7216 | # else /* no EXEC_PAGESIZE */ |
| 7217 | # ifdef NBPG |
| 7218 | # define getpagesize() NBPG * CLSIZE |
| 7219 | # ifndef CLSIZE |
| 7220 | # define CLSIZE 1 |
| 7221 | # endif /* no CLSIZE */ |
| 7222 | # else /* no NBPG */ |
| 7223 | # ifdef NBPC |
| 7224 | # define getpagesize() NBPC |
| 7225 | # else /* no NBPC */ |
| 7226 | # ifdef PAGESIZE |
| 7227 | # define getpagesize() PAGESIZE |
| 7228 | # endif /* PAGESIZE */ |
| 7229 | # endif /* no NBPC */ |
| 7230 | # endif /* no NBPG */ |
| 7231 | # endif /* no EXEC_PAGESIZE */ |
| 7232 | # else /* no HAVE_SYS_PARAM_H */ |
| 7233 | # define getpagesize() 8192 /* punt totally */ |
| 7234 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7235 | # endif /* no _SC_PAGESIZE */ |
| 7236 | |
| 7237 | #endif /* no HAVE_GETPAGESIZE */ |
| 7238 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7239 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7241 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7242 | char *data, *data2, *data3; |
| 7243 | int i, pagesize; |
| 7244 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7245 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7246 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7247 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7248 | /* First, make a file with some known garbage in it. */ |
| 7249 | data = (char *) malloc (pagesize); |
| 7250 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7251 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | for (i = 0; i < pagesize; ++i) |
| 7253 | *(data + i) = rand (); |
| 7254 | umask (0); |
| 7255 | fd = creat ("conftest.mmap", 0600); |
| 7256 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7257 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7258 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7259 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7260 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7262 | /* Next, try to mmap the file at a fixed address which already has |
| 7263 | something else allocated at it. If we can, also make sure that |
| 7264 | we see the same garbage. */ |
| 7265 | fd = open ("conftest.mmap", O_RDWR); |
| 7266 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7267 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | data2 = (char *) malloc (2 * pagesize); |
| 7269 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7270 | return 1; |
| 7271 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7272 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7273 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7274 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7275 | for (i = 0; i < pagesize; ++i) |
| 7276 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7277 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7279 | /* Finally, make sure that changes to the mapped area do not |
| 7280 | percolate back to the file as seen by read(). (This is a bug on |
| 7281 | some variants of i386 svr4.0.) */ |
| 7282 | for (i = 0; i < pagesize; ++i) |
| 7283 | *(data2 + i) = *(data2 + i) + 1; |
| 7284 | data3 = (char *) malloc (pagesize); |
| 7285 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7286 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7287 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7288 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7289 | for (i = 0; i < pagesize; ++i) |
| 7290 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7291 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7292 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7293 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7294 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7295 | _ACEOF |
| 7296 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7297 | if { (ac_try="$ac_link" |
| 7298 | case "(($ac_try" in |
| 7299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7300 | *) ac_try_echo=$ac_try;; |
| 7301 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7303 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7304 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7305 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7308 | { (case "(($ac_try" in |
| 7309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7310 | *) ac_try_echo=$ac_try;; |
| 7311 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7313 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7314 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7315 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7317 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7318 | ac_cv_func_mmap_fixed_mapped=yes |
| 7319 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7320 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 7321 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7323 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7324 | ( exit $ac_status ) |
| 7325 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7326 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7327 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7328 | 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] | 7329 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7330 | |
| 7331 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7332 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7333 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 7334 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7335 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7336 | |
| 7337 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7338 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7340 | |
| 7341 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7342 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7343 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7344 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7345 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 7346 | $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] | 7347 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7348 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7349 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7350 | cat >conftest.$ac_ext <<_ACEOF |
| 7351 | /* confdefs.h. */ |
| 7352 | _ACEOF |
| 7353 | cat confdefs.h >>conftest.$ac_ext |
| 7354 | cat >>conftest.$ac_ext <<_ACEOF |
| 7355 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7356 | |
| 7357 | #include <features.h> |
| 7358 | #ifdef __GNU_LIBRARY__ |
| 7359 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7360 | Lucky GNU user |
| 7361 | #endif |
| 7362 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7363 | |
| 7364 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7366 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7367 | ac_cv_gnu_library_2_1=yes |
| 7368 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7369 | ac_cv_gnu_library_2_1=no |
| 7370 | fi |
| 7371 | rm -f conftest* |
| 7372 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7373 | |
| 7374 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7375 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7376 | { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 7377 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7378 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7379 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7380 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7381 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7382 | |
| 7383 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7384 | { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 7385 | $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] | 7386 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7387 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7388 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7389 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7390 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7391 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7392 | # Guess based on the CPU. |
| 7393 | case "$host_cpu" in |
| 7394 | alpha* | i3456786 | m68k | s390*) |
| 7395 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7396 | *) |
| 7397 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7398 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7399 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7400 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7401 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | /* confdefs.h. */ |
| 7403 | _ACEOF |
| 7404 | cat confdefs.h >>conftest.$ac_ext |
| 7405 | cat >>conftest.$ac_ext <<_ACEOF |
| 7406 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7407 | |
| 7408 | #include <stdlib.h> |
| 7409 | #include <signal.h> |
| 7410 | |
| 7411 | static void |
| 7412 | #ifdef __cplusplus |
| 7413 | sigfpe_handler (int sig) |
| 7414 | #else |
| 7415 | sigfpe_handler (sig) int sig; |
| 7416 | #endif |
| 7417 | { |
| 7418 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7419 | exit (sig != SIGFPE); |
| 7420 | } |
| 7421 | |
| 7422 | int x = 1; |
| 7423 | int y = 0; |
| 7424 | int z; |
| 7425 | int nan; |
| 7426 | |
| 7427 | int main () |
| 7428 | { |
| 7429 | signal (SIGFPE, sigfpe_handler); |
| 7430 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7431 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7432 | signal (SIGTRAP, sigfpe_handler); |
| 7433 | #endif |
| 7434 | /* Linux/SPARC yields signal SIGILL. */ |
| 7435 | #if defined (__sparc__) && defined (__linux__) |
| 7436 | signal (SIGILL, sigfpe_handler); |
| 7437 | #endif |
| 7438 | |
| 7439 | z = x / y; |
| 7440 | nan = y / y; |
| 7441 | exit (1); |
| 7442 | } |
| 7443 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7444 | _ACEOF |
| 7445 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7446 | if { (ac_try="$ac_link" |
| 7447 | case "(($ac_try" in |
| 7448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7449 | *) ac_try_echo=$ac_try;; |
| 7450 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7452 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7453 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7454 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7457 | { (case "(($ac_try" in |
| 7458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7459 | *) ac_try_echo=$ac_try;; |
| 7460 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7462 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7463 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7466 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7467 | gt_cv_int_divbyzero_sigfpe=yes |
| 7468 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7469 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 7470 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7472 | |
| 7473 | ( exit $ac_status ) |
| 7474 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7475 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7476 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7477 | 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] | 7478 | fi |
| 7479 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7480 | |
| 7481 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7482 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7483 | { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 7484 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7485 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7486 | *yes) value=1;; |
| 7487 | *) value=0;; |
| 7488 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7489 | |
| 7490 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7491 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7492 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7493 | |
| 7494 | |
| 7495 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7496 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 7497 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7498 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7499 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | else |
| 7501 | cat >conftest.$ac_ext <<_ACEOF |
| 7502 | /* confdefs.h. */ |
| 7503 | _ACEOF |
| 7504 | cat confdefs.h >>conftest.$ac_ext |
| 7505 | cat >>conftest.$ac_ext <<_ACEOF |
| 7506 | /* end confdefs.h. */ |
| 7507 | unsigned long long ull = 1ULL; int i = 63; |
| 7508 | int |
| 7509 | main () |
| 7510 | { |
| 7511 | unsigned long long ullmax = (unsigned long long) -1; |
| 7512 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7513 | ; |
| 7514 | return 0; |
| 7515 | } |
| 7516 | _ACEOF |
| 7517 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7518 | if { (ac_try="$ac_link" |
| 7519 | case "(($ac_try" in |
| 7520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7521 | *) ac_try_echo=$ac_try;; |
| 7522 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7524 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7525 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7526 | ac_status=$? |
| 7527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7528 | rm -f conftest.er1 |
| 7529 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7531 | (exit $ac_status); } && { |
| 7532 | test -z "$ac_c_werror_flag" || |
| 7533 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7534 | } && test -s conftest$ac_exeext && { |
| 7535 | test "$cross_compiling" = yes || |
| 7536 | $as_test_x conftest$ac_exeext |
| 7537 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7538 | ac_cv_type_unsigned_long_long=yes |
| 7539 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7540 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7542 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7543 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7544 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7545 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7546 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7547 | 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] | 7548 | conftest$ac_exeext conftest.$ac_ext |
| 7549 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7550 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7551 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7552 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7553 | |
| 7554 | cat >>confdefs.h <<\_ACEOF |
| 7555 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7556 | _ACEOF |
| 7557 | |
| 7558 | fi |
| 7559 | |
| 7560 | |
| 7561 | |
| 7562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7563 | 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] | 7564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7565 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7566 | && ac_type='unsigned long long' \ |
| 7567 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | |
| 7569 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7570 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7571 | _ACEOF |
| 7572 | |
| 7573 | else |
| 7574 | |
| 7575 | cat >>confdefs.h <<\_ACEOF |
| 7576 | #define HAVE_UINTMAX_T 1 |
| 7577 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7578 | |
| 7579 | fi |
| 7580 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7581 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7582 | { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7583 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7584 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7585 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7586 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | |
| 7588 | cat >conftest.$ac_ext <<_ACEOF |
| 7589 | /* confdefs.h. */ |
| 7590 | _ACEOF |
| 7591 | cat confdefs.h >>conftest.$ac_ext |
| 7592 | cat >>conftest.$ac_ext <<_ACEOF |
| 7593 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7594 | #include <sys/types.h> |
| 7595 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | int |
| 7597 | main () |
| 7598 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7600 | ; |
| 7601 | return 0; |
| 7602 | } |
| 7603 | _ACEOF |
| 7604 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7605 | if { (ac_try="$ac_compile" |
| 7606 | case "(($ac_try" in |
| 7607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7608 | *) ac_try_echo=$ac_try;; |
| 7609 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7611 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7612 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7613 | ac_status=$? |
| 7614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7615 | rm -f conftest.er1 |
| 7616 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7618 | (exit $ac_status); } && { |
| 7619 | test -z "$ac_c_werror_flag" || |
| 7620 | test ! -s conftest.err |
| 7621 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7622 | gt_cv_header_inttypes_h=yes |
| 7623 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7624 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7626 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7627 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7629 | |
| 7630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7631 | |
| 7632 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7633 | { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7634 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7635 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7636 | |
| 7637 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7638 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7640 | |
| 7641 | fi |
| 7642 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7643 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7644 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7645 | if test $gt_cv_header_inttypes_h = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7646 | { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7647 | $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] | 7648 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7649 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7650 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | |
| 7652 | cat >conftest.$ac_ext <<_ACEOF |
| 7653 | /* confdefs.h. */ |
| 7654 | _ACEOF |
| 7655 | cat confdefs.h >>conftest.$ac_ext |
| 7656 | cat >>conftest.$ac_ext <<_ACEOF |
| 7657 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7658 | #include <inttypes.h> |
| 7659 | #ifdef PRId32 |
| 7660 | char *p = PRId32; |
| 7661 | #endif |
| 7662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7663 | int |
| 7664 | main () |
| 7665 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7666 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | ; |
| 7668 | return 0; |
| 7669 | } |
| 7670 | _ACEOF |
| 7671 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7672 | if { (ac_try="$ac_compile" |
| 7673 | case "(($ac_try" in |
| 7674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7675 | *) ac_try_echo=$ac_try;; |
| 7676 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7678 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7679 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7680 | ac_status=$? |
| 7681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7682 | rm -f conftest.er1 |
| 7683 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7685 | (exit $ac_status); } && { |
| 7686 | test -z "$ac_c_werror_flag" || |
| 7687 | test ! -s conftest.err |
| 7688 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7689 | gt_cv_inttypes_pri_broken=no |
| 7690 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7691 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7692 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7694 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7695 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7696 | |
| 7697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7698 | |
| 7699 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7700 | { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7701 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7702 | fi |
| 7703 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7704 | |
| 7705 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7706 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7707 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7708 | |
| 7709 | fi |
| 7710 | |
| 7711 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7712 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7713 | for ac_header in stdint.h |
| 7714 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7715 | 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] | 7716 | 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^] | 7717 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7718 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7719 | 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^] | 7720 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7721 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7722 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7723 | $as_echo "$as_val"'` |
| 7724 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7725 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7726 | else |
| 7727 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7728 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7729 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7730 | cat >conftest.$ac_ext <<_ACEOF |
| 7731 | /* confdefs.h. */ |
| 7732 | _ACEOF |
| 7733 | cat confdefs.h >>conftest.$ac_ext |
| 7734 | cat >>conftest.$ac_ext <<_ACEOF |
| 7735 | /* end confdefs.h. */ |
| 7736 | $ac_includes_default |
| 7737 | #include <$ac_header> |
| 7738 | _ACEOF |
| 7739 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7740 | if { (ac_try="$ac_compile" |
| 7741 | case "(($ac_try" in |
| 7742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7743 | *) ac_try_echo=$ac_try;; |
| 7744 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7746 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7747 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7748 | ac_status=$? |
| 7749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7750 | rm -f conftest.er1 |
| 7751 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7753 | (exit $ac_status); } && { |
| 7754 | test -z "$ac_c_werror_flag" || |
| 7755 | test ! -s conftest.err |
| 7756 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7757 | ac_header_compiler=yes |
| 7758 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7759 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7761 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7762 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7763 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7764 | |
| 7765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7766 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7767 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7768 | |
| 7769 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7770 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7771 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7772 | cat >conftest.$ac_ext <<_ACEOF |
| 7773 | /* confdefs.h. */ |
| 7774 | _ACEOF |
| 7775 | cat confdefs.h >>conftest.$ac_ext |
| 7776 | cat >>conftest.$ac_ext <<_ACEOF |
| 7777 | /* end confdefs.h. */ |
| 7778 | #include <$ac_header> |
| 7779 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7780 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7781 | case "(($ac_try" in |
| 7782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7783 | *) ac_try_echo=$ac_try;; |
| 7784 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7786 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7787 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7788 | ac_status=$? |
| 7789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7790 | rm -f conftest.er1 |
| 7791 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7793 | (exit $ac_status); } >/dev/null && { |
| 7794 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7795 | test ! -s conftest.err |
| 7796 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7797 | ac_header_preproc=yes |
| 7798 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7799 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7801 | |
| 7802 | ac_header_preproc=no |
| 7803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7804 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7805 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7806 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7807 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7808 | |
| 7809 | # So? What about this header? |
| 7810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7811 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7812 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7813 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7814 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7815 | $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] | 7816 | ac_header_preproc=yes |
| 7817 | ;; |
| 7818 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7820 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7821 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7822 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7823 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7824 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7826 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7827 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7828 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7829 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7830 | $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] | 7831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7832 | ;; |
| 7833 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7834 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7835 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7836 | 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^] | 7837 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7838 | else |
| 7839 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7840 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7841 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 7842 | $as_echo "$as_val"'` |
| 7843 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7844 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7845 | |
| 7846 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7847 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 7848 | $as_echo "$as_val"'` |
| 7849 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7850 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7851 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | _ACEOF |
| 7853 | |
| 7854 | fi |
| 7855 | |
| 7856 | done |
| 7857 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7858 | { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7859 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7860 | result= |
| 7861 | cat >conftest.$ac_ext <<_ACEOF |
| 7862 | /* confdefs.h. */ |
| 7863 | _ACEOF |
| 7864 | cat confdefs.h >>conftest.$ac_ext |
| 7865 | cat >>conftest.$ac_ext <<_ACEOF |
| 7866 | /* end confdefs.h. */ |
| 7867 | |
| 7868 | #include <limits.h> |
| 7869 | #if HAVE_STDINT_H |
| 7870 | #include <stdint.h> |
| 7871 | #endif |
| 7872 | #ifdef SIZE_MAX |
| 7873 | Found it |
| 7874 | #endif |
| 7875 | |
| 7876 | _ACEOF |
| 7877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7878 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7879 | result=yes |
| 7880 | fi |
| 7881 | rm -f conftest* |
| 7882 | |
| 7883 | if test -z "$result"; then |
| 7884 | if test "$cross_compiling" = yes; then |
| 7885 | # Depending upon the size, compute the lo and hi bounds. |
| 7886 | cat >conftest.$ac_ext <<_ACEOF |
| 7887 | /* confdefs.h. */ |
| 7888 | _ACEOF |
| 7889 | cat confdefs.h >>conftest.$ac_ext |
| 7890 | cat >>conftest.$ac_ext <<_ACEOF |
| 7891 | /* end confdefs.h. */ |
| 7892 | #include <stddef.h> |
| 7893 | int |
| 7894 | main () |
| 7895 | { |
| 7896 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7897 | test_array [0] = 0 |
| 7898 | |
| 7899 | ; |
| 7900 | return 0; |
| 7901 | } |
| 7902 | _ACEOF |
| 7903 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7904 | if { (ac_try="$ac_compile" |
| 7905 | case "(($ac_try" in |
| 7906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7907 | *) ac_try_echo=$ac_try;; |
| 7908 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7910 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7911 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7912 | ac_status=$? |
| 7913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7914 | rm -f conftest.er1 |
| 7915 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7917 | (exit $ac_status); } && { |
| 7918 | test -z "$ac_c_werror_flag" || |
| 7919 | test ! -s conftest.err |
| 7920 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7921 | ac_lo=0 ac_mid=0 |
| 7922 | while :; do |
| 7923 | cat >conftest.$ac_ext <<_ACEOF |
| 7924 | /* confdefs.h. */ |
| 7925 | _ACEOF |
| 7926 | cat confdefs.h >>conftest.$ac_ext |
| 7927 | cat >>conftest.$ac_ext <<_ACEOF |
| 7928 | /* end confdefs.h. */ |
| 7929 | #include <stddef.h> |
| 7930 | int |
| 7931 | main () |
| 7932 | { |
| 7933 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7934 | test_array [0] = 0 |
| 7935 | |
| 7936 | ; |
| 7937 | return 0; |
| 7938 | } |
| 7939 | _ACEOF |
| 7940 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7941 | if { (ac_try="$ac_compile" |
| 7942 | case "(($ac_try" in |
| 7943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7944 | *) ac_try_echo=$ac_try;; |
| 7945 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7947 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7948 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7949 | ac_status=$? |
| 7950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7951 | rm -f conftest.er1 |
| 7952 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7954 | (exit $ac_status); } && { |
| 7955 | test -z "$ac_c_werror_flag" || |
| 7956 | test ! -s conftest.err |
| 7957 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7958 | ac_hi=$ac_mid; break |
| 7959 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7960 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7963 | ac_lo=`expr $ac_mid + 1` |
| 7964 | if test $ac_lo -le $ac_mid; then |
| 7965 | ac_lo= ac_hi= |
| 7966 | break |
| 7967 | fi |
| 7968 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7969 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7970 | |
| 7971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7972 | done |
| 7973 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 7974 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7976 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7977 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7978 | /* confdefs.h. */ |
| 7979 | _ACEOF |
| 7980 | cat confdefs.h >>conftest.$ac_ext |
| 7981 | cat >>conftest.$ac_ext <<_ACEOF |
| 7982 | /* end confdefs.h. */ |
| 7983 | #include <stddef.h> |
| 7984 | int |
| 7985 | main () |
| 7986 | { |
| 7987 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7988 | test_array [0] = 0 |
| 7989 | |
| 7990 | ; |
| 7991 | return 0; |
| 7992 | } |
| 7993 | _ACEOF |
| 7994 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7995 | if { (ac_try="$ac_compile" |
| 7996 | case "(($ac_try" in |
| 7997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7998 | *) ac_try_echo=$ac_try;; |
| 7999 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8001 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8002 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8003 | ac_status=$? |
| 8004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8005 | rm -f conftest.er1 |
| 8006 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8008 | (exit $ac_status); } && { |
| 8009 | test -z "$ac_c_werror_flag" || |
| 8010 | test ! -s conftest.err |
| 8011 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8012 | ac_hi=-1 ac_mid=-1 |
| 8013 | while :; do |
| 8014 | cat >conftest.$ac_ext <<_ACEOF |
| 8015 | /* confdefs.h. */ |
| 8016 | _ACEOF |
| 8017 | cat confdefs.h >>conftest.$ac_ext |
| 8018 | cat >>conftest.$ac_ext <<_ACEOF |
| 8019 | /* end confdefs.h. */ |
| 8020 | #include <stddef.h> |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 8025 | test_array [0] = 0 |
| 8026 | |
| 8027 | ; |
| 8028 | return 0; |
| 8029 | } |
| 8030 | _ACEOF |
| 8031 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8032 | if { (ac_try="$ac_compile" |
| 8033 | case "(($ac_try" in |
| 8034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8035 | *) ac_try_echo=$ac_try;; |
| 8036 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8038 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8039 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8040 | ac_status=$? |
| 8041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8042 | rm -f conftest.er1 |
| 8043 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8045 | (exit $ac_status); } && { |
| 8046 | test -z "$ac_c_werror_flag" || |
| 8047 | test ! -s conftest.err |
| 8048 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8049 | ac_lo=$ac_mid; break |
| 8050 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8051 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8054 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8055 | if test $ac_mid -le $ac_hi; then |
| 8056 | ac_lo= ac_hi= |
| 8057 | break |
| 8058 | fi |
| 8059 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8060 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8061 | |
| 8062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8063 | done |
| 8064 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8065 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8068 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8070 | |
| 8071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8072 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8073 | |
| 8074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8075 | # Binary search between lo and hi bounds. |
| 8076 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8077 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8078 | cat >conftest.$ac_ext <<_ACEOF |
| 8079 | /* confdefs.h. */ |
| 8080 | _ACEOF |
| 8081 | cat confdefs.h >>conftest.$ac_ext |
| 8082 | cat >>conftest.$ac_ext <<_ACEOF |
| 8083 | /* end confdefs.h. */ |
| 8084 | #include <stddef.h> |
| 8085 | int |
| 8086 | main () |
| 8087 | { |
| 8088 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 8089 | test_array [0] = 0 |
| 8090 | |
| 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | _ACEOF |
| 8095 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8096 | if { (ac_try="$ac_compile" |
| 8097 | case "(($ac_try" in |
| 8098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8099 | *) ac_try_echo=$ac_try;; |
| 8100 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8102 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8103 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8104 | ac_status=$? |
| 8105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8106 | rm -f conftest.er1 |
| 8107 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8109 | (exit $ac_status); } && { |
| 8110 | test -z "$ac_c_werror_flag" || |
| 8111 | test ! -s conftest.err |
| 8112 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8113 | ac_hi=$ac_mid |
| 8114 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8115 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8118 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8119 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8120 | |
| 8121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8122 | done |
| 8123 | case $ac_lo in |
| 8124 | ?*) res_hi=$ac_lo;; |
| 8125 | '') result=? ;; |
| 8126 | esac |
| 8127 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8128 | cat >conftest.$ac_ext <<_ACEOF |
| 8129 | /* confdefs.h. */ |
| 8130 | _ACEOF |
| 8131 | cat confdefs.h >>conftest.$ac_ext |
| 8132 | cat >>conftest.$ac_ext <<_ACEOF |
| 8133 | /* end confdefs.h. */ |
| 8134 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8135 | static long int longval () { return ~(size_t)0 / 10; } |
| 8136 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8137 | #include <stdio.h> |
| 8138 | #include <stdlib.h> |
| 8139 | int |
| 8140 | main () |
| 8141 | { |
| 8142 | |
| 8143 | FILE *f = fopen ("conftest.val", "w"); |
| 8144 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8145 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8146 | if ((~(size_t)0 / 10) < 0) |
| 8147 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8148 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8149 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8150 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8151 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8152 | } |
| 8153 | else |
| 8154 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8155 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8156 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8157 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8158 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8159 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8160 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8161 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8162 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8163 | |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
| 8168 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8169 | if { (ac_try="$ac_link" |
| 8170 | case "(($ac_try" in |
| 8171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8172 | *) ac_try_echo=$ac_try;; |
| 8173 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8175 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8176 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8177 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8180 | { (case "(($ac_try" in |
| 8181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8182 | *) ac_try_echo=$ac_try;; |
| 8183 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8185 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8186 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8187 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8189 | (exit $ac_status); }; }; then |
| 8190 | res_hi=`cat conftest.val` |
| 8191 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8192 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8193 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8195 | |
| 8196 | ( exit $ac_status ) |
| 8197 | result=? |
| 8198 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8199 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8200 | 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] | 8201 | fi |
| 8202 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8203 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8204 | if test "$cross_compiling" = yes; then |
| 8205 | # Depending upon the size, compute the lo and hi bounds. |
| 8206 | cat >conftest.$ac_ext <<_ACEOF |
| 8207 | /* confdefs.h. */ |
| 8208 | _ACEOF |
| 8209 | cat confdefs.h >>conftest.$ac_ext |
| 8210 | cat >>conftest.$ac_ext <<_ACEOF |
| 8211 | /* end confdefs.h. */ |
| 8212 | #include <stddef.h> |
| 8213 | int |
| 8214 | main () |
| 8215 | { |
| 8216 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 8217 | test_array [0] = 0 |
| 8218 | |
| 8219 | ; |
| 8220 | return 0; |
| 8221 | } |
| 8222 | _ACEOF |
| 8223 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8224 | if { (ac_try="$ac_compile" |
| 8225 | case "(($ac_try" in |
| 8226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8227 | *) ac_try_echo=$ac_try;; |
| 8228 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8230 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8231 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8232 | ac_status=$? |
| 8233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8234 | rm -f conftest.er1 |
| 8235 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8237 | (exit $ac_status); } && { |
| 8238 | test -z "$ac_c_werror_flag" || |
| 8239 | test ! -s conftest.err |
| 8240 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8241 | ac_lo=0 ac_mid=0 |
| 8242 | while :; do |
| 8243 | cat >conftest.$ac_ext <<_ACEOF |
| 8244 | /* confdefs.h. */ |
| 8245 | _ACEOF |
| 8246 | cat confdefs.h >>conftest.$ac_ext |
| 8247 | cat >>conftest.$ac_ext <<_ACEOF |
| 8248 | /* end confdefs.h. */ |
| 8249 | #include <stddef.h> |
| 8250 | int |
| 8251 | main () |
| 8252 | { |
| 8253 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8254 | test_array [0] = 0 |
| 8255 | |
| 8256 | ; |
| 8257 | return 0; |
| 8258 | } |
| 8259 | _ACEOF |
| 8260 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8261 | if { (ac_try="$ac_compile" |
| 8262 | case "(($ac_try" in |
| 8263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8264 | *) ac_try_echo=$ac_try;; |
| 8265 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8267 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8268 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8269 | ac_status=$? |
| 8270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8271 | rm -f conftest.er1 |
| 8272 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8274 | (exit $ac_status); } && { |
| 8275 | test -z "$ac_c_werror_flag" || |
| 8276 | test ! -s conftest.err |
| 8277 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8278 | ac_hi=$ac_mid; break |
| 8279 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8280 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8282 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8283 | ac_lo=`expr $ac_mid + 1` |
| 8284 | if test $ac_lo -le $ac_mid; then |
| 8285 | ac_lo= ac_hi= |
| 8286 | break |
| 8287 | fi |
| 8288 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8289 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8290 | |
| 8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | done |
| 8293 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8294 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8296 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8297 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8298 | /* confdefs.h. */ |
| 8299 | _ACEOF |
| 8300 | cat confdefs.h >>conftest.$ac_ext |
| 8301 | cat >>conftest.$ac_ext <<_ACEOF |
| 8302 | /* end confdefs.h. */ |
| 8303 | #include <stddef.h> |
| 8304 | int |
| 8305 | main () |
| 8306 | { |
| 8307 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8308 | test_array [0] = 0 |
| 8309 | |
| 8310 | ; |
| 8311 | return 0; |
| 8312 | } |
| 8313 | _ACEOF |
| 8314 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8315 | if { (ac_try="$ac_compile" |
| 8316 | case "(($ac_try" in |
| 8317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8318 | *) ac_try_echo=$ac_try;; |
| 8319 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8321 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8322 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8323 | ac_status=$? |
| 8324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8325 | rm -f conftest.er1 |
| 8326 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8328 | (exit $ac_status); } && { |
| 8329 | test -z "$ac_c_werror_flag" || |
| 8330 | test ! -s conftest.err |
| 8331 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8332 | ac_hi=-1 ac_mid=-1 |
| 8333 | while :; do |
| 8334 | cat >conftest.$ac_ext <<_ACEOF |
| 8335 | /* confdefs.h. */ |
| 8336 | _ACEOF |
| 8337 | cat confdefs.h >>conftest.$ac_ext |
| 8338 | cat >>conftest.$ac_ext <<_ACEOF |
| 8339 | /* end confdefs.h. */ |
| 8340 | #include <stddef.h> |
| 8341 | int |
| 8342 | main () |
| 8343 | { |
| 8344 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8345 | test_array [0] = 0 |
| 8346 | |
| 8347 | ; |
| 8348 | return 0; |
| 8349 | } |
| 8350 | _ACEOF |
| 8351 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8352 | if { (ac_try="$ac_compile" |
| 8353 | case "(($ac_try" in |
| 8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8355 | *) ac_try_echo=$ac_try;; |
| 8356 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8358 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8359 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8360 | ac_status=$? |
| 8361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8362 | rm -f conftest.er1 |
| 8363 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8365 | (exit $ac_status); } && { |
| 8366 | test -z "$ac_c_werror_flag" || |
| 8367 | test ! -s conftest.err |
| 8368 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8369 | ac_lo=$ac_mid; break |
| 8370 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8371 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8373 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8374 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8375 | if test $ac_mid -le $ac_hi; then |
| 8376 | ac_lo= ac_hi= |
| 8377 | break |
| 8378 | fi |
| 8379 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8381 | |
| 8382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8383 | done |
| 8384 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8385 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8387 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8388 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8390 | |
| 8391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8393 | |
| 8394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8395 | # Binary search between lo and hi bounds. |
| 8396 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8397 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8398 | cat >conftest.$ac_ext <<_ACEOF |
| 8399 | /* confdefs.h. */ |
| 8400 | _ACEOF |
| 8401 | cat confdefs.h >>conftest.$ac_ext |
| 8402 | cat >>conftest.$ac_ext <<_ACEOF |
| 8403 | /* end confdefs.h. */ |
| 8404 | #include <stddef.h> |
| 8405 | int |
| 8406 | main () |
| 8407 | { |
| 8408 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8409 | test_array [0] = 0 |
| 8410 | |
| 8411 | ; |
| 8412 | return 0; |
| 8413 | } |
| 8414 | _ACEOF |
| 8415 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8416 | if { (ac_try="$ac_compile" |
| 8417 | case "(($ac_try" in |
| 8418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8419 | *) ac_try_echo=$ac_try;; |
| 8420 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8422 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8423 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8424 | ac_status=$? |
| 8425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8426 | rm -f conftest.er1 |
| 8427 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8429 | (exit $ac_status); } && { |
| 8430 | test -z "$ac_c_werror_flag" || |
| 8431 | test ! -s conftest.err |
| 8432 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8433 | ac_hi=$ac_mid |
| 8434 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8435 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8438 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8439 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8440 | |
| 8441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8442 | done |
| 8443 | case $ac_lo in |
| 8444 | ?*) res_lo=$ac_lo;; |
| 8445 | '') result=? ;; |
| 8446 | esac |
| 8447 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8448 | cat >conftest.$ac_ext <<_ACEOF |
| 8449 | /* confdefs.h. */ |
| 8450 | _ACEOF |
| 8451 | cat confdefs.h >>conftest.$ac_ext |
| 8452 | cat >>conftest.$ac_ext <<_ACEOF |
| 8453 | /* end confdefs.h. */ |
| 8454 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8455 | static long int longval () { return ~(size_t)0 % 10; } |
| 8456 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8457 | #include <stdio.h> |
| 8458 | #include <stdlib.h> |
| 8459 | int |
| 8460 | main () |
| 8461 | { |
| 8462 | |
| 8463 | FILE *f = fopen ("conftest.val", "w"); |
| 8464 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8465 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8466 | if ((~(size_t)0 % 10) < 0) |
| 8467 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8468 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8469 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8470 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8471 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8472 | } |
| 8473 | else |
| 8474 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8475 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8476 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8477 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8478 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8479 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8480 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8481 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8482 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8483 | |
| 8484 | ; |
| 8485 | return 0; |
| 8486 | } |
| 8487 | _ACEOF |
| 8488 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8489 | if { (ac_try="$ac_link" |
| 8490 | case "(($ac_try" in |
| 8491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8492 | *) ac_try_echo=$ac_try;; |
| 8493 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8495 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8496 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8497 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8500 | { (case "(($ac_try" in |
| 8501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8502 | *) ac_try_echo=$ac_try;; |
| 8503 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8505 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8506 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8507 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8509 | (exit $ac_status); }; }; then |
| 8510 | res_lo=`cat conftest.val` |
| 8511 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8512 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8513 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8515 | |
| 8516 | ( exit $ac_status ) |
| 8517 | result=? |
| 8518 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8519 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8520 | 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] | 8521 | fi |
| 8522 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8524 | if test "$cross_compiling" = yes; then |
| 8525 | # Depending upon the size, compute the lo and hi bounds. |
| 8526 | cat >conftest.$ac_ext <<_ACEOF |
| 8527 | /* confdefs.h. */ |
| 8528 | _ACEOF |
| 8529 | cat confdefs.h >>conftest.$ac_ext |
| 8530 | cat >>conftest.$ac_ext <<_ACEOF |
| 8531 | /* end confdefs.h. */ |
| 8532 | #include <stddef.h> |
| 8533 | int |
| 8534 | main () |
| 8535 | { |
| 8536 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 8537 | test_array [0] = 0 |
| 8538 | |
| 8539 | ; |
| 8540 | return 0; |
| 8541 | } |
| 8542 | _ACEOF |
| 8543 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8544 | if { (ac_try="$ac_compile" |
| 8545 | case "(($ac_try" in |
| 8546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8547 | *) ac_try_echo=$ac_try;; |
| 8548 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8550 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8551 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8552 | ac_status=$? |
| 8553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8554 | rm -f conftest.er1 |
| 8555 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8557 | (exit $ac_status); } && { |
| 8558 | test -z "$ac_c_werror_flag" || |
| 8559 | test ! -s conftest.err |
| 8560 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8561 | ac_lo=0 ac_mid=0 |
| 8562 | while :; do |
| 8563 | cat >conftest.$ac_ext <<_ACEOF |
| 8564 | /* confdefs.h. */ |
| 8565 | _ACEOF |
| 8566 | cat confdefs.h >>conftest.$ac_ext |
| 8567 | cat >>conftest.$ac_ext <<_ACEOF |
| 8568 | /* end confdefs.h. */ |
| 8569 | #include <stddef.h> |
| 8570 | int |
| 8571 | main () |
| 8572 | { |
| 8573 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8574 | test_array [0] = 0 |
| 8575 | |
| 8576 | ; |
| 8577 | return 0; |
| 8578 | } |
| 8579 | _ACEOF |
| 8580 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8581 | if { (ac_try="$ac_compile" |
| 8582 | case "(($ac_try" in |
| 8583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8584 | *) ac_try_echo=$ac_try;; |
| 8585 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8587 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8588 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | ac_status=$? |
| 8590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8591 | rm -f conftest.er1 |
| 8592 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8594 | (exit $ac_status); } && { |
| 8595 | test -z "$ac_c_werror_flag" || |
| 8596 | test ! -s conftest.err |
| 8597 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8598 | ac_hi=$ac_mid; break |
| 8599 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8600 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8603 | ac_lo=`expr $ac_mid + 1` |
| 8604 | if test $ac_lo -le $ac_mid; then |
| 8605 | ac_lo= ac_hi= |
| 8606 | break |
| 8607 | fi |
| 8608 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8609 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8610 | |
| 8611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8612 | done |
| 8613 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8614 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8617 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8618 | /* confdefs.h. */ |
| 8619 | _ACEOF |
| 8620 | cat confdefs.h >>conftest.$ac_ext |
| 8621 | cat >>conftest.$ac_ext <<_ACEOF |
| 8622 | /* end confdefs.h. */ |
| 8623 | #include <stddef.h> |
| 8624 | int |
| 8625 | main () |
| 8626 | { |
| 8627 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8628 | test_array [0] = 0 |
| 8629 | |
| 8630 | ; |
| 8631 | return 0; |
| 8632 | } |
| 8633 | _ACEOF |
| 8634 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8635 | if { (ac_try="$ac_compile" |
| 8636 | case "(($ac_try" in |
| 8637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8638 | *) ac_try_echo=$ac_try;; |
| 8639 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8641 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8642 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8643 | ac_status=$? |
| 8644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8645 | rm -f conftest.er1 |
| 8646 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8648 | (exit $ac_status); } && { |
| 8649 | test -z "$ac_c_werror_flag" || |
| 8650 | test ! -s conftest.err |
| 8651 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8652 | ac_hi=-1 ac_mid=-1 |
| 8653 | while :; do |
| 8654 | cat >conftest.$ac_ext <<_ACEOF |
| 8655 | /* confdefs.h. */ |
| 8656 | _ACEOF |
| 8657 | cat confdefs.h >>conftest.$ac_ext |
| 8658 | cat >>conftest.$ac_ext <<_ACEOF |
| 8659 | /* end confdefs.h. */ |
| 8660 | #include <stddef.h> |
| 8661 | int |
| 8662 | main () |
| 8663 | { |
| 8664 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8665 | test_array [0] = 0 |
| 8666 | |
| 8667 | ; |
| 8668 | return 0; |
| 8669 | } |
| 8670 | _ACEOF |
| 8671 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8672 | if { (ac_try="$ac_compile" |
| 8673 | case "(($ac_try" in |
| 8674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8675 | *) ac_try_echo=$ac_try;; |
| 8676 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8678 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8679 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8680 | ac_status=$? |
| 8681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8682 | rm -f conftest.er1 |
| 8683 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8685 | (exit $ac_status); } && { |
| 8686 | test -z "$ac_c_werror_flag" || |
| 8687 | test ! -s conftest.err |
| 8688 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8689 | ac_lo=$ac_mid; break |
| 8690 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8691 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8694 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8695 | if test $ac_mid -le $ac_hi; then |
| 8696 | ac_lo= ac_hi= |
| 8697 | break |
| 8698 | fi |
| 8699 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8700 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8701 | |
| 8702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8703 | done |
| 8704 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8705 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8707 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8708 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8709 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8710 | |
| 8711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8712 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8713 | |
| 8714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8715 | # Binary search between lo and hi bounds. |
| 8716 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8717 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8718 | cat >conftest.$ac_ext <<_ACEOF |
| 8719 | /* confdefs.h. */ |
| 8720 | _ACEOF |
| 8721 | cat confdefs.h >>conftest.$ac_ext |
| 8722 | cat >>conftest.$ac_ext <<_ACEOF |
| 8723 | /* end confdefs.h. */ |
| 8724 | #include <stddef.h> |
| 8725 | int |
| 8726 | main () |
| 8727 | { |
| 8728 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8729 | test_array [0] = 0 |
| 8730 | |
| 8731 | ; |
| 8732 | return 0; |
| 8733 | } |
| 8734 | _ACEOF |
| 8735 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8736 | if { (ac_try="$ac_compile" |
| 8737 | case "(($ac_try" in |
| 8738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8739 | *) ac_try_echo=$ac_try;; |
| 8740 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8742 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8743 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8744 | ac_status=$? |
| 8745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8746 | rm -f conftest.er1 |
| 8747 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8749 | (exit $ac_status); } && { |
| 8750 | test -z "$ac_c_werror_flag" || |
| 8751 | test ! -s conftest.err |
| 8752 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8753 | ac_hi=$ac_mid |
| 8754 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8755 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8757 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8758 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8759 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8760 | |
| 8761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8762 | done |
| 8763 | case $ac_lo in |
| 8764 | ?*) fits_in_uint=$ac_lo;; |
| 8765 | '') result=? ;; |
| 8766 | esac |
| 8767 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8768 | cat >conftest.$ac_ext <<_ACEOF |
| 8769 | /* confdefs.h. */ |
| 8770 | _ACEOF |
| 8771 | cat confdefs.h >>conftest.$ac_ext |
| 8772 | cat >>conftest.$ac_ext <<_ACEOF |
| 8773 | /* end confdefs.h. */ |
| 8774 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8775 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8776 | 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] | 8777 | #include <stdio.h> |
| 8778 | #include <stdlib.h> |
| 8779 | int |
| 8780 | main () |
| 8781 | { |
| 8782 | |
| 8783 | FILE *f = fopen ("conftest.val", "w"); |
| 8784 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8785 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8786 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8787 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8788 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8789 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8790 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8791 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8792 | } |
| 8793 | else |
| 8794 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8795 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8796 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8797 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8798 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8799 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8800 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 8801 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8802 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8803 | |
| 8804 | ; |
| 8805 | return 0; |
| 8806 | } |
| 8807 | _ACEOF |
| 8808 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8809 | if { (ac_try="$ac_link" |
| 8810 | case "(($ac_try" in |
| 8811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8812 | *) ac_try_echo=$ac_try;; |
| 8813 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8815 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8816 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8817 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8820 | { (case "(($ac_try" in |
| 8821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8822 | *) ac_try_echo=$ac_try;; |
| 8823 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8825 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8826 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8827 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8829 | (exit $ac_status); }; }; then |
| 8830 | fits_in_uint=`cat conftest.val` |
| 8831 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8832 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8833 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8835 | |
| 8836 | ( exit $ac_status ) |
| 8837 | result=? |
| 8838 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8839 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8840 | 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] | 8841 | fi |
| 8842 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8843 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8844 | if test "$fits_in_uint" = 1; then |
| 8845 | cat >conftest.$ac_ext <<_ACEOF |
| 8846 | /* confdefs.h. */ |
| 8847 | _ACEOF |
| 8848 | cat confdefs.h >>conftest.$ac_ext |
| 8849 | cat >>conftest.$ac_ext <<_ACEOF |
| 8850 | /* end confdefs.h. */ |
| 8851 | #include <stddef.h> |
| 8852 | extern size_t foo; |
| 8853 | extern unsigned long foo; |
| 8854 | |
| 8855 | int |
| 8856 | main () |
| 8857 | { |
| 8858 | |
| 8859 | ; |
| 8860 | return 0; |
| 8861 | } |
| 8862 | _ACEOF |
| 8863 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8864 | if { (ac_try="$ac_compile" |
| 8865 | case "(($ac_try" in |
| 8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8867 | *) ac_try_echo=$ac_try;; |
| 8868 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8870 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8871 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8872 | ac_status=$? |
| 8873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8874 | rm -f conftest.er1 |
| 8875 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8877 | (exit $ac_status); } && { |
| 8878 | test -z "$ac_c_werror_flag" || |
| 8879 | test ! -s conftest.err |
| 8880 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8881 | fits_in_uint=0 |
| 8882 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8883 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8885 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8887 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8888 | |
| 8889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8890 | fi |
| 8891 | if test -z "$result"; then |
| 8892 | if test "$fits_in_uint" = 1; then |
| 8893 | result="$res_hi$res_lo"U |
| 8894 | else |
| 8895 | result="$res_hi$res_lo"UL |
| 8896 | fi |
| 8897 | else |
| 8898 | result='~(size_t)0' |
| 8899 | fi |
| 8900 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8901 | { $as_echo "$as_me:$LINENO: result: $result" >&5 |
| 8902 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8903 | if test "$result" != yes; then |
| 8904 | |
| 8905 | cat >>confdefs.h <<_ACEOF |
| 8906 | #define SIZE_MAX $result |
| 8907 | _ACEOF |
| 8908 | |
| 8909 | fi |
| 8910 | |
| 8911 | |
| 8912 | |
| 8913 | |
| 8914 | for ac_header in stdint.h |
| 8915 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8916 | 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] | 8917 | 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^] | 8918 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8919 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8920 | 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^] | 8921 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8922 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8923 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 8924 | $as_echo "$as_val"'` |
| 8925 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8926 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8927 | else |
| 8928 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8929 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8930 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8931 | cat >conftest.$ac_ext <<_ACEOF |
| 8932 | /* confdefs.h. */ |
| 8933 | _ACEOF |
| 8934 | cat confdefs.h >>conftest.$ac_ext |
| 8935 | cat >>conftest.$ac_ext <<_ACEOF |
| 8936 | /* end confdefs.h. */ |
| 8937 | $ac_includes_default |
| 8938 | #include <$ac_header> |
| 8939 | _ACEOF |
| 8940 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8941 | if { (ac_try="$ac_compile" |
| 8942 | case "(($ac_try" in |
| 8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8944 | *) ac_try_echo=$ac_try;; |
| 8945 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8947 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8948 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8949 | ac_status=$? |
| 8950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8951 | rm -f conftest.er1 |
| 8952 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8954 | (exit $ac_status); } && { |
| 8955 | test -z "$ac_c_werror_flag" || |
| 8956 | test ! -s conftest.err |
| 8957 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8958 | ac_header_compiler=yes |
| 8959 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8960 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8963 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8964 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8965 | |
| 8966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8967 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8968 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8969 | |
| 8970 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8971 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8972 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8973 | cat >conftest.$ac_ext <<_ACEOF |
| 8974 | /* confdefs.h. */ |
| 8975 | _ACEOF |
| 8976 | cat confdefs.h >>conftest.$ac_ext |
| 8977 | cat >>conftest.$ac_ext <<_ACEOF |
| 8978 | /* end confdefs.h. */ |
| 8979 | #include <$ac_header> |
| 8980 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8981 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8982 | case "(($ac_try" in |
| 8983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8984 | *) ac_try_echo=$ac_try;; |
| 8985 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8987 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8989 | ac_status=$? |
| 8990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8991 | rm -f conftest.er1 |
| 8992 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 8993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8994 | (exit $ac_status); } >/dev/null && { |
| 8995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8996 | test ! -s conftest.err |
| 8997 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8998 | ac_header_preproc=yes |
| 8999 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9000 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9002 | |
| 9003 | ac_header_preproc=no |
| 9004 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9005 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9006 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9007 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9008 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9009 | |
| 9010 | # So? What about this header? |
| 9011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9012 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9014 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9016 | $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] | 9017 | ac_header_preproc=yes |
| 9018 | ;; |
| 9019 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9021 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9023 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9025 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9027 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9029 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9031 | $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] | 9032 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9033 | ;; |
| 9034 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9035 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9036 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9037 | 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^] | 9038 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9039 | else |
| 9040 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9041 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9042 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9043 | $as_echo "$as_val"'` |
| 9044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9045 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9046 | |
| 9047 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9048 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9049 | $as_echo "$as_val"'` |
| 9050 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9051 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9052 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9053 | _ACEOF |
| 9054 | |
| 9055 | fi |
| 9056 | |
| 9057 | done |
| 9058 | |
| 9059 | |
| 9060 | |
| 9061 | if test "X$prefix" = "XNONE"; then |
| 9062 | acl_final_prefix="$ac_default_prefix" |
| 9063 | else |
| 9064 | acl_final_prefix="$prefix" |
| 9065 | fi |
| 9066 | if test "X$exec_prefix" = "XNONE"; then |
| 9067 | acl_final_exec_prefix='${prefix}' |
| 9068 | else |
| 9069 | acl_final_exec_prefix="$exec_prefix" |
| 9070 | fi |
| 9071 | acl_save_prefix="$prefix" |
| 9072 | prefix="$acl_final_prefix" |
| 9073 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 9074 | prefix="$acl_save_prefix" |
| 9075 | |
| 9076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9077 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9078 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9079 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9080 | else |
| 9081 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9082 | fi |
| 9083 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9084 | # Prepare PATH_SEPARATOR. |
| 9085 | # The user is always right. |
| 9086 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9087 | echo "#! /bin/sh" >conf$$.sh |
| 9088 | echo "exit 0" >>conf$$.sh |
| 9089 | chmod +x conf$$.sh |
| 9090 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9091 | PATH_SEPARATOR=';' |
| 9092 | else |
| 9093 | PATH_SEPARATOR=: |
| 9094 | fi |
| 9095 | rm -f conf$$.sh |
| 9096 | fi |
| 9097 | ac_prog=ld |
| 9098 | if test "$GCC" = yes; then |
| 9099 | # Check if gcc -print-prog-name=ld gives a path. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9100 | { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 9101 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9102 | case $host in |
| 9103 | *-*-mingw*) |
| 9104 | # gcc leaves a trailing carriage return which upsets mingw |
| 9105 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9106 | *) |
| 9107 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9108 | esac |
| 9109 | case $ac_prog in |
| 9110 | # Accept absolute paths. |
| 9111 | [\\/]* | [A-Za-z]:[\\/]*) |
| 9112 | re_direlt='/[^/][^/]*/\.\./' |
| 9113 | # Canonicalize the path of ld |
| 9114 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 9115 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9116 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 9117 | done |
| 9118 | test -z "$LD" && LD="$ac_prog" |
| 9119 | ;; |
| 9120 | "") |
| 9121 | # If it fails, then pretend we aren't using GCC. |
| 9122 | ac_prog=ld |
| 9123 | ;; |
| 9124 | *) |
| 9125 | # If it is relative, then search for the first ld in PATH. |
| 9126 | with_gnu_ld=unknown |
| 9127 | ;; |
| 9128 | esac |
| 9129 | elif test "$with_gnu_ld" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9130 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9131 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9132 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9133 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9134 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9135 | fi |
| 9136 | if test "${acl_cv_path_LD+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9137 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9138 | else |
| 9139 | if test -z "$LD"; then |
| 9140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 9141 | for ac_dir in $PATH; do |
| 9142 | test -z "$ac_dir" && ac_dir=. |
| 9143 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9144 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 9145 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9146 | # but apparently some GNU ld's only accept -v. |
| 9147 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9148 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 9149 | *GNU* | *'with BFD'*) |
| 9150 | test "$with_gnu_ld" != no && break ;; |
| 9151 | *) |
| 9152 | test "$with_gnu_ld" != yes && break ;; |
| 9153 | esac |
| 9154 | fi |
| 9155 | done |
| 9156 | IFS="$ac_save_ifs" |
| 9157 | else |
| 9158 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9159 | fi |
| 9160 | fi |
| 9161 | |
| 9162 | LD="$acl_cv_path_LD" |
| 9163 | if test -n "$LD"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9164 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
| 9165 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9166 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9167 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9168 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9169 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9170 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9171 | $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] | 9172 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9173 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9174 | $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] | 9175 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9176 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9177 | else |
| 9178 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9179 | case `$LD -v 2>&1 </dev/null` in |
| 9180 | *GNU* | *'with BFD'*) |
| 9181 | acl_cv_prog_gnu_ld=yes ;; |
| 9182 | *) |
| 9183 | acl_cv_prog_gnu_ld=no ;; |
| 9184 | esac |
| 9185 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9186 | { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9187 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9188 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9189 | |
| 9190 | |
| 9191 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9192 | { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9193 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9194 | if test "${acl_cv_rpath+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9195 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9196 | else |
| 9197 | |
| 9198 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9199 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9200 | . ./conftest.sh |
| 9201 | rm -f ./conftest.sh |
| 9202 | acl_cv_rpath=done |
| 9203 | |
| 9204 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9205 | { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9206 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9207 | wl="$acl_cv_wl" |
| 9208 | libext="$acl_cv_libext" |
| 9209 | shlibext="$acl_cv_shlibext" |
| 9210 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9211 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9212 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9213 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9214 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9215 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9216 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9217 | else |
| 9218 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9219 | fi |
| 9220 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | |
| 9227 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9228 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9229 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9230 | acl_save_prefix="$prefix" |
| 9231 | prefix="$acl_final_prefix" |
| 9232 | acl_save_exec_prefix="$exec_prefix" |
| 9233 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9234 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9235 | eval additional_includedir=\"$includedir\" |
| 9236 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9237 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9238 | exec_prefix="$acl_save_exec_prefix" |
| 9239 | prefix="$acl_save_prefix" |
| 9240 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9241 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9242 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9243 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9244 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9245 | if test "X$withval" = "Xno"; then |
| 9246 | use_additional=no |
| 9247 | else |
| 9248 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9249 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9250 | acl_save_prefix="$prefix" |
| 9251 | prefix="$acl_final_prefix" |
| 9252 | acl_save_exec_prefix="$exec_prefix" |
| 9253 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9254 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9255 | eval additional_includedir=\"$includedir\" |
| 9256 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9257 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9258 | exec_prefix="$acl_save_exec_prefix" |
| 9259 | prefix="$acl_save_prefix" |
| 9260 | |
| 9261 | else |
| 9262 | additional_includedir="$withval/include" |
| 9263 | additional_libdir="$withval/lib" |
| 9264 | fi |
| 9265 | fi |
| 9266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9267 | fi |
| 9268 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9269 | LIBICONV= |
| 9270 | LTLIBICONV= |
| 9271 | INCICONV= |
| 9272 | rpathdirs= |
| 9273 | ltrpathdirs= |
| 9274 | names_already_handled= |
| 9275 | names_next_round='iconv ' |
| 9276 | while test -n "$names_next_round"; do |
| 9277 | names_this_round="$names_next_round" |
| 9278 | names_next_round= |
| 9279 | for name in $names_this_round; do |
| 9280 | already_handled= |
| 9281 | for n in $names_already_handled; do |
| 9282 | if test "$n" = "$name"; then |
| 9283 | already_handled=yes |
| 9284 | break |
| 9285 | fi |
| 9286 | done |
| 9287 | if test -z "$already_handled"; then |
| 9288 | names_already_handled="$names_already_handled $name" |
| 9289 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9290 | eval value=\"\$HAVE_LIB$uppername\" |
| 9291 | if test -n "$value"; then |
| 9292 | if test "$value" = yes; then |
| 9293 | eval value=\"\$LIB$uppername\" |
| 9294 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9295 | eval value=\"\$LTLIB$uppername\" |
| 9296 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9297 | else |
| 9298 | : |
| 9299 | fi |
| 9300 | else |
| 9301 | found_dir= |
| 9302 | found_la= |
| 9303 | found_so= |
| 9304 | found_a= |
| 9305 | if test $use_additional = yes; then |
| 9306 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9307 | found_dir="$additional_libdir" |
| 9308 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9309 | if test -f "$additional_libdir/lib$name.la"; then |
| 9310 | found_la="$additional_libdir/lib$name.la" |
| 9311 | fi |
| 9312 | else |
| 9313 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9314 | found_dir="$additional_libdir" |
| 9315 | found_a="$additional_libdir/lib$name.$libext" |
| 9316 | if test -f "$additional_libdir/lib$name.la"; then |
| 9317 | found_la="$additional_libdir/lib$name.la" |
| 9318 | fi |
| 9319 | fi |
| 9320 | fi |
| 9321 | fi |
| 9322 | if test "X$found_dir" = "X"; then |
| 9323 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9324 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9325 | acl_save_prefix="$prefix" |
| 9326 | prefix="$acl_final_prefix" |
| 9327 | acl_save_exec_prefix="$exec_prefix" |
| 9328 | exec_prefix="$acl_final_exec_prefix" |
| 9329 | eval x=\"$x\" |
| 9330 | exec_prefix="$acl_save_exec_prefix" |
| 9331 | prefix="$acl_save_prefix" |
| 9332 | |
| 9333 | case "$x" in |
| 9334 | -L*) |
| 9335 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9336 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9337 | found_dir="$dir" |
| 9338 | found_so="$dir/lib$name.$shlibext" |
| 9339 | if test -f "$dir/lib$name.la"; then |
| 9340 | found_la="$dir/lib$name.la" |
| 9341 | fi |
| 9342 | else |
| 9343 | if test -f "$dir/lib$name.$libext"; then |
| 9344 | found_dir="$dir" |
| 9345 | found_a="$dir/lib$name.$libext" |
| 9346 | if test -f "$dir/lib$name.la"; then |
| 9347 | found_la="$dir/lib$name.la" |
| 9348 | fi |
| 9349 | fi |
| 9350 | fi |
| 9351 | ;; |
| 9352 | esac |
| 9353 | if test "X$found_dir" != "X"; then |
| 9354 | break |
| 9355 | fi |
| 9356 | done |
| 9357 | fi |
| 9358 | if test "X$found_dir" != "X"; then |
| 9359 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9360 | if test "X$found_so" != "X"; then |
| 9361 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9362 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9363 | else |
| 9364 | haveit= |
| 9365 | for x in $ltrpathdirs; do |
| 9366 | if test "X$x" = "X$found_dir"; then |
| 9367 | haveit=yes |
| 9368 | break |
| 9369 | fi |
| 9370 | done |
| 9371 | if test -z "$haveit"; then |
| 9372 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9373 | fi |
| 9374 | if test "$hardcode_direct" = yes; then |
| 9375 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9376 | else |
| 9377 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9378 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9379 | haveit= |
| 9380 | for x in $rpathdirs; do |
| 9381 | if test "X$x" = "X$found_dir"; then |
| 9382 | haveit=yes |
| 9383 | break |
| 9384 | fi |
| 9385 | done |
| 9386 | if test -z "$haveit"; then |
| 9387 | rpathdirs="$rpathdirs $found_dir" |
| 9388 | fi |
| 9389 | else |
| 9390 | haveit= |
| 9391 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9392 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9393 | acl_save_prefix="$prefix" |
| 9394 | prefix="$acl_final_prefix" |
| 9395 | acl_save_exec_prefix="$exec_prefix" |
| 9396 | exec_prefix="$acl_final_exec_prefix" |
| 9397 | eval x=\"$x\" |
| 9398 | exec_prefix="$acl_save_exec_prefix" |
| 9399 | prefix="$acl_save_prefix" |
| 9400 | |
| 9401 | if test "X$x" = "X-L$found_dir"; then |
| 9402 | haveit=yes |
| 9403 | break |
| 9404 | fi |
| 9405 | done |
| 9406 | if test -z "$haveit"; then |
| 9407 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9408 | fi |
| 9409 | if test "$hardcode_minus_L" != no; then |
| 9410 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9411 | else |
| 9412 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9413 | fi |
| 9414 | fi |
| 9415 | fi |
| 9416 | fi |
| 9417 | else |
| 9418 | if test "X$found_a" != "X"; then |
| 9419 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9420 | else |
| 9421 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9422 | fi |
| 9423 | fi |
| 9424 | additional_includedir= |
| 9425 | case "$found_dir" in |
| 9426 | */lib | */lib/) |
| 9427 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9428 | additional_includedir="$basedir/include" |
| 9429 | ;; |
| 9430 | esac |
| 9431 | if test "X$additional_includedir" != "X"; then |
| 9432 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9433 | haveit= |
| 9434 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9435 | if test -n "$GCC"; then |
| 9436 | case $host_os in |
| 9437 | linux*) haveit=yes;; |
| 9438 | esac |
| 9439 | fi |
| 9440 | fi |
| 9441 | if test -z "$haveit"; then |
| 9442 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9444 | acl_save_prefix="$prefix" |
| 9445 | prefix="$acl_final_prefix" |
| 9446 | acl_save_exec_prefix="$exec_prefix" |
| 9447 | exec_prefix="$acl_final_exec_prefix" |
| 9448 | eval x=\"$x\" |
| 9449 | exec_prefix="$acl_save_exec_prefix" |
| 9450 | prefix="$acl_save_prefix" |
| 9451 | |
| 9452 | if test "X$x" = "X-I$additional_includedir"; then |
| 9453 | haveit=yes |
| 9454 | break |
| 9455 | fi |
| 9456 | done |
| 9457 | if test -z "$haveit"; then |
| 9458 | if test -d "$additional_includedir"; then |
| 9459 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9460 | fi |
| 9461 | fi |
| 9462 | fi |
| 9463 | fi |
| 9464 | fi |
| 9465 | if test -n "$found_la"; then |
| 9466 | save_libdir="$libdir" |
| 9467 | case "$found_la" in |
| 9468 | */* | *\\*) . "$found_la" ;; |
| 9469 | *) . "./$found_la" ;; |
| 9470 | esac |
| 9471 | libdir="$save_libdir" |
| 9472 | for dep in $dependency_libs; do |
| 9473 | case "$dep" in |
| 9474 | -L*) |
| 9475 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9476 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9477 | haveit= |
| 9478 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9479 | if test -n "$GCC"; then |
| 9480 | case $host_os in |
| 9481 | linux*) haveit=yes;; |
| 9482 | esac |
| 9483 | fi |
| 9484 | fi |
| 9485 | if test -z "$haveit"; then |
| 9486 | haveit= |
| 9487 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9488 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9489 | acl_save_prefix="$prefix" |
| 9490 | prefix="$acl_final_prefix" |
| 9491 | acl_save_exec_prefix="$exec_prefix" |
| 9492 | exec_prefix="$acl_final_exec_prefix" |
| 9493 | eval x=\"$x\" |
| 9494 | exec_prefix="$acl_save_exec_prefix" |
| 9495 | prefix="$acl_save_prefix" |
| 9496 | |
| 9497 | if test "X$x" = "X-L$additional_libdir"; then |
| 9498 | haveit=yes |
| 9499 | break |
| 9500 | fi |
| 9501 | done |
| 9502 | if test -z "$haveit"; then |
| 9503 | if test -d "$additional_libdir"; then |
| 9504 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9505 | fi |
| 9506 | fi |
| 9507 | haveit= |
| 9508 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9509 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9510 | acl_save_prefix="$prefix" |
| 9511 | prefix="$acl_final_prefix" |
| 9512 | acl_save_exec_prefix="$exec_prefix" |
| 9513 | exec_prefix="$acl_final_exec_prefix" |
| 9514 | eval x=\"$x\" |
| 9515 | exec_prefix="$acl_save_exec_prefix" |
| 9516 | prefix="$acl_save_prefix" |
| 9517 | |
| 9518 | if test "X$x" = "X-L$additional_libdir"; then |
| 9519 | haveit=yes |
| 9520 | break |
| 9521 | fi |
| 9522 | done |
| 9523 | if test -z "$haveit"; then |
| 9524 | if test -d "$additional_libdir"; then |
| 9525 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9526 | fi |
| 9527 | fi |
| 9528 | fi |
| 9529 | fi |
| 9530 | ;; |
| 9531 | -R*) |
| 9532 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9533 | if test "$enable_rpath" != no; then |
| 9534 | haveit= |
| 9535 | for x in $rpathdirs; do |
| 9536 | if test "X$x" = "X$dir"; then |
| 9537 | haveit=yes |
| 9538 | break |
| 9539 | fi |
| 9540 | done |
| 9541 | if test -z "$haveit"; then |
| 9542 | rpathdirs="$rpathdirs $dir" |
| 9543 | fi |
| 9544 | haveit= |
| 9545 | for x in $ltrpathdirs; do |
| 9546 | if test "X$x" = "X$dir"; then |
| 9547 | haveit=yes |
| 9548 | break |
| 9549 | fi |
| 9550 | done |
| 9551 | if test -z "$haveit"; then |
| 9552 | ltrpathdirs="$ltrpathdirs $dir" |
| 9553 | fi |
| 9554 | fi |
| 9555 | ;; |
| 9556 | -l*) |
| 9557 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9558 | ;; |
| 9559 | *.la) |
| 9560 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9561 | ;; |
| 9562 | *) |
| 9563 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9564 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9565 | ;; |
| 9566 | esac |
| 9567 | done |
| 9568 | fi |
| 9569 | else |
| 9570 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9571 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9572 | fi |
| 9573 | fi |
| 9574 | fi |
| 9575 | done |
| 9576 | done |
| 9577 | if test "X$rpathdirs" != "X"; then |
| 9578 | if test -n "$hardcode_libdir_separator"; then |
| 9579 | alldirs= |
| 9580 | for found_dir in $rpathdirs; do |
| 9581 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9582 | done |
| 9583 | acl_save_libdir="$libdir" |
| 9584 | libdir="$alldirs" |
| 9585 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9586 | libdir="$acl_save_libdir" |
| 9587 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9588 | else |
| 9589 | for found_dir in $rpathdirs; do |
| 9590 | acl_save_libdir="$libdir" |
| 9591 | libdir="$found_dir" |
| 9592 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9593 | libdir="$acl_save_libdir" |
| 9594 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9595 | done |
| 9596 | fi |
| 9597 | fi |
| 9598 | if test "X$ltrpathdirs" != "X"; then |
| 9599 | for found_dir in $ltrpathdirs; do |
| 9600 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9601 | done |
| 9602 | fi |
| 9603 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9604 | |
| 9605 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9606 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9607 | |
| 9608 | |
| 9609 | |
| 9610 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9611 | { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9612 | $as_echo_n "checking for ptrdiff_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9613 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9614 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9615 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9616 | ac_cv_type_ptrdiff_t=no |
| 9617 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | /* confdefs.h. */ |
| 9619 | _ACEOF |
| 9620 | cat confdefs.h >>conftest.$ac_ext |
| 9621 | cat >>conftest.$ac_ext <<_ACEOF |
| 9622 | /* end confdefs.h. */ |
| 9623 | $ac_includes_default |
| 9624 | int |
| 9625 | main () |
| 9626 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9627 | if (sizeof (ptrdiff_t)) |
| 9628 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9629 | ; |
| 9630 | return 0; |
| 9631 | } |
| 9632 | _ACEOF |
| 9633 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9634 | if { (ac_try="$ac_compile" |
| 9635 | case "(($ac_try" in |
| 9636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9637 | *) ac_try_echo=$ac_try;; |
| 9638 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9640 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9641 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9642 | ac_status=$? |
| 9643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9644 | rm -f conftest.er1 |
| 9645 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9647 | (exit $ac_status); } && { |
| 9648 | test -z "$ac_c_werror_flag" || |
| 9649 | test ! -s conftest.err |
| 9650 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9651 | cat >conftest.$ac_ext <<_ACEOF |
| 9652 | /* confdefs.h. */ |
| 9653 | _ACEOF |
| 9654 | cat confdefs.h >>conftest.$ac_ext |
| 9655 | cat >>conftest.$ac_ext <<_ACEOF |
| 9656 | /* end confdefs.h. */ |
| 9657 | $ac_includes_default |
| 9658 | int |
| 9659 | main () |
| 9660 | { |
| 9661 | if (sizeof ((ptrdiff_t))) |
| 9662 | return 0; |
| 9663 | ; |
| 9664 | return 0; |
| 9665 | } |
| 9666 | _ACEOF |
| 9667 | rm -f conftest.$ac_objext |
| 9668 | if { (ac_try="$ac_compile" |
| 9669 | case "(($ac_try" in |
| 9670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9671 | *) ac_try_echo=$ac_try;; |
| 9672 | esac |
| 9673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9674 | $as_echo "$ac_try_echo") >&5 |
| 9675 | (eval "$ac_compile") 2>conftest.er1 |
| 9676 | ac_status=$? |
| 9677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9678 | rm -f conftest.er1 |
| 9679 | cat conftest.err >&5 |
| 9680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9681 | (exit $ac_status); } && { |
| 9682 | test -z "$ac_c_werror_flag" || |
| 9683 | test ! -s conftest.err |
| 9684 | } && test -s conftest.$ac_objext; then |
| 9685 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9686 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9687 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9689 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9690 | ac_cv_type_ptrdiff_t=yes |
| 9691 | fi |
| 9692 | |
| 9693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9694 | else |
| 9695 | $as_echo "$as_me: failed program was:" >&5 |
| 9696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9697 | |
| 9698 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9699 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9700 | |
| 9701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9702 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9703 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9704 | $as_echo "$ac_cv_type_ptrdiff_t" >&6; } |
| 9705 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9706 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9707 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9708 | |
| 9709 | cat >>confdefs.h <<\_ACEOF |
| 9710 | #define ptrdiff_t long |
| 9711 | _ACEOF |
| 9712 | |
| 9713 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9714 | fi |
| 9715 | |
| 9716 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9717 | |
| 9718 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9719 | |
| 9720 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | 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] | 9727 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9728 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9729 | 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] | 9730 | 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^] | 9731 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9732 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9733 | 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^] | 9734 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9735 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9736 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9737 | $as_echo "$as_val"'` |
| 9738 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9739 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9740 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9741 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9742 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9743 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9744 | cat >conftest.$ac_ext <<_ACEOF |
| 9745 | /* confdefs.h. */ |
| 9746 | _ACEOF |
| 9747 | cat confdefs.h >>conftest.$ac_ext |
| 9748 | cat >>conftest.$ac_ext <<_ACEOF |
| 9749 | /* end confdefs.h. */ |
| 9750 | $ac_includes_default |
| 9751 | #include <$ac_header> |
| 9752 | _ACEOF |
| 9753 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9754 | if { (ac_try="$ac_compile" |
| 9755 | case "(($ac_try" in |
| 9756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9757 | *) ac_try_echo=$ac_try;; |
| 9758 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9760 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9761 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9762 | ac_status=$? |
| 9763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9764 | rm -f conftest.er1 |
| 9765 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9767 | (exit $ac_status); } && { |
| 9768 | test -z "$ac_c_werror_flag" || |
| 9769 | test ! -s conftest.err |
| 9770 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9771 | ac_header_compiler=yes |
| 9772 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9773 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9776 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9777 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9778 | |
| 9779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9780 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9781 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9782 | |
| 9783 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9784 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9785 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9786 | cat >conftest.$ac_ext <<_ACEOF |
| 9787 | /* confdefs.h. */ |
| 9788 | _ACEOF |
| 9789 | cat confdefs.h >>conftest.$ac_ext |
| 9790 | cat >>conftest.$ac_ext <<_ACEOF |
| 9791 | /* end confdefs.h. */ |
| 9792 | #include <$ac_header> |
| 9793 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9794 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9795 | case "(($ac_try" in |
| 9796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9797 | *) ac_try_echo=$ac_try;; |
| 9798 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9800 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9801 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9802 | ac_status=$? |
| 9803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9804 | rm -f conftest.er1 |
| 9805 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9807 | (exit $ac_status); } >/dev/null && { |
| 9808 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9809 | test ! -s conftest.err |
| 9810 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9811 | ac_header_preproc=yes |
| 9812 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9813 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9815 | |
| 9816 | ac_header_preproc=no |
| 9817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9819 | rm -f conftest.err conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9820 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9821 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9822 | |
| 9823 | # So? What about this header? |
| 9824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9825 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9827 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9829 | $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] | 9830 | ac_header_preproc=yes |
| 9831 | ;; |
| 9832 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9834 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9835 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9836 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9837 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9838 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9839 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9840 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9841 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9842 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9844 | $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] | 9845 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9846 | ;; |
| 9847 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9848 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9849 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9850 | 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^] | 9851 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9852 | else |
| 9853 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9854 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9855 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 9856 | $as_echo "$as_val"'` |
| 9857 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9858 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9859 | |
| 9860 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9861 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 9862 | $as_echo "$as_val"'` |
| 9863 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9864 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9865 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9866 | _ACEOF |
| 9867 | |
| 9868 | fi |
| 9869 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9870 | done |
| 9871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9872 | |
| 9873 | |
| 9874 | |
| 9875 | |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9896 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9897 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9898 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9899 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9900 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9901 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9902 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9903 | 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^] | 9904 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | cat >conftest.$ac_ext <<_ACEOF |
| 9907 | /* confdefs.h. */ |
| 9908 | _ACEOF |
| 9909 | cat confdefs.h >>conftest.$ac_ext |
| 9910 | cat >>conftest.$ac_ext <<_ACEOF |
| 9911 | /* end confdefs.h. */ |
| 9912 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9914 | #define $ac_func innocuous_$ac_func |
| 9915 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9916 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | which can conflict with char $ac_func (); below. |
| 9918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9919 | <limits.h> exists even on freestanding compilers. */ |
| 9920 | |
| 9921 | #ifdef __STDC__ |
| 9922 | # include <limits.h> |
| 9923 | #else |
| 9924 | # include <assert.h> |
| 9925 | #endif |
| 9926 | |
| 9927 | #undef $ac_func |
| 9928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9929 | /* Override any GCC internal prototype to avoid an error. |
| 9930 | Use char because int might match the return type of a GCC |
| 9931 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9932 | #ifdef __cplusplus |
| 9933 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9934 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9935 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9936 | /* The GNU C library defines this for functions which it implements |
| 9937 | to always fail with ENOSYS. Some functions are actually named |
| 9938 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9939 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9940 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9941 | #endif |
| 9942 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9943 | int |
| 9944 | main () |
| 9945 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9946 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9947 | ; |
| 9948 | return 0; |
| 9949 | } |
| 9950 | _ACEOF |
| 9951 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9952 | if { (ac_try="$ac_link" |
| 9953 | case "(($ac_try" in |
| 9954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9955 | *) ac_try_echo=$ac_try;; |
| 9956 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9958 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9959 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9960 | ac_status=$? |
| 9961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9962 | rm -f conftest.er1 |
| 9963 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9965 | (exit $ac_status); } && { |
| 9966 | test -z "$ac_c_werror_flag" || |
| 9967 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9968 | } && test -s conftest$ac_exeext && { |
| 9969 | test "$cross_compiling" = yes || |
| 9970 | $as_test_x conftest$ac_exeext |
| 9971 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9973 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9974 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9976 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9977 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9978 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9979 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9980 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9981 | 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] | 9982 | conftest$ac_exeext conftest.$ac_ext |
| 9983 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9984 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 9985 | $as_echo "$as_val"'` |
| 9986 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9987 | $as_echo "$ac_res" >&6; } |
| 9988 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 9989 | $as_echo "$as_val"'` |
| 9990 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9991 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 9992 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9993 | _ACEOF |
| 9994 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9995 | fi |
| 9996 | done |
| 9997 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9998 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9999 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10000 | { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 10001 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10002 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10003 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10004 | else |
| 10005 | cat >conftest.$ac_ext <<_ACEOF |
| 10006 | /* confdefs.h. */ |
| 10007 | _ACEOF |
| 10008 | cat confdefs.h >>conftest.$ac_ext |
| 10009 | cat >>conftest.$ac_ext <<_ACEOF |
| 10010 | /* end confdefs.h. */ |
| 10011 | #include <stdio.h> |
| 10012 | int |
| 10013 | main () |
| 10014 | { |
| 10015 | |
| 10016 | #ifndef _snprintf |
| 10017 | char *p = (char *) _snprintf; |
| 10018 | #endif |
| 10019 | |
| 10020 | ; |
| 10021 | return 0; |
| 10022 | } |
| 10023 | _ACEOF |
| 10024 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10025 | if { (ac_try="$ac_compile" |
| 10026 | case "(($ac_try" in |
| 10027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10028 | *) ac_try_echo=$ac_try;; |
| 10029 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10031 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10032 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10033 | ac_status=$? |
| 10034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10035 | rm -f conftest.er1 |
| 10036 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10038 | (exit $ac_status); } && { |
| 10039 | test -z "$ac_c_werror_flag" || |
| 10040 | test ! -s conftest.err |
| 10041 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10042 | ac_cv_have_decl__snprintf=yes |
| 10043 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10044 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10046 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10047 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10048 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10049 | |
| 10050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10051 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10052 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 10053 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10054 | if test $ac_cv_have_decl__snprintf = yes; then |
| 10055 | gt_value=1 |
| 10056 | else |
| 10057 | gt_value=0 |
| 10058 | fi |
| 10059 | |
| 10060 | cat >>confdefs.h <<_ACEOF |
| 10061 | #define HAVE_DECL__SNPRINTF $gt_value |
| 10062 | _ACEOF |
| 10063 | |
| 10064 | |
| 10065 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10066 | { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 10067 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10068 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10069 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10070 | else |
| 10071 | cat >conftest.$ac_ext <<_ACEOF |
| 10072 | /* confdefs.h. */ |
| 10073 | _ACEOF |
| 10074 | cat confdefs.h >>conftest.$ac_ext |
| 10075 | cat >>conftest.$ac_ext <<_ACEOF |
| 10076 | /* end confdefs.h. */ |
| 10077 | #include <stdio.h> |
| 10078 | int |
| 10079 | main () |
| 10080 | { |
| 10081 | |
| 10082 | #ifndef _snwprintf |
| 10083 | char *p = (char *) _snwprintf; |
| 10084 | #endif |
| 10085 | |
| 10086 | ; |
| 10087 | return 0; |
| 10088 | } |
| 10089 | _ACEOF |
| 10090 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10091 | if { (ac_try="$ac_compile" |
| 10092 | case "(($ac_try" in |
| 10093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10094 | *) ac_try_echo=$ac_try;; |
| 10095 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10097 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10098 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10099 | ac_status=$? |
| 10100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10101 | rm -f conftest.er1 |
| 10102 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10104 | (exit $ac_status); } && { |
| 10105 | test -z "$ac_c_werror_flag" || |
| 10106 | test ! -s conftest.err |
| 10107 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10108 | ac_cv_have_decl__snwprintf=yes |
| 10109 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10110 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10112 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10113 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10114 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10115 | |
| 10116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10117 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10119 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10120 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10121 | gt_value=1 |
| 10122 | else |
| 10123 | gt_value=0 |
| 10124 | fi |
| 10125 | |
| 10126 | cat >>confdefs.h <<_ACEOF |
| 10127 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10128 | _ACEOF |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10133 | { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10134 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10135 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10136 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10137 | else |
| 10138 | cat >conftest.$ac_ext <<_ACEOF |
| 10139 | /* confdefs.h. */ |
| 10140 | _ACEOF |
| 10141 | cat confdefs.h >>conftest.$ac_ext |
| 10142 | cat >>conftest.$ac_ext <<_ACEOF |
| 10143 | /* end confdefs.h. */ |
| 10144 | #include <stdio.h> |
| 10145 | int |
| 10146 | main () |
| 10147 | { |
| 10148 | |
| 10149 | #ifndef feof_unlocked |
| 10150 | char *p = (char *) feof_unlocked; |
| 10151 | #endif |
| 10152 | |
| 10153 | ; |
| 10154 | return 0; |
| 10155 | } |
| 10156 | _ACEOF |
| 10157 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10158 | if { (ac_try="$ac_compile" |
| 10159 | case "(($ac_try" in |
| 10160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10161 | *) ac_try_echo=$ac_try;; |
| 10162 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10164 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10165 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10166 | ac_status=$? |
| 10167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10168 | rm -f conftest.er1 |
| 10169 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10171 | (exit $ac_status); } && { |
| 10172 | test -z "$ac_c_werror_flag" || |
| 10173 | test ! -s conftest.err |
| 10174 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10175 | ac_cv_have_decl_feof_unlocked=yes |
| 10176 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10177 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10179 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10180 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10181 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10182 | |
| 10183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10184 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10185 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10186 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10187 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10188 | gt_value=1 |
| 10189 | else |
| 10190 | gt_value=0 |
| 10191 | fi |
| 10192 | |
| 10193 | cat >>confdefs.h <<_ACEOF |
| 10194 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10195 | _ACEOF |
| 10196 | |
| 10197 | |
| 10198 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10199 | { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10200 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10201 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10202 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10203 | else |
| 10204 | cat >conftest.$ac_ext <<_ACEOF |
| 10205 | /* confdefs.h. */ |
| 10206 | _ACEOF |
| 10207 | cat confdefs.h >>conftest.$ac_ext |
| 10208 | cat >>conftest.$ac_ext <<_ACEOF |
| 10209 | /* end confdefs.h. */ |
| 10210 | #include <stdio.h> |
| 10211 | int |
| 10212 | main () |
| 10213 | { |
| 10214 | |
| 10215 | #ifndef fgets_unlocked |
| 10216 | char *p = (char *) fgets_unlocked; |
| 10217 | #endif |
| 10218 | |
| 10219 | ; |
| 10220 | return 0; |
| 10221 | } |
| 10222 | _ACEOF |
| 10223 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10224 | if { (ac_try="$ac_compile" |
| 10225 | case "(($ac_try" in |
| 10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10227 | *) ac_try_echo=$ac_try;; |
| 10228 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10230 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10231 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10232 | ac_status=$? |
| 10233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10234 | rm -f conftest.er1 |
| 10235 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10237 | (exit $ac_status); } && { |
| 10238 | test -z "$ac_c_werror_flag" || |
| 10239 | test ! -s conftest.err |
| 10240 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10241 | ac_cv_have_decl_fgets_unlocked=yes |
| 10242 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10243 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10245 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10246 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10248 | |
| 10249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10250 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10251 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10252 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10253 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10254 | gt_value=1 |
| 10255 | else |
| 10256 | gt_value=0 |
| 10257 | fi |
| 10258 | |
| 10259 | cat >>confdefs.h <<_ACEOF |
| 10260 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10261 | _ACEOF |
| 10262 | |
| 10263 | |
| 10264 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10265 | { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10266 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10267 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10268 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10269 | else |
| 10270 | cat >conftest.$ac_ext <<_ACEOF |
| 10271 | /* confdefs.h. */ |
| 10272 | _ACEOF |
| 10273 | cat confdefs.h >>conftest.$ac_ext |
| 10274 | cat >>conftest.$ac_ext <<_ACEOF |
| 10275 | /* end confdefs.h. */ |
| 10276 | #include <stdio.h> |
| 10277 | int |
| 10278 | main () |
| 10279 | { |
| 10280 | |
| 10281 | #ifndef getc_unlocked |
| 10282 | char *p = (char *) getc_unlocked; |
| 10283 | #endif |
| 10284 | |
| 10285 | ; |
| 10286 | return 0; |
| 10287 | } |
| 10288 | _ACEOF |
| 10289 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10290 | if { (ac_try="$ac_compile" |
| 10291 | case "(($ac_try" in |
| 10292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10293 | *) ac_try_echo=$ac_try;; |
| 10294 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10296 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10297 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10298 | ac_status=$? |
| 10299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10300 | rm -f conftest.er1 |
| 10301 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10303 | (exit $ac_status); } && { |
| 10304 | test -z "$ac_c_werror_flag" || |
| 10305 | test ! -s conftest.err |
| 10306 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10307 | ac_cv_have_decl_getc_unlocked=yes |
| 10308 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10309 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10312 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10313 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10314 | |
| 10315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10316 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10318 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10319 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10320 | gt_value=1 |
| 10321 | else |
| 10322 | gt_value=0 |
| 10323 | fi |
| 10324 | |
| 10325 | cat >>confdefs.h <<_ACEOF |
| 10326 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10327 | _ACEOF |
| 10328 | |
| 10329 | |
| 10330 | |
| 10331 | case $gt_cv_func_printf_posix in |
| 10332 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10333 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10334 | esac |
| 10335 | |
| 10336 | if test "$ac_cv_func_asprintf" = yes; then |
| 10337 | HAVE_ASPRINTF=1 |
| 10338 | else |
| 10339 | HAVE_ASPRINTF=0 |
| 10340 | fi |
| 10341 | |
| 10342 | if test "$ac_cv_func_snprintf" = yes; then |
| 10343 | HAVE_SNPRINTF=1 |
| 10344 | else |
| 10345 | HAVE_SNPRINTF=0 |
| 10346 | fi |
| 10347 | |
| 10348 | if test "$ac_cv_func_wprintf" = yes; then |
| 10349 | HAVE_WPRINTF=1 |
| 10350 | else |
| 10351 | HAVE_WPRINTF=0 |
| 10352 | fi |
| 10353 | |
| 10354 | |
| 10355 | |
| 10356 | |
| 10357 | |
| 10358 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10359 | |
| 10360 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10361 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10362 | for element in $INCICONV; do |
| 10363 | haveit= |
| 10364 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10365 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10366 | acl_save_prefix="$prefix" |
| 10367 | prefix="$acl_final_prefix" |
| 10368 | acl_save_exec_prefix="$exec_prefix" |
| 10369 | exec_prefix="$acl_final_exec_prefix" |
| 10370 | eval x=\"$x\" |
| 10371 | exec_prefix="$acl_save_exec_prefix" |
| 10372 | prefix="$acl_save_prefix" |
| 10373 | |
| 10374 | if test "X$x" = "X$element"; then |
| 10375 | haveit=yes |
| 10376 | break |
| 10377 | fi |
| 10378 | done |
| 10379 | if test -z "$haveit"; then |
| 10380 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10381 | fi |
| 10382 | done |
| 10383 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10384 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10385 | { $as_echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10386 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10387 | if test "${am_cv_func_iconv+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10388 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10389 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10390 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10391 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10392 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10393 | cat >conftest.$ac_ext <<_ACEOF |
| 10394 | /* confdefs.h. */ |
| 10395 | _ACEOF |
| 10396 | cat confdefs.h >>conftest.$ac_ext |
| 10397 | cat >>conftest.$ac_ext <<_ACEOF |
| 10398 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10399 | #include <stdlib.h> |
| 10400 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10401 | int |
| 10402 | main () |
| 10403 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10404 | iconv_t cd = iconv_open("",""); |
| 10405 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10406 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10407 | ; |
| 10408 | return 0; |
| 10409 | } |
| 10410 | _ACEOF |
| 10411 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10412 | if { (ac_try="$ac_link" |
| 10413 | case "(($ac_try" in |
| 10414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10415 | *) ac_try_echo=$ac_try;; |
| 10416 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10418 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10419 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10420 | ac_status=$? |
| 10421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10422 | rm -f conftest.er1 |
| 10423 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10424 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10425 | (exit $ac_status); } && { |
| 10426 | test -z "$ac_c_werror_flag" || |
| 10427 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10428 | } && test -s conftest$ac_exeext && { |
| 10429 | test "$cross_compiling" = yes || |
| 10430 | $as_test_x conftest$ac_exeext |
| 10431 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10432 | am_cv_func_iconv=yes |
| 10433 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10434 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10436 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10437 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10438 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10439 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10440 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10441 | 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] | 10442 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10443 | if test "$am_cv_func_iconv" != yes; then |
| 10444 | am_save_LIBS="$LIBS" |
| 10445 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10446 | cat >conftest.$ac_ext <<_ACEOF |
| 10447 | /* confdefs.h. */ |
| 10448 | _ACEOF |
| 10449 | cat confdefs.h >>conftest.$ac_ext |
| 10450 | cat >>conftest.$ac_ext <<_ACEOF |
| 10451 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10452 | #include <stdlib.h> |
| 10453 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10454 | int |
| 10455 | main () |
| 10456 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10457 | iconv_t cd = iconv_open("",""); |
| 10458 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10459 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10460 | ; |
| 10461 | return 0; |
| 10462 | } |
| 10463 | _ACEOF |
| 10464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10465 | if { (ac_try="$ac_link" |
| 10466 | case "(($ac_try" in |
| 10467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10468 | *) ac_try_echo=$ac_try;; |
| 10469 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10471 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10472 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10473 | ac_status=$? |
| 10474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10475 | rm -f conftest.er1 |
| 10476 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10478 | (exit $ac_status); } && { |
| 10479 | test -z "$ac_c_werror_flag" || |
| 10480 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10481 | } && test -s conftest$ac_exeext && { |
| 10482 | test "$cross_compiling" = yes || |
| 10483 | $as_test_x conftest$ac_exeext |
| 10484 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10485 | am_cv_lib_iconv=yes |
| 10486 | am_cv_func_iconv=yes |
| 10487 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10488 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10490 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10492 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10493 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10494 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10495 | 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] | 10496 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10497 | LIBS="$am_save_LIBS" |
| 10498 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10500 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10501 | { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10502 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10503 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10504 | |
| 10505 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10506 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10507 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10508 | |
| 10509 | fi |
| 10510 | if test "$am_cv_lib_iconv" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10511 | { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10512 | $as_echo_n "checking how to link with libiconv... " >&6; } |
| 10513 | { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10514 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10515 | else |
| 10516 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10517 | LIBICONV= |
| 10518 | LTLIBICONV= |
| 10519 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | |
| 10521 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10522 | |
| 10523 | if test "$am_cv_func_iconv" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10524 | { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10525 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10526 | if test "${am_cv_proto_iconv+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10527 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10529 | |
| 10530 | cat >conftest.$ac_ext <<_ACEOF |
| 10531 | /* confdefs.h. */ |
| 10532 | _ACEOF |
| 10533 | cat confdefs.h >>conftest.$ac_ext |
| 10534 | cat >>conftest.$ac_ext <<_ACEOF |
| 10535 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10536 | |
| 10537 | #include <stdlib.h> |
| 10538 | #include <iconv.h> |
| 10539 | extern |
| 10540 | #ifdef __cplusplus |
| 10541 | "C" |
| 10542 | #endif |
| 10543 | #if defined(__STDC__) || defined(__cplusplus) |
| 10544 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10545 | #else |
| 10546 | size_t iconv(); |
| 10547 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10549 | int |
| 10550 | main () |
| 10551 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10552 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10553 | ; |
| 10554 | return 0; |
| 10555 | } |
| 10556 | _ACEOF |
| 10557 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10558 | if { (ac_try="$ac_compile" |
| 10559 | case "(($ac_try" in |
| 10560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10561 | *) ac_try_echo=$ac_try;; |
| 10562 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10564 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10565 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10566 | ac_status=$? |
| 10567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10568 | rm -f conftest.er1 |
| 10569 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10571 | (exit $ac_status); } && { |
| 10572 | test -z "$ac_c_werror_flag" || |
| 10573 | test ! -s conftest.err |
| 10574 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10575 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10576 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10577 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10579 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10580 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10581 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10582 | |
| 10583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10584 | 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] | 10585 | fi |
| 10586 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10587 | 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^] | 10588 | { $as_echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10589 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10590 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10591 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10592 | |
| 10593 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10594 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10595 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10596 | |
| 10597 | fi |
| 10598 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10599 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10600 | { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 10601 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10602 | if test "${am_cv_langinfo_codeset+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10603 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10604 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10605 | cat >conftest.$ac_ext <<_ACEOF |
| 10606 | /* confdefs.h. */ |
| 10607 | _ACEOF |
| 10608 | cat confdefs.h >>conftest.$ac_ext |
| 10609 | cat >>conftest.$ac_ext <<_ACEOF |
| 10610 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10611 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10612 | int |
| 10613 | main () |
| 10614 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10615 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10616 | ; |
| 10617 | return 0; |
| 10618 | } |
| 10619 | _ACEOF |
| 10620 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10621 | if { (ac_try="$ac_link" |
| 10622 | case "(($ac_try" in |
| 10623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10624 | *) ac_try_echo=$ac_try;; |
| 10625 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10627 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10628 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10629 | ac_status=$? |
| 10630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10631 | rm -f conftest.er1 |
| 10632 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10634 | (exit $ac_status); } && { |
| 10635 | test -z "$ac_c_werror_flag" || |
| 10636 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10637 | } && test -s conftest$ac_exeext && { |
| 10638 | test "$cross_compiling" = yes || |
| 10639 | $as_test_x conftest$ac_exeext |
| 10640 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10641 | am_cv_langinfo_codeset=yes |
| 10642 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10643 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10644 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10645 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10646 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10647 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10648 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10649 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10650 | 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] | 10651 | conftest$ac_exeext conftest.$ac_ext |
| 10652 | |
| 10653 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10654 | { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10655 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10656 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10657 | |
| 10658 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10659 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10660 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10661 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10662 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10663 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10664 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10665 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10666 | { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10667 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10668 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10669 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10670 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10671 | cat >conftest.$ac_ext <<_ACEOF |
| 10672 | /* confdefs.h. */ |
| 10673 | _ACEOF |
| 10674 | cat confdefs.h >>conftest.$ac_ext |
| 10675 | cat >>conftest.$ac_ext <<_ACEOF |
| 10676 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10677 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10678 | int |
| 10679 | main () |
| 10680 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10681 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10682 | ; |
| 10683 | return 0; |
| 10684 | } |
| 10685 | _ACEOF |
| 10686 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10687 | if { (ac_try="$ac_link" |
| 10688 | case "(($ac_try" in |
| 10689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10690 | *) ac_try_echo=$ac_try;; |
| 10691 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10692 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10693 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10694 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10695 | ac_status=$? |
| 10696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10697 | rm -f conftest.er1 |
| 10698 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10700 | (exit $ac_status); } && { |
| 10701 | test -z "$ac_c_werror_flag" || |
| 10702 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10703 | } && test -s conftest$ac_exeext && { |
| 10704 | test "$cross_compiling" = yes || |
| 10705 | $as_test_x conftest$ac_exeext |
| 10706 | }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10707 | am_cv_val_LC_MESSAGES=yes |
| 10708 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10709 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10710 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10712 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10713 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10714 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10715 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10716 | 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] | 10717 | conftest$ac_exeext conftest.$ac_ext |
| 10718 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10719 | { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10720 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10721 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10722 | |
| 10723 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10724 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10725 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10726 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10727 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10728 | |
| 10729 | fi |
| 10730 | |
| 10731 | for ac_prog in bison |
| 10732 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10733 | # 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] | 10734 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10735 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10736 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10737 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10738 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10739 | else |
| 10740 | if test -n "$INTLBISON"; then |
| 10741 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10744 | for as_dir in $PATH |
| 10745 | do |
| 10746 | IFS=$as_save_IFS |
| 10747 | test -z "$as_dir" && as_dir=. |
| 10748 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10750 | ac_cv_prog_INTLBISON="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10751 | $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] | 10752 | break 2 |
| 10753 | fi |
| 10754 | done |
| 10755 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10756 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10758 | fi |
| 10759 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10760 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10761 | if test -n "$INTLBISON"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10762 | { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10763 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10764 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10765 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10766 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10767 | fi |
| 10768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10769 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10770 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10771 | done |
| 10772 | |
| 10773 | if test -z "$INTLBISON"; then |
| 10774 | ac_verc_fail=yes |
| 10775 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10776 | { $as_echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10777 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10778 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10779 | case $ac_prog_version in |
| 10780 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10781 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10782 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10783 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10784 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10785 | { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10786 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10787 | fi |
| 10788 | if test $ac_verc_fail = yes; then |
| 10789 | INTLBISON=: |
| 10790 | fi |
| 10791 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10792 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10793 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10794 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10795 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10796 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10797 | |
| 10798 | |
| 10799 | |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | |
| 10804 | |
| 10805 | |
| 10806 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10807 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10808 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10809 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10810 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10811 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10812 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10813 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10814 | fi |
| 10815 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10816 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10817 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10818 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10819 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10820 | |
| 10821 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10822 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10823 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10824 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10825 | LIBINTL= |
| 10826 | LTLIBINTL= |
| 10827 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10828 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10829 | if test "$USE_NLS" = "yes"; then |
| 10830 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10831 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10832 | { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10833 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10834 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10835 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10836 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10837 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10838 | else |
| 10839 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10840 | fi |
| 10841 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10842 | { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10843 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10844 | |
| 10845 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10846 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10847 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10853 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10854 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10855 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10856 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10857 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10858 | cat >conftest.$ac_ext <<_ACEOF |
| 10859 | /* confdefs.h. */ |
| 10860 | _ACEOF |
| 10861 | cat confdefs.h >>conftest.$ac_ext |
| 10862 | cat >>conftest.$ac_ext <<_ACEOF |
| 10863 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10864 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10865 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10866 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10867 | int |
| 10868 | main () |
| 10869 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10870 | bindtextdomain ("", ""); |
| 10871 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10872 | ; |
| 10873 | return 0; |
| 10874 | } |
| 10875 | _ACEOF |
| 10876 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10877 | if { (ac_try="$ac_link" |
| 10878 | case "(($ac_try" in |
| 10879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10880 | *) ac_try_echo=$ac_try;; |
| 10881 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10883 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10884 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10885 | ac_status=$? |
| 10886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10887 | rm -f conftest.er1 |
| 10888 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10890 | (exit $ac_status); } && { |
| 10891 | test -z "$ac_c_werror_flag" || |
| 10892 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10893 | } && test -s conftest$ac_exeext && { |
| 10894 | test "$cross_compiling" = yes || |
| 10895 | $as_test_x conftest$ac_exeext |
| 10896 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10897 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10898 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10899 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10900 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10901 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10902 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10903 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10904 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10905 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10906 | 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] | 10907 | conftest$ac_exeext conftest.$ac_ext |
| 10908 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 10909 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10910 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10911 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10912 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10913 | |
| 10914 | |
| 10915 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10916 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10917 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10918 | acl_save_prefix="$prefix" |
| 10919 | prefix="$acl_final_prefix" |
| 10920 | acl_save_exec_prefix="$exec_prefix" |
| 10921 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10922 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10923 | eval additional_includedir=\"$includedir\" |
| 10924 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10926 | exec_prefix="$acl_save_exec_prefix" |
| 10927 | prefix="$acl_save_prefix" |
| 10928 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10931 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10932 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10933 | if test "X$withval" = "Xno"; then |
| 10934 | use_additional=no |
| 10935 | else |
| 10936 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10937 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10938 | acl_save_prefix="$prefix" |
| 10939 | prefix="$acl_final_prefix" |
| 10940 | acl_save_exec_prefix="$exec_prefix" |
| 10941 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10942 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10943 | eval additional_includedir=\"$includedir\" |
| 10944 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10945 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10946 | exec_prefix="$acl_save_exec_prefix" |
| 10947 | prefix="$acl_save_prefix" |
| 10948 | |
| 10949 | else |
| 10950 | additional_includedir="$withval/include" |
| 10951 | additional_libdir="$withval/lib" |
| 10952 | fi |
| 10953 | fi |
| 10954 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10955 | fi |
| 10956 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10957 | LIBINTL= |
| 10958 | LTLIBINTL= |
| 10959 | INCINTL= |
| 10960 | rpathdirs= |
| 10961 | ltrpathdirs= |
| 10962 | names_already_handled= |
| 10963 | names_next_round='intl ' |
| 10964 | while test -n "$names_next_round"; do |
| 10965 | names_this_round="$names_next_round" |
| 10966 | names_next_round= |
| 10967 | for name in $names_this_round; do |
| 10968 | already_handled= |
| 10969 | for n in $names_already_handled; do |
| 10970 | if test "$n" = "$name"; then |
| 10971 | already_handled=yes |
| 10972 | break |
| 10973 | fi |
| 10974 | done |
| 10975 | if test -z "$already_handled"; then |
| 10976 | names_already_handled="$names_already_handled $name" |
| 10977 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10978 | eval value=\"\$HAVE_LIB$uppername\" |
| 10979 | if test -n "$value"; then |
| 10980 | if test "$value" = yes; then |
| 10981 | eval value=\"\$LIB$uppername\" |
| 10982 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10983 | eval value=\"\$LTLIB$uppername\" |
| 10984 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10985 | else |
| 10986 | : |
| 10987 | fi |
| 10988 | else |
| 10989 | found_dir= |
| 10990 | found_la= |
| 10991 | found_so= |
| 10992 | found_a= |
| 10993 | if test $use_additional = yes; then |
| 10994 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10995 | found_dir="$additional_libdir" |
| 10996 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10997 | if test -f "$additional_libdir/lib$name.la"; then |
| 10998 | found_la="$additional_libdir/lib$name.la" |
| 10999 | fi |
| 11000 | else |
| 11001 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 11002 | found_dir="$additional_libdir" |
| 11003 | found_a="$additional_libdir/lib$name.$libext" |
| 11004 | if test -f "$additional_libdir/lib$name.la"; then |
| 11005 | found_la="$additional_libdir/lib$name.la" |
| 11006 | fi |
| 11007 | fi |
| 11008 | fi |
| 11009 | fi |
| 11010 | if test "X$found_dir" = "X"; then |
| 11011 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11012 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11013 | acl_save_prefix="$prefix" |
| 11014 | prefix="$acl_final_prefix" |
| 11015 | acl_save_exec_prefix="$exec_prefix" |
| 11016 | exec_prefix="$acl_final_exec_prefix" |
| 11017 | eval x=\"$x\" |
| 11018 | exec_prefix="$acl_save_exec_prefix" |
| 11019 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11020 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11021 | case "$x" in |
| 11022 | -L*) |
| 11023 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11024 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11025 | found_dir="$dir" |
| 11026 | found_so="$dir/lib$name.$shlibext" |
| 11027 | if test -f "$dir/lib$name.la"; then |
| 11028 | found_la="$dir/lib$name.la" |
| 11029 | fi |
| 11030 | else |
| 11031 | if test -f "$dir/lib$name.$libext"; then |
| 11032 | found_dir="$dir" |
| 11033 | found_a="$dir/lib$name.$libext" |
| 11034 | if test -f "$dir/lib$name.la"; then |
| 11035 | found_la="$dir/lib$name.la" |
| 11036 | fi |
| 11037 | fi |
| 11038 | fi |
| 11039 | ;; |
| 11040 | esac |
| 11041 | if test "X$found_dir" != "X"; then |
| 11042 | break |
| 11043 | fi |
| 11044 | done |
| 11045 | fi |
| 11046 | if test "X$found_dir" != "X"; then |
| 11047 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11048 | if test "X$found_so" != "X"; then |
| 11049 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11050 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11051 | else |
| 11052 | haveit= |
| 11053 | for x in $ltrpathdirs; do |
| 11054 | if test "X$x" = "X$found_dir"; then |
| 11055 | haveit=yes |
| 11056 | break |
| 11057 | fi |
| 11058 | done |
| 11059 | if test -z "$haveit"; then |
| 11060 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11061 | fi |
| 11062 | if test "$hardcode_direct" = yes; then |
| 11063 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11064 | else |
| 11065 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11066 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11067 | haveit= |
| 11068 | for x in $rpathdirs; do |
| 11069 | if test "X$x" = "X$found_dir"; then |
| 11070 | haveit=yes |
| 11071 | break |
| 11072 | fi |
| 11073 | done |
| 11074 | if test -z "$haveit"; then |
| 11075 | rpathdirs="$rpathdirs $found_dir" |
| 11076 | fi |
| 11077 | else |
| 11078 | haveit= |
| 11079 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11080 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11081 | acl_save_prefix="$prefix" |
| 11082 | prefix="$acl_final_prefix" |
| 11083 | acl_save_exec_prefix="$exec_prefix" |
| 11084 | exec_prefix="$acl_final_exec_prefix" |
| 11085 | eval x=\"$x\" |
| 11086 | exec_prefix="$acl_save_exec_prefix" |
| 11087 | prefix="$acl_save_prefix" |
| 11088 | |
| 11089 | if test "X$x" = "X-L$found_dir"; then |
| 11090 | haveit=yes |
| 11091 | break |
| 11092 | fi |
| 11093 | done |
| 11094 | if test -z "$haveit"; then |
| 11095 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11096 | fi |
| 11097 | if test "$hardcode_minus_L" != no; then |
| 11098 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11099 | else |
| 11100 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11101 | fi |
| 11102 | fi |
| 11103 | fi |
| 11104 | fi |
| 11105 | else |
| 11106 | if test "X$found_a" != "X"; then |
| 11107 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11108 | else |
| 11109 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11110 | fi |
| 11111 | fi |
| 11112 | additional_includedir= |
| 11113 | case "$found_dir" in |
| 11114 | */lib | */lib/) |
| 11115 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11116 | additional_includedir="$basedir/include" |
| 11117 | ;; |
| 11118 | esac |
| 11119 | if test "X$additional_includedir" != "X"; then |
| 11120 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11121 | haveit= |
| 11122 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11123 | if test -n "$GCC"; then |
| 11124 | case $host_os in |
| 11125 | linux*) haveit=yes;; |
| 11126 | esac |
| 11127 | fi |
| 11128 | fi |
| 11129 | if test -z "$haveit"; then |
| 11130 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11131 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11132 | acl_save_prefix="$prefix" |
| 11133 | prefix="$acl_final_prefix" |
| 11134 | acl_save_exec_prefix="$exec_prefix" |
| 11135 | exec_prefix="$acl_final_exec_prefix" |
| 11136 | eval x=\"$x\" |
| 11137 | exec_prefix="$acl_save_exec_prefix" |
| 11138 | prefix="$acl_save_prefix" |
| 11139 | |
| 11140 | if test "X$x" = "X-I$additional_includedir"; then |
| 11141 | haveit=yes |
| 11142 | break |
| 11143 | fi |
| 11144 | done |
| 11145 | if test -z "$haveit"; then |
| 11146 | if test -d "$additional_includedir"; then |
| 11147 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11148 | fi |
| 11149 | fi |
| 11150 | fi |
| 11151 | fi |
| 11152 | fi |
| 11153 | if test -n "$found_la"; then |
| 11154 | save_libdir="$libdir" |
| 11155 | case "$found_la" in |
| 11156 | */* | *\\*) . "$found_la" ;; |
| 11157 | *) . "./$found_la" ;; |
| 11158 | esac |
| 11159 | libdir="$save_libdir" |
| 11160 | for dep in $dependency_libs; do |
| 11161 | case "$dep" in |
| 11162 | -L*) |
| 11163 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11164 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11165 | haveit= |
| 11166 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11167 | if test -n "$GCC"; then |
| 11168 | case $host_os in |
| 11169 | linux*) haveit=yes;; |
| 11170 | esac |
| 11171 | fi |
| 11172 | fi |
| 11173 | if test -z "$haveit"; then |
| 11174 | haveit= |
| 11175 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11176 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11177 | acl_save_prefix="$prefix" |
| 11178 | prefix="$acl_final_prefix" |
| 11179 | acl_save_exec_prefix="$exec_prefix" |
| 11180 | exec_prefix="$acl_final_exec_prefix" |
| 11181 | eval x=\"$x\" |
| 11182 | exec_prefix="$acl_save_exec_prefix" |
| 11183 | prefix="$acl_save_prefix" |
| 11184 | |
| 11185 | if test "X$x" = "X-L$additional_libdir"; then |
| 11186 | haveit=yes |
| 11187 | break |
| 11188 | fi |
| 11189 | done |
| 11190 | if test -z "$haveit"; then |
| 11191 | if test -d "$additional_libdir"; then |
| 11192 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11193 | fi |
| 11194 | fi |
| 11195 | haveit= |
| 11196 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11197 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11198 | acl_save_prefix="$prefix" |
| 11199 | prefix="$acl_final_prefix" |
| 11200 | acl_save_exec_prefix="$exec_prefix" |
| 11201 | exec_prefix="$acl_final_exec_prefix" |
| 11202 | eval x=\"$x\" |
| 11203 | exec_prefix="$acl_save_exec_prefix" |
| 11204 | prefix="$acl_save_prefix" |
| 11205 | |
| 11206 | if test "X$x" = "X-L$additional_libdir"; then |
| 11207 | haveit=yes |
| 11208 | break |
| 11209 | fi |
| 11210 | done |
| 11211 | if test -z "$haveit"; then |
| 11212 | if test -d "$additional_libdir"; then |
| 11213 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11214 | fi |
| 11215 | fi |
| 11216 | fi |
| 11217 | fi |
| 11218 | ;; |
| 11219 | -R*) |
| 11220 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11221 | if test "$enable_rpath" != no; then |
| 11222 | haveit= |
| 11223 | for x in $rpathdirs; do |
| 11224 | if test "X$x" = "X$dir"; then |
| 11225 | haveit=yes |
| 11226 | break |
| 11227 | fi |
| 11228 | done |
| 11229 | if test -z "$haveit"; then |
| 11230 | rpathdirs="$rpathdirs $dir" |
| 11231 | fi |
| 11232 | haveit= |
| 11233 | for x in $ltrpathdirs; do |
| 11234 | if test "X$x" = "X$dir"; then |
| 11235 | haveit=yes |
| 11236 | break |
| 11237 | fi |
| 11238 | done |
| 11239 | if test -z "$haveit"; then |
| 11240 | ltrpathdirs="$ltrpathdirs $dir" |
| 11241 | fi |
| 11242 | fi |
| 11243 | ;; |
| 11244 | -l*) |
| 11245 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11246 | ;; |
| 11247 | *.la) |
| 11248 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11249 | ;; |
| 11250 | *) |
| 11251 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11252 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11253 | ;; |
| 11254 | esac |
| 11255 | done |
| 11256 | fi |
| 11257 | else |
| 11258 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11259 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11260 | fi |
| 11261 | fi |
| 11262 | fi |
| 11263 | done |
| 11264 | done |
| 11265 | if test "X$rpathdirs" != "X"; then |
| 11266 | if test -n "$hardcode_libdir_separator"; then |
| 11267 | alldirs= |
| 11268 | for found_dir in $rpathdirs; do |
| 11269 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11270 | done |
| 11271 | acl_save_libdir="$libdir" |
| 11272 | libdir="$alldirs" |
| 11273 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11274 | libdir="$acl_save_libdir" |
| 11275 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11276 | else |
| 11277 | for found_dir in $rpathdirs; do |
| 11278 | acl_save_libdir="$libdir" |
| 11279 | libdir="$found_dir" |
| 11280 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11281 | libdir="$acl_save_libdir" |
| 11282 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11283 | done |
| 11284 | fi |
| 11285 | fi |
| 11286 | if test "X$ltrpathdirs" != "X"; then |
| 11287 | for found_dir in $ltrpathdirs; do |
| 11288 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11289 | done |
| 11290 | fi |
| 11291 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11292 | { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11293 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11294 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11295 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11296 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11297 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11298 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11299 | gt_save_LIBS="$LIBS" |
| 11300 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11301 | cat >conftest.$ac_ext <<_ACEOF |
| 11302 | /* confdefs.h. */ |
| 11303 | _ACEOF |
| 11304 | cat confdefs.h >>conftest.$ac_ext |
| 11305 | cat >>conftest.$ac_ext <<_ACEOF |
| 11306 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11307 | #include <libintl.h> |
| 11308 | extern int _nl_msg_cat_cntr; |
| 11309 | extern |
| 11310 | #ifdef __cplusplus |
| 11311 | "C" |
| 11312 | #endif |
| 11313 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11314 | int |
| 11315 | main () |
| 11316 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11317 | bindtextdomain ("", ""); |
| 11318 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11319 | ; |
| 11320 | return 0; |
| 11321 | } |
| 11322 | _ACEOF |
| 11323 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11324 | if { (ac_try="$ac_link" |
| 11325 | case "(($ac_try" in |
| 11326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11327 | *) ac_try_echo=$ac_try;; |
| 11328 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11330 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11331 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11332 | ac_status=$? |
| 11333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11334 | rm -f conftest.er1 |
| 11335 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11337 | (exit $ac_status); } && { |
| 11338 | test -z "$ac_c_werror_flag" || |
| 11339 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11340 | } && test -s conftest$ac_exeext && { |
| 11341 | test "$cross_compiling" = yes || |
| 11342 | $as_test_x conftest$ac_exeext |
| 11343 | }; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11344 | gt_cv_func_gnugettext1_libintl=yes |
| 11345 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11346 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11348 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11349 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11351 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11352 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11353 | 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] | 11354 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11355 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11356 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | cat >conftest.$ac_ext <<_ACEOF |
| 11358 | /* confdefs.h. */ |
| 11359 | _ACEOF |
| 11360 | cat confdefs.h >>conftest.$ac_ext |
| 11361 | cat >>conftest.$ac_ext <<_ACEOF |
| 11362 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11363 | #include <libintl.h> |
| 11364 | extern int _nl_msg_cat_cntr; |
| 11365 | extern |
| 11366 | #ifdef __cplusplus |
| 11367 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11368 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11369 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | int |
| 11371 | main () |
| 11372 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11373 | bindtextdomain ("", ""); |
| 11374 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11375 | ; |
| 11376 | return 0; |
| 11377 | } |
| 11378 | _ACEOF |
| 11379 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11380 | if { (ac_try="$ac_link" |
| 11381 | case "(($ac_try" in |
| 11382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11383 | *) ac_try_echo=$ac_try;; |
| 11384 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11386 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11387 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11388 | ac_status=$? |
| 11389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11390 | rm -f conftest.er1 |
| 11391 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11393 | (exit $ac_status); } && { |
| 11394 | test -z "$ac_c_werror_flag" || |
| 11395 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11396 | } && test -s conftest$ac_exeext && { |
| 11397 | test "$cross_compiling" = yes || |
| 11398 | $as_test_x conftest$ac_exeext |
| 11399 | }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11400 | LIBINTL="$LIBINTL $LIBICONV" |
| 11401 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11402 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11403 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11404 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11405 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11407 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11408 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11409 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11410 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11411 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11412 | 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] | 11413 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11414 | fi |
| 11415 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11416 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11417 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11418 | { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11419 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11420 | fi |
| 11421 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11422 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11423 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | && test "$PACKAGE" != gettext-runtime \ |
| 11425 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11426 | gt_use_preinstalled_gnugettext=yes |
| 11427 | else |
| 11428 | LIBINTL= |
| 11429 | LTLIBINTL= |
| 11430 | INCINTL= |
| 11431 | fi |
| 11432 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11434 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11435 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11436 | fi |
| 11437 | fi |
| 11438 | |
| 11439 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11440 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11441 | USE_INCLUDED_LIBINTL=yes |
| 11442 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11443 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11444 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11445 | fi |
| 11446 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11447 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11448 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11449 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11450 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11451 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11452 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11453 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11454 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | |
| 11456 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11457 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11458 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11459 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11460 | else |
| 11461 | USE_NLS=no |
| 11462 | fi |
| 11463 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11464 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11465 | { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11466 | $as_echo_n "checking whether to use NLS... " >&6; } |
| 11467 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11468 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | if test "$USE_NLS" = "yes"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11470 | { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11471 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11472 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11473 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11474 | gt_source="external libintl" |
| 11475 | else |
| 11476 | gt_source="libc" |
| 11477 | fi |
| 11478 | else |
| 11479 | gt_source="included intl directory" |
| 11480 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11481 | { $as_echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11482 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | fi |
| 11484 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11485 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11486 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11487 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11488 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11489 | { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11490 | $as_echo_n "checking how to link with libintl... " >&6; } |
| 11491 | { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11492 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11493 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11494 | for element in $INCINTL; do |
| 11495 | haveit= |
| 11496 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11498 | acl_save_prefix="$prefix" |
| 11499 | prefix="$acl_final_prefix" |
| 11500 | acl_save_exec_prefix="$exec_prefix" |
| 11501 | exec_prefix="$acl_final_exec_prefix" |
| 11502 | eval x=\"$x\" |
| 11503 | exec_prefix="$acl_save_exec_prefix" |
| 11504 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11506 | if test "X$x" = "X$element"; then |
| 11507 | haveit=yes |
| 11508 | break |
| 11509 | fi |
| 11510 | done |
| 11511 | if test -z "$haveit"; then |
| 11512 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11513 | fi |
| 11514 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11515 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11516 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11517 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11519 | cat >>confdefs.h <<\_ACEOF |
| 11520 | #define HAVE_GETTEXT 1 |
| 11521 | _ACEOF |
| 11522 | |
| 11523 | |
| 11524 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11525 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11526 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11527 | |
| 11528 | fi |
| 11529 | |
| 11530 | POSUB=po |
| 11531 | fi |
| 11532 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11533 | |
| 11534 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11535 | BUILD_INCLUDED_LIBINTL=yes |
| 11536 | fi |
| 11537 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11538 | |
| 11539 | |
| 11540 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11541 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11542 | nls_cv_header_intl= |
| 11543 | nls_cv_header_libgt= |
| 11544 | |
| 11545 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11546 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11547 | |
| 11548 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11549 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11550 | |
| 11551 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | |
| 11553 | |
| 11554 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11555 | INTLOBJS="\$(GETTOBJS)" |
| 11556 | fi |
| 11557 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11558 | |
| 11559 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11560 | |
| 11561 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11562 | |
| 11563 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11564 | |
| 11565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11566 | |
| 11567 | |
| 11568 | |
| 11569 | |
| 11570 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11571 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 11572 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11573 | set x ${MAKE-make} |
| 11574 | 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] | 11575 | 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^] | 11576 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11577 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11578 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11579 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11580 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11581 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11582 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11583 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11584 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11585 | *@@@%%%=?*=@@@%%%*) |
| 11586 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11587 | *) |
| 11588 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11589 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11590 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11591 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11592 | 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^] | 11593 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11594 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11595 | SET_MAKE= |
| 11596 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11598 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11599 | SET_MAKE="MAKE=${MAKE-make}" |
| 11600 | fi |
| 11601 | |
| 11602 | # Extract the first word of "ln", so it can be a program name with args. |
| 11603 | set dummy ln; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11604 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11605 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11606 | if test "${ac_cv_path_LN+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11607 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11608 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11609 | case $LN in |
| 11610 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11611 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11612 | ;; |
| 11613 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11615 | for as_dir in $PATH |
| 11616 | do |
| 11617 | IFS=$as_save_IFS |
| 11618 | test -z "$as_dir" && as_dir=. |
| 11619 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11620 | 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] | 11621 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11622 | $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] | 11623 | break 2 |
| 11624 | fi |
| 11625 | done |
| 11626 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11627 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11628 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11629 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11630 | ;; |
| 11631 | esac |
| 11632 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11633 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11634 | if test -n "$LN"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11635 | { $as_echo "$as_me:$LINENO: result: $LN" >&5 |
| 11636 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11637 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11638 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11639 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11640 | fi |
| 11641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11642 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11643 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 11644 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11645 | LN_S=$as_ln_s |
| 11646 | if test "$LN_S" = "ln -s"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11647 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 11648 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11649 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11650 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 11651 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11652 | fi |
| 11653 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11654 | # Extract the first word of "mv", so it can be a program name with args. |
| 11655 | set dummy mv; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11656 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11657 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11658 | if test "${ac_cv_path_MV+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11659 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11660 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11661 | case $MV in |
| 11662 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11663 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11664 | ;; |
| 11665 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11667 | for as_dir in $PATH |
| 11668 | do |
| 11669 | IFS=$as_save_IFS |
| 11670 | test -z "$as_dir" && as_dir=. |
| 11671 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11672 | 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] | 11673 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11674 | $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] | 11675 | break 2 |
| 11676 | fi |
| 11677 | done |
| 11678 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11679 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11680 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11681 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11682 | ;; |
| 11683 | esac |
| 11684 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11685 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11686 | if test -n "$MV"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11687 | { $as_echo "$as_me:$LINENO: result: $MV" >&5 |
| 11688 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +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" >&5 |
| 11691 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11694 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11695 | # Extract the first word of "cp", so it can be a program name with args. |
| 11696 | set dummy cp; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11697 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11698 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11699 | if test "${ac_cv_path_CP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11700 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11701 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11702 | case $CP in |
| 11703 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11704 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11705 | ;; |
| 11706 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11708 | for as_dir in $PATH |
| 11709 | do |
| 11710 | IFS=$as_save_IFS |
| 11711 | test -z "$as_dir" && as_dir=. |
| 11712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11713 | 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] | 11714 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11715 | $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] | 11716 | break 2 |
| 11717 | fi |
| 11718 | done |
| 11719 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11720 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11721 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11722 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11723 | ;; |
| 11724 | esac |
| 11725 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11726 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11727 | if test -n "$CP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11728 | { $as_echo "$as_me:$LINENO: result: $CP" >&5 |
| 11729 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11730 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11731 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11732 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11733 | fi |
| 11734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11735 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11736 | # Extract the first word of "rm", so it can be a program name with args. |
| 11737 | set dummy rm; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11738 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11739 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11740 | if test "${ac_cv_path_RM+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11741 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11743 | case $RM in |
| 11744 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11745 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11746 | ;; |
| 11747 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11749 | for as_dir in $PATH |
| 11750 | do |
| 11751 | IFS=$as_save_IFS |
| 11752 | test -z "$as_dir" && as_dir=. |
| 11753 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11754 | 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] | 11755 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11756 | $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] | 11757 | break 2 |
| 11758 | fi |
| 11759 | done |
| 11760 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11761 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11762 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11763 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11764 | ;; |
| 11765 | esac |
| 11766 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11767 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11768 | if test -n "$RM"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11769 | { $as_echo "$as_me:$LINENO: result: $RM" >&5 |
| 11770 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11771 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11772 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11773 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11774 | fi |
| 11775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11776 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11777 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11778 | set dummy chmod; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11779 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11780 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11781 | if test "${ac_cv_path_CHMOD+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11782 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11783 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11784 | case $CHMOD in |
| 11785 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11786 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11787 | ;; |
| 11788 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11790 | for as_dir in $PATH |
| 11791 | do |
| 11792 | IFS=$as_save_IFS |
| 11793 | test -z "$as_dir" && as_dir=. |
| 11794 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11795 | 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] | 11796 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11797 | $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] | 11798 | break 2 |
| 11799 | fi |
| 11800 | done |
| 11801 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11802 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11803 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11804 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11805 | ;; |
| 11806 | esac |
| 11807 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11808 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11809 | if test -n "$CHMOD"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11810 | { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11811 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11812 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11813 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11814 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11815 | fi |
| 11816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11817 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11818 | for ac_prog in gawk mawk nawk awk |
| 11819 | do |
| 11820 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11821 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11822 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11823 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11824 | if test "${ac_cv_prog_AWK+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11825 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11826 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11827 | if test -n "$AWK"; then |
| 11828 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11829 | else |
| 11830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11831 | for as_dir in $PATH |
| 11832 | do |
| 11833 | IFS=$as_save_IFS |
| 11834 | test -z "$as_dir" && as_dir=. |
| 11835 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11836 | 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] | 11837 | ac_cv_prog_AWK="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11838 | $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] | 11839 | break 2 |
| 11840 | fi |
| 11841 | done |
| 11842 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11843 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11844 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11845 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11846 | fi |
| 11847 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11848 | if test -n "$AWK"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11849 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11850 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11851 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11852 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11853 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11854 | fi |
| 11855 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11856 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11857 | test -n "$AWK" && break |
| 11858 | done |
| 11859 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11860 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11861 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11862 | if test "${ac_cv_path_EGREP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11863 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11864 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11865 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11866 | then ac_cv_path_EGREP="$GREP -E" |
| 11867 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11868 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11869 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11870 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11872 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11873 | do |
| 11874 | IFS=$as_save_IFS |
| 11875 | test -z "$as_dir" && as_dir=. |
| 11876 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11878 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 11879 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 11880 | # 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] | 11881 | # Check for GNU $ac_path_EGREP |
| 11882 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11883 | *GNU*) |
| 11884 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11885 | *) |
| 11886 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11887 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11888 | while : |
| 11889 | do |
| 11890 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11891 | mv "conftest.tmp" "conftest.in" |
| 11892 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11893 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11894 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11895 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11896 | ac_count=`expr $ac_count + 1` |
| 11897 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11898 | # Best one so far, save it but keep looking for a better one |
| 11899 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11900 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11901 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11902 | # 10*(2^10) chars as input seems more than enough |
| 11903 | test $ac_count -gt 10 && break |
| 11904 | done |
| 11905 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11906 | esac |
| 11907 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11908 | $ac_path_EGREP_found && break 3 |
| 11909 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11910 | done |
| 11911 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11912 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11913 | if test -z "$ac_cv_path_EGREP"; then |
| 11914 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11915 | $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] | 11916 | { (exit 1); exit 1; }; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11917 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11918 | else |
| 11919 | ac_cv_path_EGREP=$EGREP |
| 11920 | fi |
| 11921 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11922 | fi |
| 11923 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11924 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11925 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11926 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11927 | |
| 11928 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11929 | # Extract the first word of "sed", so it can be a program name with args. |
| 11930 | set dummy sed; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11931 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11932 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11933 | if test "${ac_cv_path_SED+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11934 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11935 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11936 | case $SED in |
| 11937 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11938 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11939 | ;; |
| 11940 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11942 | for as_dir in $PATH |
| 11943 | do |
| 11944 | IFS=$as_save_IFS |
| 11945 | test -z "$as_dir" && as_dir=. |
| 11946 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11947 | 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] | 11948 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11949 | $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] | 11950 | break 2 |
| 11951 | fi |
| 11952 | done |
| 11953 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11954 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11956 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11957 | ;; |
| 11958 | esac |
| 11959 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11960 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11961 | if test -n "$SED"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11962 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 |
| 11963 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11964 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11965 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11966 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11967 | fi |
| 11968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11969 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11970 | # Extract the first word of "perl", so it can be a program name with args. |
| 11971 | set dummy perl; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11972 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11973 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11974 | if test "${ac_cv_path_PERL+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11975 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11976 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11977 | case $PERL in |
| 11978 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11979 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11980 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11981 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11983 | for as_dir in $PATH |
| 11984 | do |
| 11985 | IFS=$as_save_IFS |
| 11986 | test -z "$as_dir" && as_dir=. |
| 11987 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11988 | 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] | 11989 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 11990 | $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] | 11991 | break 2 |
| 11992 | fi |
| 11993 | done |
| 11994 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11997 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11998 | ;; |
| 11999 | esac |
| 12000 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12002 | if test -n "$PERL"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12003 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
| 12004 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12005 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12006 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12007 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 12008 | fi |
| 12009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12010 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12011 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 12012 | set dummy ldconfig; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12013 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12014 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12015 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12016 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | case $LDCONFIG in |
| 12019 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12020 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 12021 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12022 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12024 | for as_dir in $PATH |
| 12025 | do |
| 12026 | IFS=$as_save_IFS |
| 12027 | test -z "$as_dir" && as_dir=. |
| 12028 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12029 | 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] | 12030 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12031 | $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] | 12032 | break 2 |
| 12033 | fi |
| 12034 | done |
| 12035 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12036 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12037 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12038 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 12039 | ;; |
| 12040 | esac |
| 12041 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12042 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12043 | if test -n "$LDCONFIG"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12044 | { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 12045 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12046 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12047 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12048 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12051 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12052 | if test -n "$ac_tool_prefix"; then |
| 12053 | # 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] | 12054 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12055 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12056 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12057 | if test "${ac_cv_prog_AR+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12058 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12059 | else |
| 12060 | if test -n "$AR"; then |
| 12061 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12062 | else |
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_prog_AR="${ac_tool_prefix}ar" |
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 | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12078 | fi |
| 12079 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12080 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12081 | if test -n "$AR"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12082 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 12083 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12084 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12085 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12086 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12087 | fi |
| 12088 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12089 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12090 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12091 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12092 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12093 | # Extract the first word of "ar", so it can be a program name with args. |
| 12094 | set dummy 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_ac_ct_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 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12100 | if test -n "$ac_ct_AR"; then |
| 12101 | 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] | 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_ac_ct_AR="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 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12121 | if test -n "$ac_ct_AR"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12122 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 12123 | $as_echo "$ac_ct_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 | if test "x$ac_ct_AR" = x; then |
| 12130 | AR="ar" |
| 12131 | else |
| 12132 | case $cross_compiling:$ac_tool_warned in |
| 12133 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12134 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12135 | $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] | 12136 | ac_tool_warned=yes ;; |
| 12137 | esac |
| 12138 | AR=$ac_ct_AR |
| 12139 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12140 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12141 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12142 | fi |
| 12143 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12144 | if test -n "$ac_tool_prefix"; then |
| 12145 | # 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] | 12146 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12147 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12148 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12149 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12150 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12151 | else |
| 12152 | if test -n "$RANLIB"; then |
| 12153 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12154 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12156 | for as_dir in $PATH |
| 12157 | do |
| 12158 | IFS=$as_save_IFS |
| 12159 | test -z "$as_dir" && as_dir=. |
| 12160 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12161 | 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] | 12162 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12163 | $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] | 12164 | break 2 |
| 12165 | fi |
| 12166 | done |
| 12167 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12168 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12169 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12170 | fi |
| 12171 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12172 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12173 | if test -n "$RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12174 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 12175 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12176 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12177 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12178 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12179 | fi |
| 12180 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12182 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12183 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12184 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12185 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12186 | set dummy 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_ac_ct_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 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12192 | if test -n "$ac_ct_RANLIB"; then |
| 12193 | 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] | 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_ac_ct_RANLIB="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 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12213 | if test -n "$ac_ct_RANLIB"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12214 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 12215 | $as_echo "$ac_ct_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 | if test "x$ac_ct_RANLIB" = x; then |
| 12222 | RANLIB=":" |
| 12223 | else |
| 12224 | case $cross_compiling:$ac_tool_warned in |
| 12225 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12226 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12227 | $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] | 12228 | ac_tool_warned=yes ;; |
| 12229 | esac |
| 12230 | RANLIB=$ac_ct_RANLIB |
| 12231 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12232 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12233 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12234 | fi |
| 12235 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12236 | if test -n "$ac_tool_prefix"; then |
| 12237 | # 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] | 12238 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12239 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12240 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12241 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12242 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12243 | else |
| 12244 | if test -n "$STRIP"; then |
| 12245 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12248 | for as_dir in $PATH |
| 12249 | do |
| 12250 | IFS=$as_save_IFS |
| 12251 | test -z "$as_dir" && as_dir=. |
| 12252 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12253 | 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] | 12254 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12255 | $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] | 12256 | break 2 |
| 12257 | fi |
| 12258 | done |
| 12259 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12260 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12261 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12262 | fi |
| 12263 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12264 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12265 | if test -n "$STRIP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12266 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 12267 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12268 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12269 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12270 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12271 | fi |
| 12272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12273 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12274 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12275 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12276 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12277 | # Extract the first word of "strip", so it can be a program name with args. |
| 12278 | set dummy 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_ac_ct_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 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12284 | if test -n "$ac_ct_STRIP"; then |
| 12285 | 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] | 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_ac_ct_STRIP="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 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12305 | if test -n "$ac_ct_STRIP"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12306 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 12307 | $as_echo "$ac_ct_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 | if test "x$ac_ct_STRIP" = x; then |
| 12314 | STRIP=":" |
| 12315 | else |
| 12316 | case $cross_compiling:$ac_tool_warned in |
| 12317 | yes:) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12318 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12319 | $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] | 12320 | ac_tool_warned=yes ;; |
| 12321 | esac |
| 12322 | STRIP=$ac_ct_STRIP |
| 12323 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12324 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12325 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12326 | fi |
| 12327 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12328 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12329 | set dummy makeinfo; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12330 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12331 | $as_echo_n "checking for $ac_word... " >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12332 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12333 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12334 | else |
| 12335 | if test -n "$MAKEINFO"; then |
| 12336 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12337 | else |
| 12338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12339 | for as_dir in $PATH |
| 12340 | do |
| 12341 | IFS=$as_save_IFS |
| 12342 | test -z "$as_dir" && as_dir=. |
| 12343 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12345 | ac_cv_prog_MAKEINFO="makeinfo" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12346 | $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] | 12347 | break 2 |
| 12348 | fi |
| 12349 | done |
| 12350 | done |
| 12351 | IFS=$as_save_IFS |
| 12352 | |
| 12353 | fi |
| 12354 | fi |
| 12355 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12356 | if test -n "$MAKEINFO"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12357 | { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 12358 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12359 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12360 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12361 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12362 | fi |
| 12363 | |
| 12364 | |
| 12365 | if test "_$MAKEINFO" = "_"; then |
| 12366 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12367 | else |
| 12368 | case "$MAKEINFO" in |
| 12369 | */missing.*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12370 | { $as_echo "$as_me:$LINENO: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12371 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12372 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12373 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12374 | ;; |
| 12375 | *) |
| 12376 | ;; |
| 12377 | esac |
| 12378 | fi |
| 12379 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12380 | # Find a good install program. We prefer a C program (faster), |
| 12381 | # so one script is as good as another. But avoid the broken or |
| 12382 | # incompatible versions: |
| 12383 | # SysV /etc/install, /usr/sbin/install |
| 12384 | # SunOS /usr/etc/install |
| 12385 | # IRIX /sbin/install |
| 12386 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12387 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12388 | # 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] | 12389 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 12390 | # 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] | 12391 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12392 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12393 | # Reject install programs that cannot install multiple files. |
| 12394 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 12395 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12396 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12397 | if test "${ac_cv_path_install+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12398 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12399 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12401 | for as_dir in $PATH |
| 12402 | do |
| 12403 | IFS=$as_save_IFS |
| 12404 | test -z "$as_dir" && as_dir=. |
| 12405 | # Account for people who put trailing slashes in PATH elements. |
| 12406 | case $as_dir/ in |
| 12407 | ./ | .// | /cC/* | \ |
| 12408 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 12409 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 12410 | /usr/ucb/* ) ;; |
| 12411 | *) |
| 12412 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 12413 | # Don't use installbsd from OSF since it installs stuff as root |
| 12414 | # by default. |
| 12415 | for ac_prog in ginstall scoinst install; do |
| 12416 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12417 | 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] | 12418 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12419 | 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] | 12420 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12421 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12422 | elif test $ac_prog = install && |
| 12423 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 12424 | # program-specific install script used by HP pwplus--don't use. |
| 12425 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12426 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12427 | rm -rf conftest.one conftest.two conftest.dir |
| 12428 | echo one > conftest.one |
| 12429 | echo two > conftest.two |
| 12430 | mkdir conftest.dir |
| 12431 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 12432 | test -s conftest.one && test -s conftest.two && |
| 12433 | test -s conftest.dir/conftest.one && |
| 12434 | test -s conftest.dir/conftest.two |
| 12435 | then |
| 12436 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 12437 | break 3 |
| 12438 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12439 | fi |
| 12440 | fi |
| 12441 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12442 | done |
| 12443 | ;; |
| 12444 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12445 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12446 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12447 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12448 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12449 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12450 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12451 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12452 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12453 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12454 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12455 | # As a last resort, use the slow shell script. Don't cache a |
| 12456 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12457 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12458 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12460 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12461 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12462 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 12463 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12464 | |
| 12465 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 12466 | # It thinks the first close brace ends the variable substitution. |
| 12467 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 12468 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12469 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 12470 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12471 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 12472 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12473 | # See if we need a separate native compiler. |
| 12474 | if test $cross_compiling = no; then |
| 12475 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12476 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12477 | else |
| 12478 | for ac_prog in gcc cc |
| 12479 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12480 | # 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] | 12481 | set dummy $ac_prog; ac_word=$2 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12482 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12483 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12484 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12485 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12486 | else |
| 12487 | if test -n "$BUILD_CC"; then |
| 12488 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12489 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12491 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12492 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12493 | IFS=$as_save_IFS |
| 12494 | test -z "$as_dir" && as_dir=. |
| 12495 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12496 | 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] | 12497 | ac_cv_prog_BUILD_CC="$ac_prog" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12498 | $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] | 12499 | break 2 |
| 12500 | fi |
| 12501 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12502 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12503 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12504 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | fi |
| 12506 | fi |
| 12507 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12508 | if test -n "$BUILD_CC"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12509 | { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 12510 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12511 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12512 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12513 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12514 | fi |
| 12515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12516 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12517 | test -n "$BUILD_CC" && break |
| 12518 | done |
| 12519 | |
| 12520 | fi |
| 12521 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 12522 | |
| 12523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 12552 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 12553 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 12554 | |
| 12555 | |
Theodore Ts'o | 3d05802 | 2008-07-12 22:06:30 -0400 | [diff] [blame] | 12556 | |
Theodore Ts'o | 6ec9ef1 | 2008-08-22 12:15:56 -0400 | [diff] [blame] | 12557 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 12558 | |
| 12559 | 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] | 12560 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12561 | 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] | 12562 | 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^] | 12563 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12564 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12565 | 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^] | 12566 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12567 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12568 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12569 | $as_echo "$as_val"'` |
| 12570 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12571 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12572 | else |
| 12573 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12574 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12575 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12576 | cat >conftest.$ac_ext <<_ACEOF |
| 12577 | /* confdefs.h. */ |
| 12578 | _ACEOF |
| 12579 | cat confdefs.h >>conftest.$ac_ext |
| 12580 | cat >>conftest.$ac_ext <<_ACEOF |
| 12581 | /* end confdefs.h. */ |
| 12582 | $ac_includes_default |
| 12583 | #include <$ac_header> |
| 12584 | _ACEOF |
| 12585 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12586 | if { (ac_try="$ac_compile" |
| 12587 | case "(($ac_try" in |
| 12588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12589 | *) ac_try_echo=$ac_try;; |
| 12590 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12591 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12592 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12593 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12594 | ac_status=$? |
| 12595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12596 | rm -f conftest.er1 |
| 12597 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12599 | (exit $ac_status); } && { |
| 12600 | test -z "$ac_c_werror_flag" || |
| 12601 | test ! -s conftest.err |
| 12602 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12603 | ac_header_compiler=yes |
| 12604 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12605 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12608 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12609 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12610 | |
| 12611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12612 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12613 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12614 | |
| 12615 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12616 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12617 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12618 | cat >conftest.$ac_ext <<_ACEOF |
| 12619 | /* confdefs.h. */ |
| 12620 | _ACEOF |
| 12621 | cat confdefs.h >>conftest.$ac_ext |
| 12622 | cat >>conftest.$ac_ext <<_ACEOF |
| 12623 | /* end confdefs.h. */ |
| 12624 | #include <$ac_header> |
| 12625 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12626 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null && { |
| 12640 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12641 | test ! -s conftest.err |
| 12642 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12643 | ac_header_preproc=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 | |
| 12648 | ac_header_preproc=no |
| 12649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12650 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12651 | rm -f conftest.err 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_preproc" >&5 |
| 12653 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12654 | |
| 12655 | # So? What about this header? |
| 12656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12657 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12659 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12661 | $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] | 12662 | ac_header_preproc=yes |
| 12663 | ;; |
| 12664 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12665 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12666 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12668 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12670 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12672 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12674 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12676 | $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] | 12677 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12678 | ;; |
| 12679 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12680 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12681 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12682 | 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^] | 12683 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12684 | else |
| 12685 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12686 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12687 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12688 | $as_echo "$as_val"'` |
| 12689 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12690 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | |
| 12692 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12693 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12694 | $as_echo "$as_val"'` |
| 12695 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12696 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12697 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12698 | _ACEOF |
| 12699 | |
| 12700 | fi |
| 12701 | |
| 12702 | done |
| 12703 | |
| 12704 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12705 | |
| 12706 | for ac_header in sys/disk.h sys/mount.h |
| 12707 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12708 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12709 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12710 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12711 | 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^] | 12712 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12713 | else |
| 12714 | cat >conftest.$ac_ext <<_ACEOF |
| 12715 | /* confdefs.h. */ |
| 12716 | _ACEOF |
| 12717 | cat confdefs.h >>conftest.$ac_ext |
| 12718 | cat >>conftest.$ac_ext <<_ACEOF |
| 12719 | /* end confdefs.h. */ |
| 12720 | |
| 12721 | #if HAVE_SYS_QUEUE_H |
| 12722 | #include <sys/queue.h> |
| 12723 | #endif |
| 12724 | |
| 12725 | |
| 12726 | #include <$ac_header> |
| 12727 | _ACEOF |
| 12728 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12729 | if { (ac_try="$ac_compile" |
| 12730 | case "(($ac_try" in |
| 12731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12732 | *) ac_try_echo=$ac_try;; |
| 12733 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12735 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12736 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12737 | ac_status=$? |
| 12738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12739 | rm -f conftest.er1 |
| 12740 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12742 | (exit $ac_status); } && { |
| 12743 | test -z "$ac_c_werror_flag" || |
| 12744 | test ! -s conftest.err |
| 12745 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12746 | eval "$as_ac_Header=yes" |
| 12747 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12748 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12751 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12752 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12753 | |
| 12754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12755 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12756 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12757 | $as_echo "$as_val"'` |
| 12758 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12759 | $as_echo "$ac_res" >&6; } |
| 12760 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12761 | $as_echo "$as_val"'` |
| 12762 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12763 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12764 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12765 | _ACEOF |
| 12766 | |
| 12767 | fi |
| 12768 | |
| 12769 | done |
| 12770 | |
| 12771 | |
| 12772 | for ac_header in net/if.h |
| 12773 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12774 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12775 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12776 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12777 | 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^] | 12778 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12779 | else |
| 12780 | cat >conftest.$ac_ext <<_ACEOF |
| 12781 | /* confdefs.h. */ |
| 12782 | _ACEOF |
| 12783 | cat confdefs.h >>conftest.$ac_ext |
| 12784 | cat >>conftest.$ac_ext <<_ACEOF |
| 12785 | /* end confdefs.h. */ |
| 12786 | |
| 12787 | #if HAVE_SYS_TYPES_H |
| 12788 | #include <sys/types.h> |
| 12789 | #endif |
| 12790 | #if HAVE_SYS_SOCKET |
| 12791 | #include <sys/socket.h> |
| 12792 | #endif |
| 12793 | |
| 12794 | |
| 12795 | #include <$ac_header> |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12798 | if { (ac_try="$ac_compile" |
| 12799 | case "(($ac_try" in |
| 12800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12801 | *) ac_try_echo=$ac_try;; |
| 12802 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12804 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12805 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12806 | ac_status=$? |
| 12807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12808 | rm -f conftest.er1 |
| 12809 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12811 | (exit $ac_status); } && { |
| 12812 | test -z "$ac_c_werror_flag" || |
| 12813 | test ! -s conftest.err |
| 12814 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12815 | eval "$as_ac_Header=yes" |
| 12816 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12817 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12819 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12820 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12821 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12822 | |
| 12823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12824 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12825 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12826 | $as_echo "$as_val"'` |
| 12827 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12828 | $as_echo "$ac_res" >&6; } |
| 12829 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 12830 | $as_echo "$as_val"'` |
| 12831 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12832 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12833 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12834 | _ACEOF |
| 12835 | |
| 12836 | fi |
| 12837 | |
| 12838 | done |
| 12839 | |
| 12840 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12841 | for ac_func in vprintf |
| 12842 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12843 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12844 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12845 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12846 | 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^] | 12847 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12848 | else |
| 12849 | cat >conftest.$ac_ext <<_ACEOF |
| 12850 | /* confdefs.h. */ |
| 12851 | _ACEOF |
| 12852 | cat confdefs.h >>conftest.$ac_ext |
| 12853 | cat >>conftest.$ac_ext <<_ACEOF |
| 12854 | /* end confdefs.h. */ |
| 12855 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12857 | #define $ac_func innocuous_$ac_func |
| 12858 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12859 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12860 | which can conflict with char $ac_func (); below. |
| 12861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12862 | <limits.h> exists even on freestanding compilers. */ |
| 12863 | |
| 12864 | #ifdef __STDC__ |
| 12865 | # include <limits.h> |
| 12866 | #else |
| 12867 | # include <assert.h> |
| 12868 | #endif |
| 12869 | |
| 12870 | #undef $ac_func |
| 12871 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12872 | /* Override any GCC internal prototype to avoid an error. |
| 12873 | Use char because int might match the return type of a GCC |
| 12874 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12875 | #ifdef __cplusplus |
| 12876 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12877 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12878 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12879 | /* The GNU C library defines this for functions which it implements |
| 12880 | to always fail with ENOSYS. Some functions are actually named |
| 12881 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12882 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12883 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12884 | #endif |
| 12885 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12886 | int |
| 12887 | main () |
| 12888 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12889 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12890 | ; |
| 12891 | return 0; |
| 12892 | } |
| 12893 | _ACEOF |
| 12894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12895 | if { (ac_try="$ac_link" |
| 12896 | case "(($ac_try" in |
| 12897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12898 | *) ac_try_echo=$ac_try;; |
| 12899 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12901 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12902 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12903 | ac_status=$? |
| 12904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12905 | rm -f conftest.er1 |
| 12906 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12908 | (exit $ac_status); } && { |
| 12909 | test -z "$ac_c_werror_flag" || |
| 12910 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12911 | } && test -s conftest$ac_exeext && { |
| 12912 | test "$cross_compiling" = yes || |
| 12913 | $as_test_x conftest$ac_exeext |
| 12914 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12915 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12916 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12917 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12918 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12920 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12922 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12923 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12924 | 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] | 12925 | conftest$ac_exeext conftest.$ac_ext |
| 12926 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12927 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 12928 | $as_echo "$as_val"'` |
| 12929 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12930 | $as_echo "$ac_res" >&6; } |
| 12931 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 12932 | $as_echo "$as_val"'` |
| 12933 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12934 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12935 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12936 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12937 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12938 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12939 | $as_echo_n "checking for _doprnt... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12940 | if test "${ac_cv_func__doprnt+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12941 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12942 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | cat >conftest.$ac_ext <<_ACEOF |
| 12944 | /* confdefs.h. */ |
| 12945 | _ACEOF |
| 12946 | cat confdefs.h >>conftest.$ac_ext |
| 12947 | cat >>conftest.$ac_ext <<_ACEOF |
| 12948 | /* end confdefs.h. */ |
| 12949 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12951 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12952 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12953 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12954 | which can conflict with char _doprnt (); below. |
| 12955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12956 | <limits.h> exists even on freestanding compilers. */ |
| 12957 | |
| 12958 | #ifdef __STDC__ |
| 12959 | # include <limits.h> |
| 12960 | #else |
| 12961 | # include <assert.h> |
| 12962 | #endif |
| 12963 | |
| 12964 | #undef _doprnt |
| 12965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12966 | /* Override any GCC internal prototype to avoid an error. |
| 12967 | Use char because int might match the return type of a GCC |
| 12968 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12969 | #ifdef __cplusplus |
| 12970 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12971 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12972 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12973 | /* The GNU C library defines this for functions which it implements |
| 12974 | to always fail with ENOSYS. Some functions are actually named |
| 12975 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12976 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12977 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12978 | #endif |
| 12979 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12980 | int |
| 12981 | main () |
| 12982 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12983 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12984 | ; |
| 12985 | return 0; |
| 12986 | } |
| 12987 | _ACEOF |
| 12988 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12989 | if { (ac_try="$ac_link" |
| 12990 | case "(($ac_try" in |
| 12991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12992 | *) ac_try_echo=$ac_try;; |
| 12993 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 12994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12995 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12996 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12997 | ac_status=$? |
| 12998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12999 | rm -f conftest.er1 |
| 13000 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13002 | (exit $ac_status); } && { |
| 13003 | test -z "$ac_c_werror_flag" || |
| 13004 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13005 | } && test -s conftest$ac_exeext && { |
| 13006 | test "$cross_compiling" = yes || |
| 13007 | $as_test_x conftest$ac_exeext |
| 13008 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13009 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13010 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13011 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13012 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13013 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13014 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13015 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13016 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13017 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13018 | 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] | 13019 | conftest$ac_exeext conftest.$ac_ext |
| 13020 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13021 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 13022 | $as_echo "$ac_cv_func__doprnt" >&6; } |
| 13023 | if test "x$ac_cv_func__doprnt" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13024 | |
| 13025 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13026 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13027 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13028 | |
| 13029 | fi |
| 13030 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13031 | fi |
| 13032 | done |
| 13033 | |
| 13034 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13035 | { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 13036 | $as_echo_n "checking for struct dirent.d_reclen... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13037 | 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^] | 13038 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13039 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13040 | cat >conftest.$ac_ext <<_ACEOF |
| 13041 | /* confdefs.h. */ |
| 13042 | _ACEOF |
| 13043 | cat confdefs.h >>conftest.$ac_ext |
| 13044 | cat >>conftest.$ac_ext <<_ACEOF |
| 13045 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13046 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13047 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13048 | int |
| 13049 | main () |
| 13050 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13051 | static struct dirent ac_aggr; |
| 13052 | if (ac_aggr.d_reclen) |
| 13053 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13054 | ; |
| 13055 | return 0; |
| 13056 | } |
| 13057 | _ACEOF |
| 13058 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13059 | if { (ac_try="$ac_compile" |
| 13060 | case "(($ac_try" in |
| 13061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13062 | *) ac_try_echo=$ac_try;; |
| 13063 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13065 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13066 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13067 | ac_status=$? |
| 13068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13069 | rm -f conftest.er1 |
| 13070 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13072 | (exit $ac_status); } && { |
| 13073 | test -z "$ac_c_werror_flag" || |
| 13074 | test ! -s conftest.err |
| 13075 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13076 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13077 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13078 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13081 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13082 | /* confdefs.h. */ |
| 13083 | _ACEOF |
| 13084 | cat confdefs.h >>conftest.$ac_ext |
| 13085 | cat >>conftest.$ac_ext <<_ACEOF |
| 13086 | /* end confdefs.h. */ |
| 13087 | #include <dirent.h> |
| 13088 | |
| 13089 | int |
| 13090 | main () |
| 13091 | { |
| 13092 | static struct dirent ac_aggr; |
| 13093 | if (sizeof ac_aggr.d_reclen) |
| 13094 | return 0; |
| 13095 | ; |
| 13096 | return 0; |
| 13097 | } |
| 13098 | _ACEOF |
| 13099 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13100 | if { (ac_try="$ac_compile" |
| 13101 | case "(($ac_try" in |
| 13102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13103 | *) ac_try_echo=$ac_try;; |
| 13104 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13106 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13107 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13108 | ac_status=$? |
| 13109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13110 | rm -f conftest.er1 |
| 13111 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13113 | (exit $ac_status); } && { |
| 13114 | test -z "$ac_c_werror_flag" || |
| 13115 | test ! -s conftest.err |
| 13116 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13117 | ac_cv_member_struct_dirent_d_reclen=yes |
| 13118 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13119 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13121 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13122 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13123 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13124 | |
| 13125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13126 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13127 | |
| 13128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13129 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13130 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 13131 | $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; } |
| 13132 | 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] | 13133 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13134 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13135 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13136 | |
| 13137 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13138 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13139 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 13140 | $as_echo_n "checking for ssize_t... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13141 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13142 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13143 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13144 | ac_cv_type_ssize_t=no |
| 13145 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13146 | /* confdefs.h. */ |
| 13147 | _ACEOF |
| 13148 | cat confdefs.h >>conftest.$ac_ext |
| 13149 | cat >>conftest.$ac_ext <<_ACEOF |
| 13150 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13151 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13152 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13153 | int |
| 13154 | main () |
| 13155 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13156 | if (sizeof (ssize_t)) |
| 13157 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13158 | ; |
| 13159 | return 0; |
| 13160 | } |
| 13161 | _ACEOF |
| 13162 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13163 | if { (ac_try="$ac_compile" |
| 13164 | case "(($ac_try" in |
| 13165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13166 | *) ac_try_echo=$ac_try;; |
| 13167 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13169 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13170 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13171 | ac_status=$? |
| 13172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13173 | rm -f conftest.er1 |
| 13174 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13176 | (exit $ac_status); } && { |
| 13177 | test -z "$ac_c_werror_flag" || |
| 13178 | test ! -s conftest.err |
| 13179 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13180 | cat >conftest.$ac_ext <<_ACEOF |
| 13181 | /* confdefs.h. */ |
| 13182 | _ACEOF |
| 13183 | cat confdefs.h >>conftest.$ac_ext |
| 13184 | cat >>conftest.$ac_ext <<_ACEOF |
| 13185 | /* end confdefs.h. */ |
| 13186 | #include <sys/types.h> |
| 13187 | |
| 13188 | int |
| 13189 | main () |
| 13190 | { |
| 13191 | if (sizeof ((ssize_t))) |
| 13192 | return 0; |
| 13193 | ; |
| 13194 | return 0; |
| 13195 | } |
| 13196 | _ACEOF |
| 13197 | rm -f conftest.$ac_objext |
| 13198 | if { (ac_try="$ac_compile" |
| 13199 | case "(($ac_try" in |
| 13200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13201 | *) ac_try_echo=$ac_try;; |
| 13202 | esac |
| 13203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13204 | $as_echo "$ac_try_echo") >&5 |
| 13205 | (eval "$ac_compile") 2>conftest.er1 |
| 13206 | ac_status=$? |
| 13207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13208 | rm -f conftest.er1 |
| 13209 | cat conftest.err >&5 |
| 13210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13211 | (exit $ac_status); } && { |
| 13212 | test -z "$ac_c_werror_flag" || |
| 13213 | test ! -s conftest.err |
| 13214 | } && test -s conftest.$ac_objext; then |
| 13215 | : |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13216 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13217 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13219 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13220 | ac_cv_type_ssize_t=yes |
| 13221 | fi |
| 13222 | |
| 13223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13224 | else |
| 13225 | $as_echo "$as_me: failed program was:" >&5 |
| 13226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13227 | |
| 13228 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13229 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13230 | |
| 13231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13232 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 13234 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 13235 | if test "x$ac_cv_type_ssize_t" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13236 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13237 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13238 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13239 | |
| 13240 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13241 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13242 | { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 13243 | $as_echo_n "checking whether llseek is declared... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13244 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13245 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13247 | cat >conftest.$ac_ext <<_ACEOF |
| 13248 | /* confdefs.h. */ |
| 13249 | _ACEOF |
| 13250 | cat confdefs.h >>conftest.$ac_ext |
| 13251 | cat >>conftest.$ac_ext <<_ACEOF |
| 13252 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13253 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13255 | int |
| 13256 | main () |
| 13257 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13258 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13259 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13260 | #endif |
| 13261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13262 | ; |
| 13263 | return 0; |
| 13264 | } |
| 13265 | _ACEOF |
| 13266 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13267 | if { (ac_try="$ac_compile" |
| 13268 | case "(($ac_try" in |
| 13269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13270 | *) ac_try_echo=$ac_try;; |
| 13271 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13273 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13274 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13275 | ac_status=$? |
| 13276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13277 | rm -f conftest.er1 |
| 13278 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13280 | (exit $ac_status); } && { |
| 13281 | test -z "$ac_c_werror_flag" || |
| 13282 | test ! -s conftest.err |
| 13283 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13284 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13285 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13286 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13289 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13291 | |
| 13292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13293 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13294 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 13295 | $as_echo "$ac_cv_have_decl_llseek" >&6; } |
| 13296 | if test "x$ac_cv_have_decl_llseek" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13297 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13298 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13299 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 13300 | |
| 13301 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13302 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13303 | { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 13304 | $as_echo_n "checking whether lseek64 is declared... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13305 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13306 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13307 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13308 | cat >conftest.$ac_ext <<_ACEOF |
| 13309 | /* confdefs.h. */ |
| 13310 | _ACEOF |
| 13311 | cat confdefs.h >>conftest.$ac_ext |
| 13312 | cat >>conftest.$ac_ext <<_ACEOF |
| 13313 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13314 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13315 | #define _LARGEFILE64_SOURCE |
| 13316 | #include <unistd.h> |
| 13317 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13318 | int |
| 13319 | main () |
| 13320 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13321 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13322 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13323 | #endif |
| 13324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13325 | ; |
| 13326 | return 0; |
| 13327 | } |
| 13328 | _ACEOF |
| 13329 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13330 | if { (ac_try="$ac_compile" |
| 13331 | case "(($ac_try" in |
| 13332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13333 | *) ac_try_echo=$ac_try;; |
| 13334 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13336 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13337 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13338 | ac_status=$? |
| 13339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13340 | rm -f conftest.er1 |
| 13341 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13343 | (exit $ac_status); } && { |
| 13344 | test -z "$ac_c_werror_flag" || |
| 13345 | test ! -s conftest.err |
| 13346 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13347 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13348 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13349 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13352 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13353 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13354 | |
| 13355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13356 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 13358 | $as_echo "$ac_cv_have_decl_lseek64" >&6; } |
| 13359 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13360 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13361 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13362 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 13363 | |
| 13364 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 13365 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13366 | # The cast to long int works around a bug in the HP C Compiler |
| 13367 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13368 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13369 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13370 | { $as_echo "$as_me:$LINENO: checking size of short" >&5 |
| 13371 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13372 | if test "${ac_cv_sizeof_short+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13373 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13374 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13375 | if test "$cross_compiling" = yes; then |
| 13376 | # Depending upon the size, compute the lo and hi bounds. |
| 13377 | cat >conftest.$ac_ext <<_ACEOF |
| 13378 | /* confdefs.h. */ |
| 13379 | _ACEOF |
| 13380 | cat confdefs.h >>conftest.$ac_ext |
| 13381 | cat >>conftest.$ac_ext <<_ACEOF |
| 13382 | /* end confdefs.h. */ |
| 13383 | $ac_includes_default |
| 13384 | int |
| 13385 | main () |
| 13386 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13387 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13388 | test_array [0] = 0 |
| 13389 | |
| 13390 | ; |
| 13391 | return 0; |
| 13392 | } |
| 13393 | _ACEOF |
| 13394 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13395 | if { (ac_try="$ac_compile" |
| 13396 | case "(($ac_try" in |
| 13397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13398 | *) ac_try_echo=$ac_try;; |
| 13399 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13401 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13402 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13403 | ac_status=$? |
| 13404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13405 | rm -f conftest.er1 |
| 13406 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13408 | (exit $ac_status); } && { |
| 13409 | test -z "$ac_c_werror_flag" || |
| 13410 | test ! -s conftest.err |
| 13411 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13412 | ac_lo=0 ac_mid=0 |
| 13413 | while :; do |
| 13414 | cat >conftest.$ac_ext <<_ACEOF |
| 13415 | /* confdefs.h. */ |
| 13416 | _ACEOF |
| 13417 | cat confdefs.h >>conftest.$ac_ext |
| 13418 | cat >>conftest.$ac_ext <<_ACEOF |
| 13419 | /* end confdefs.h. */ |
| 13420 | $ac_includes_default |
| 13421 | int |
| 13422 | main () |
| 13423 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13424 | 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] | 13425 | test_array [0] = 0 |
| 13426 | |
| 13427 | ; |
| 13428 | return 0; |
| 13429 | } |
| 13430 | _ACEOF |
| 13431 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13432 | if { (ac_try="$ac_compile" |
| 13433 | case "(($ac_try" in |
| 13434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13435 | *) ac_try_echo=$ac_try;; |
| 13436 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13438 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13439 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13440 | ac_status=$? |
| 13441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13442 | rm -f conftest.er1 |
| 13443 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13445 | (exit $ac_status); } && { |
| 13446 | test -z "$ac_c_werror_flag" || |
| 13447 | test ! -s conftest.err |
| 13448 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13449 | ac_hi=$ac_mid; break |
| 13450 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13451 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13453 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13454 | ac_lo=`expr $ac_mid + 1` |
| 13455 | if test $ac_lo -le $ac_mid; then |
| 13456 | ac_lo= ac_hi= |
| 13457 | break |
| 13458 | fi |
| 13459 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13460 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13461 | |
| 13462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13463 | done |
| 13464 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13465 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13467 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13468 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13469 | /* confdefs.h. */ |
| 13470 | _ACEOF |
| 13471 | cat confdefs.h >>conftest.$ac_ext |
| 13472 | cat >>conftest.$ac_ext <<_ACEOF |
| 13473 | /* end confdefs.h. */ |
| 13474 | $ac_includes_default |
| 13475 | int |
| 13476 | main () |
| 13477 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13478 | static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13479 | test_array [0] = 0 |
| 13480 | |
| 13481 | ; |
| 13482 | return 0; |
| 13483 | } |
| 13484 | _ACEOF |
| 13485 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13486 | if { (ac_try="$ac_compile" |
| 13487 | case "(($ac_try" in |
| 13488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13489 | *) ac_try_echo=$ac_try;; |
| 13490 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13492 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13493 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13494 | ac_status=$? |
| 13495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13496 | rm -f conftest.er1 |
| 13497 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13499 | (exit $ac_status); } && { |
| 13500 | test -z "$ac_c_werror_flag" || |
| 13501 | test ! -s conftest.err |
| 13502 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13503 | ac_hi=-1 ac_mid=-1 |
| 13504 | while :; do |
| 13505 | cat >conftest.$ac_ext <<_ACEOF |
| 13506 | /* confdefs.h. */ |
| 13507 | _ACEOF |
| 13508 | cat confdefs.h >>conftest.$ac_ext |
| 13509 | cat >>conftest.$ac_ext <<_ACEOF |
| 13510 | /* end confdefs.h. */ |
| 13511 | $ac_includes_default |
| 13512 | int |
| 13513 | main () |
| 13514 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13515 | 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] | 13516 | test_array [0] = 0 |
| 13517 | |
| 13518 | ; |
| 13519 | return 0; |
| 13520 | } |
| 13521 | _ACEOF |
| 13522 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13523 | if { (ac_try="$ac_compile" |
| 13524 | case "(($ac_try" in |
| 13525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13526 | *) ac_try_echo=$ac_try;; |
| 13527 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13529 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13530 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13531 | ac_status=$? |
| 13532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13533 | rm -f conftest.er1 |
| 13534 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13536 | (exit $ac_status); } && { |
| 13537 | test -z "$ac_c_werror_flag" || |
| 13538 | test ! -s conftest.err |
| 13539 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13540 | ac_lo=$ac_mid; break |
| 13541 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13542 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13545 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13546 | if test $ac_mid -le $ac_hi; then |
| 13547 | ac_lo= ac_hi= |
| 13548 | break |
| 13549 | fi |
| 13550 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13552 | |
| 13553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13554 | done |
| 13555 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13556 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13559 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13560 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13561 | |
| 13562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13563 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13564 | |
| 13565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13566 | # Binary search between lo and hi bounds. |
| 13567 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13568 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13569 | cat >conftest.$ac_ext <<_ACEOF |
| 13570 | /* confdefs.h. */ |
| 13571 | _ACEOF |
| 13572 | cat confdefs.h >>conftest.$ac_ext |
| 13573 | cat >>conftest.$ac_ext <<_ACEOF |
| 13574 | /* end confdefs.h. */ |
| 13575 | $ac_includes_default |
| 13576 | int |
| 13577 | main () |
| 13578 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13579 | 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] | 13580 | test_array [0] = 0 |
| 13581 | |
| 13582 | ; |
| 13583 | return 0; |
| 13584 | } |
| 13585 | _ACEOF |
| 13586 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13587 | if { (ac_try="$ac_compile" |
| 13588 | case "(($ac_try" in |
| 13589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13590 | *) ac_try_echo=$ac_try;; |
| 13591 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13593 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13594 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13595 | ac_status=$? |
| 13596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13597 | rm -f conftest.er1 |
| 13598 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13600 | (exit $ac_status); } && { |
| 13601 | test -z "$ac_c_werror_flag" || |
| 13602 | test ! -s conftest.err |
| 13603 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13604 | ac_hi=$ac_mid |
| 13605 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13606 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13608 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13609 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13611 | |
| 13612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13613 | done |
| 13614 | case $ac_lo in |
| 13615 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13616 | '') if test "$ac_cv_type_short" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13617 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13618 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13619 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13620 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13621 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13622 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13623 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13624 | else |
| 13625 | ac_cv_sizeof_short=0 |
| 13626 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13627 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13628 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13629 | cat >conftest.$ac_ext <<_ACEOF |
| 13630 | /* confdefs.h. */ |
| 13631 | _ACEOF |
| 13632 | cat confdefs.h >>conftest.$ac_ext |
| 13633 | cat >>conftest.$ac_ext <<_ACEOF |
| 13634 | /* end confdefs.h. */ |
| 13635 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13636 | static long int longval () { return (long int) (sizeof (short)); } |
| 13637 | static unsigned long int ulongval () { return (long int) (sizeof (short)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13638 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13639 | #include <stdlib.h> |
| 13640 | int |
| 13641 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13642 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13643 | |
| 13644 | FILE *f = fopen ("conftest.val", "w"); |
| 13645 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13646 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13647 | if (((long int) (sizeof (short))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13648 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13649 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13650 | if (i != ((long int) (sizeof (short)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13651 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13652 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13653 | } |
| 13654 | else |
| 13655 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13656 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13657 | if (i != ((long int) (sizeof (short)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13658 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13659 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13660 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13661 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 13662 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13663 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13664 | |
| 13665 | ; |
| 13666 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13667 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13668 | _ACEOF |
| 13669 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13670 | if { (ac_try="$ac_link" |
| 13671 | case "(($ac_try" in |
| 13672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13673 | *) ac_try_echo=$ac_try;; |
| 13674 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13676 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13677 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13678 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13681 | { (case "(($ac_try" in |
| 13682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13683 | *) ac_try_echo=$ac_try;; |
| 13684 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13686 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13687 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13688 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13690 | (exit $ac_status); }; }; then |
| 13691 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13692 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13693 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 13694 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13696 | |
| 13697 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13698 | if test "$ac_cv_type_short" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13699 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13701 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13702 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13703 | $as_echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13704 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13705 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13706 | else |
| 13707 | ac_cv_sizeof_short=0 |
| 13708 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13709 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13710 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13711 | 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] | 13712 | fi |
| 13713 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13714 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13715 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13716 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13717 | |
| 13718 | |
| 13719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13720 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13721 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13722 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13723 | |
| 13724 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13725 | # The cast to long int works around a bug in the HP C Compiler |
| 13726 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13727 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13728 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13729 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 |
| 13730 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13731 | if test "${ac_cv_sizeof_int+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13732 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13733 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13734 | if test "$cross_compiling" = yes; then |
| 13735 | # Depending upon the size, compute the lo and hi bounds. |
| 13736 | cat >conftest.$ac_ext <<_ACEOF |
| 13737 | /* confdefs.h. */ |
| 13738 | _ACEOF |
| 13739 | cat confdefs.h >>conftest.$ac_ext |
| 13740 | cat >>conftest.$ac_ext <<_ACEOF |
| 13741 | /* end confdefs.h. */ |
| 13742 | $ac_includes_default |
| 13743 | int |
| 13744 | main () |
| 13745 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13746 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13747 | test_array [0] = 0 |
| 13748 | |
| 13749 | ; |
| 13750 | return 0; |
| 13751 | } |
| 13752 | _ACEOF |
| 13753 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13754 | if { (ac_try="$ac_compile" |
| 13755 | case "(($ac_try" in |
| 13756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13757 | *) ac_try_echo=$ac_try;; |
| 13758 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13760 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13761 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13762 | ac_status=$? |
| 13763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13764 | rm -f conftest.er1 |
| 13765 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13767 | (exit $ac_status); } && { |
| 13768 | test -z "$ac_c_werror_flag" || |
| 13769 | test ! -s conftest.err |
| 13770 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13771 | ac_lo=0 ac_mid=0 |
| 13772 | while :; do |
| 13773 | cat >conftest.$ac_ext <<_ACEOF |
| 13774 | /* confdefs.h. */ |
| 13775 | _ACEOF |
| 13776 | cat confdefs.h >>conftest.$ac_ext |
| 13777 | cat >>conftest.$ac_ext <<_ACEOF |
| 13778 | /* end confdefs.h. */ |
| 13779 | $ac_includes_default |
| 13780 | int |
| 13781 | main () |
| 13782 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13783 | 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] | 13784 | test_array [0] = 0 |
| 13785 | |
| 13786 | ; |
| 13787 | return 0; |
| 13788 | } |
| 13789 | _ACEOF |
| 13790 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13791 | if { (ac_try="$ac_compile" |
| 13792 | case "(($ac_try" in |
| 13793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13794 | *) ac_try_echo=$ac_try;; |
| 13795 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13797 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13798 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13799 | ac_status=$? |
| 13800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13801 | rm -f conftest.er1 |
| 13802 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13804 | (exit $ac_status); } && { |
| 13805 | test -z "$ac_c_werror_flag" || |
| 13806 | test ! -s conftest.err |
| 13807 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13808 | ac_hi=$ac_mid; break |
| 13809 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13810 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13813 | ac_lo=`expr $ac_mid + 1` |
| 13814 | if test $ac_lo -le $ac_mid; then |
| 13815 | ac_lo= ac_hi= |
| 13816 | break |
| 13817 | fi |
| 13818 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13819 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13820 | |
| 13821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13822 | done |
| 13823 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13824 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13826 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13827 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13828 | /* confdefs.h. */ |
| 13829 | _ACEOF |
| 13830 | cat confdefs.h >>conftest.$ac_ext |
| 13831 | cat >>conftest.$ac_ext <<_ACEOF |
| 13832 | /* end confdefs.h. */ |
| 13833 | $ac_includes_default |
| 13834 | int |
| 13835 | main () |
| 13836 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13837 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13838 | test_array [0] = 0 |
| 13839 | |
| 13840 | ; |
| 13841 | return 0; |
| 13842 | } |
| 13843 | _ACEOF |
| 13844 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13845 | if { (ac_try="$ac_compile" |
| 13846 | case "(($ac_try" in |
| 13847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13848 | *) ac_try_echo=$ac_try;; |
| 13849 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13851 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13852 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13853 | ac_status=$? |
| 13854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13855 | rm -f conftest.er1 |
| 13856 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13858 | (exit $ac_status); } && { |
| 13859 | test -z "$ac_c_werror_flag" || |
| 13860 | test ! -s conftest.err |
| 13861 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13862 | ac_hi=-1 ac_mid=-1 |
| 13863 | while :; do |
| 13864 | cat >conftest.$ac_ext <<_ACEOF |
| 13865 | /* confdefs.h. */ |
| 13866 | _ACEOF |
| 13867 | cat confdefs.h >>conftest.$ac_ext |
| 13868 | cat >>conftest.$ac_ext <<_ACEOF |
| 13869 | /* end confdefs.h. */ |
| 13870 | $ac_includes_default |
| 13871 | int |
| 13872 | main () |
| 13873 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13874 | 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] | 13875 | test_array [0] = 0 |
| 13876 | |
| 13877 | ; |
| 13878 | return 0; |
| 13879 | } |
| 13880 | _ACEOF |
| 13881 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13882 | if { (ac_try="$ac_compile" |
| 13883 | case "(($ac_try" in |
| 13884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13885 | *) ac_try_echo=$ac_try;; |
| 13886 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13888 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13889 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13890 | ac_status=$? |
| 13891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13892 | rm -f conftest.er1 |
| 13893 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13895 | (exit $ac_status); } && { |
| 13896 | test -z "$ac_c_werror_flag" || |
| 13897 | test ! -s conftest.err |
| 13898 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13899 | ac_lo=$ac_mid; break |
| 13900 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13901 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13903 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13904 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13905 | if test $ac_mid -le $ac_hi; then |
| 13906 | ac_lo= ac_hi= |
| 13907 | break |
| 13908 | fi |
| 13909 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13911 | |
| 13912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13913 | done |
| 13914 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13915 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13918 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13919 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13920 | |
| 13921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13922 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13923 | |
| 13924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13925 | # Binary search between lo and hi bounds. |
| 13926 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13927 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13928 | cat >conftest.$ac_ext <<_ACEOF |
| 13929 | /* confdefs.h. */ |
| 13930 | _ACEOF |
| 13931 | cat confdefs.h >>conftest.$ac_ext |
| 13932 | cat >>conftest.$ac_ext <<_ACEOF |
| 13933 | /* end confdefs.h. */ |
| 13934 | $ac_includes_default |
| 13935 | int |
| 13936 | main () |
| 13937 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13938 | 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] | 13939 | test_array [0] = 0 |
| 13940 | |
| 13941 | ; |
| 13942 | return 0; |
| 13943 | } |
| 13944 | _ACEOF |
| 13945 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13946 | if { (ac_try="$ac_compile" |
| 13947 | case "(($ac_try" in |
| 13948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13949 | *) ac_try_echo=$ac_try;; |
| 13950 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13952 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13953 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13954 | ac_status=$? |
| 13955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13956 | rm -f conftest.er1 |
| 13957 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13959 | (exit $ac_status); } && { |
| 13960 | test -z "$ac_c_werror_flag" || |
| 13961 | test ! -s conftest.err |
| 13962 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13963 | ac_hi=$ac_mid |
| 13964 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13965 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13967 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13968 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13969 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13970 | |
| 13971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13972 | done |
| 13973 | case $ac_lo in |
| 13974 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13975 | '') if test "$ac_cv_type_int" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13976 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 13977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13978 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13979 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13980 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13981 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13982 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13983 | else |
| 13984 | ac_cv_sizeof_int=0 |
| 13985 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13986 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13987 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13988 | cat >conftest.$ac_ext <<_ACEOF |
| 13989 | /* confdefs.h. */ |
| 13990 | _ACEOF |
| 13991 | cat confdefs.h >>conftest.$ac_ext |
| 13992 | cat >>conftest.$ac_ext <<_ACEOF |
| 13993 | /* end confdefs.h. */ |
| 13994 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 13995 | static long int longval () { return (long int) (sizeof (int)); } |
| 13996 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13997 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | #include <stdlib.h> |
| 13999 | int |
| 14000 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14001 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14002 | |
| 14003 | FILE *f = fopen ("conftest.val", "w"); |
| 14004 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14005 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14006 | if (((long int) (sizeof (int))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14007 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14008 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14009 | if (i != ((long int) (sizeof (int)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14010 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14011 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14012 | } |
| 14013 | else |
| 14014 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14015 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14016 | if (i != ((long int) (sizeof (int)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14017 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14018 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14019 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14020 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14021 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14022 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14023 | |
| 14024 | ; |
| 14025 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14026 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14027 | _ACEOF |
| 14028 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14029 | if { (ac_try="$ac_link" |
| 14030 | case "(($ac_try" in |
| 14031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14032 | *) ac_try_echo=$ac_try;; |
| 14033 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14035 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14036 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14037 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14040 | { (case "(($ac_try" in |
| 14041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14042 | *) ac_try_echo=$ac_try;; |
| 14043 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14045 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14046 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14047 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14049 | (exit $ac_status); }; }; then |
| 14050 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14051 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14052 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14053 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14055 | |
| 14056 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14057 | if test "$ac_cv_type_int" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14058 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14059 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14060 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14061 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14062 | $as_echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14064 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14065 | else |
| 14066 | ac_cv_sizeof_int=0 |
| 14067 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14068 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14069 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14070 | 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] | 14071 | fi |
| 14072 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14073 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14074 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14075 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14076 | |
| 14077 | |
| 14078 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14079 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14080 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14081 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14082 | |
| 14083 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14084 | # The cast to long int works around a bug in the HP C Compiler |
| 14085 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14086 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14087 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14088 | { $as_echo "$as_me:$LINENO: checking size of long" >&5 |
| 14089 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14090 | if test "${ac_cv_sizeof_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14091 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14093 | if test "$cross_compiling" = yes; then |
| 14094 | # Depending upon the size, compute the lo and hi bounds. |
| 14095 | cat >conftest.$ac_ext <<_ACEOF |
| 14096 | /* confdefs.h. */ |
| 14097 | _ACEOF |
| 14098 | cat confdefs.h >>conftest.$ac_ext |
| 14099 | cat >>conftest.$ac_ext <<_ACEOF |
| 14100 | /* end confdefs.h. */ |
| 14101 | $ac_includes_default |
| 14102 | int |
| 14103 | main () |
| 14104 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14105 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14106 | test_array [0] = 0 |
| 14107 | |
| 14108 | ; |
| 14109 | return 0; |
| 14110 | } |
| 14111 | _ACEOF |
| 14112 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14113 | if { (ac_try="$ac_compile" |
| 14114 | case "(($ac_try" in |
| 14115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14116 | *) ac_try_echo=$ac_try;; |
| 14117 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14119 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14120 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14121 | ac_status=$? |
| 14122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14123 | rm -f conftest.er1 |
| 14124 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14126 | (exit $ac_status); } && { |
| 14127 | test -z "$ac_c_werror_flag" || |
| 14128 | test ! -s conftest.err |
| 14129 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14130 | ac_lo=0 ac_mid=0 |
| 14131 | while :; do |
| 14132 | cat >conftest.$ac_ext <<_ACEOF |
| 14133 | /* confdefs.h. */ |
| 14134 | _ACEOF |
| 14135 | cat confdefs.h >>conftest.$ac_ext |
| 14136 | cat >>conftest.$ac_ext <<_ACEOF |
| 14137 | /* end confdefs.h. */ |
| 14138 | $ac_includes_default |
| 14139 | int |
| 14140 | main () |
| 14141 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14142 | 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] | 14143 | test_array [0] = 0 |
| 14144 | |
| 14145 | ; |
| 14146 | return 0; |
| 14147 | } |
| 14148 | _ACEOF |
| 14149 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14150 | if { (ac_try="$ac_compile" |
| 14151 | case "(($ac_try" in |
| 14152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14153 | *) ac_try_echo=$ac_try;; |
| 14154 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14156 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14157 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14158 | ac_status=$? |
| 14159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14160 | rm -f conftest.er1 |
| 14161 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14162 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14163 | (exit $ac_status); } && { |
| 14164 | test -z "$ac_c_werror_flag" || |
| 14165 | test ! -s conftest.err |
| 14166 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | ac_hi=$ac_mid; break |
| 14168 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14169 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14172 | ac_lo=`expr $ac_mid + 1` |
| 14173 | if test $ac_lo -le $ac_mid; then |
| 14174 | ac_lo= ac_hi= |
| 14175 | break |
| 14176 | fi |
| 14177 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14178 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14179 | |
| 14180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14181 | done |
| 14182 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14183 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14186 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14187 | /* confdefs.h. */ |
| 14188 | _ACEOF |
| 14189 | cat confdefs.h >>conftest.$ac_ext |
| 14190 | cat >>conftest.$ac_ext <<_ACEOF |
| 14191 | /* end confdefs.h. */ |
| 14192 | $ac_includes_default |
| 14193 | int |
| 14194 | main () |
| 14195 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14196 | static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14197 | test_array [0] = 0 |
| 14198 | |
| 14199 | ; |
| 14200 | return 0; |
| 14201 | } |
| 14202 | _ACEOF |
| 14203 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14204 | if { (ac_try="$ac_compile" |
| 14205 | case "(($ac_try" in |
| 14206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14207 | *) ac_try_echo=$ac_try;; |
| 14208 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14210 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14211 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14212 | ac_status=$? |
| 14213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14214 | rm -f conftest.er1 |
| 14215 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14217 | (exit $ac_status); } && { |
| 14218 | test -z "$ac_c_werror_flag" || |
| 14219 | test ! -s conftest.err |
| 14220 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14221 | ac_hi=-1 ac_mid=-1 |
| 14222 | while :; do |
| 14223 | cat >conftest.$ac_ext <<_ACEOF |
| 14224 | /* confdefs.h. */ |
| 14225 | _ACEOF |
| 14226 | cat confdefs.h >>conftest.$ac_ext |
| 14227 | cat >>conftest.$ac_ext <<_ACEOF |
| 14228 | /* end confdefs.h. */ |
| 14229 | $ac_includes_default |
| 14230 | int |
| 14231 | main () |
| 14232 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14233 | 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] | 14234 | test_array [0] = 0 |
| 14235 | |
| 14236 | ; |
| 14237 | return 0; |
| 14238 | } |
| 14239 | _ACEOF |
| 14240 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14241 | if { (ac_try="$ac_compile" |
| 14242 | case "(($ac_try" in |
| 14243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14244 | *) ac_try_echo=$ac_try;; |
| 14245 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14247 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14248 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14249 | ac_status=$? |
| 14250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14251 | rm -f conftest.er1 |
| 14252 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14254 | (exit $ac_status); } && { |
| 14255 | test -z "$ac_c_werror_flag" || |
| 14256 | test ! -s conftest.err |
| 14257 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14258 | ac_lo=$ac_mid; break |
| 14259 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14260 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14262 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14263 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14264 | if test $ac_mid -le $ac_hi; then |
| 14265 | ac_lo= ac_hi= |
| 14266 | break |
| 14267 | fi |
| 14268 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14269 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14270 | |
| 14271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14272 | done |
| 14273 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14274 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14277 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14278 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14279 | |
| 14280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14281 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14282 | |
| 14283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14284 | # Binary search between lo and hi bounds. |
| 14285 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14286 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14287 | cat >conftest.$ac_ext <<_ACEOF |
| 14288 | /* confdefs.h. */ |
| 14289 | _ACEOF |
| 14290 | cat confdefs.h >>conftest.$ac_ext |
| 14291 | cat >>conftest.$ac_ext <<_ACEOF |
| 14292 | /* end confdefs.h. */ |
| 14293 | $ac_includes_default |
| 14294 | int |
| 14295 | main () |
| 14296 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14297 | 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] | 14298 | test_array [0] = 0 |
| 14299 | |
| 14300 | ; |
| 14301 | return 0; |
| 14302 | } |
| 14303 | _ACEOF |
| 14304 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14305 | if { (ac_try="$ac_compile" |
| 14306 | case "(($ac_try" in |
| 14307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14308 | *) ac_try_echo=$ac_try;; |
| 14309 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14311 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14312 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14313 | ac_status=$? |
| 14314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14315 | rm -f conftest.er1 |
| 14316 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14318 | (exit $ac_status); } && { |
| 14319 | test -z "$ac_c_werror_flag" || |
| 14320 | test ! -s conftest.err |
| 14321 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14322 | ac_hi=$ac_mid |
| 14323 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14324 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14326 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14327 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14328 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14329 | |
| 14330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14331 | done |
| 14332 | case $ac_lo in |
| 14333 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14334 | '') if test "$ac_cv_type_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14335 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14337 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14338 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14339 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14340 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14341 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14342 | else |
| 14343 | ac_cv_sizeof_long=0 |
| 14344 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14345 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14346 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14347 | cat >conftest.$ac_ext <<_ACEOF |
| 14348 | /* confdefs.h. */ |
| 14349 | _ACEOF |
| 14350 | cat confdefs.h >>conftest.$ac_ext |
| 14351 | cat >>conftest.$ac_ext <<_ACEOF |
| 14352 | /* end confdefs.h. */ |
| 14353 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14354 | static long int longval () { return (long int) (sizeof (long)); } |
| 14355 | static unsigned long int ulongval () { return (long int) (sizeof (long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14356 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14357 | #include <stdlib.h> |
| 14358 | int |
| 14359 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14360 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14361 | |
| 14362 | FILE *f = fopen ("conftest.val", "w"); |
| 14363 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14364 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14365 | if (((long int) (sizeof (long))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14366 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14367 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14368 | if (i != ((long int) (sizeof (long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14370 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14371 | } |
| 14372 | else |
| 14373 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14374 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14375 | if (i != ((long int) (sizeof (long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14376 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14377 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14378 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14379 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14380 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14381 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14382 | |
| 14383 | ; |
| 14384 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14385 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14386 | _ACEOF |
| 14387 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14388 | if { (ac_try="$ac_link" |
| 14389 | case "(($ac_try" in |
| 14390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14391 | *) ac_try_echo=$ac_try;; |
| 14392 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14394 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14395 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14396 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14399 | { (case "(($ac_try" in |
| 14400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14401 | *) ac_try_echo=$ac_try;; |
| 14402 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14404 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14405 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14406 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14408 | (exit $ac_status); }; }; then |
| 14409 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14410 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14411 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14412 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14414 | |
| 14415 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14416 | if test "$ac_cv_type_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14417 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14419 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14420 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14421 | $as_echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14423 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14424 | else |
| 14425 | ac_cv_sizeof_long=0 |
| 14426 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14427 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14428 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14429 | 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] | 14430 | fi |
| 14431 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14432 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 14434 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14435 | |
| 14436 | |
| 14437 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14438 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14439 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14440 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14441 | |
| 14442 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14443 | # The cast to long int works around a bug in the HP C Compiler |
| 14444 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14445 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14446 | # This bug is HP SR number 8606223364. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14447 | { $as_echo "$as_me:$LINENO: checking size of long long" >&5 |
| 14448 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14449 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14450 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14451 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14452 | if test "$cross_compiling" = yes; then |
| 14453 | # Depending upon the size, compute the lo and hi bounds. |
| 14454 | cat >conftest.$ac_ext <<_ACEOF |
| 14455 | /* confdefs.h. */ |
| 14456 | _ACEOF |
| 14457 | cat confdefs.h >>conftest.$ac_ext |
| 14458 | cat >>conftest.$ac_ext <<_ACEOF |
| 14459 | /* end confdefs.h. */ |
| 14460 | $ac_includes_default |
| 14461 | int |
| 14462 | main () |
| 14463 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14464 | 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] | 14465 | test_array [0] = 0 |
| 14466 | |
| 14467 | ; |
| 14468 | return 0; |
| 14469 | } |
| 14470 | _ACEOF |
| 14471 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14472 | if { (ac_try="$ac_compile" |
| 14473 | case "(($ac_try" in |
| 14474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14475 | *) ac_try_echo=$ac_try;; |
| 14476 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14478 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14479 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | ac_status=$? |
| 14481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14482 | rm -f conftest.er1 |
| 14483 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14485 | (exit $ac_status); } && { |
| 14486 | test -z "$ac_c_werror_flag" || |
| 14487 | test ! -s conftest.err |
| 14488 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14489 | ac_lo=0 ac_mid=0 |
| 14490 | while :; do |
| 14491 | cat >conftest.$ac_ext <<_ACEOF |
| 14492 | /* confdefs.h. */ |
| 14493 | _ACEOF |
| 14494 | cat confdefs.h >>conftest.$ac_ext |
| 14495 | cat >>conftest.$ac_ext <<_ACEOF |
| 14496 | /* end confdefs.h. */ |
| 14497 | $ac_includes_default |
| 14498 | int |
| 14499 | main () |
| 14500 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14501 | 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] | 14502 | test_array [0] = 0 |
| 14503 | |
| 14504 | ; |
| 14505 | return 0; |
| 14506 | } |
| 14507 | _ACEOF |
| 14508 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14509 | if { (ac_try="$ac_compile" |
| 14510 | case "(($ac_try" in |
| 14511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14512 | *) ac_try_echo=$ac_try;; |
| 14513 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14514 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14515 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14516 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14517 | ac_status=$? |
| 14518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14519 | rm -f conftest.er1 |
| 14520 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14522 | (exit $ac_status); } && { |
| 14523 | test -z "$ac_c_werror_flag" || |
| 14524 | test ! -s conftest.err |
| 14525 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14526 | ac_hi=$ac_mid; break |
| 14527 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14528 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14531 | ac_lo=`expr $ac_mid + 1` |
| 14532 | if test $ac_lo -le $ac_mid; then |
| 14533 | ac_lo= ac_hi= |
| 14534 | break |
| 14535 | fi |
| 14536 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14538 | |
| 14539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14540 | done |
| 14541 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14542 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14545 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14546 | /* confdefs.h. */ |
| 14547 | _ACEOF |
| 14548 | cat confdefs.h >>conftest.$ac_ext |
| 14549 | cat >>conftest.$ac_ext <<_ACEOF |
| 14550 | /* end confdefs.h. */ |
| 14551 | $ac_includes_default |
| 14552 | int |
| 14553 | main () |
| 14554 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14555 | 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] | 14556 | test_array [0] = 0 |
| 14557 | |
| 14558 | ; |
| 14559 | return 0; |
| 14560 | } |
| 14561 | _ACEOF |
| 14562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14563 | if { (ac_try="$ac_compile" |
| 14564 | case "(($ac_try" in |
| 14565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14566 | *) ac_try_echo=$ac_try;; |
| 14567 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14569 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14570 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14571 | ac_status=$? |
| 14572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14573 | rm -f conftest.er1 |
| 14574 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14576 | (exit $ac_status); } && { |
| 14577 | test -z "$ac_c_werror_flag" || |
| 14578 | test ! -s conftest.err |
| 14579 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14580 | ac_hi=-1 ac_mid=-1 |
| 14581 | while :; do |
| 14582 | cat >conftest.$ac_ext <<_ACEOF |
| 14583 | /* confdefs.h. */ |
| 14584 | _ACEOF |
| 14585 | cat confdefs.h >>conftest.$ac_ext |
| 14586 | cat >>conftest.$ac_ext <<_ACEOF |
| 14587 | /* end confdefs.h. */ |
| 14588 | $ac_includes_default |
| 14589 | int |
| 14590 | main () |
| 14591 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14592 | 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] | 14593 | test_array [0] = 0 |
| 14594 | |
| 14595 | ; |
| 14596 | return 0; |
| 14597 | } |
| 14598 | _ACEOF |
| 14599 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14600 | if { (ac_try="$ac_compile" |
| 14601 | case "(($ac_try" in |
| 14602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14603 | *) ac_try_echo=$ac_try;; |
| 14604 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14606 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14607 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14608 | ac_status=$? |
| 14609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14610 | rm -f conftest.er1 |
| 14611 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14613 | (exit $ac_status); } && { |
| 14614 | test -z "$ac_c_werror_flag" || |
| 14615 | test ! -s conftest.err |
| 14616 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14617 | ac_lo=$ac_mid; break |
| 14618 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14619 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14621 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14622 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14623 | if test $ac_mid -le $ac_hi; then |
| 14624 | ac_lo= ac_hi= |
| 14625 | break |
| 14626 | fi |
| 14627 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14628 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14629 | |
| 14630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14631 | done |
| 14632 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14633 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14635 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14636 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14637 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14638 | |
| 14639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14641 | |
| 14642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14643 | # Binary search between lo and hi bounds. |
| 14644 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14645 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14646 | cat >conftest.$ac_ext <<_ACEOF |
| 14647 | /* confdefs.h. */ |
| 14648 | _ACEOF |
| 14649 | cat confdefs.h >>conftest.$ac_ext |
| 14650 | cat >>conftest.$ac_ext <<_ACEOF |
| 14651 | /* end confdefs.h. */ |
| 14652 | $ac_includes_default |
| 14653 | int |
| 14654 | main () |
| 14655 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14656 | 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] | 14657 | test_array [0] = 0 |
| 14658 | |
| 14659 | ; |
| 14660 | return 0; |
| 14661 | } |
| 14662 | _ACEOF |
| 14663 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14664 | if { (ac_try="$ac_compile" |
| 14665 | case "(($ac_try" in |
| 14666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14667 | *) ac_try_echo=$ac_try;; |
| 14668 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14670 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14671 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14672 | ac_status=$? |
| 14673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14674 | rm -f conftest.er1 |
| 14675 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14677 | (exit $ac_status); } && { |
| 14678 | test -z "$ac_c_werror_flag" || |
| 14679 | test ! -s conftest.err |
| 14680 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14681 | ac_hi=$ac_mid |
| 14682 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14683 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14685 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14686 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14687 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14688 | |
| 14689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14690 | done |
| 14691 | case $ac_lo in |
| 14692 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14693 | '') if test "$ac_cv_type_long_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14694 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14695 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14696 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14697 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14698 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14699 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14700 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14701 | else |
| 14702 | ac_cv_sizeof_long_long=0 |
| 14703 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14704 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14705 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14706 | cat >conftest.$ac_ext <<_ACEOF |
| 14707 | /* confdefs.h. */ |
| 14708 | _ACEOF |
| 14709 | cat confdefs.h >>conftest.$ac_ext |
| 14710 | cat >>conftest.$ac_ext <<_ACEOF |
| 14711 | /* end confdefs.h. */ |
| 14712 | $ac_includes_default |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14713 | static long int longval () { return (long int) (sizeof (long long)); } |
| 14714 | static unsigned long int ulongval () { return (long int) (sizeof (long long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14715 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14716 | #include <stdlib.h> |
| 14717 | int |
| 14718 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14719 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14720 | |
| 14721 | FILE *f = fopen ("conftest.val", "w"); |
| 14722 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14723 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14724 | if (((long int) (sizeof (long long))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14725 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14726 | long int i = longval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14727 | if (i != ((long int) (sizeof (long long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14728 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14729 | fprintf (f, "%ld", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14730 | } |
| 14731 | else |
| 14732 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14733 | unsigned long int i = ulongval (); |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14734 | if (i != ((long int) (sizeof (long long)))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14735 | return 1; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14736 | fprintf (f, "%lu", i); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14737 | } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14738 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 14739 | on some platforms. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14740 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14741 | |
| 14742 | ; |
| 14743 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14744 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14745 | _ACEOF |
| 14746 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14747 | if { (ac_try="$ac_link" |
| 14748 | case "(($ac_try" in |
| 14749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14750 | *) ac_try_echo=$ac_try;; |
| 14751 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14753 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14754 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14755 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14758 | { (case "(($ac_try" in |
| 14759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14760 | *) ac_try_echo=$ac_try;; |
| 14761 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14763 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14764 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14765 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14767 | (exit $ac_status); }; }; then |
| 14768 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14769 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14770 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 14771 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14773 | |
| 14774 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14775 | if test "$ac_cv_type_long_long" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14776 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 14777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14778 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14779 | See \`config.log' for more details." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14780 | $as_echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14781 | See \`config.log' for more details." >&2;} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14782 | { (exit 77); exit 77; }; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14783 | else |
| 14784 | ac_cv_sizeof_long_long=0 |
| 14785 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14786 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14787 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14788 | 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] | 14789 | fi |
| 14790 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14791 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14793 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14794 | |
| 14795 | |
| 14796 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14798 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14799 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14800 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14801 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14802 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14803 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14804 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14805 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14806 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14807 | |
| 14808 | |
| 14809 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14810 | |
| 14811 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14812 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14813 | if test "${ac_cv_c_bigendian+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14814 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14815 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14816 | ac_cv_c_bigendian=unknown |
| 14817 | # See if we're dealing with a universal compiler. |
| 14818 | cat >conftest.$ac_ext <<_ACEOF |
| 14819 | /* confdefs.h. */ |
| 14820 | _ACEOF |
| 14821 | cat confdefs.h >>conftest.$ac_ext |
| 14822 | cat >>conftest.$ac_ext <<_ACEOF |
| 14823 | /* end confdefs.h. */ |
| 14824 | #ifndef __APPLE_CC__ |
| 14825 | not a universal capable compiler |
| 14826 | #endif |
| 14827 | typedef int dummy; |
| 14828 | |
| 14829 | _ACEOF |
| 14830 | rm -f conftest.$ac_objext |
| 14831 | if { (ac_try="$ac_compile" |
| 14832 | case "(($ac_try" in |
| 14833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14834 | *) ac_try_echo=$ac_try;; |
| 14835 | esac |
| 14836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14837 | $as_echo "$ac_try_echo") >&5 |
| 14838 | (eval "$ac_compile") 2>conftest.er1 |
| 14839 | ac_status=$? |
| 14840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14841 | rm -f conftest.er1 |
| 14842 | cat conftest.err >&5 |
| 14843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); } && { |
| 14845 | test -z "$ac_c_werror_flag" || |
| 14846 | test ! -s conftest.err |
| 14847 | } && test -s conftest.$ac_objext; then |
| 14848 | |
| 14849 | # Check for potential -arch flags. It is not universal unless |
| 14850 | # there are some -arch flags. Note that *ppc* also matches |
| 14851 | # ppc64. This check is also rather less than ideal. |
| 14852 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 14853 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 14854 | esac |
| 14855 | else |
| 14856 | $as_echo "$as_me: failed program was:" >&5 |
| 14857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14858 | |
| 14859 | |
| 14860 | fi |
| 14861 | |
| 14862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14863 | if test $ac_cv_c_bigendian = unknown; then |
| 14864 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14865 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14866 | /* confdefs.h. */ |
| 14867 | _ACEOF |
| 14868 | cat confdefs.h >>conftest.$ac_ext |
| 14869 | cat >>conftest.$ac_ext <<_ACEOF |
| 14870 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14871 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14872 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14873 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14874 | int |
| 14875 | main () |
| 14876 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14877 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14878 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14879 | && LITTLE_ENDIAN) |
| 14880 | bogus endian macros |
| 14881 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14882 | |
| 14883 | ; |
| 14884 | return 0; |
| 14885 | } |
| 14886 | _ACEOF |
| 14887 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14888 | if { (ac_try="$ac_compile" |
| 14889 | case "(($ac_try" in |
| 14890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14891 | *) ac_try_echo=$ac_try;; |
| 14892 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14893 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14894 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14895 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14896 | ac_status=$? |
| 14897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14898 | rm -f conftest.er1 |
| 14899 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14900 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14901 | (exit $ac_status); } && { |
| 14902 | test -z "$ac_c_werror_flag" || |
| 14903 | test ! -s conftest.err |
| 14904 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14905 | # 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^] | 14906 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14907 | /* confdefs.h. */ |
| 14908 | _ACEOF |
| 14909 | cat confdefs.h >>conftest.$ac_ext |
| 14910 | cat >>conftest.$ac_ext <<_ACEOF |
| 14911 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14912 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14913 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14915 | int |
| 14916 | main () |
| 14917 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14918 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14919 | not big endian |
| 14920 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14921 | |
| 14922 | ; |
| 14923 | return 0; |
| 14924 | } |
| 14925 | _ACEOF |
| 14926 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14927 | if { (ac_try="$ac_compile" |
| 14928 | case "(($ac_try" in |
| 14929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14930 | *) ac_try_echo=$ac_try;; |
| 14931 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14933 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14934 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14935 | ac_status=$? |
| 14936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14937 | rm -f conftest.er1 |
| 14938 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14940 | (exit $ac_status); } && { |
| 14941 | test -z "$ac_c_werror_flag" || |
| 14942 | test ! -s conftest.err |
| 14943 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14944 | ac_cv_c_bigendian=yes |
| 14945 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14946 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14948 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14949 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14950 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14951 | |
| 14952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14953 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14954 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14956 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14957 | |
| 14958 | fi |
| 14959 | |
| 14960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14961 | fi |
| 14962 | if test $ac_cv_c_bigendian = unknown; then |
| 14963 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14964 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14965 | /* confdefs.h. */ |
| 14966 | _ACEOF |
| 14967 | cat confdefs.h >>conftest.$ac_ext |
| 14968 | cat >>conftest.$ac_ext <<_ACEOF |
| 14969 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14970 | #include <limits.h> |
| 14971 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14972 | int |
| 14973 | main () |
| 14974 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14975 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14976 | bogus endian macros |
| 14977 | #endif |
| 14978 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14979 | ; |
| 14980 | return 0; |
| 14981 | } |
| 14982 | _ACEOF |
| 14983 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14984 | if { (ac_try="$ac_compile" |
| 14985 | case "(($ac_try" in |
| 14986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14987 | *) ac_try_echo=$ac_try;; |
| 14988 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14990 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14991 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14992 | ac_status=$? |
| 14993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14994 | rm -f conftest.er1 |
| 14995 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 14996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14997 | (exit $ac_status); } && { |
| 14998 | test -z "$ac_c_werror_flag" || |
| 14999 | test ! -s conftest.err |
| 15000 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15001 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 15002 | cat >conftest.$ac_ext <<_ACEOF |
| 15003 | /* confdefs.h. */ |
| 15004 | _ACEOF |
| 15005 | cat confdefs.h >>conftest.$ac_ext |
| 15006 | cat >>conftest.$ac_ext <<_ACEOF |
| 15007 | /* end confdefs.h. */ |
| 15008 | #include <limits.h> |
| 15009 | |
| 15010 | int |
| 15011 | main () |
| 15012 | { |
| 15013 | #ifndef _BIG_ENDIAN |
| 15014 | not big endian |
| 15015 | #endif |
| 15016 | |
| 15017 | ; |
| 15018 | return 0; |
| 15019 | } |
| 15020 | _ACEOF |
| 15021 | rm -f conftest.$ac_objext |
| 15022 | if { (ac_try="$ac_compile" |
| 15023 | case "(($ac_try" in |
| 15024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15025 | *) ac_try_echo=$ac_try;; |
| 15026 | esac |
| 15027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15028 | $as_echo "$ac_try_echo") >&5 |
| 15029 | (eval "$ac_compile") 2>conftest.er1 |
| 15030 | ac_status=$? |
| 15031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15032 | rm -f conftest.er1 |
| 15033 | cat conftest.err >&5 |
| 15034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); } && { |
| 15036 | test -z "$ac_c_werror_flag" || |
| 15037 | test ! -s conftest.err |
| 15038 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15039 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15040 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15041 | $as_echo "$as_me: failed program was:" >&5 |
| 15042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15043 | |
| 15044 | ac_cv_c_bigendian=no |
| 15045 | fi |
| 15046 | |
| 15047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15048 | else |
| 15049 | $as_echo "$as_me: failed program was:" >&5 |
| 15050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15051 | |
| 15052 | |
| 15053 | fi |
| 15054 | |
| 15055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15056 | fi |
| 15057 | if test $ac_cv_c_bigendian = unknown; then |
| 15058 | # Compile a test program. |
| 15059 | if test "$cross_compiling" = yes; then |
| 15060 | # Try to guess by grepping values from an object file. |
| 15061 | cat >conftest.$ac_ext <<_ACEOF |
| 15062 | /* confdefs.h. */ |
| 15063 | _ACEOF |
| 15064 | cat confdefs.h >>conftest.$ac_ext |
| 15065 | cat >>conftest.$ac_ext <<_ACEOF |
| 15066 | /* end confdefs.h. */ |
| 15067 | short int ascii_mm[] = |
| 15068 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15069 | short int ascii_ii[] = |
| 15070 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15071 | int use_ascii (int i) { |
| 15072 | return ascii_mm[i] + ascii_ii[i]; |
| 15073 | } |
| 15074 | short int ebcdic_ii[] = |
| 15075 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15076 | short int ebcdic_mm[] = |
| 15077 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15078 | int use_ebcdic (int i) { |
| 15079 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 15080 | } |
| 15081 | extern int foo; |
| 15082 | |
| 15083 | int |
| 15084 | main () |
| 15085 | { |
| 15086 | return use_ascii (foo) == use_ebcdic (foo); |
| 15087 | ; |
| 15088 | return 0; |
| 15089 | } |
| 15090 | _ACEOF |
| 15091 | rm -f conftest.$ac_objext |
| 15092 | if { (ac_try="$ac_compile" |
| 15093 | case "(($ac_try" in |
| 15094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15095 | *) ac_try_echo=$ac_try;; |
| 15096 | esac |
| 15097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15098 | $as_echo "$ac_try_echo") >&5 |
| 15099 | (eval "$ac_compile") 2>conftest.er1 |
| 15100 | ac_status=$? |
| 15101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15102 | rm -f conftest.er1 |
| 15103 | cat conftest.err >&5 |
| 15104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15105 | (exit $ac_status); } && { |
| 15106 | test -z "$ac_c_werror_flag" || |
| 15107 | test ! -s conftest.err |
| 15108 | } && test -s conftest.$ac_objext; then |
| 15109 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 15110 | ac_cv_c_bigendian=yes |
| 15111 | fi |
| 15112 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15113 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15114 | ac_cv_c_bigendian=no |
| 15115 | else |
| 15116 | # finding both strings is unlikely to happen, but who knows? |
| 15117 | ac_cv_c_bigendian=unknown |
| 15118 | fi |
| 15119 | fi |
| 15120 | else |
| 15121 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15123 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15124 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15126 | |
| 15127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15128 | else |
| 15129 | cat >conftest.$ac_ext <<_ACEOF |
| 15130 | /* confdefs.h. */ |
| 15131 | _ACEOF |
| 15132 | cat confdefs.h >>conftest.$ac_ext |
| 15133 | cat >>conftest.$ac_ext <<_ACEOF |
| 15134 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15135 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15136 | int |
| 15137 | main () |
| 15138 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15139 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15140 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15141 | union |
| 15142 | { |
| 15143 | long int l; |
| 15144 | char c[sizeof (long int)]; |
| 15145 | } u; |
| 15146 | u.l = 1; |
| 15147 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15148 | |
| 15149 | ; |
| 15150 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15151 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15152 | _ACEOF |
| 15153 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15154 | if { (ac_try="$ac_link" |
| 15155 | case "(($ac_try" in |
| 15156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15157 | *) ac_try_echo=$ac_try;; |
| 15158 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15160 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15161 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15162 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15165 | { (case "(($ac_try" in |
| 15166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15167 | *) ac_try_echo=$ac_try;; |
| 15168 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15170 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15171 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15172 | ac_status=$? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15174 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15175 | ac_cv_c_bigendian=no |
| 15176 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15177 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 15178 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15179 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15180 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15181 | ( exit $ac_status ) |
| 15182 | ac_cv_c_bigendian=yes |
| 15183 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15184 | rm -rf conftest.dSYM |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15185 | 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] | 15186 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15187 | |
| 15188 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15189 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15190 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15192 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 15193 | case $ac_cv_c_bigendian in #( |
| 15194 | yes) |
| 15195 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15196 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15197 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15198 | ;; #( |
| 15199 | no) |
| 15200 | ;; #( |
| 15201 | universal) |
| 15202 | |
| 15203 | cat >>confdefs.h <<\_ACEOF |
| 15204 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 15205 | _ACEOF |
| 15206 | |
| 15207 | ;; #( |
| 15208 | *) |
| 15209 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 15210 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15211 | $as_echo "$as_me: error: unknown endianness |
| 15212 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15213 | { (exit 1); exit 1; }; } ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15214 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15215 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15216 | 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] | 15217 | ASM_TYPES_HEADER=./asm_types.h |
| 15218 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15219 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 15220 | > public_config.h |
| 15221 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 15222 | uniq tmp_config.$$ >> public_config.h |
| 15223 | else |
| 15224 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 15225 | fi |
| 15226 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 15227 | uniq tmp_config.$$ >> public_config.h |
| 15228 | else |
| 15229 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 15230 | fi |
| 15231 | rm -f tmp_config.$$ |
| 15232 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 15233 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 15234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15235 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15236 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15237 | 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] | 15238 | 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^] | 15239 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15240 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15241 | 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^] | 15242 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15243 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15244 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 15245 | $as_echo "$as_val"'` |
| 15246 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15247 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15248 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15249 | # Is the header compilable? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15250 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15251 | $as_echo_n "checking $ac_header usability... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15252 | cat >conftest.$ac_ext <<_ACEOF |
| 15253 | /* confdefs.h. */ |
| 15254 | _ACEOF |
| 15255 | cat confdefs.h >>conftest.$ac_ext |
| 15256 | cat >>conftest.$ac_ext <<_ACEOF |
| 15257 | /* end confdefs.h. */ |
| 15258 | $ac_includes_default |
| 15259 | #include <$ac_header> |
| 15260 | _ACEOF |
| 15261 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15262 | if { (ac_try="$ac_compile" |
| 15263 | case "(($ac_try" in |
| 15264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15265 | *) ac_try_echo=$ac_try;; |
| 15266 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15268 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15269 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15270 | ac_status=$? |
| 15271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15272 | rm -f conftest.er1 |
| 15273 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15275 | (exit $ac_status); } && { |
| 15276 | test -z "$ac_c_werror_flag" || |
| 15277 | test ! -s conftest.err |
| 15278 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15279 | ac_header_compiler=yes |
| 15280 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15281 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15284 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15285 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15286 | |
| 15287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15288 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15289 | $as_echo "$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15290 | |
| 15291 | # Is the header present? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15292 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15293 | $as_echo_n "checking $ac_header presence... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15294 | cat >conftest.$ac_ext <<_ACEOF |
| 15295 | /* confdefs.h. */ |
| 15296 | _ACEOF |
| 15297 | cat confdefs.h >>conftest.$ac_ext |
| 15298 | cat >>conftest.$ac_ext <<_ACEOF |
| 15299 | /* end confdefs.h. */ |
| 15300 | #include <$ac_header> |
| 15301 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15302 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null && { |
| 15316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15317 | test ! -s conftest.err |
| 15318 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15319 | ac_header_preproc=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 | |
| 15324 | ac_header_preproc=no |
| 15325 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15327 | rm -f conftest.err 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_preproc" >&5 |
| 15329 | $as_echo "$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15330 | |
| 15331 | # So? What about this header? |
| 15332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15333 | yes:no: ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15335 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15337 | $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] | 15338 | ac_header_preproc=yes |
| 15339 | ;; |
| 15340 | no:yes:* ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15341 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15342 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15343 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15344 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15345 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15346 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15347 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15348 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15349 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15350 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15351 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15352 | $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] | 15353 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15354 | ;; |
| 15355 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15356 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15357 | $as_echo_n "checking for $ac_header... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15358 | 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^] | 15359 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15360 | else |
| 15361 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15362 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15363 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 15364 | $as_echo "$as_val"'` |
| 15365 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15366 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15367 | |
| 15368 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15369 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 15370 | $as_echo "$as_val"'` |
| 15371 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15372 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15373 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15374 | _ACEOF |
| 15375 | |
| 15376 | fi |
| 15377 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15378 | done |
| 15379 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15380 | { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 15381 | $as_echo_n "checking for intptr_t... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15382 | if test "${ac_cv_type_intptr_t+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15383 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15384 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15385 | ac_cv_type_intptr_t=no |
| 15386 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15387 | /* confdefs.h. */ |
| 15388 | _ACEOF |
| 15389 | cat confdefs.h >>conftest.$ac_ext |
| 15390 | cat >>conftest.$ac_ext <<_ACEOF |
| 15391 | /* end confdefs.h. */ |
| 15392 | $ac_includes_default |
| 15393 | int |
| 15394 | main () |
| 15395 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15396 | if (sizeof (intptr_t)) |
| 15397 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15398 | ; |
| 15399 | return 0; |
| 15400 | } |
| 15401 | _ACEOF |
| 15402 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15403 | if { (ac_try="$ac_compile" |
| 15404 | case "(($ac_try" in |
| 15405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15406 | *) ac_try_echo=$ac_try;; |
| 15407 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15409 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15410 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15411 | ac_status=$? |
| 15412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15413 | rm -f conftest.er1 |
| 15414 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15416 | (exit $ac_status); } && { |
| 15417 | test -z "$ac_c_werror_flag" || |
| 15418 | test ! -s conftest.err |
| 15419 | } && test -s conftest.$ac_objext; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15420 | cat >conftest.$ac_ext <<_ACEOF |
| 15421 | /* confdefs.h. */ |
| 15422 | _ACEOF |
| 15423 | cat confdefs.h >>conftest.$ac_ext |
| 15424 | cat >>conftest.$ac_ext <<_ACEOF |
| 15425 | /* end confdefs.h. */ |
| 15426 | $ac_includes_default |
| 15427 | int |
| 15428 | main () |
| 15429 | { |
| 15430 | if (sizeof ((intptr_t))) |
| 15431 | return 0; |
| 15432 | ; |
| 15433 | return 0; |
| 15434 | } |
| 15435 | _ACEOF |
| 15436 | rm -f conftest.$ac_objext |
| 15437 | if { (ac_try="$ac_compile" |
| 15438 | case "(($ac_try" in |
| 15439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15440 | *) ac_try_echo=$ac_try;; |
| 15441 | esac |
| 15442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15443 | $as_echo "$ac_try_echo") >&5 |
| 15444 | (eval "$ac_compile") 2>conftest.er1 |
| 15445 | ac_status=$? |
| 15446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15447 | rm -f conftest.er1 |
| 15448 | cat conftest.err >&5 |
| 15449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15450 | (exit $ac_status); } && { |
| 15451 | test -z "$ac_c_werror_flag" || |
| 15452 | test ! -s conftest.err |
| 15453 | } && test -s conftest.$ac_objext; then |
| 15454 | : |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15455 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15456 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15457 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15458 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15459 | ac_cv_type_intptr_t=yes |
| 15460 | fi |
| 15461 | |
| 15462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15463 | else |
| 15464 | $as_echo "$as_me: failed program was:" >&5 |
| 15465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15466 | |
| 15467 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15468 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15469 | |
| 15470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 15471 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 15473 | $as_echo "$ac_cv_type_intptr_t" >&6; } |
| 15474 | if test "x$ac_cv_type_intptr_t" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15475 | |
| 15476 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 15477 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15478 | _ACEOF |
| 15479 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 15480 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15481 | fi |
| 15482 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15483 | { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 15484 | $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] | 15485 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15486 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15487 | else |
| 15488 | cat >conftest.$ac_ext <<_ACEOF |
| 15489 | /* confdefs.h. */ |
| 15490 | _ACEOF |
| 15491 | cat confdefs.h >>conftest.$ac_ext |
| 15492 | cat >>conftest.$ac_ext <<_ACEOF |
| 15493 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15494 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15495 | int |
| 15496 | main () |
| 15497 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15498 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15499 | ; |
| 15500 | return 0; |
| 15501 | } |
| 15502 | _ACEOF |
| 15503 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15504 | if { (ac_try="$ac_compile" |
| 15505 | case "(($ac_try" in |
| 15506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15507 | *) ac_try_echo=$ac_try;; |
| 15508 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15510 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15511 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15512 | ac_status=$? |
| 15513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15514 | rm -f conftest.er1 |
| 15515 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15517 | (exit $ac_status); } && { |
| 15518 | test -z "$ac_c_werror_flag" || |
| 15519 | test ! -s conftest.err |
| 15520 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15521 | e2fsprogs_cv_struct_st_flags=yes |
| 15522 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15523 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15526 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15527 | fi |
| 15528 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15530 | fi |
| 15531 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15532 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 15533 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15534 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15535 | { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 15536 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15537 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15538 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15539 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15540 | cat >conftest.$ac_ext <<_ACEOF |
| 15541 | /* confdefs.h. */ |
| 15542 | _ACEOF |
| 15543 | cat confdefs.h >>conftest.$ac_ext |
| 15544 | cat >>conftest.$ac_ext <<_ACEOF |
| 15545 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15546 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15547 | int |
| 15548 | main () |
| 15549 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15550 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15551 | ; |
| 15552 | return 0; |
| 15553 | } |
| 15554 | _ACEOF |
| 15555 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15556 | if { (ac_try="$ac_compile" |
| 15557 | case "(($ac_try" in |
| 15558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15559 | *) ac_try_echo=$ac_try;; |
| 15560 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15562 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15563 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15564 | ac_status=$? |
| 15565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15566 | rm -f conftest.er1 |
| 15567 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15569 | (exit $ac_status); } && { |
| 15570 | test -z "$ac_c_werror_flag" || |
| 15571 | test ! -s conftest.err |
| 15572 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15573 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 15574 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15575 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15578 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15579 | fi |
| 15580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15582 | fi |
| 15583 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15584 | { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 15585 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15586 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15587 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15588 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15589 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15590 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 15591 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15592 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15593 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 15594 | $as_echo_n "checking for struct sockaddr.sa_len... " >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15595 | 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^] | 15596 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15597 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15598 | cat >conftest.$ac_ext <<_ACEOF |
| 15599 | /* confdefs.h. */ |
| 15600 | _ACEOF |
| 15601 | cat confdefs.h >>conftest.$ac_ext |
| 15602 | cat >>conftest.$ac_ext <<_ACEOF |
| 15603 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15604 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15605 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15606 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15607 | int |
| 15608 | main () |
| 15609 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15610 | static struct sockaddr ac_aggr; |
| 15611 | if (ac_aggr.sa_len) |
| 15612 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15613 | ; |
| 15614 | return 0; |
| 15615 | } |
| 15616 | _ACEOF |
| 15617 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15618 | if { (ac_try="$ac_compile" |
| 15619 | case "(($ac_try" in |
| 15620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15621 | *) ac_try_echo=$ac_try;; |
| 15622 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15624 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15625 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15626 | ac_status=$? |
| 15627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15628 | rm -f conftest.er1 |
| 15629 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15631 | (exit $ac_status); } && { |
| 15632 | test -z "$ac_c_werror_flag" || |
| 15633 | test ! -s conftest.err |
| 15634 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15635 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15636 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15637 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15639 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15640 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15641 | /* confdefs.h. */ |
| 15642 | _ACEOF |
| 15643 | cat confdefs.h >>conftest.$ac_ext |
| 15644 | cat >>conftest.$ac_ext <<_ACEOF |
| 15645 | /* end confdefs.h. */ |
| 15646 | #include <sys/types.h> |
| 15647 | #include <sys/socket.h> |
| 15648 | |
| 15649 | int |
| 15650 | main () |
| 15651 | { |
| 15652 | static struct sockaddr ac_aggr; |
| 15653 | if (sizeof ac_aggr.sa_len) |
| 15654 | return 0; |
| 15655 | ; |
| 15656 | return 0; |
| 15657 | } |
| 15658 | _ACEOF |
| 15659 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15660 | if { (ac_try="$ac_compile" |
| 15661 | case "(($ac_try" in |
| 15662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15663 | *) ac_try_echo=$ac_try;; |
| 15664 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15666 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15667 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15668 | ac_status=$? |
| 15669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15670 | rm -f conftest.er1 |
| 15671 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15673 | (exit $ac_status); } && { |
| 15674 | test -z "$ac_c_werror_flag" || |
| 15675 | test ! -s conftest.err |
| 15676 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15677 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 15678 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15679 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15682 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15684 | |
| 15685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15686 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15687 | |
| 15688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15689 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 15691 | $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
| 15692 | 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] | 15693 | |
| 15694 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15695 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15696 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 15697 | |
| 15698 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15699 | |
| 15700 | |
| 15701 | |
| 15702 | |
| 15703 | |
| 15704 | |
| 15705 | |
| 15706 | |
| 15707 | |
| 15708 | |
| 15709 | |
| 15710 | |
| 15711 | |
| 15712 | |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 15718 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 15719 | |
| 15720 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 15721 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 15722 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 15723 | |
| 15724 | |
| 15725 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 15726 | |
| 15727 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 15728 | |
Theodore Ts'o | c13ab4f | 2008-07-13 16:17:57 -0400 | [diff] [blame] | 15729 | |
| 15730 | |
Theodore Ts'o | 1207e36 | 2009-04-15 13:05:09 -0400 | [diff] [blame] | 15731 | |
| 15732 | |
| 15733 | 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] | 15734 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15735 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15736 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15737 | $as_echo_n "checking for $ac_func... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15738 | 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^] | 15739 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15740 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15741 | cat >conftest.$ac_ext <<_ACEOF |
| 15742 | /* confdefs.h. */ |
| 15743 | _ACEOF |
| 15744 | cat confdefs.h >>conftest.$ac_ext |
| 15745 | cat >>conftest.$ac_ext <<_ACEOF |
| 15746 | /* end confdefs.h. */ |
| 15747 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15748 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15749 | #define $ac_func innocuous_$ac_func |
| 15750 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15751 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15752 | which can conflict with char $ac_func (); below. |
| 15753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15754 | <limits.h> exists even on freestanding compilers. */ |
| 15755 | |
| 15756 | #ifdef __STDC__ |
| 15757 | # include <limits.h> |
| 15758 | #else |
| 15759 | # include <assert.h> |
| 15760 | #endif |
| 15761 | |
| 15762 | #undef $ac_func |
| 15763 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15764 | /* Override any GCC internal prototype to avoid an error. |
| 15765 | Use char because int might match the return type of a GCC |
| 15766 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15767 | #ifdef __cplusplus |
| 15768 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15769 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15770 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15771 | /* The GNU C library defines this for functions which it implements |
| 15772 | to always fail with ENOSYS. Some functions are actually named |
| 15773 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15774 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15775 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15776 | #endif |
| 15777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15778 | int |
| 15779 | main () |
| 15780 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15781 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15782 | ; |
| 15783 | return 0; |
| 15784 | } |
| 15785 | _ACEOF |
| 15786 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15787 | if { (ac_try="$ac_link" |
| 15788 | case "(($ac_try" in |
| 15789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15790 | *) ac_try_echo=$ac_try;; |
| 15791 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15793 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15794 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15795 | ac_status=$? |
| 15796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15797 | rm -f conftest.er1 |
| 15798 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15800 | (exit $ac_status); } && { |
| 15801 | test -z "$ac_c_werror_flag" || |
| 15802 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15803 | } && test -s conftest$ac_exeext && { |
| 15804 | test "$cross_compiling" = yes || |
| 15805 | $as_test_x conftest$ac_exeext |
| 15806 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15807 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15808 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15809 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15810 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15812 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15814 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15815 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15816 | 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] | 15817 | conftest$ac_exeext conftest.$ac_ext |
| 15818 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15819 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 15820 | $as_echo "$as_val"'` |
| 15821 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15822 | $as_echo "$ac_res" >&6; } |
| 15823 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 15824 | $as_echo "$as_val"'` |
| 15825 | if test "x$as_val" = x""yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15826 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15827 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15828 | _ACEOF |
| 15829 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15830 | fi |
| 15831 | done |
| 15832 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15833 | SOCKET_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15834 | { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15835 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15836 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15837 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15838 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15839 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15840 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15841 | cat >conftest.$ac_ext <<_ACEOF |
| 15842 | /* confdefs.h. */ |
| 15843 | _ACEOF |
| 15844 | cat confdefs.h >>conftest.$ac_ext |
| 15845 | cat >>conftest.$ac_ext <<_ACEOF |
| 15846 | /* end confdefs.h. */ |
| 15847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15848 | /* Override any GCC internal prototype to avoid an error. |
| 15849 | Use char because int might match the return type of a GCC |
| 15850 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15851 | #ifdef __cplusplus |
| 15852 | extern "C" |
| 15853 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15854 | char socket (); |
| 15855 | int |
| 15856 | main () |
| 15857 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15858 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15859 | ; |
| 15860 | return 0; |
| 15861 | } |
| 15862 | _ACEOF |
| 15863 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15864 | if { (ac_try="$ac_link" |
| 15865 | case "(($ac_try" in |
| 15866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15867 | *) ac_try_echo=$ac_try;; |
| 15868 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15870 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15871 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15872 | ac_status=$? |
| 15873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15874 | rm -f conftest.er1 |
| 15875 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15877 | (exit $ac_status); } && { |
| 15878 | test -z "$ac_c_werror_flag" || |
| 15879 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15880 | } && test -s conftest$ac_exeext && { |
| 15881 | test "$cross_compiling" = yes || |
| 15882 | $as_test_x conftest$ac_exeext |
| 15883 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15884 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15885 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15886 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15887 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15889 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15890 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15891 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15892 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15893 | 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] | 15894 | conftest$ac_exeext conftest.$ac_ext |
| 15895 | LIBS=$ac_check_lib_save_LIBS |
| 15896 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15898 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
| 15899 | if test "x$ac_cv_lib_socket_socket" = x""yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15900 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15901 | fi |
| 15902 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15903 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15904 | DLOPEN_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15905 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15906 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15907 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15908 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15909 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15910 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15911 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15912 | cat >conftest.$ac_ext <<_ACEOF |
| 15913 | /* confdefs.h. */ |
| 15914 | _ACEOF |
| 15915 | cat confdefs.h >>conftest.$ac_ext |
| 15916 | cat >>conftest.$ac_ext <<_ACEOF |
| 15917 | /* end confdefs.h. */ |
| 15918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15919 | /* Override any GCC internal prototype to avoid an error. |
| 15920 | Use char because int might match the return type of a GCC |
| 15921 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15922 | #ifdef __cplusplus |
| 15923 | extern "C" |
| 15924 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15925 | char dlopen (); |
| 15926 | int |
| 15927 | main () |
| 15928 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15929 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15930 | ; |
| 15931 | return 0; |
| 15932 | } |
| 15933 | _ACEOF |
| 15934 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15935 | if { (ac_try="$ac_link" |
| 15936 | case "(($ac_try" in |
| 15937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15938 | *) ac_try_echo=$ac_try;; |
| 15939 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15941 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15942 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15943 | ac_status=$? |
| 15944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15945 | rm -f conftest.er1 |
| 15946 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15948 | (exit $ac_status); } && { |
| 15949 | test -z "$ac_c_werror_flag" || |
| 15950 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15951 | } && test -s conftest$ac_exeext && { |
| 15952 | test "$cross_compiling" = yes || |
| 15953 | $as_test_x conftest$ac_exeext |
| 15954 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15955 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15956 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15957 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15958 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15959 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15960 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15961 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15962 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15963 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15964 | 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] | 15965 | conftest$ac_exeext conftest.$ac_ext |
| 15966 | LIBS=$ac_check_lib_save_LIBS |
| 15967 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15968 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15969 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 15970 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15971 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15972 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15973 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15974 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15975 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15976 | fi |
| 15977 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15978 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15979 | { $as_echo "$as_me:$LINENO: checking for optreset" >&5 |
| 15980 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15981 | if test "${ac_cv_have_optreset+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 15982 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15983 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15984 | cat >conftest.$ac_ext <<_ACEOF |
| 15985 | /* confdefs.h. */ |
| 15986 | _ACEOF |
| 15987 | cat confdefs.h >>conftest.$ac_ext |
| 15988 | cat >>conftest.$ac_ext <<_ACEOF |
| 15989 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15990 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15991 | |
| 15992 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15994 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15995 | ac_cv_have_optreset=yes |
| 15996 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15997 | ac_cv_have_optreset=no |
| 15998 | fi |
| 15999 | rm -f conftest* |
| 16000 | |
| 16001 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16002 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 16003 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16004 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16005 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16006 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16007 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16008 | |
| 16009 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16010 | SEM_INIT_LIB='' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16011 | { $as_echo "$as_me:$LINENO: checking for sem_init" >&5 |
| 16012 | $as_echo_n "checking for sem_init... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16013 | if test "${ac_cv_func_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16014 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16015 | else |
| 16016 | cat >conftest.$ac_ext <<_ACEOF |
| 16017 | /* confdefs.h. */ |
| 16018 | _ACEOF |
| 16019 | cat confdefs.h >>conftest.$ac_ext |
| 16020 | cat >>conftest.$ac_ext <<_ACEOF |
| 16021 | /* end confdefs.h. */ |
| 16022 | /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. |
| 16023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16024 | #define sem_init innocuous_sem_init |
| 16025 | |
| 16026 | /* System header to define __stub macros and hopefully few prototypes, |
| 16027 | which can conflict with char sem_init (); below. |
| 16028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16029 | <limits.h> exists even on freestanding compilers. */ |
| 16030 | |
| 16031 | #ifdef __STDC__ |
| 16032 | # include <limits.h> |
| 16033 | #else |
| 16034 | # include <assert.h> |
| 16035 | #endif |
| 16036 | |
| 16037 | #undef sem_init |
| 16038 | |
| 16039 | /* Override any GCC internal prototype to avoid an error. |
| 16040 | Use char because int might match the return type of a GCC |
| 16041 | builtin and then its argument prototype would still apply. */ |
| 16042 | #ifdef __cplusplus |
| 16043 | extern "C" |
| 16044 | #endif |
| 16045 | char sem_init (); |
| 16046 | /* The GNU C library defines this for functions which it implements |
| 16047 | to always fail with ENOSYS. Some functions are actually named |
| 16048 | something starting with __ and the normal name is an alias. */ |
| 16049 | #if defined __stub_sem_init || defined __stub___sem_init |
| 16050 | choke me |
| 16051 | #endif |
| 16052 | |
| 16053 | int |
| 16054 | main () |
| 16055 | { |
| 16056 | return sem_init (); |
| 16057 | ; |
| 16058 | return 0; |
| 16059 | } |
| 16060 | _ACEOF |
| 16061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16062 | if { (ac_try="$ac_link" |
| 16063 | case "(($ac_try" in |
| 16064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16065 | *) ac_try_echo=$ac_try;; |
| 16066 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16068 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16069 | (eval "$ac_link") 2>conftest.er1 |
| 16070 | ac_status=$? |
| 16071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16072 | rm -f conftest.er1 |
| 16073 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16075 | (exit $ac_status); } && { |
| 16076 | test -z "$ac_c_werror_flag" || |
| 16077 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16078 | } && test -s conftest$ac_exeext && { |
| 16079 | test "$cross_compiling" = yes || |
| 16080 | $as_test_x conftest$ac_exeext |
| 16081 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16082 | ac_cv_func_sem_init=yes |
| 16083 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16084 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16086 | |
| 16087 | ac_cv_func_sem_init=no |
| 16088 | fi |
| 16089 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16090 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16091 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16092 | conftest$ac_exeext conftest.$ac_ext |
| 16093 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16094 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 |
| 16095 | $as_echo "$ac_cv_func_sem_init" >&6; } |
| 16096 | if test "x$ac_cv_func_sem_init" = x""yes; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16097 | : |
| 16098 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16099 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 |
| 16100 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16101 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16102 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16103 | else |
| 16104 | ac_check_lib_save_LIBS=$LIBS |
| 16105 | LIBS="-lpthread $LIBS" |
| 16106 | cat >conftest.$ac_ext <<_ACEOF |
| 16107 | /* confdefs.h. */ |
| 16108 | _ACEOF |
| 16109 | cat confdefs.h >>conftest.$ac_ext |
| 16110 | cat >>conftest.$ac_ext <<_ACEOF |
| 16111 | /* end confdefs.h. */ |
| 16112 | |
| 16113 | /* Override any GCC internal prototype to avoid an error. |
| 16114 | Use char because int might match the return type of a GCC |
| 16115 | builtin and then its argument prototype would still apply. */ |
| 16116 | #ifdef __cplusplus |
| 16117 | extern "C" |
| 16118 | #endif |
| 16119 | char sem_init (); |
| 16120 | int |
| 16121 | main () |
| 16122 | { |
| 16123 | return sem_init (); |
| 16124 | ; |
| 16125 | return 0; |
| 16126 | } |
| 16127 | _ACEOF |
| 16128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16129 | if { (ac_try="$ac_link" |
| 16130 | case "(($ac_try" in |
| 16131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16132 | *) ac_try_echo=$ac_try;; |
| 16133 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16135 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16136 | (eval "$ac_link") 2>conftest.er1 |
| 16137 | ac_status=$? |
| 16138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16139 | rm -f conftest.er1 |
| 16140 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16142 | (exit $ac_status); } && { |
| 16143 | test -z "$ac_c_werror_flag" || |
| 16144 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16145 | } && test -s conftest$ac_exeext && { |
| 16146 | test "$cross_compiling" = yes || |
| 16147 | $as_test_x conftest$ac_exeext |
| 16148 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16149 | ac_cv_lib_pthread_sem_init=yes |
| 16150 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16151 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16153 | |
| 16154 | ac_cv_lib_pthread_sem_init=no |
| 16155 | fi |
| 16156 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16157 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16159 | conftest$ac_exeext conftest.$ac_ext |
| 16160 | LIBS=$ac_check_lib_save_LIBS |
| 16161 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 |
| 16163 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
| 16164 | 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] | 16165 | cat >>confdefs.h <<\_ACEOF |
| 16166 | #define HAVE_SEM_INIT 1 |
| 16167 | _ACEOF |
| 16168 | |
| 16169 | SEM_INIT_LIB=-lpthread |
| 16170 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16171 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 16172 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16173 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16174 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16175 | else |
| 16176 | ac_check_lib_save_LIBS=$LIBS |
| 16177 | LIBS="-lrt $LIBS" |
| 16178 | cat >conftest.$ac_ext <<_ACEOF |
| 16179 | /* confdefs.h. */ |
| 16180 | _ACEOF |
| 16181 | cat confdefs.h >>conftest.$ac_ext |
| 16182 | cat >>conftest.$ac_ext <<_ACEOF |
| 16183 | /* end confdefs.h. */ |
| 16184 | |
| 16185 | /* Override any GCC internal prototype to avoid an error. |
| 16186 | Use char because int might match the return type of a GCC |
| 16187 | builtin and then its argument prototype would still apply. */ |
| 16188 | #ifdef __cplusplus |
| 16189 | extern "C" |
| 16190 | #endif |
| 16191 | char sem_init (); |
| 16192 | int |
| 16193 | main () |
| 16194 | { |
| 16195 | return sem_init (); |
| 16196 | ; |
| 16197 | return 0; |
| 16198 | } |
| 16199 | _ACEOF |
| 16200 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16201 | if { (ac_try="$ac_link" |
| 16202 | case "(($ac_try" in |
| 16203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16204 | *) ac_try_echo=$ac_try;; |
| 16205 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16207 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16208 | (eval "$ac_link") 2>conftest.er1 |
| 16209 | ac_status=$? |
| 16210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16211 | rm -f conftest.er1 |
| 16212 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16214 | (exit $ac_status); } && { |
| 16215 | test -z "$ac_c_werror_flag" || |
| 16216 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16217 | } && test -s conftest$ac_exeext && { |
| 16218 | test "$cross_compiling" = yes || |
| 16219 | $as_test_x conftest$ac_exeext |
| 16220 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16221 | ac_cv_lib_rt_sem_init=yes |
| 16222 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16223 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16225 | |
| 16226 | ac_cv_lib_rt_sem_init=no |
| 16227 | fi |
| 16228 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16229 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16231 | conftest$ac_exeext conftest.$ac_ext |
| 16232 | LIBS=$ac_check_lib_save_LIBS |
| 16233 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 16235 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
| 16236 | 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] | 16237 | cat >>confdefs.h <<\_ACEOF |
| 16238 | #define HAVE_SEM_INIT 1 |
| 16239 | _ACEOF |
| 16240 | |
| 16241 | SEM_INIT_LIB=-lrt |
| 16242 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16243 | { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 |
| 16244 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16245 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16246 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16247 | else |
| 16248 | ac_check_lib_save_LIBS=$LIBS |
| 16249 | LIBS="-lposix4 $LIBS" |
| 16250 | cat >conftest.$ac_ext <<_ACEOF |
| 16251 | /* confdefs.h. */ |
| 16252 | _ACEOF |
| 16253 | cat confdefs.h >>conftest.$ac_ext |
| 16254 | cat >>conftest.$ac_ext <<_ACEOF |
| 16255 | /* end confdefs.h. */ |
| 16256 | |
| 16257 | /* Override any GCC internal prototype to avoid an error. |
| 16258 | Use char because int might match the return type of a GCC |
| 16259 | builtin and then its argument prototype would still apply. */ |
| 16260 | #ifdef __cplusplus |
| 16261 | extern "C" |
| 16262 | #endif |
| 16263 | char sem_init (); |
| 16264 | int |
| 16265 | main () |
| 16266 | { |
| 16267 | return sem_init (); |
| 16268 | ; |
| 16269 | return 0; |
| 16270 | } |
| 16271 | _ACEOF |
| 16272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16273 | if { (ac_try="$ac_link" |
| 16274 | case "(($ac_try" in |
| 16275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16276 | *) ac_try_echo=$ac_try;; |
| 16277 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16279 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16280 | (eval "$ac_link") 2>conftest.er1 |
| 16281 | ac_status=$? |
| 16282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16283 | rm -f conftest.er1 |
| 16284 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16286 | (exit $ac_status); } && { |
| 16287 | test -z "$ac_c_werror_flag" || |
| 16288 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16289 | } && test -s conftest$ac_exeext && { |
| 16290 | test "$cross_compiling" = yes || |
| 16291 | $as_test_x conftest$ac_exeext |
| 16292 | }; then |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16293 | ac_cv_lib_posix4_sem_init=yes |
| 16294 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16295 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16297 | |
| 16298 | ac_cv_lib_posix4_sem_init=no |
| 16299 | fi |
| 16300 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16301 | rm -rf conftest.dSYM |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16303 | conftest$ac_exeext conftest.$ac_ext |
| 16304 | LIBS=$ac_check_lib_save_LIBS |
| 16305 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16306 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 |
| 16307 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
| 16308 | 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] | 16309 | cat >>confdefs.h <<\_ACEOF |
| 16310 | #define HAVE_SEM_INIT 1 |
| 16311 | _ACEOF |
| 16312 | |
| 16313 | SEM_INIT_LIB=-lposix4 |
| 16314 | fi |
| 16315 | |
| 16316 | fi |
| 16317 | |
| 16318 | fi |
| 16319 | |
| 16320 | fi |
| 16321 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16322 | { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 16323 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 16324 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16325 | UNI_DIFF_OPTS=-u |
| 16326 | else |
| 16327 | UNI_DIFF_OPTS=-c |
| 16328 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16329 | { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 16330 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 16331 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16332 | case "$host_os" in |
| 16333 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16334 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16335 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16336 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16337 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 16338 | ;; |
| 16339 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16340 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16341 | CYGWIN_CMT="#" |
| 16342 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16343 | case "$host_os" in |
| 16344 | linux*) |
| 16345 | LINUX_CMT= |
| 16346 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16347 | cygwin) |
| 16348 | CYGWIN_CMT= |
| 16349 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 16350 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 16351 | esac |
| 16352 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16353 | |
| 16354 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16355 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16356 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16357 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 16358 | root_prefix=""; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16359 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
| 16360 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16361 | fi |
| 16362 | ;; |
| 16363 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16364 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16365 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 16366 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16367 | prefix="/usr"; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16368 | { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
| 16369 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16370 | if test "$mandir" = '${prefix}/man' ; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16371 | { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
| 16372 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 16373 | mandir=/usr/share/man |
| 16374 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16375 | fi |
| 16376 | ;; |
| 16377 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16378 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 16379 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16380 | root_prefix="$ac_default_prefix" |
| 16381 | else |
| 16382 | root_prefix="$prefix" |
| 16383 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 16384 | root_bindir=$bindir |
| 16385 | root_sbindir=$sbindir |
| 16386 | root_libdir=$libdir |
| 16387 | root_sysconfdir=$sysconfdir |
| 16388 | else |
| 16389 | root_bindir='${root_prefix}/bin' |
| 16390 | root_sbindir='${root_prefix}/sbin' |
| 16391 | root_libdir='${root_prefix}/lib' |
| 16392 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16393 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16394 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 16395 | root_bindir=$bindir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16396 | { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
| 16397 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16398 | fi |
| 16399 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 16400 | root_sbindir=$sbindir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16401 | { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
| 16402 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16403 | fi |
| 16404 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 16405 | root_libdir=$libdir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16406 | { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
| 16407 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16408 | fi |
| 16409 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 16410 | root_sysconfdir=$sysconfdir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16411 | { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
| 16412 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 16413 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 16414 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16415 | |
| 16416 | |
| 16417 | |
| 16418 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16419 | { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 16420 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16421 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16422 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16423 | else |
| 16424 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16425 | cat >conftest.$ac_ext <<_ACEOF |
| 16426 | /* confdefs.h. */ |
| 16427 | _ACEOF |
| 16428 | cat confdefs.h >>conftest.$ac_ext |
| 16429 | cat >>conftest.$ac_ext <<_ACEOF |
| 16430 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16431 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16432 | int |
| 16433 | main () |
| 16434 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16435 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16436 | ; |
| 16437 | return 0; |
| 16438 | } |
| 16439 | _ACEOF |
| 16440 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16441 | if { (ac_try="$ac_link" |
| 16442 | case "(($ac_try" in |
| 16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16444 | *) ac_try_echo=$ac_try;; |
| 16445 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16447 | $as_echo "$ac_try_echo") >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16448 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16449 | ac_status=$? |
| 16450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16451 | rm -f conftest.er1 |
| 16452 | cat conftest.err >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16454 | (exit $ac_status); } && { |
| 16455 | test -z "$ac_c_werror_flag" || |
| 16456 | test ! -s conftest.err |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16457 | } && test -s conftest$ac_exeext && { |
| 16458 | test "$cross_compiling" = yes || |
| 16459 | $as_test_x conftest$ac_exeext |
| 16460 | }; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16461 | ac_cv_e2fsprogs_use_static=yes |
| 16462 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16463 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16466 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16467 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16468 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16469 | rm -rf conftest.dSYM |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16470 | 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] | 16471 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16472 | LDFLAGS=$SAVE_LDFLAGS |
| 16473 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16474 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16475 | case "$host_os" in |
| 16476 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16477 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16478 | ;; |
| 16479 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16480 | { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 16481 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 16482 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16483 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16484 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 16485 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16486 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16487 | case "$host_os" in |
| 16488 | darwin*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16489 | { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
| 16490 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16491 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16492 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16493 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16494 | |
| 16495 | ;; |
| 16496 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16497 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 16498 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 16499 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16500 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16501 | if test "$cross_compiling" = yes ; then |
| 16502 | DO_TEST_SUITE= |
| 16503 | else |
| 16504 | DO_TEST_SUITE=check |
| 16505 | fi |
| 16506 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 16507 | INTL_FLAGS= |
| 16508 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 16509 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 16510 | fi |
| 16511 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 16512 | if test $cross_compiling = no; then |
| 16513 | BUILD_CFLAGS="$CFLAGS" |
| 16514 | BUILD_LDFLAGS="$LDFLAGS" |
| 16515 | else |
| 16516 | BUILD_CFLAGS= |
| 16517 | BUILD_LDFLAGS= |
| 16518 | fi |
| 16519 | |
| 16520 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16521 | test -d lib || mkdir lib |
| 16522 | test -d include || mkdir include |
| 16523 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 16524 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 16525 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 16526 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 16527 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 16528 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16529 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 16530 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 16531 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 16532 | 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] | 16533 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 16534 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 16535 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 16536 | if test -d `dirname ${srcdir}/$i` ; then |
| 16537 | outlist="$outlist $i" |
| 16538 | fi |
| 16539 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16540 | ac_config_files="$ac_config_files $outlist" |
| 16541 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16542 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16543 | # This file is a shell script that caches the results of configure |
| 16544 | # 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] | 16545 | # scripts and configure runs, see configure's option --config-cache. |
| 16546 | # It is not useful on other systems. If it contains results you don't |
| 16547 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16548 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16549 | # config.status only pays attention to the cache file if you give it |
| 16550 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16551 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16552 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16553 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16554 | # following values. |
| 16555 | |
| 16556 | _ACEOF |
| 16557 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 16558 | # The following way of writing the cache mishandles newlines in values, |
| 16559 | # 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] | 16560 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16561 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16562 | # 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] | 16563 | ( |
| 16564 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16565 | eval ac_val=\$$ac_var |
| 16566 | case $ac_val in #( |
| 16567 | *${as_nl}*) |
| 16568 | case $ac_var in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16569 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16570 | $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] | 16571 | esac |
| 16572 | case $ac_var in #( |
| 16573 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16574 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16575 | *) $as_unset $ac_var ;; |
| 16576 | esac ;; |
| 16577 | esac |
| 16578 | done |
| 16579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16580 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16581 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16582 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16583 | # `set' does not quote correctly, so add quotes (double-quote |
| 16584 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16585 | sed -n \ |
| 16586 | "s/'/'\\\\''/g; |
| 16587 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16588 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16589 | *) |
| 16590 | # `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] | 16591 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16592 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16593 | esac | |
| 16594 | sort |
| 16595 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16596 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16597 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16598 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16599 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16600 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16601 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16602 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16603 | :end' >>confcache |
| 16604 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16605 | if test -w "$cache_file"; then |
| 16606 | test "x$cache_file" != "x/dev/null" && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16607 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 16608 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16609 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16610 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16611 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 16612 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16613 | fi |
| 16614 | fi |
| 16615 | rm -f confcache |
| 16616 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16617 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16618 | # Let make expand exec_prefix. |
| 16619 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16620 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16621 | # Transform confdefs.h into DEFS. |
| 16622 | # Protect against shell expansion while executing Makefile rules. |
| 16623 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16624 | # |
| 16625 | # 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] | 16626 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16627 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16628 | ac_script=' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16629 | :mline |
| 16630 | /\\$/{ |
| 16631 | N |
| 16632 | s,\\\n,, |
| 16633 | b mline |
| 16634 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16635 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16636 | :clear |
| 16637 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16638 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16639 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16640 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16641 | b any |
| 16642 | :quote |
| 16643 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16644 | s/\[/\\&/g |
| 16645 | s/\]/\\&/g |
| 16646 | s/\$/$$/g |
| 16647 | H |
| 16648 | :any |
| 16649 | ${ |
| 16650 | g |
| 16651 | s/^\n// |
| 16652 | s/\n/ /g |
| 16653 | p |
| 16654 | } |
| 16655 | ' |
| 16656 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16657 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16658 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16659 | ac_libobjs= |
| 16660 | ac_ltlibobjs= |
| 16661 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16662 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16663 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16664 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16665 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16666 | # will be set to the directory where LIBOBJS objects are built. |
| 16667 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16668 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16669 | done |
| 16670 | LIBOBJS=$ac_libobjs |
| 16671 | |
| 16672 | LTLIBOBJS=$ac_ltlibobjs |
| 16673 | |
| 16674 | |
| 16675 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16676 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16677 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16678 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16679 | ac_clean_files_save=$ac_clean_files |
| 16680 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16681 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16682 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16683 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16684 | #! $SHELL |
| 16685 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16686 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16687 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16688 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16689 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16690 | debug=false |
| 16691 | ac_cs_recheck=false |
| 16692 | ac_cs_silent=false |
| 16693 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16694 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16695 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16697 | ## --------------------- ## |
| 16698 | ## M4sh Initialization. ## |
| 16699 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 16700 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16701 | # Be more Bourne compatible |
| 16702 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16703 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16704 | emulate sh |
| 16705 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16706 | # 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] | 16707 | # is contrary to our usage. Disable this feature. |
| 16708 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16709 | setopt NO_GLOB_SUBST |
| 16710 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16711 | case `(set -o) 2>/dev/null` in |
| 16712 | *posix*) set -o posix ;; |
| 16713 | esac |
| 16714 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16715 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16716 | |
| 16717 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16718 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16719 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16720 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16721 | # Avoid depending upon Character Ranges. |
| 16722 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16723 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16724 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16725 | as_cr_digits='0123456789' |
| 16726 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16727 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16728 | as_nl=' |
| 16729 | ' |
| 16730 | export as_nl |
| 16731 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16732 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16733 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16734 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16735 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16736 | as_echo='printf %s\n' |
| 16737 | as_echo_n='printf %s' |
| 16738 | else |
| 16739 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16740 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16741 | as_echo_n='/usr/ucb/echo -n' |
| 16742 | else |
| 16743 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16744 | as_echo_n_body='eval |
| 16745 | arg=$1; |
| 16746 | case $arg in |
| 16747 | *"$as_nl"*) |
| 16748 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16749 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16750 | esac; |
| 16751 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16752 | ' |
| 16753 | export as_echo_n_body |
| 16754 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16755 | fi |
| 16756 | export as_echo_body |
| 16757 | as_echo='sh -c $as_echo_body as_echo' |
| 16758 | fi |
| 16759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16760 | # The user is always right. |
| 16761 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16762 | PATH_SEPARATOR=: |
| 16763 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16764 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16765 | PATH_SEPARATOR=';' |
| 16766 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16767 | fi |
| 16768 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16769 | # Support unset when possible. |
| 16770 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 16771 | as_unset=unset |
| 16772 | else |
| 16773 | as_unset=false |
| 16774 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16776 | |
| 16777 | # IFS |
| 16778 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16779 | # there to prevent editors from complaining about space-tab. |
| 16780 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16781 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16782 | IFS=" "" $as_nl" |
| 16783 | |
| 16784 | # Find who we are. Look in the path if we contain no directory separator. |
| 16785 | case $0 in |
| 16786 | *[\\/]* ) as_myself=$0 ;; |
| 16787 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16788 | for as_dir in $PATH |
| 16789 | do |
| 16790 | IFS=$as_save_IFS |
| 16791 | test -z "$as_dir" && as_dir=. |
| 16792 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16793 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16794 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16796 | ;; |
| 16797 | esac |
| 16798 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16799 | # in which case we are not to be found in the path. |
| 16800 | if test "x$as_myself" = x; then |
| 16801 | as_myself=$0 |
| 16802 | fi |
| 16803 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16804 | $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] | 16805 | { (exit 1); exit 1; } |
| 16806 | fi |
| 16807 | |
| 16808 | # Work around bugs in pre-3.0 UWIN ksh. |
| 16809 | for as_var in ENV MAIL MAILPATH |
| 16810 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 16811 | done |
| 16812 | PS1='$ ' |
| 16813 | PS2='> ' |
| 16814 | PS4='+ ' |
| 16815 | |
| 16816 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16817 | LC_ALL=C |
| 16818 | export LC_ALL |
| 16819 | LANGUAGE=C |
| 16820 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16821 | |
| 16822 | # Required to use basename. |
| 16823 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16824 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16825 | as_expr=expr |
| 16826 | else |
| 16827 | as_expr=false |
| 16828 | fi |
| 16829 | |
| 16830 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16831 | as_basename=basename |
| 16832 | else |
| 16833 | as_basename=false |
| 16834 | fi |
| 16835 | |
| 16836 | |
| 16837 | # Name of the executable. |
| 16838 | as_me=`$as_basename -- "$0" || |
| 16839 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16840 | X"$0" : 'X\(//\)$' \| \ |
| 16841 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16842 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16843 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16844 | s//\1/ |
| 16845 | q |
| 16846 | } |
| 16847 | /^X\/\(\/\/\)$/{ |
| 16848 | s//\1/ |
| 16849 | q |
| 16850 | } |
| 16851 | /^X\/\(\/\).*/{ |
| 16852 | s//\1/ |
| 16853 | q |
| 16854 | } |
| 16855 | s/.*/./; q'` |
| 16856 | |
| 16857 | # CDPATH. |
| 16858 | $as_unset CDPATH |
| 16859 | |
| 16860 | |
| 16861 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16862 | as_lineno_1=$LINENO |
| 16863 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16864 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16865 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16866 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16867 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16868 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16869 | # line-number line after each line using $LINENO; the second 'sed' |
| 16870 | # does the real work. The second script uses 'N' to pair each |
| 16871 | # line-number line with the line containing $LINENO, and appends |
| 16872 | # trailing '-' during substitution so that $LINENO is not a special |
| 16873 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16874 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16875 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 16876 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 16877 | sed -n ' |
| 16878 | p |
| 16879 | /[$]LINENO/= |
| 16880 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16881 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16882 | s/[$]LINENO.*/&-/ |
| 16883 | t lineno |
| 16884 | b |
| 16885 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16886 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16887 | :loop |
| 16888 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16889 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16890 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16891 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16892 | chmod +x "$as_me.lineno" || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16893 | { $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] | 16894 | { (exit 1); exit 1; }; } |
| 16895 | |
| 16896 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16897 | # (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] | 16898 | # original and so on. Autoconf is especially sensitive to this). |
| 16899 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16900 | # Exit status is that of the last command. |
| 16901 | exit |
| 16902 | } |
| 16903 | |
| 16904 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16905 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16906 | as_dirname=dirname |
| 16907 | else |
| 16908 | as_dirname=false |
| 16909 | fi |
| 16910 | |
| 16911 | ECHO_C= ECHO_N= ECHO_T= |
| 16912 | case `echo -n x` in |
| 16913 | -n*) |
| 16914 | case `echo 'x\c'` in |
| 16915 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16916 | *) ECHO_C='\c';; |
| 16917 | esac;; |
| 16918 | *) |
| 16919 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16920 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16921 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16922 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16923 | as_expr=expr |
| 16924 | else |
| 16925 | as_expr=false |
| 16926 | fi |
| 16927 | |
| 16928 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16929 | if test -d conf$$.dir; then |
| 16930 | rm -f conf$$.dir/conf$$.file |
| 16931 | else |
| 16932 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16933 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16934 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16935 | if (echo >conf$$.file) 2>/dev/null; then |
| 16936 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16937 | as_ln_s='ln -s' |
| 16938 | # ... but there are two gotchas: |
| 16939 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16940 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16941 | # In both cases, we have to default to `cp -p'. |
| 16942 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16943 | as_ln_s='cp -p' |
| 16944 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16945 | as_ln_s=ln |
| 16946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16947 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16948 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16949 | else |
| 16950 | as_ln_s='cp -p' |
| 16951 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16952 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16953 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16954 | |
| 16955 | if mkdir -p . 2>/dev/null; then |
| 16956 | as_mkdir_p=: |
| 16957 | else |
| 16958 | test -d ./-p && rmdir ./-p |
| 16959 | as_mkdir_p=false |
| 16960 | fi |
| 16961 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16962 | if test -x / >/dev/null 2>&1; then |
| 16963 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16964 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16965 | if ls -dL / >/dev/null 2>&1; then |
| 16966 | as_ls_L_option=L |
| 16967 | else |
| 16968 | as_ls_L_option= |
| 16969 | fi |
| 16970 | as_test_x=' |
| 16971 | eval sh -c '\'' |
| 16972 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16973 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16974 | else |
| 16975 | case $1 in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16976 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16977 | esac; |
| 16978 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 16979 | ???[sx]*):;;*)false;;esac;fi |
| 16980 | '\'' sh |
| 16981 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16982 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16983 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16984 | |
| 16985 | # Sed expression to map a string onto a valid CPP name. |
| 16986 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16987 | |
| 16988 | # Sed expression to map a string onto a valid variable name. |
| 16989 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16990 | |
| 16991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16992 | exec 6>&1 |
| 16993 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16994 | # 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] | 16995 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16996 | # values after options handling. |
| 16997 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16998 | This file was extended by $as_me, which was |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 16999 | generated by GNU Autoconf 2.63. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17000 | |
| 17001 | CONFIG_FILES = $CONFIG_FILES |
| 17002 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17003 | CONFIG_LINKS = $CONFIG_LINKS |
| 17004 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17005 | $ $0 $@ |
| 17006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17007 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 17008 | " |
| 17009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17010 | _ACEOF |
| 17011 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17012 | case $ac_config_files in *" |
| 17013 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 17014 | esac |
| 17015 | |
| 17016 | |
| 17017 | |
| 17018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17019 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17020 | config_files="$ac_config_files" |
| 17021 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17022 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17023 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17024 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17025 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17026 | ac_cs_usage="\ |
| 17027 | \`$as_me' instantiates files from templates according to the |
| 17028 | current configuration. |
| 17029 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17030 | Usage: $0 [OPTION]... [FILE]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17031 | |
| 17032 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17033 | -V, --version print version number and configuration settings, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17034 | -q, --quiet, --silent |
| 17035 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17036 | -d, --debug don't remove temporary files |
| 17037 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17038 | --file=FILE[:TEMPLATE] |
| 17039 | instantiate the configuration file FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17040 | |
| 17041 | Configuration files: |
| 17042 | $config_files |
| 17043 | |
| 17044 | Configuration commands: |
| 17045 | $config_commands |
| 17046 | |
| 17047 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17048 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17049 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17051 | ac_cs_version="\\ |
| 17052 | config.status |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17053 | configured by $0, generated by GNU Autoconf 2.63, |
| 17054 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17055 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17056 | Copyright (C) 2008 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17057 | This config.status script is free software; the Free Software Foundation |
| 17058 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17059 | |
| 17060 | ac_pwd='$ac_pwd' |
| 17061 | srcdir='$srcdir' |
| 17062 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17063 | AWK='$AWK' |
| 17064 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17065 | _ACEOF |
| 17066 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17068 | # 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] | 17069 | ac_need_defaults=: |
| 17070 | while test $# != 0 |
| 17071 | do |
| 17072 | case $1 in |
| 17073 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17074 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 17075 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17076 | ac_shift=: |
| 17077 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17078 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17079 | ac_option=$1 |
| 17080 | ac_optarg=$2 |
| 17081 | ac_shift=shift |
| 17082 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17083 | esac |
| 17084 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17085 | case $ac_option in |
| 17086 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17087 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17088 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17089 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17090 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17091 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17092 | debug=: ;; |
| 17093 | --file | --fil | --fi | --f ) |
| 17094 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17095 | case $ac_optarg in |
| 17096 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 17097 | esac |
| 17098 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17099 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17100 | --he | --h | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17101 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17102 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 17103 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 17104 | ac_cs_silent=: ;; |
| 17105 | |
| 17106 | # This is an error. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17107 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17108 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17109 | { (exit 1); exit 1; }; } ;; |
| 17110 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17111 | *) ac_config_targets="$ac_config_targets $1" |
| 17112 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17113 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17114 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17115 | shift |
| 17116 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17117 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17118 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 17119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17120 | if $ac_cs_silent; then |
| 17121 | exec 6>/dev/null |
| 17122 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 17123 | fi |
| 17124 | |
| 17125 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17126 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17127 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17128 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 17129 | shift |
| 17130 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 17131 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17132 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17133 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17134 | fi |
| 17135 | |
| 17136 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17138 | exec 5>>config.log |
| 17139 | { |
| 17140 | echo |
| 17141 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17142 | ## Running $as_me. ## |
| 17143 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17144 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17145 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17147 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17149 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17150 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17151 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17152 | # 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] | 17153 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17154 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17155 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17156 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 17157 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17158 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17159 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17160 | _ACEOF |
| 17161 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17163 | |
| 17164 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17165 | for ac_config_target in $ac_config_targets |
| 17166 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17167 | case $ac_config_target in |
| 17168 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 17169 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 17170 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17171 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17172 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17173 | { (exit 1); exit 1; }; };; |
| 17174 | esac |
| 17175 | done |
| 17176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17178 | # If the user did not use the arguments to specify the items to instantiate, |
| 17179 | # then the envvar interface is used. Set only those that are not. |
| 17180 | # We use the long form for the default assignment because of an extremely |
| 17181 | # bizarre bug on SunOS 4.1.3. |
| 17182 | if $ac_need_defaults; then |
| 17183 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17184 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 17185 | fi |
| 17186 | |
| 17187 | # 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] | 17188 | # 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] | 17189 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17190 | # Hook for its removal unless debugging. |
| 17191 | # Note that there is a small window in which the directory will not be cleaned: |
| 17192 | # 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] | 17193 | $debug || |
| 17194 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17195 | tmp= |
| 17196 | trap 'exit_status=$? |
| 17197 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 17198 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17199 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17200 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17201 | # Create a (secure) tmp directory for tmp files. |
| 17202 | |
| 17203 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17204 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17205 | test -n "$tmp" && test -d "$tmp" |
| 17206 | } || |
| 17207 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17208 | tmp=./conf$$-$RANDOM |
| 17209 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17210 | } || |
| 17211 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17212 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17213 | { (exit 1); exit 1; } |
| 17214 | } |
| 17215 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17216 | # Set up the scripts for CONFIG_FILES section. |
| 17217 | # No need to generate them if there are no CONFIG_FILES. |
| 17218 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17219 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17220 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17221 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 17222 | ac_cs_awk_getline=: |
| 17223 | ac_cs_awk_pipe_init= |
| 17224 | ac_cs_awk_read_file=' |
| 17225 | while ((getline aline < (F[key])) > 0) |
| 17226 | print(aline) |
| 17227 | close(F[key])' |
| 17228 | ac_cs_awk_pipe_fini= |
| 17229 | else |
| 17230 | ac_cs_awk_getline=false |
| 17231 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 17232 | ac_cs_awk_read_file=' |
| 17233 | print "|#_!!_#|" |
| 17234 | print "cat " F[key] " &&" |
| 17235 | '$ac_cs_awk_pipe_init |
| 17236 | # The final `:' finishes the AND list. |
| 17237 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 17238 | fi |
| 17239 | ac_cr='
' |
| 17240 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 17241 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 17242 | ac_cs_awk_cr='\\r' |
| 17243 | else |
| 17244 | ac_cs_awk_cr=$ac_cr |
| 17245 | fi |
| 17246 | |
| 17247 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17248 | _ACEOF |
| 17249 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17250 | # Create commands to substitute file output variables. |
| 17251 | { |
| 17252 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 17253 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 17254 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 17255 | echo "_ACAWK" && |
| 17256 | echo "_ACEOF" |
| 17257 | } >conf$$files.sh && |
| 17258 | . ./conf$$files.sh || |
| 17259 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17260 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17261 | { (exit 1); exit 1; }; } |
| 17262 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17263 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17264 | { |
| 17265 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 17266 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 17267 | echo "_ACEOF" |
| 17268 | } >conf$$subs.sh || |
| 17269 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17270 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17271 | { (exit 1); exit 1; }; } |
| 17272 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17273 | ac_delim='%!_!# ' |
| 17274 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17275 | . ./conf$$subs.sh || |
| 17276 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17277 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 17278 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17279 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17280 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 17281 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17282 | break |
| 17283 | elif $ac_last_try; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17284 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 17285 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17286 | { (exit 1); exit 1; }; } |
| 17287 | else |
| 17288 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17289 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17290 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17291 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17292 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17294 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17295 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17296 | sed -n ' |
| 17297 | h |
| 17298 | s/^/S["/; s/!.*/"]=/ |
| 17299 | p |
| 17300 | g |
| 17301 | s/^[^!]*!// |
| 17302 | :repl |
| 17303 | t repl |
| 17304 | s/'"$ac_delim"'$// |
| 17305 | t delim |
| 17306 | :nl |
| 17307 | h |
| 17308 | s/\(.\{148\}\).*/\1/ |
| 17309 | t more1 |
| 17310 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17311 | p |
| 17312 | n |
| 17313 | b repl |
| 17314 | :more1 |
| 17315 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17316 | p |
| 17317 | g |
| 17318 | s/.\{148\}// |
| 17319 | t nl |
| 17320 | :delim |
| 17321 | h |
| 17322 | s/\(.\{148\}\).*/\1/ |
| 17323 | t more2 |
| 17324 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17325 | p |
| 17326 | b |
| 17327 | :more2 |
| 17328 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17329 | p |
| 17330 | g |
| 17331 | s/.\{148\}// |
| 17332 | t delim |
| 17333 | ' <conf$$subs.awk | sed ' |
| 17334 | /^[^""]/{ |
| 17335 | N |
| 17336 | s/\n// |
| 17337 | } |
| 17338 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17339 | rm -f conf$$subs.awk |
| 17340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17341 | _ACAWK |
| 17342 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 17343 | for (key in S) S_is_set[key] = 1 |
| 17344 | FS = "" |
| 17345 | \$ac_cs_awk_pipe_init |
| 17346 | } |
| 17347 | { |
| 17348 | line = $ 0 |
| 17349 | nfields = split(line, field, "@") |
| 17350 | substed = 0 |
| 17351 | len = length(field[1]) |
| 17352 | for (i = 2; i < nfields; i++) { |
| 17353 | key = field[i] |
| 17354 | keylen = length(key) |
| 17355 | if (S_is_set[key]) { |
| 17356 | value = S[key] |
| 17357 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17358 | len += length(value) + length(field[++i]) |
| 17359 | substed = 1 |
| 17360 | } else |
| 17361 | len += 1 + keylen |
| 17362 | } |
| 17363 | if (nfields == 3 && !substed) { |
| 17364 | key = field[2] |
| 17365 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 17366 | \$ac_cs_awk_read_file |
| 17367 | next |
| 17368 | } |
| 17369 | } |
| 17370 | print line |
| 17371 | } |
| 17372 | \$ac_cs_awk_pipe_fini |
| 17373 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17374 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17376 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17377 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17378 | else |
| 17379 | cat |
| 17380 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 17381 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 17382 | $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] | 17383 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17384 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17385 | |
| 17386 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17387 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17388 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17389 | # (actually we leave an empty line to preserve line numbers). |
| 17390 | if test "x$srcdir" = x.; then |
| 17391 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17392 | s/:*\$(srcdir):*/:/ |
| 17393 | s/:*\${srcdir}:*/:/ |
| 17394 | s/:*@srcdir@:*/:/ |
| 17395 | s/^\([^=]*=[ ]*\):*/\1/ |
| 17396 | s/:*$// |
| 17397 | s/^[^=]*=[ ]*$// |
| 17398 | }' |
| 17399 | fi |
| 17400 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17401 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17402 | fi # test -n "$CONFIG_FILES" |
| 17403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17404 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17405 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 17406 | shift |
| 17407 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17408 | do |
| 17409 | case $ac_tag in |
| 17410 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17411 | esac |
| 17412 | case $ac_mode$ac_tag in |
| 17413 | :[FHL]*:*);; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17414 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 17415 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17416 | { (exit 1); exit 1; }; };; |
| 17417 | :[FH]-) ac_tag=-:-;; |
| 17418 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17419 | esac |
| 17420 | ac_save_IFS=$IFS |
| 17421 | IFS=: |
| 17422 | set x $ac_tag |
| 17423 | IFS=$ac_save_IFS |
| 17424 | shift |
| 17425 | ac_file=$1 |
| 17426 | shift |
| 17427 | |
| 17428 | case $ac_mode in |
| 17429 | :L) ac_source=$1;; |
| 17430 | :[FH]) |
| 17431 | ac_file_inputs= |
| 17432 | for ac_f |
| 17433 | do |
| 17434 | case $ac_f in |
| 17435 | -) ac_f="$tmp/stdin";; |
| 17436 | *) # Look for the file first in the build tree, then in the source tree |
| 17437 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17438 | # because $ac_f cannot contain `:'. |
| 17439 | test -f "$ac_f" || |
| 17440 | case $ac_f in |
| 17441 | [\\/$]*) false;; |
| 17442 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17443 | esac || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17444 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 17445 | $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] | 17446 | { (exit 1); exit 1; }; };; |
| 17447 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17448 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17449 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17450 | done |
| 17451 | |
| 17452 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17453 | # use $as_me), people would be surprised to read: |
| 17454 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17455 | configure_input='Generated from '` |
| 17456 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17457 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17458 | if test x"$ac_file" != x-; then |
| 17459 | configure_input="$ac_file. $configure_input" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17460 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17461 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17462 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17463 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17464 | case $configure_input in #( |
| 17465 | *\&* | *\|* | *\\* ) |
| 17466 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17467 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17468 | *) ac_sed_conf_input=$configure_input;; |
| 17469 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17470 | |
| 17471 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17472 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 17473 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17474 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17475 | { (exit 1); exit 1; }; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17476 | esac |
| 17477 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17478 | esac |
| 17479 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17480 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17481 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17482 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17483 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17484 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17485 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17486 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17487 | s//\1/ |
| 17488 | q |
| 17489 | } |
| 17490 | /^X\(\/\/\)[^/].*/{ |
| 17491 | s//\1/ |
| 17492 | q |
| 17493 | } |
| 17494 | /^X\(\/\/\)$/{ |
| 17495 | s//\1/ |
| 17496 | q |
| 17497 | } |
| 17498 | /^X\(\/\).*/{ |
| 17499 | s//\1/ |
| 17500 | q |
| 17501 | } |
| 17502 | s/.*/./; q'` |
| 17503 | { as_dir="$ac_dir" |
| 17504 | case $as_dir in #( |
| 17505 | -*) as_dir=./$as_dir;; |
| 17506 | esac |
| 17507 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17508 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17509 | while :; do |
| 17510 | case $as_dir in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17511 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17512 | *) as_qdir=$as_dir;; |
| 17513 | esac |
| 17514 | as_dirs="'$as_qdir' $as_dirs" |
| 17515 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17516 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17517 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 17518 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17519 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17520 | $as_echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17522 | s//\1/ |
| 17523 | q |
| 17524 | } |
| 17525 | /^X\(\/\/\)[^/].*/{ |
| 17526 | s//\1/ |
| 17527 | q |
| 17528 | } |
| 17529 | /^X\(\/\/\)$/{ |
| 17530 | s//\1/ |
| 17531 | q |
| 17532 | } |
| 17533 | /^X\(\/\).*/{ |
| 17534 | s//\1/ |
| 17535 | q |
| 17536 | } |
| 17537 | s/.*/./; q'` |
| 17538 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17539 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17540 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17541 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17542 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17543 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17544 | ac_builddir=. |
| 17545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17546 | case "$ac_dir" in |
| 17547 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17548 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17549 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17550 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17551 | 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] | 17552 | case $ac_top_builddir_sub in |
| 17553 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17554 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17555 | esac ;; |
| 17556 | esac |
| 17557 | ac_abs_top_builddir=$ac_pwd |
| 17558 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17559 | # for backward compatibility: |
| 17560 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17561 | |
| 17562 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17563 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17564 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17565 | ac_top_srcdir=$ac_top_builddir_sub |
| 17566 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17567 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17568 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17569 | ac_top_srcdir=$srcdir |
| 17570 | ac_abs_top_srcdir=$srcdir ;; |
| 17571 | *) # Relative name. |
| 17572 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17573 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17574 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17575 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17576 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17578 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17579 | case $ac_mode in |
| 17580 | :F) |
| 17581 | # |
| 17582 | # CONFIG_FILE |
| 17583 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17584 | |
| 17585 | case $INSTALL in |
| 17586 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17587 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17588 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17589 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17590 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17591 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17592 | # If the template does not know about datarootdir, expand it. |
| 17593 | # FIXME: This hack should be removed a few years after 2.60. |
| 17594 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17595 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17596 | ac_sed_dataroot=' |
| 17597 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17598 | p |
| 17599 | q |
| 17600 | } |
| 17601 | /@datadir@/p |
| 17602 | /@docdir@/p |
| 17603 | /@infodir@/p |
| 17604 | /@localedir@/p |
| 17605 | /@mandir@/p |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17606 | ' |
| 17607 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17608 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17609 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17610 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17611 | $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] | 17612 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17614 | ac_datarootdir_hack=' |
| 17615 | s&@datadir@&$datadir&g |
| 17616 | s&@docdir@&$docdir&g |
| 17617 | s&@infodir@&$infodir&g |
| 17618 | s&@localedir@&$localedir&g |
| 17619 | s&@mandir@&$mandir&g |
| 17620 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17621 | esac |
| 17622 | _ACEOF |
| 17623 | |
| 17624 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17625 | # Shell code in configure.ac might set extrasub. |
| 17626 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17628 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17629 | $extrasub |
| 17630 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17631 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17632 | :t |
| 17633 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17634 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17635 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17636 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17637 | s&@srcdir@&$ac_srcdir&;t t |
| 17638 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17639 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17640 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17641 | s&@builddir@&$ac_builddir&;t t |
| 17642 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17643 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17644 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17645 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17646 | " |
| 17647 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 17648 | if $ac_cs_awk_getline; then |
| 17649 | $AWK -f "$tmp/subs.awk" |
| 17650 | else |
| 17651 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 17652 | fi >$tmp/out \ |
| 17653 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17654 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17655 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17657 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17658 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 17659 | { 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^] | 17660 | { $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] | 17661 | 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^] | 17662 | $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] | 17663 | 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] | 17664 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17665 | rm -f "$tmp/stdin" |
| 17666 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17667 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 17668 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 17669 | esac \ |
| 17670 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 17671 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 17672 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17673 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17674 | |
| 17675 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17676 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 17677 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17678 | ;; |
| 17679 | esac |
| 17680 | |
| 17681 | |
| 17682 | case $ac_file$ac_mode in |
| 17683 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17684 | for ac_file in $CONFIG_FILES; do |
| 17685 | # Support "outfile[:infile[:infile...]]" |
| 17686 | case "$ac_file" in |
| 17687 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 17688 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17689 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 17690 | case "$ac_file" in */Makefile.in) |
| 17691 | # Adjust a relative srcdir. |
| 17692 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 17693 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 17694 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 17695 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 17696 | # In autoconf-2.50 it is called $srcdir. |
| 17697 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 17698 | case "$ac_given_srcdir" in |
| 17699 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 17700 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 17701 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 17702 | esac |
| 17703 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 17704 | rm -f "$ac_dir/POTFILES" |
| 17705 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 17706 | 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] | 17707 | POMAKEFILEDEPS="POTFILES.in" |
| 17708 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17709 | # on $ac_dir but don't depend on user-specified configuration |
| 17710 | # parameters. |
| 17711 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 17712 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17713 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17714 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 17715 | fi |
| 17716 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 17717 | # Hide the ALL_LINGUAS assigment from automake. |
| 17718 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17719 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 17720 | else |
| 17721 | # The set of available languages was given in configure.in. |
| 17722 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17723 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17724 | # Compute POFILES |
| 17725 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 17726 | # Compute UPDATEPOFILES |
| 17727 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 17728 | # Compute DUMMYPOFILES |
| 17729 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 17730 | # Compute GMOFILES |
| 17731 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17732 | case "$ac_given_srcdir" in |
| 17733 | .) srcdirpre= ;; |
| 17734 | *) srcdirpre='$(srcdir)/' ;; |
| 17735 | esac |
| 17736 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17737 | UPDATEPOFILES= |
| 17738 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17739 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17740 | for lang in $ALL_LINGUAS; do |
| 17741 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17742 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 17743 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17744 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17745 | done |
| 17746 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 17747 | # environment variable. |
| 17748 | INST_LINGUAS= |
| 17749 | if test -n "$ALL_LINGUAS"; then |
| 17750 | for presentlang in $ALL_LINGUAS; do |
| 17751 | useit=no |
| 17752 | if test "%UNSET%" != "$LINGUAS"; then |
| 17753 | desiredlanguages="$LINGUAS" |
| 17754 | else |
| 17755 | desiredlanguages="$ALL_LINGUAS" |
| 17756 | fi |
| 17757 | for desiredlang in $desiredlanguages; do |
| 17758 | # Use the presentlang catalog if desiredlang is |
| 17759 | # a. equal to presentlang, or |
| 17760 | # b. a variant of presentlang (because in this case, |
| 17761 | # presentlang can be used as a fallback for messages |
| 17762 | # which are not translated in the desiredlang catalog). |
| 17763 | case "$desiredlang" in |
| 17764 | "$presentlang"*) useit=yes;; |
| 17765 | esac |
| 17766 | done |
| 17767 | if test $useit = yes; then |
| 17768 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 17769 | fi |
| 17770 | done |
| 17771 | fi |
| 17772 | CATALOGS= |
| 17773 | if test -n "$INST_LINGUAS"; then |
| 17774 | for lang in $INST_LINGUAS; do |
| 17775 | CATALOGS="$CATALOGS $lang.gmo" |
| 17776 | done |
| 17777 | fi |
| 17778 | 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] | 17779 | 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] | 17780 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 17781 | if test -f "$f"; then |
| 17782 | case "$f" in |
| 17783 | *.orig | *.bak | *~) ;; |
| 17784 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 17785 | esac |
| 17786 | fi |
| 17787 | done |
| 17788 | fi |
| 17789 | ;; |
| 17790 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17791 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17792 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17793 | esac |
| 17794 | done # for ac_tag |
| 17795 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17796 | |
| 17797 | { (exit 0); exit 0; } |
| 17798 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17799 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17800 | ac_clean_files=$ac_clean_files_save |
| 17801 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17802 | test $ac_write_fail = 0 || |
| 17803 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 17804 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 17805 | { (exit 1); exit 1; }; } |
| 17806 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17807 | |
| 17808 | # configure is writing to config.log, and then calls config.status. |
| 17809 | # config.status does its own redirection, appending to config.log. |
| 17810 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17811 | # by configure, so config.status won't be able to write to it; its |
| 17812 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17813 | # effectively closing config.log, so it can be properly (re)opened and |
| 17814 | # appended to by config.status. When coming back to configure, we |
| 17815 | # need to make the FD available again. |
| 17816 | if test "$no_create" != yes; then |
| 17817 | ac_cs_success=: |
| 17818 | ac_config_status_args= |
| 17819 | test "$silent" = yes && |
| 17820 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17821 | exec 5>/dev/null |
| 17822 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17823 | exec 5>>config.log |
| 17824 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17825 | # would make configure fail if this is the last instruction. |
| 17826 | $ac_cs_success || { (exit 1); exit 1; } |
| 17827 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame^] | 17828 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17829 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17830 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17831 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17832 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 17833 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |