| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for mtree 20040722. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 201 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 202 | if (eval "$as_required") 2>/dev/null; then : |
| 203 | as_have_required=yes |
| 204 | else |
| 205 | as_have_required=no |
| 206 | fi |
| 207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 208 | |
| 209 | else |
| 210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 211 | as_found=false |
| 212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 213 | do |
| 214 | IFS=$as_save_IFS |
| 215 | test -z "$as_dir" && as_dir=. |
| 216 | as_found=: |
| 217 | case $as_dir in #( |
| 218 | /*) |
| 219 | for as_base in sh bash ksh sh5; do |
| 220 | # Try only shells that exist, to save several forks. |
| 221 | as_shell=$as_dir/$as_base |
| 222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | break 2 |
| 227 | fi |
| 228 | fi |
| 229 | done;; |
| 230 | esac |
| 231 | as_found=false |
| 232 | done |
| 233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 235 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 236 | fi; } |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x; then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/null |
| 247 | ENV=/dev/null |
| 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if test x$as_have_required = xno; then : |
| 263 | $as_echo "$0: This script requires a shell more modern than all" |
| 264 | $as_echo "$0: the shells that I found on your system." |
| 265 | if test x${ZSH_VERSION+set} = xset ; then |
| 266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 268 | else |
| 269 | $as_echo "$0: Please tell [email protected] and [email protected] |
| 270 | $0: about your system, including any error possibly output |
| 271 | $0: before this message. Then install a modern shell, or |
| 272 | $0: manually run the script under such a shell if you do |
| 273 | $0: have one." |
| 274 | fi |
| 275 | exit 1 |
| 276 | fi |
| 277 | fi |
| 278 | fi |
| 279 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 280 | export SHELL |
| 281 | # Unset more variables known to interfere with behavior of common tools. |
| 282 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 283 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 284 | |
| 285 | ## --------------------- ## |
| 286 | ## M4sh Shell Functions. ## |
| 287 | ## --------------------- ## |
| 288 | # as_fn_unset VAR |
| 289 | # --------------- |
| 290 | # Portably unset VAR. |
| 291 | as_fn_unset () |
| 292 | { |
| 293 | { eval $1=; unset $1;} |
| 294 | } |
| 295 | as_unset=as_fn_unset |
| 296 | |
| 297 | # as_fn_set_status STATUS |
| 298 | # ----------------------- |
| 299 | # Set $? to STATUS, without forking. |
| 300 | as_fn_set_status () |
| 301 | { |
| 302 | return $1 |
| 303 | } # as_fn_set_status |
| 304 | |
| 305 | # as_fn_exit STATUS |
| 306 | # ----------------- |
| 307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 308 | as_fn_exit () |
| 309 | { |
| 310 | set +e |
| 311 | as_fn_set_status $1 |
| 312 | exit $1 |
| 313 | } # as_fn_exit |
| 314 | |
| 315 | # as_fn_mkdir_p |
| 316 | # ------------- |
| 317 | # Create "$as_dir" as a directory, including parents if necessary. |
| 318 | as_fn_mkdir_p () |
| 319 | { |
| 320 | |
| 321 | case $as_dir in #( |
| 322 | -*) as_dir=./$as_dir;; |
| 323 | esac |
| 324 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 325 | as_dirs= |
| 326 | while :; do |
| 327 | case $as_dir in #( |
| 328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 329 | *) as_qdir=$as_dir;; |
| 330 | esac |
| 331 | as_dirs="'$as_qdir' $as_dirs" |
| 332 | as_dir=`$as_dirname -- "$as_dir" || |
| 333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 335 | X"$as_dir" : 'X\(//\)$' \| \ |
| 336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 337 | $as_echo X"$as_dir" | |
| 338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 339 | s//\1/ |
| 340 | q |
| 341 | } |
| 342 | /^X\(\/\/\)[^/].*/{ |
| 343 | s//\1/ |
| 344 | q |
| 345 | } |
| 346 | /^X\(\/\/\)$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\).*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | s/.*/./; q'` |
| 355 | test -d "$as_dir" && break |
| 356 | done |
| 357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 359 | |
| 360 | |
| 361 | } # as_fn_mkdir_p |
| 362 | |
| 363 | # as_fn_executable_p FILE |
| 364 | # ----------------------- |
| 365 | # Test if FILE is an executable regular file. |
| 366 | as_fn_executable_p () |
| 367 | { |
| 368 | test -f "$1" && test -x "$1" |
| 369 | } # as_fn_executable_p |
| 370 | # as_fn_append VAR VALUE |
| 371 | # ---------------------- |
| 372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 373 | # advantage of any shell optimizations that allow amortized linear growth over |
| 374 | # repeated appends, instead of the typical quadratic growth present in naive |
| 375 | # implementations. |
| 376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 377 | eval 'as_fn_append () |
| 378 | { |
| 379 | eval $1+=\$2 |
| 380 | }' |
| 381 | else |
| 382 | as_fn_append () |
| 383 | { |
| 384 | eval $1=\$$1\$2 |
| 385 | } |
| 386 | fi # as_fn_append |
| 387 | |
| 388 | # as_fn_arith ARG... |
| 389 | # ------------------ |
| 390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 392 | # must be portable across $(()) and expr. |
| 393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 394 | eval 'as_fn_arith () |
| 395 | { |
| 396 | as_val=$(( $* )) |
| 397 | }' |
| 398 | else |
| 399 | as_fn_arith () |
| 400 | { |
| 401 | as_val=`expr "$@" || test $? -eq 1` |
| 402 | } |
| 403 | fi # as_fn_arith |
| 404 | |
| 405 | |
| 406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 407 | # ---------------------------------------- |
| 408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 410 | # script with STATUS, using 1 if that was 0. |
| 411 | as_fn_error () |
| 412 | { |
| 413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 414 | if test "$4"; then |
| 415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 417 | fi |
| 418 | $as_echo "$as_me: error: $2" >&2 |
| 419 | as_fn_exit $as_status |
| 420 | } # as_fn_error |
| 421 | |
| 422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 424 | as_expr=expr |
| 425 | else |
| 426 | as_expr=false |
| 427 | fi |
| 428 | |
| 429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 430 | as_basename=basename |
| 431 | else |
| 432 | as_basename=false |
| 433 | fi |
| 434 | |
| 435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 436 | as_dirname=dirname |
| 437 | else |
| 438 | as_dirname=false |
| 439 | fi |
| 440 | |
| 441 | as_me=`$as_basename -- "$0" || |
| 442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 443 | X"$0" : 'X\(//\)$' \| \ |
| 444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 445 | $as_echo X/"$0" | |
| 446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 447 | s//\1/ |
| 448 | q |
| 449 | } |
| 450 | /^X\/\(\/\/\)$/{ |
| 451 | s//\1/ |
| 452 | q |
| 453 | } |
| 454 | /^X\/\(\/\).*/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | s/.*/./; q'` |
| 459 | |
| 460 | # Avoid depending upon Character Ranges. |
| 461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 464 | as_cr_digits='0123456789' |
| 465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 466 | |
| 467 | |
| 468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 473 | sed -n ' |
| 474 | p |
| 475 | /[$]LINENO/= |
| 476 | ' <$as_myself | |
| 477 | sed ' |
| 478 | s/[$]LINENO.*/&-/ |
| 479 | t lineno |
| 480 | b |
| 481 | :lineno |
| 482 | N |
| 483 | :loop |
| 484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 485 | t loop |
| 486 | s/-\n.*// |
| 487 | ' >$as_me.lineno && |
| 488 | chmod +x "$as_me.lineno" || |
| 489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 490 | |
| 491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 492 | # already done that, so ensure we don't try to do so again and fall |
| 493 | # in an infinite loop. This has already happened in practice. |
| 494 | _as_can_reexec=no; export _as_can_reexec |
| 495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 496 | # (the dirname of $[0] is not the place where we might find the |
| 497 | # original and so on. Autoconf is especially sensitive to this). |
| 498 | . "./$as_me.lineno" |
| 499 | # Exit status is that of the last command. |
| 500 | exit |
| 501 | } |
| 502 | |
| 503 | ECHO_C= ECHO_N= ECHO_T= |
| 504 | case `echo -n x` in #((((( |
| 505 | -n*) |
| 506 | case `echo 'xy\c'` in |
| 507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 508 | xy) ECHO_C='\c';; |
| 509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 510 | ECHO_T=' ';; |
| 511 | esac;; |
| 512 | *) |
| 513 | ECHO_N='-n';; |
| 514 | esac |
| 515 | |
| 516 | rm -f conf$$ conf$$.exe conf$$.file |
| 517 | if test -d conf$$.dir; then |
| 518 | rm -f conf$$.dir/conf$$.file |
| 519 | else |
| 520 | rm -f conf$$.dir |
| 521 | mkdir conf$$.dir 2>/dev/null |
| 522 | fi |
| 523 | if (echo >conf$$.file) 2>/dev/null; then |
| 524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 525 | as_ln_s='ln -s' |
| 526 | # ... but there are two gotchas: |
| 527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 529 | # In both cases, we have to default to `cp -pR'. |
| 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 531 | as_ln_s='cp -pR' |
| 532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s=ln |
| 534 | else |
| 535 | as_ln_s='cp -pR' |
| 536 | fi |
| 537 | else |
| 538 | as_ln_s='cp -pR' |
| 539 | fi |
| 540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 541 | rmdir conf$$.dir 2>/dev/null |
| 542 | |
| 543 | if mkdir -p . 2>/dev/null; then |
| 544 | as_mkdir_p='mkdir -p "$as_dir"' |
| 545 | else |
| 546 | test -d ./-p && rmdir ./-p |
| 547 | as_mkdir_p=false |
| 548 | fi |
| 549 | |
| 550 | as_test_x='test -x' |
| 551 | as_executable_p=as_fn_executable_p |
| 552 | |
| 553 | # Sed expression to map a string onto a valid CPP name. |
| 554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | # Sed expression to map a string onto a valid variable name. |
| 557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 558 | |
| 559 | |
| 560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 561 | exec 6>&1 |
| 562 | |
| 563 | # Name of the host. |
| 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 565 | # so uname gets run too. |
| 566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 567 | |
| 568 | # |
| 569 | # Initializations. |
| 570 | # |
| 571 | ac_default_prefix=/usr/local |
| 572 | ac_clean_files= |
| 573 | ac_config_libobj_dir=. |
| 574 | LIBOBJS= |
| 575 | cross_compiling=no |
| 576 | subdirs= |
| 577 | MFLAGS= |
| 578 | MAKEFLAGS= |
| 579 | |
| 580 | # Identity of this package. |
| 581 | PACKAGE_NAME='mtree' |
| 582 | PACKAGE_TARNAME='mtree' |
| 583 | PACKAGE_VERSION='20040722' |
| 584 | PACKAGE_STRING='mtree 20040722' |
| 585 | PACKAGE_BUGREPORT='[email protected]' |
| 586 | PACKAGE_URL='' |
| 587 | |
| 588 | ac_unique_file="mtree.c" |
| 589 | # Factoring default headers for most tests. |
| 590 | ac_includes_default="\ |
| 591 | #include <stdio.h> |
| 592 | #ifdef HAVE_SYS_TYPES_H |
| 593 | # include <sys/types.h> |
| 594 | #endif |
| 595 | #ifdef HAVE_SYS_STAT_H |
| 596 | # include <sys/stat.h> |
| 597 | #endif |
| 598 | #ifdef STDC_HEADERS |
| 599 | # include <stdlib.h> |
| 600 | # include <stddef.h> |
| 601 | #else |
| 602 | # ifdef HAVE_STDLIB_H |
| 603 | # include <stdlib.h> |
| 604 | # endif |
| 605 | #endif |
| 606 | #ifdef HAVE_STRING_H |
| 607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 608 | # include <memory.h> |
| 609 | # endif |
| 610 | # include <string.h> |
| 611 | #endif |
| 612 | #ifdef HAVE_STRINGS_H |
| 613 | # include <strings.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_INTTYPES_H |
| 616 | # include <inttypes.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_STDINT_H |
| 619 | # include <stdint.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_UNISTD_H |
| 622 | # include <unistd.h> |
| 623 | #endif" |
| 624 | |
| 625 | ac_subst_vars='LTLIBOBJS |
| 626 | LIBOBJS |
| 627 | ALLOCA |
| 628 | EGREP |
| 629 | GREP |
| 630 | CPP |
| 631 | INSTALL_DATA |
| 632 | INSTALL_SCRIPT |
| 633 | INSTALL_PROGRAM |
| 634 | OBJEXT |
| 635 | EXEEXT |
| 636 | ac_ct_CC |
| 637 | CPPFLAGS |
| 638 | LDFLAGS |
| 639 | CFLAGS |
| 640 | CC |
| 641 | target_alias |
| 642 | host_alias |
| 643 | build_alias |
| 644 | LIBS |
| 645 | ECHO_T |
| 646 | ECHO_N |
| 647 | ECHO_C |
| 648 | DEFS |
| 649 | mandir |
| 650 | localedir |
| 651 | libdir |
| 652 | psdir |
| 653 | pdfdir |
| 654 | dvidir |
| 655 | htmldir |
| 656 | infodir |
| 657 | docdir |
| 658 | oldincludedir |
| 659 | includedir |
| 660 | localstatedir |
| 661 | sharedstatedir |
| 662 | sysconfdir |
| 663 | datadir |
| 664 | datarootdir |
| 665 | libexecdir |
| 666 | sbindir |
| 667 | bindir |
| 668 | program_transform_name |
| 669 | prefix |
| 670 | exec_prefix |
| 671 | PACKAGE_URL |
| 672 | PACKAGE_BUGREPORT |
| 673 | PACKAGE_STRING |
| 674 | PACKAGE_VERSION |
| 675 | PACKAGE_TARNAME |
| 676 | PACKAGE_NAME |
| 677 | PATH_SEPARATOR |
| 678 | SHELL' |
| 679 | ac_subst_files='' |
| 680 | ac_user_opts=' |
| 681 | enable_option_checking |
| 682 | ' |
| 683 | ac_precious_vars='build_alias |
| 684 | host_alias |
| 685 | target_alias |
| 686 | CC |
| 687 | CFLAGS |
| 688 | LDFLAGS |
| 689 | LIBS |
| 690 | CPPFLAGS |
| 691 | CPP' |
| 692 | |
| 693 | |
| 694 | # Initialize some variables set by options. |
| 695 | ac_init_help= |
| 696 | ac_init_version=false |
| 697 | ac_unrecognized_opts= |
| 698 | ac_unrecognized_sep= |
| 699 | # The variables have the same names as the options, with |
| 700 | # dashes changed to underlines. |
| 701 | cache_file=/dev/null |
| 702 | exec_prefix=NONE |
| 703 | no_create= |
| 704 | no_recursion= |
| 705 | prefix=NONE |
| 706 | program_prefix=NONE |
| 707 | program_suffix=NONE |
| 708 | program_transform_name=s,x,x, |
| 709 | silent= |
| 710 | site= |
| 711 | srcdir= |
| 712 | verbose= |
| 713 | x_includes=NONE |
| 714 | x_libraries=NONE |
| 715 | |
| 716 | # Installation directory options. |
| 717 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 718 | # and all the variables that are supposed to be based on exec_prefix |
| 719 | # by default will actually change. |
| 720 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 721 | # (The list follows the same order as the GNU Coding Standards.) |
| 722 | bindir='${exec_prefix}/bin' |
| 723 | sbindir='${exec_prefix}/sbin' |
| 724 | libexecdir='${exec_prefix}/libexec' |
| 725 | datarootdir='${prefix}/share' |
| 726 | datadir='${datarootdir}' |
| 727 | sysconfdir='${prefix}/etc' |
| 728 | sharedstatedir='${prefix}/com' |
| 729 | localstatedir='${prefix}/var' |
| 730 | includedir='${prefix}/include' |
| 731 | oldincludedir='/usr/include' |
| 732 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 733 | infodir='${datarootdir}/info' |
| 734 | htmldir='${docdir}' |
| 735 | dvidir='${docdir}' |
| 736 | pdfdir='${docdir}' |
| 737 | psdir='${docdir}' |
| 738 | libdir='${exec_prefix}/lib' |
| 739 | localedir='${datarootdir}/locale' |
| 740 | mandir='${datarootdir}/man' |
| 741 | |
| 742 | ac_prev= |
| 743 | ac_dashdash= |
| 744 | for ac_option |
| 745 | do |
| 746 | # If the previous option needs an argument, assign it. |
| 747 | if test -n "$ac_prev"; then |
| 748 | eval $ac_prev=\$ac_option |
| 749 | ac_prev= |
| 750 | continue |
| 751 | fi |
| 752 | |
| 753 | case $ac_option in |
| 754 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 755 | *=) ac_optarg= ;; |
| 756 | *) ac_optarg=yes ;; |
| 757 | esac |
| 758 | |
| 759 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 760 | |
| 761 | case $ac_dashdash$ac_option in |
| 762 | --) |
| 763 | ac_dashdash=yes ;; |
| 764 | |
| 765 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 766 | ac_prev=bindir ;; |
| 767 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 768 | bindir=$ac_optarg ;; |
| 769 | |
| 770 | -build | --build | --buil | --bui | --bu) |
| 771 | ac_prev=build_alias ;; |
| 772 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 773 | build_alias=$ac_optarg ;; |
| 774 | |
| 775 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 776 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 777 | ac_prev=cache_file ;; |
| 778 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 779 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 780 | cache_file=$ac_optarg ;; |
| 781 | |
| 782 | --config-cache | -C) |
| 783 | cache_file=config.cache ;; |
| 784 | |
| 785 | -datadir | --datadir | --datadi | --datad) |
| 786 | ac_prev=datadir ;; |
| 787 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 788 | datadir=$ac_optarg ;; |
| 789 | |
| 790 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 791 | | --dataroo | --dataro | --datar) |
| 792 | ac_prev=datarootdir ;; |
| 793 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 794 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 795 | datarootdir=$ac_optarg ;; |
| 796 | |
| 797 | -disable-* | --disable-*) |
| 798 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 799 | # Reject names that are not valid shell variable names. |
| 800 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 801 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 802 | ac_useropt_orig=$ac_useropt |
| 803 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 804 | case $ac_user_opts in |
| 805 | *" |
| 806 | "enable_$ac_useropt" |
| 807 | "*) ;; |
| 808 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 809 | ac_unrecognized_sep=', ';; |
| 810 | esac |
| 811 | eval enable_$ac_useropt=no ;; |
| 812 | |
| 813 | -docdir | --docdir | --docdi | --doc | --do) |
| 814 | ac_prev=docdir ;; |
| 815 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 816 | docdir=$ac_optarg ;; |
| 817 | |
| 818 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 819 | ac_prev=dvidir ;; |
| 820 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 821 | dvidir=$ac_optarg ;; |
| 822 | |
| 823 | -enable-* | --enable-*) |
| 824 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 825 | # Reject names that are not valid shell variable names. |
| 826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 827 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 828 | ac_useropt_orig=$ac_useropt |
| 829 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 830 | case $ac_user_opts in |
| 831 | *" |
| 832 | "enable_$ac_useropt" |
| 833 | "*) ;; |
| 834 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 835 | ac_unrecognized_sep=', ';; |
| 836 | esac |
| 837 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 838 | |
| 839 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 840 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 841 | | --exec | --exe | --ex) |
| 842 | ac_prev=exec_prefix ;; |
| 843 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 844 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 845 | | --exec=* | --exe=* | --ex=*) |
| 846 | exec_prefix=$ac_optarg ;; |
| 847 | |
| 848 | -gas | --gas | --ga | --g) |
| 849 | # Obsolete; use --with-gas. |
| 850 | with_gas=yes ;; |
| 851 | |
| 852 | -help | --help | --hel | --he | -h) |
| 853 | ac_init_help=long ;; |
| 854 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 855 | ac_init_help=recursive ;; |
| 856 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 857 | ac_init_help=short ;; |
| 858 | |
| 859 | -host | --host | --hos | --ho) |
| 860 | ac_prev=host_alias ;; |
| 861 | -host=* | --host=* | --hos=* | --ho=*) |
| 862 | host_alias=$ac_optarg ;; |
| 863 | |
| 864 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 865 | ac_prev=htmldir ;; |
| 866 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 867 | | --ht=*) |
| 868 | htmldir=$ac_optarg ;; |
| 869 | |
| 870 | -includedir | --includedir | --includedi | --included | --include \ |
| 871 | | --includ | --inclu | --incl | --inc) |
| 872 | ac_prev=includedir ;; |
| 873 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 874 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 875 | includedir=$ac_optarg ;; |
| 876 | |
| 877 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 878 | ac_prev=infodir ;; |
| 879 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 880 | infodir=$ac_optarg ;; |
| 881 | |
| 882 | -libdir | --libdir | --libdi | --libd) |
| 883 | ac_prev=libdir ;; |
| 884 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 885 | libdir=$ac_optarg ;; |
| 886 | |
| 887 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 888 | | --libexe | --libex | --libe) |
| 889 | ac_prev=libexecdir ;; |
| 890 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 891 | | --libexe=* | --libex=* | --libe=*) |
| 892 | libexecdir=$ac_optarg ;; |
| 893 | |
| 894 | -localedir | --localedir | --localedi | --localed | --locale) |
| 895 | ac_prev=localedir ;; |
| 896 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 897 | localedir=$ac_optarg ;; |
| 898 | |
| 899 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 900 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 901 | ac_prev=localstatedir ;; |
| 902 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 903 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 904 | localstatedir=$ac_optarg ;; |
| 905 | |
| 906 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 907 | ac_prev=mandir ;; |
| 908 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 909 | mandir=$ac_optarg ;; |
| 910 | |
| 911 | -nfp | --nfp | --nf) |
| 912 | # Obsolete; use --without-fp. |
| 913 | with_fp=no ;; |
| 914 | |
| 915 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 916 | | --no-cr | --no-c | -n) |
| 917 | no_create=yes ;; |
| 918 | |
| 919 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 920 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 921 | no_recursion=yes ;; |
| 922 | |
| 923 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 924 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 925 | | --oldin | --oldi | --old | --ol | --o) |
| 926 | ac_prev=oldincludedir ;; |
| 927 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 928 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 929 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 930 | oldincludedir=$ac_optarg ;; |
| 931 | |
| 932 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 933 | ac_prev=prefix ;; |
| 934 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 935 | prefix=$ac_optarg ;; |
| 936 | |
| 937 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 938 | | --program-pre | --program-pr | --program-p) |
| 939 | ac_prev=program_prefix ;; |
| 940 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 941 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 942 | program_prefix=$ac_optarg ;; |
| 943 | |
| 944 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 945 | | --program-suf | --program-su | --program-s) |
| 946 | ac_prev=program_suffix ;; |
| 947 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 948 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 949 | program_suffix=$ac_optarg ;; |
| 950 | |
| 951 | -program-transform-name | --program-transform-name \ |
| 952 | | --program-transform-nam | --program-transform-na \ |
| 953 | | --program-transform-n | --program-transform- \ |
| 954 | | --program-transform | --program-transfor \ |
| 955 | | --program-transfo | --program-transf \ |
| 956 | | --program-trans | --program-tran \ |
| 957 | | --progr-tra | --program-tr | --program-t) |
| 958 | ac_prev=program_transform_name ;; |
| 959 | -program-transform-name=* | --program-transform-name=* \ |
| 960 | | --program-transform-nam=* | --program-transform-na=* \ |
| 961 | | --program-transform-n=* | --program-transform-=* \ |
| 962 | | --program-transform=* | --program-transfor=* \ |
| 963 | | --program-transfo=* | --program-transf=* \ |
| 964 | | --program-trans=* | --program-tran=* \ |
| 965 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 966 | program_transform_name=$ac_optarg ;; |
| 967 | |
| 968 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 969 | ac_prev=pdfdir ;; |
| 970 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 971 | pdfdir=$ac_optarg ;; |
| 972 | |
| 973 | -psdir | --psdir | --psdi | --psd | --ps) |
| 974 | ac_prev=psdir ;; |
| 975 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 976 | psdir=$ac_optarg ;; |
| 977 | |
| 978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 979 | | -silent | --silent | --silen | --sile | --sil) |
| 980 | silent=yes ;; |
| 981 | |
| 982 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 983 | ac_prev=sbindir ;; |
| 984 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 985 | | --sbi=* | --sb=*) |
| 986 | sbindir=$ac_optarg ;; |
| 987 | |
| 988 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 989 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 990 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 991 | | --sha | --sh) |
| 992 | ac_prev=sharedstatedir ;; |
| 993 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 994 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 995 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 996 | | --sha=* | --sh=*) |
| 997 | sharedstatedir=$ac_optarg ;; |
| 998 | |
| 999 | -site | --site | --sit) |
| 1000 | ac_prev=site ;; |
| 1001 | -site=* | --site=* | --sit=*) |
| 1002 | site=$ac_optarg ;; |
| 1003 | |
| 1004 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1005 | ac_prev=srcdir ;; |
| 1006 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1007 | srcdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1010 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1011 | ac_prev=sysconfdir ;; |
| 1012 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1013 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1014 | sysconfdir=$ac_optarg ;; |
| 1015 | |
| 1016 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1017 | ac_prev=target_alias ;; |
| 1018 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1019 | target_alias=$ac_optarg ;; |
| 1020 | |
| 1021 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1022 | verbose=yes ;; |
| 1023 | |
| 1024 | -version | --version | --versio | --versi | --vers | -V) |
| 1025 | ac_init_version=: ;; |
| 1026 | |
| 1027 | -with-* | --with-*) |
| 1028 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1029 | # Reject names that are not valid shell variable names. |
| 1030 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1031 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1032 | ac_useropt_orig=$ac_useropt |
| 1033 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1034 | case $ac_user_opts in |
| 1035 | *" |
| 1036 | "with_$ac_useropt" |
| 1037 | "*) ;; |
| 1038 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1039 | ac_unrecognized_sep=', ';; |
| 1040 | esac |
| 1041 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1042 | |
| 1043 | -without-* | --without-*) |
| 1044 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1045 | # Reject names that are not valid shell variable names. |
| 1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1047 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1048 | ac_useropt_orig=$ac_useropt |
| 1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1050 | case $ac_user_opts in |
| 1051 | *" |
| 1052 | "with_$ac_useropt" |
| 1053 | "*) ;; |
| 1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1055 | ac_unrecognized_sep=', ';; |
| 1056 | esac |
| 1057 | eval with_$ac_useropt=no ;; |
| 1058 | |
| 1059 | --x) |
| 1060 | # Obsolete; use --with-x. |
| 1061 | with_x=yes ;; |
| 1062 | |
| 1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1064 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1065 | ac_prev=x_includes ;; |
| 1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1068 | x_includes=$ac_optarg ;; |
| 1069 | |
| 1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1072 | ac_prev=x_libraries ;; |
| 1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1075 | x_libraries=$ac_optarg ;; |
| 1076 | |
| 1077 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1078 | Try \`$0 --help' for more information" |
| 1079 | ;; |
| 1080 | |
| 1081 | *=*) |
| 1082 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1083 | # Reject names that are not valid shell variable names. |
| 1084 | case $ac_envvar in #( |
| 1085 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1086 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1087 | esac |
| 1088 | eval $ac_envvar=\$ac_optarg |
| 1089 | export $ac_envvar ;; |
| 1090 | |
| 1091 | *) |
| 1092 | # FIXME: should be removed in autoconf 3.0. |
| 1093 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1095 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1096 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1097 | ;; |
| 1098 | |
| 1099 | esac |
| 1100 | done |
| 1101 | |
| 1102 | if test -n "$ac_prev"; then |
| 1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1104 | as_fn_error $? "missing argument to $ac_option" |
| 1105 | fi |
| 1106 | |
| 1107 | if test -n "$ac_unrecognized_opts"; then |
| 1108 | case $enable_option_checking in |
| 1109 | no) ;; |
| 1110 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1111 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1112 | esac |
| 1113 | fi |
| 1114 | |
| 1115 | # Check all directory arguments for consistency. |
| 1116 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1117 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1118 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1119 | libdir localedir mandir |
| 1120 | do |
| 1121 | eval ac_val=\$$ac_var |
| 1122 | # Remove trailing slashes. |
| 1123 | case $ac_val in |
| 1124 | */ ) |
| 1125 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1126 | eval $ac_var=\$ac_val;; |
| 1127 | esac |
| 1128 | # Be sure to have absolute directory names. |
| 1129 | case $ac_val in |
| 1130 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1131 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1132 | esac |
| 1133 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1134 | done |
| 1135 | |
| 1136 | # There might be people who depend on the old broken behavior: `$host' |
| 1137 | # used to hold the argument of --host etc. |
| 1138 | # FIXME: To remove some day. |
| 1139 | build=$build_alias |
| 1140 | host=$host_alias |
| 1141 | target=$target_alias |
| 1142 | |
| 1143 | # FIXME: To remove some day. |
| 1144 | if test "x$host_alias" != x; then |
| 1145 | if test "x$build_alias" = x; then |
| 1146 | cross_compiling=maybe |
| 1147 | elif test "x$build_alias" != "x$host_alias"; then |
| 1148 | cross_compiling=yes |
| 1149 | fi |
| 1150 | fi |
| 1151 | |
| 1152 | ac_tool_prefix= |
| 1153 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1154 | |
| 1155 | test "$silent" = yes && exec 6>/dev/null |
| 1156 | |
| 1157 | |
| 1158 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1159 | ac_ls_di=`ls -di .` && |
| 1160 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1161 | as_fn_error $? "working directory cannot be determined" |
| 1162 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1163 | as_fn_error $? "pwd does not report name of working directory" |
| 1164 | |
| 1165 | |
| 1166 | # Find the source files, if location was not specified. |
| 1167 | if test -z "$srcdir"; then |
| 1168 | ac_srcdir_defaulted=yes |
| 1169 | # Try the directory containing this script, then the parent directory. |
| 1170 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1171 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1172 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1173 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1174 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1175 | $as_echo X"$as_myself" | |
| 1176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1177 | s//\1/ |
| 1178 | q |
| 1179 | } |
| 1180 | /^X\(\/\/\)[^/].*/{ |
| 1181 | s//\1/ |
| 1182 | q |
| 1183 | } |
| 1184 | /^X\(\/\/\)$/{ |
| 1185 | s//\1/ |
| 1186 | q |
| 1187 | } |
| 1188 | /^X\(\/\).*/{ |
| 1189 | s//\1/ |
| 1190 | q |
| 1191 | } |
| 1192 | s/.*/./; q'` |
| 1193 | srcdir=$ac_confdir |
| 1194 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1195 | srcdir=.. |
| 1196 | fi |
| 1197 | else |
| 1198 | ac_srcdir_defaulted=no |
| 1199 | fi |
| 1200 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1201 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1202 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1203 | fi |
| 1204 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1205 | ac_abs_confdir=`( |
| 1206 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1207 | pwd)` |
| 1208 | # When building in place, set srcdir=. |
| 1209 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1210 | srcdir=. |
| 1211 | fi |
| 1212 | # Remove unnecessary trailing slashes from srcdir. |
| 1213 | # Double slashes in file names in object file debugging info |
| 1214 | # mess up M-x gdb in Emacs. |
| 1215 | case $srcdir in |
| 1216 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1217 | esac |
| 1218 | for ac_var in $ac_precious_vars; do |
| 1219 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1220 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1221 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1222 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1223 | done |
| 1224 | |
| 1225 | # |
| 1226 | # Report the --help message. |
| 1227 | # |
| 1228 | if test "$ac_init_help" = "long"; then |
| 1229 | # Omit some internal or obsolete options to make the list less imposing. |
| 1230 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1231 | cat <<_ACEOF |
| 1232 | \`configure' configures mtree 20040722 to adapt to many kinds of systems. |
| 1233 | |
| 1234 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1235 | |
| 1236 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1237 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1238 | |
| 1239 | Defaults for the options are specified in brackets. |
| 1240 | |
| 1241 | Configuration: |
| 1242 | -h, --help display this help and exit |
| 1243 | --help=short display options specific to this package |
| 1244 | --help=recursive display the short help of all the included packages |
| 1245 | -V, --version display version information and exit |
| 1246 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1247 | --cache-file=FILE cache test results in FILE [disabled] |
| 1248 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1249 | -n, --no-create do not create output files |
| 1250 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1251 | |
| 1252 | Installation directories: |
| 1253 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1254 | [$ac_default_prefix] |
| 1255 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1256 | [PREFIX] |
| 1257 | |
| 1258 | By default, \`make install' will install all the files in |
| 1259 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1260 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1261 | for instance \`--prefix=\$HOME'. |
| 1262 | |
| 1263 | For better control, use the options below. |
| 1264 | |
| 1265 | Fine tuning of the installation directories: |
| 1266 | --bindir=DIR user executables [EPREFIX/bin] |
| 1267 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1268 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1269 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1270 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1271 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1272 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1273 | --includedir=DIR C header files [PREFIX/include] |
| 1274 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1275 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1276 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1277 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1278 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1279 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1280 | --docdir=DIR documentation root [DATAROOTDIR/doc/mtree] |
| 1281 | --htmldir=DIR html documentation [DOCDIR] |
| 1282 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1283 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1284 | --psdir=DIR ps documentation [DOCDIR] |
| 1285 | _ACEOF |
| 1286 | |
| 1287 | cat <<\_ACEOF |
| 1288 | _ACEOF |
| 1289 | fi |
| 1290 | |
| 1291 | if test -n "$ac_init_help"; then |
| 1292 | case $ac_init_help in |
| 1293 | short | recursive ) echo "Configuration of mtree 20040722:";; |
| 1294 | esac |
| 1295 | cat <<\_ACEOF |
| 1296 | |
| 1297 | Some influential environment variables: |
| 1298 | CC C compiler command |
| 1299 | CFLAGS C compiler flags |
| 1300 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1301 | nonstandard directory <lib dir> |
| 1302 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1303 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1304 | you have headers in a nonstandard directory <include dir> |
| 1305 | CPP C preprocessor |
| 1306 | |
| 1307 | Use these variables to override the choices made by `configure' or to help |
| 1308 | it to find libraries and programs with nonstandard names/locations. |
| 1309 | |
| 1310 | Report bugs to <[email protected]>. |
| 1311 | _ACEOF |
| 1312 | ac_status=$? |
| 1313 | fi |
| 1314 | |
| 1315 | if test "$ac_init_help" = "recursive"; then |
| 1316 | # If there are subdirs, report their specific --help. |
| 1317 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1318 | test -d "$ac_dir" || |
| 1319 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1320 | continue |
| 1321 | ac_builddir=. |
| 1322 | |
| 1323 | case "$ac_dir" in |
| 1324 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1325 | *) |
| 1326 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1327 | # A ".." for each directory in $ac_dir_suffix. |
| 1328 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1329 | case $ac_top_builddir_sub in |
| 1330 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1331 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1332 | esac ;; |
| 1333 | esac |
| 1334 | ac_abs_top_builddir=$ac_pwd |
| 1335 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1336 | # for backward compatibility: |
| 1337 | ac_top_builddir=$ac_top_build_prefix |
| 1338 | |
| 1339 | case $srcdir in |
| 1340 | .) # We are building in place. |
| 1341 | ac_srcdir=. |
| 1342 | ac_top_srcdir=$ac_top_builddir_sub |
| 1343 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1344 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1345 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1346 | ac_top_srcdir=$srcdir |
| 1347 | ac_abs_top_srcdir=$srcdir ;; |
| 1348 | *) # Relative name. |
| 1349 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1350 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1351 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1352 | esac |
| 1353 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1354 | |
| 1355 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1356 | # Check for guested configure. |
| 1357 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1358 | echo && |
| 1359 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1360 | elif test -f "$ac_srcdir/configure"; then |
| 1361 | echo && |
| 1362 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1363 | else |
| 1364 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1365 | fi || ac_status=$? |
| 1366 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1367 | done |
| 1368 | fi |
| 1369 | |
| 1370 | test -n "$ac_init_help" && exit $ac_status |
| 1371 | if $ac_init_version; then |
| 1372 | cat <<\_ACEOF |
| 1373 | mtree configure 20040722 |
| 1374 | generated by GNU Autoconf 2.69 |
| 1375 | |
| 1376 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1377 | This configure script is free software; the Free Software Foundation |
| 1378 | gives unlimited permission to copy, distribute and modify it. |
| 1379 | _ACEOF |
| 1380 | exit |
| 1381 | fi |
| 1382 | |
| 1383 | ## ------------------------ ## |
| 1384 | ## Autoconf initialization. ## |
| 1385 | ## ------------------------ ## |
| 1386 | |
| 1387 | # ac_fn_c_try_compile LINENO |
| 1388 | # -------------------------- |
| 1389 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1390 | ac_fn_c_try_compile () |
| 1391 | { |
| 1392 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1393 | rm -f conftest.$ac_objext |
| 1394 | if { { ac_try="$ac_compile" |
| 1395 | case "(($ac_try" in |
| 1396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1397 | *) ac_try_echo=$ac_try;; |
| 1398 | esac |
| 1399 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1400 | $as_echo "$ac_try_echo"; } >&5 |
| 1401 | (eval "$ac_compile") 2>conftest.err |
| 1402 | ac_status=$? |
| 1403 | if test -s conftest.err; then |
| 1404 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1405 | cat conftest.er1 >&5 |
| 1406 | mv -f conftest.er1 conftest.err |
| 1407 | fi |
| 1408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1409 | test $ac_status = 0; } && { |
| 1410 | test -z "$ac_c_werror_flag" || |
| 1411 | test ! -s conftest.err |
| 1412 | } && test -s conftest.$ac_objext; then : |
| 1413 | ac_retval=0 |
| 1414 | else |
| 1415 | $as_echo "$as_me: failed program was:" >&5 |
| 1416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1417 | |
| 1418 | ac_retval=1 |
| 1419 | fi |
| 1420 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1421 | as_fn_set_status $ac_retval |
| 1422 | |
| 1423 | } # ac_fn_c_try_compile |
| 1424 | |
| 1425 | # ac_fn_c_try_link LINENO |
| 1426 | # ----------------------- |
| 1427 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1428 | ac_fn_c_try_link () |
| 1429 | { |
| 1430 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1432 | if { { ac_try="$ac_link" |
| 1433 | case "(($ac_try" in |
| 1434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1435 | *) ac_try_echo=$ac_try;; |
| 1436 | esac |
| 1437 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1438 | $as_echo "$ac_try_echo"; } >&5 |
| 1439 | (eval "$ac_link") 2>conftest.err |
| 1440 | ac_status=$? |
| 1441 | if test -s conftest.err; then |
| 1442 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1443 | cat conftest.er1 >&5 |
| 1444 | mv -f conftest.er1 conftest.err |
| 1445 | fi |
| 1446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1447 | test $ac_status = 0; } && { |
| 1448 | test -z "$ac_c_werror_flag" || |
| 1449 | test ! -s conftest.err |
| 1450 | } && test -s conftest$ac_exeext && { |
| 1451 | test "$cross_compiling" = yes || |
| 1452 | test -x conftest$ac_exeext |
| 1453 | }; then : |
| 1454 | ac_retval=0 |
| 1455 | else |
| 1456 | $as_echo "$as_me: failed program was:" >&5 |
| 1457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1458 | |
| 1459 | ac_retval=1 |
| 1460 | fi |
| 1461 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1462 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1463 | # interfere with the next link command; also delete a directory that is |
| 1464 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1465 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1466 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1467 | as_fn_set_status $ac_retval |
| 1468 | |
| 1469 | } # ac_fn_c_try_link |
| 1470 | |
| 1471 | # ac_fn_c_try_cpp LINENO |
| 1472 | # ---------------------- |
| 1473 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1474 | ac_fn_c_try_cpp () |
| 1475 | { |
| 1476 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1477 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1478 | case "(($ac_try" in |
| 1479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1480 | *) ac_try_echo=$ac_try;; |
| 1481 | esac |
| 1482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1483 | $as_echo "$ac_try_echo"; } >&5 |
| 1484 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1485 | ac_status=$? |
| 1486 | if test -s conftest.err; then |
| 1487 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1488 | cat conftest.er1 >&5 |
| 1489 | mv -f conftest.er1 conftest.err |
| 1490 | fi |
| 1491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1492 | test $ac_status = 0; } > conftest.i && { |
| 1493 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1494 | test ! -s conftest.err |
| 1495 | }; then : |
| 1496 | ac_retval=0 |
| 1497 | else |
| 1498 | $as_echo "$as_me: failed program was:" >&5 |
| 1499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1500 | |
| 1501 | ac_retval=1 |
| 1502 | fi |
| 1503 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1504 | as_fn_set_status $ac_retval |
| 1505 | |
| 1506 | } # ac_fn_c_try_cpp |
| 1507 | |
| 1508 | # ac_fn_c_try_run LINENO |
| 1509 | # ---------------------- |
| 1510 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1511 | # that executables *can* be run. |
| 1512 | ac_fn_c_try_run () |
| 1513 | { |
| 1514 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1515 | if { { ac_try="$ac_link" |
| 1516 | case "(($ac_try" in |
| 1517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1518 | *) ac_try_echo=$ac_try;; |
| 1519 | esac |
| 1520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1521 | $as_echo "$ac_try_echo"; } >&5 |
| 1522 | (eval "$ac_link") 2>&5 |
| 1523 | ac_status=$? |
| 1524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1525 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1526 | { { case "(($ac_try" in |
| 1527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1528 | *) ac_try_echo=$ac_try;; |
| 1529 | esac |
| 1530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1531 | $as_echo "$ac_try_echo"; } >&5 |
| 1532 | (eval "$ac_try") 2>&5 |
| 1533 | ac_status=$? |
| 1534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1535 | test $ac_status = 0; }; }; then : |
| 1536 | ac_retval=0 |
| 1537 | else |
| 1538 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1539 | $as_echo "$as_me: failed program was:" >&5 |
| 1540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1541 | |
| 1542 | ac_retval=$ac_status |
| 1543 | fi |
| 1544 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1545 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1546 | as_fn_set_status $ac_retval |
| 1547 | |
| 1548 | } # ac_fn_c_try_run |
| 1549 | |
| 1550 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1551 | # ------------------------------------------------------- |
| 1552 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1553 | # the include files in INCLUDES and setting the cache variable VAR |
| 1554 | # accordingly. |
| 1555 | ac_fn_c_check_header_mongrel () |
| 1556 | { |
| 1557 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1558 | if eval \${$3+:} false; then : |
| 1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1560 | $as_echo_n "checking for $2... " >&6; } |
| 1561 | if eval \${$3+:} false; then : |
| 1562 | $as_echo_n "(cached) " >&6 |
| 1563 | fi |
| 1564 | eval ac_res=\$$3 |
| 1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1566 | $as_echo "$ac_res" >&6; } |
| 1567 | else |
| 1568 | # Is the header compilable? |
| 1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1570 | $as_echo_n "checking $2 usability... " >&6; } |
| 1571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1572 | /* end confdefs.h. */ |
| 1573 | $4 |
| 1574 | #include <$2> |
| 1575 | _ACEOF |
| 1576 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1577 | ac_header_compiler=yes |
| 1578 | else |
| 1579 | ac_header_compiler=no |
| 1580 | fi |
| 1581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1583 | $as_echo "$ac_header_compiler" >&6; } |
| 1584 | |
| 1585 | # Is the header present? |
| 1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1587 | $as_echo_n "checking $2 presence... " >&6; } |
| 1588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1589 | /* end confdefs.h. */ |
| 1590 | #include <$2> |
| 1591 | _ACEOF |
| 1592 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1593 | ac_header_preproc=yes |
| 1594 | else |
| 1595 | ac_header_preproc=no |
| 1596 | fi |
| 1597 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1599 | $as_echo "$ac_header_preproc" >&6; } |
| 1600 | |
| 1601 | # So? What about this header? |
| 1602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1603 | yes:no: ) |
| 1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1605 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1607 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1608 | ;; |
| 1609 | no:yes:* ) |
| 1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1611 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1613 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1615 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1617 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1619 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1620 | ( $as_echo "## ------------------------------- ## |
| 1621 | ## Report this to [email protected] ## |
| 1622 | ## ------------------------------- ##" |
| 1623 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1624 | ;; |
| 1625 | esac |
| 1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1627 | $as_echo_n "checking for $2... " >&6; } |
| 1628 | if eval \${$3+:} false; then : |
| 1629 | $as_echo_n "(cached) " >&6 |
| 1630 | else |
| 1631 | eval "$3=\$ac_header_compiler" |
| 1632 | fi |
| 1633 | eval ac_res=\$$3 |
| 1634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1635 | $as_echo "$ac_res" >&6; } |
| 1636 | fi |
| 1637 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1638 | |
| 1639 | } # ac_fn_c_check_header_mongrel |
| 1640 | |
| 1641 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1642 | # ------------------------------------------------------- |
| 1643 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1644 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1645 | ac_fn_c_check_header_compile () |
| 1646 | { |
| 1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1649 | $as_echo_n "checking for $2... " >&6; } |
| 1650 | if eval \${$3+:} false; then : |
| 1651 | $as_echo_n "(cached) " >&6 |
| 1652 | else |
| 1653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1654 | /* end confdefs.h. */ |
| 1655 | $4 |
| 1656 | #include <$2> |
| 1657 | _ACEOF |
| 1658 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1659 | eval "$3=yes" |
| 1660 | else |
| 1661 | eval "$3=no" |
| 1662 | fi |
| 1663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1664 | fi |
| 1665 | eval ac_res=\$$3 |
| 1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1667 | $as_echo "$ac_res" >&6; } |
| 1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1669 | |
| 1670 | } # ac_fn_c_check_header_compile |
| 1671 | |
| 1672 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1673 | # ------------------------------------------- |
| 1674 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1675 | # variable VAR accordingly. |
| 1676 | ac_fn_c_check_type () |
| 1677 | { |
| 1678 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1680 | $as_echo_n "checking for $2... " >&6; } |
| 1681 | if eval \${$3+:} false; then : |
| 1682 | $as_echo_n "(cached) " >&6 |
| 1683 | else |
| 1684 | eval "$3=no" |
| 1685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1686 | /* end confdefs.h. */ |
| 1687 | $4 |
| 1688 | int |
| 1689 | main () |
| 1690 | { |
| 1691 | if (sizeof ($2)) |
| 1692 | return 0; |
| 1693 | ; |
| 1694 | return 0; |
| 1695 | } |
| 1696 | _ACEOF |
| 1697 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1699 | /* end confdefs.h. */ |
| 1700 | $4 |
| 1701 | int |
| 1702 | main () |
| 1703 | { |
| 1704 | if (sizeof (($2))) |
| 1705 | return 0; |
| 1706 | ; |
| 1707 | return 0; |
| 1708 | } |
| 1709 | _ACEOF |
| 1710 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1711 | |
| 1712 | else |
| 1713 | eval "$3=yes" |
| 1714 | fi |
| 1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1716 | fi |
| 1717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1718 | fi |
| 1719 | eval ac_res=\$$3 |
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1721 | $as_echo "$ac_res" >&6; } |
| 1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1723 | |
| 1724 | } # ac_fn_c_check_type |
| 1725 | |
| 1726 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1727 | # ---------------------------------------------------- |
| 1728 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1729 | # INCLUDES, setting cache variable VAR accordingly. |
| 1730 | ac_fn_c_check_member () |
| 1731 | { |
| 1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1734 | $as_echo_n "checking for $2.$3... " >&6; } |
| 1735 | if eval \${$4+:} false; then : |
| 1736 | $as_echo_n "(cached) " >&6 |
| 1737 | else |
| 1738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1739 | /* end confdefs.h. */ |
| 1740 | $5 |
| 1741 | int |
| 1742 | main () |
| 1743 | { |
| 1744 | static $2 ac_aggr; |
| 1745 | if (ac_aggr.$3) |
| 1746 | return 0; |
| 1747 | ; |
| 1748 | return 0; |
| 1749 | } |
| 1750 | _ACEOF |
| 1751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1752 | eval "$4=yes" |
| 1753 | else |
| 1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1755 | /* end confdefs.h. */ |
| 1756 | $5 |
| 1757 | int |
| 1758 | main () |
| 1759 | { |
| 1760 | static $2 ac_aggr; |
| 1761 | if (sizeof ac_aggr.$3) |
| 1762 | return 0; |
| 1763 | ; |
| 1764 | return 0; |
| 1765 | } |
| 1766 | _ACEOF |
| 1767 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1768 | eval "$4=yes" |
| 1769 | else |
| 1770 | eval "$4=no" |
| 1771 | fi |
| 1772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1773 | fi |
| 1774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1775 | fi |
| 1776 | eval ac_res=\$$4 |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1778 | $as_echo "$ac_res" >&6; } |
| 1779 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1780 | |
| 1781 | } # ac_fn_c_check_member |
| 1782 | |
| 1783 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1784 | # --------------------------------------------- |
| 1785 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1786 | # accordingly. |
| 1787 | ac_fn_c_check_decl () |
| 1788 | { |
| 1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1790 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1791 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1793 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1794 | if eval \${$3+:} false; then : |
| 1795 | $as_echo_n "(cached) " >&6 |
| 1796 | else |
| 1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1798 | /* end confdefs.h. */ |
| 1799 | $4 |
| 1800 | int |
| 1801 | main () |
| 1802 | { |
| 1803 | #ifndef $as_decl_name |
| 1804 | #ifdef __cplusplus |
| 1805 | (void) $as_decl_use; |
| 1806 | #else |
| 1807 | (void) $as_decl_name; |
| 1808 | #endif |
| 1809 | #endif |
| 1810 | |
| 1811 | ; |
| 1812 | return 0; |
| 1813 | } |
| 1814 | _ACEOF |
| 1815 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1816 | eval "$3=yes" |
| 1817 | else |
| 1818 | eval "$3=no" |
| 1819 | fi |
| 1820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1821 | fi |
| 1822 | eval ac_res=\$$3 |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1824 | $as_echo "$ac_res" >&6; } |
| 1825 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1826 | |
| 1827 | } # ac_fn_c_check_decl |
| 1828 | |
| 1829 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1830 | # ---------------------------------- |
| 1831 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1832 | ac_fn_c_check_func () |
| 1833 | { |
| 1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1836 | $as_echo_n "checking for $2... " >&6; } |
| 1837 | if eval \${$3+:} false; then : |
| 1838 | $as_echo_n "(cached) " >&6 |
| 1839 | else |
| 1840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1841 | /* end confdefs.h. */ |
| 1842 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1844 | #define $2 innocuous_$2 |
| 1845 | |
| 1846 | /* System header to define __stub macros and hopefully few prototypes, |
| 1847 | which can conflict with char $2 (); below. |
| 1848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1849 | <limits.h> exists even on freestanding compilers. */ |
| 1850 | |
| 1851 | #ifdef __STDC__ |
| 1852 | # include <limits.h> |
| 1853 | #else |
| 1854 | # include <assert.h> |
| 1855 | #endif |
| 1856 | |
| 1857 | #undef $2 |
| 1858 | |
| 1859 | /* Override any GCC internal prototype to avoid an error. |
| 1860 | Use char because int might match the return type of a GCC |
| 1861 | builtin and then its argument prototype would still apply. */ |
| 1862 | #ifdef __cplusplus |
| 1863 | extern "C" |
| 1864 | #endif |
| 1865 | char $2 (); |
| 1866 | /* The GNU C library defines this for functions which it implements |
| 1867 | to always fail with ENOSYS. Some functions are actually named |
| 1868 | something starting with __ and the normal name is an alias. */ |
| 1869 | #if defined __stub_$2 || defined __stub___$2 |
| 1870 | choke me |
| 1871 | #endif |
| 1872 | |
| 1873 | int |
| 1874 | main () |
| 1875 | { |
| 1876 | return $2 (); |
| 1877 | ; |
| 1878 | return 0; |
| 1879 | } |
| 1880 | _ACEOF |
| 1881 | if ac_fn_c_try_link "$LINENO"; then : |
| 1882 | eval "$3=yes" |
| 1883 | else |
| 1884 | eval "$3=no" |
| 1885 | fi |
| 1886 | rm -f core conftest.err conftest.$ac_objext \ |
| 1887 | conftest$ac_exeext conftest.$ac_ext |
| 1888 | fi |
| 1889 | eval ac_res=\$$3 |
| 1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1891 | $as_echo "$ac_res" >&6; } |
| 1892 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1893 | |
| 1894 | } # ac_fn_c_check_func |
| 1895 | cat >config.log <<_ACEOF |
| 1896 | This file contains any messages produced by compilers while |
| 1897 | running configure, to aid debugging if configure makes a mistake. |
| 1898 | |
| 1899 | It was created by mtree $as_me 20040722, which was |
| 1900 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1901 | |
| 1902 | $ $0 $@ |
| 1903 | |
| 1904 | _ACEOF |
| 1905 | exec 5>>config.log |
| 1906 | { |
| 1907 | cat <<_ASUNAME |
| 1908 | ## --------- ## |
| 1909 | ## Platform. ## |
| 1910 | ## --------- ## |
| 1911 | |
| 1912 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1913 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1914 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1915 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1916 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1917 | |
| 1918 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1919 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1920 | |
| 1921 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1922 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1923 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1924 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1925 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1926 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1927 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1928 | |
| 1929 | _ASUNAME |
| 1930 | |
| 1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1932 | for as_dir in $PATH |
| 1933 | do |
| 1934 | IFS=$as_save_IFS |
| 1935 | test -z "$as_dir" && as_dir=. |
| 1936 | $as_echo "PATH: $as_dir" |
| 1937 | done |
| 1938 | IFS=$as_save_IFS |
| 1939 | |
| 1940 | } >&5 |
| 1941 | |
| 1942 | cat >&5 <<_ACEOF |
| 1943 | |
| 1944 | |
| 1945 | ## ----------- ## |
| 1946 | ## Core tests. ## |
| 1947 | ## ----------- ## |
| 1948 | |
| 1949 | _ACEOF |
| 1950 | |
| 1951 | |
| 1952 | # Keep a trace of the command line. |
| 1953 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1954 | # Strip out --silent because we don't want to record it for future runs. |
| 1955 | # Also quote any args containing shell meta-characters. |
| 1956 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1957 | ac_configure_args= |
| 1958 | ac_configure_args0= |
| 1959 | ac_configure_args1= |
| 1960 | ac_must_keep_next=false |
| 1961 | for ac_pass in 1 2 |
| 1962 | do |
| 1963 | for ac_arg |
| 1964 | do |
| 1965 | case $ac_arg in |
| 1966 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1967 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1968 | | -silent | --silent | --silen | --sile | --sil) |
| 1969 | continue ;; |
| 1970 | *\'*) |
| 1971 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1972 | esac |
| 1973 | case $ac_pass in |
| 1974 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1975 | 2) |
| 1976 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1977 | if test $ac_must_keep_next = true; then |
| 1978 | ac_must_keep_next=false # Got value, back to normal. |
| 1979 | else |
| 1980 | case $ac_arg in |
| 1981 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1982 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1983 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1984 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1985 | case "$ac_configure_args0 " in |
| 1986 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1987 | esac |
| 1988 | ;; |
| 1989 | -* ) ac_must_keep_next=true ;; |
| 1990 | esac |
| 1991 | fi |
| 1992 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1993 | ;; |
| 1994 | esac |
| 1995 | done |
| 1996 | done |
| 1997 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1998 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1999 | |
| 2000 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2001 | # config.log. We remove comments because anyway the quotes in there |
| 2002 | # would cause problems or look ugly. |
| 2003 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2004 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2005 | trap 'exit_status=$? |
| 2006 | # Save into config.log some information that might help in debugging. |
| 2007 | { |
| 2008 | echo |
| 2009 | |
| 2010 | $as_echo "## ---------------- ## |
| 2011 | ## Cache variables. ## |
| 2012 | ## ---------------- ##" |
| 2013 | echo |
| 2014 | # The following way of writing the cache mishandles newlines in values, |
| 2015 | ( |
| 2016 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2017 | eval ac_val=\$$ac_var |
| 2018 | case $ac_val in #( |
| 2019 | *${as_nl}*) |
| 2020 | case $ac_var in #( |
| 2021 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2022 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2023 | esac |
| 2024 | case $ac_var in #( |
| 2025 | _ | IFS | as_nl) ;; #( |
| 2026 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2027 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2028 | esac ;; |
| 2029 | esac |
| 2030 | done |
| 2031 | (set) 2>&1 | |
| 2032 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2033 | *${as_nl}ac_space=\ *) |
| 2034 | sed -n \ |
| 2035 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2036 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2037 | ;; #( |
| 2038 | *) |
| 2039 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2040 | ;; |
| 2041 | esac | |
| 2042 | sort |
| 2043 | ) |
| 2044 | echo |
| 2045 | |
| 2046 | $as_echo "## ----------------- ## |
| 2047 | ## Output variables. ## |
| 2048 | ## ----------------- ##" |
| 2049 | echo |
| 2050 | for ac_var in $ac_subst_vars |
| 2051 | do |
| 2052 | eval ac_val=\$$ac_var |
| 2053 | case $ac_val in |
| 2054 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2055 | esac |
| 2056 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2057 | done | sort |
| 2058 | echo |
| 2059 | |
| 2060 | if test -n "$ac_subst_files"; then |
| 2061 | $as_echo "## ------------------- ## |
| 2062 | ## File substitutions. ## |
| 2063 | ## ------------------- ##" |
| 2064 | echo |
| 2065 | for ac_var in $ac_subst_files |
| 2066 | do |
| 2067 | eval ac_val=\$$ac_var |
| 2068 | case $ac_val in |
| 2069 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2070 | esac |
| 2071 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2072 | done | sort |
| 2073 | echo |
| 2074 | fi |
| 2075 | |
| 2076 | if test -s confdefs.h; then |
| 2077 | $as_echo "## ----------- ## |
| 2078 | ## confdefs.h. ## |
| 2079 | ## ----------- ##" |
| 2080 | echo |
| 2081 | cat confdefs.h |
| 2082 | echo |
| 2083 | fi |
| 2084 | test "$ac_signal" != 0 && |
| 2085 | $as_echo "$as_me: caught signal $ac_signal" |
| 2086 | $as_echo "$as_me: exit $exit_status" |
| 2087 | } >&5 |
| 2088 | rm -f core *.core core.conftest.* && |
| 2089 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2090 | exit $exit_status |
| 2091 | ' 0 |
| 2092 | for ac_signal in 1 2 13 15; do |
| 2093 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2094 | done |
| 2095 | ac_signal=0 |
| 2096 | |
| 2097 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2098 | rm -f -r conftest* confdefs.h |
| 2099 | |
| 2100 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2101 | |
| 2102 | # Predefined preprocessor variables. |
| 2103 | |
| 2104 | cat >>confdefs.h <<_ACEOF |
| 2105 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2106 | _ACEOF |
| 2107 | |
| 2108 | cat >>confdefs.h <<_ACEOF |
| 2109 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2110 | _ACEOF |
| 2111 | |
| 2112 | cat >>confdefs.h <<_ACEOF |
| 2113 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2114 | _ACEOF |
| 2115 | |
| 2116 | cat >>confdefs.h <<_ACEOF |
| 2117 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2118 | _ACEOF |
| 2119 | |
| 2120 | cat >>confdefs.h <<_ACEOF |
| 2121 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2122 | _ACEOF |
| 2123 | |
| 2124 | cat >>confdefs.h <<_ACEOF |
| 2125 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2126 | _ACEOF |
| 2127 | |
| 2128 | |
| 2129 | # Let the site file select an alternate cache file if it wants to. |
| 2130 | # Prefer an explicitly selected file to automatically selected ones. |
| 2131 | ac_site_file1=NONE |
| 2132 | ac_site_file2=NONE |
| 2133 | if test -n "$CONFIG_SITE"; then |
| 2134 | # We do not want a PATH search for config.site. |
| 2135 | case $CONFIG_SITE in #(( |
| 2136 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2137 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2138 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2139 | esac |
| 2140 | elif test "x$prefix" != xNONE; then |
| 2141 | ac_site_file1=$prefix/share/config.site |
| 2142 | ac_site_file2=$prefix/etc/config.site |
| 2143 | else |
| 2144 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2145 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2146 | fi |
| 2147 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2148 | do |
| 2149 | test "x$ac_site_file" = xNONE && continue |
| 2150 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2152 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2153 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2154 | . "$ac_site_file" \ |
| 2155 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2157 | as_fn_error $? "failed to load site script $ac_site_file |
| 2158 | See \`config.log' for more details" "$LINENO" 5; } |
| 2159 | fi |
| 2160 | done |
| 2161 | |
| 2162 | if test -r "$cache_file"; then |
| 2163 | # Some versions of bash will fail to source /dev/null (special files |
| 2164 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2165 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2167 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2168 | case $cache_file in |
| 2169 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2170 | *) . "./$cache_file";; |
| 2171 | esac |
| 2172 | fi |
| 2173 | else |
| 2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2175 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2176 | >$cache_file |
| 2177 | fi |
| 2178 | |
| 2179 | # Check that the precious variables saved in the cache have kept the same |
| 2180 | # value. |
| 2181 | ac_cache_corrupted=false |
| 2182 | for ac_var in $ac_precious_vars; do |
| 2183 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2184 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2185 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2186 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2187 | case $ac_old_set,$ac_new_set in |
| 2188 | set,) |
| 2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2190 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2191 | ac_cache_corrupted=: ;; |
| 2192 | ,set) |
| 2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2194 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2195 | ac_cache_corrupted=: ;; |
| 2196 | ,);; |
| 2197 | *) |
| 2198 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2199 | # differences in whitespace do not lead to failure. |
| 2200 | ac_old_val_w=`echo x $ac_old_val` |
| 2201 | ac_new_val_w=`echo x $ac_new_val` |
| 2202 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2204 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2205 | ac_cache_corrupted=: |
| 2206 | else |
| 2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2208 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2209 | eval $ac_var=\$ac_old_val |
| 2210 | fi |
| 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2212 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2214 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2215 | fi;; |
| 2216 | esac |
| 2217 | # Pass precious variables to config.status. |
| 2218 | if test "$ac_new_set" = set; then |
| 2219 | case $ac_new_val in |
| 2220 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2221 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2222 | esac |
| 2223 | case " $ac_configure_args " in |
| 2224 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2225 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2226 | esac |
| 2227 | fi |
| 2228 | done |
| 2229 | if $ac_cache_corrupted; then |
| 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2233 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2234 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2235 | fi |
| 2236 | ## -------------------- ## |
| 2237 | ## Main body of script. ## |
| 2238 | ## -------------------- ## |
| 2239 | |
| 2240 | ac_ext=c |
| 2241 | ac_cpp='$CPP $CPPFLAGS' |
| 2242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2245 | |
| 2246 | |
| 2247 | |
| 2248 | ac_config_headers="$ac_config_headers config.h" |
| 2249 | |
| 2250 | |
| 2251 | # Checks for programs. |
| 2252 | ac_ext=c |
| 2253 | ac_cpp='$CPP $CPPFLAGS' |
| 2254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2257 | if test -n "$ac_tool_prefix"; then |
| 2258 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2259 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2261 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2262 | if ${ac_cv_prog_CC+:} false; then : |
| 2263 | $as_echo_n "(cached) " >&6 |
| 2264 | else |
| 2265 | if test -n "$CC"; then |
| 2266 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2267 | else |
| 2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2269 | for as_dir in $PATH |
| 2270 | do |
| 2271 | IFS=$as_save_IFS |
| 2272 | test -z "$as_dir" && as_dir=. |
| 2273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2275 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2277 | break 2 |
| 2278 | fi |
| 2279 | done |
| 2280 | done |
| 2281 | IFS=$as_save_IFS |
| 2282 | |
| 2283 | fi |
| 2284 | fi |
| 2285 | CC=$ac_cv_prog_CC |
| 2286 | if test -n "$CC"; then |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2288 | $as_echo "$CC" >&6; } |
| 2289 | else |
| 2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2291 | $as_echo "no" >&6; } |
| 2292 | fi |
| 2293 | |
| 2294 | |
| 2295 | fi |
| 2296 | if test -z "$ac_cv_prog_CC"; then |
| 2297 | ac_ct_CC=$CC |
| 2298 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2299 | set dummy gcc; ac_word=$2 |
| 2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2301 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2302 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2303 | $as_echo_n "(cached) " >&6 |
| 2304 | else |
| 2305 | if test -n "$ac_ct_CC"; then |
| 2306 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2307 | else |
| 2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2309 | for as_dir in $PATH |
| 2310 | do |
| 2311 | IFS=$as_save_IFS |
| 2312 | test -z "$as_dir" && as_dir=. |
| 2313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2315 | ac_cv_prog_ac_ct_CC="gcc" |
| 2316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2317 | break 2 |
| 2318 | fi |
| 2319 | done |
| 2320 | done |
| 2321 | IFS=$as_save_IFS |
| 2322 | |
| 2323 | fi |
| 2324 | fi |
| 2325 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2326 | if test -n "$ac_ct_CC"; then |
| 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2328 | $as_echo "$ac_ct_CC" >&6; } |
| 2329 | else |
| 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2331 | $as_echo "no" >&6; } |
| 2332 | fi |
| 2333 | |
| 2334 | if test "x$ac_ct_CC" = x; then |
| 2335 | CC="" |
| 2336 | else |
| 2337 | case $cross_compiling:$ac_tool_warned in |
| 2338 | yes:) |
| 2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2341 | ac_tool_warned=yes ;; |
| 2342 | esac |
| 2343 | CC=$ac_ct_CC |
| 2344 | fi |
| 2345 | else |
| 2346 | CC="$ac_cv_prog_CC" |
| 2347 | fi |
| 2348 | |
| 2349 | if test -z "$CC"; then |
| 2350 | if test -n "$ac_tool_prefix"; then |
| 2351 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2352 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2355 | if ${ac_cv_prog_CC+:} false; then : |
| 2356 | $as_echo_n "(cached) " >&6 |
| 2357 | else |
| 2358 | if test -n "$CC"; then |
| 2359 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2360 | else |
| 2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2362 | for as_dir in $PATH |
| 2363 | do |
| 2364 | IFS=$as_save_IFS |
| 2365 | test -z "$as_dir" && as_dir=. |
| 2366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2368 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2370 | break 2 |
| 2371 | fi |
| 2372 | done |
| 2373 | done |
| 2374 | IFS=$as_save_IFS |
| 2375 | |
| 2376 | fi |
| 2377 | fi |
| 2378 | CC=$ac_cv_prog_CC |
| 2379 | if test -n "$CC"; then |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2381 | $as_echo "$CC" >&6; } |
| 2382 | else |
| 2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2384 | $as_echo "no" >&6; } |
| 2385 | fi |
| 2386 | |
| 2387 | |
| 2388 | fi |
| 2389 | fi |
| 2390 | if test -z "$CC"; then |
| 2391 | # Extract the first word of "cc", so it can be a program name with args. |
| 2392 | set dummy cc; ac_word=$2 |
| 2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2394 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2395 | if ${ac_cv_prog_CC+:} false; then : |
| 2396 | $as_echo_n "(cached) " >&6 |
| 2397 | else |
| 2398 | if test -n "$CC"; then |
| 2399 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2400 | else |
| 2401 | ac_prog_rejected=no |
| 2402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2403 | for as_dir in $PATH |
| 2404 | do |
| 2405 | IFS=$as_save_IFS |
| 2406 | test -z "$as_dir" && as_dir=. |
| 2407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2409 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2410 | ac_prog_rejected=yes |
| 2411 | continue |
| 2412 | fi |
| 2413 | ac_cv_prog_CC="cc" |
| 2414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2415 | break 2 |
| 2416 | fi |
| 2417 | done |
| 2418 | done |
| 2419 | IFS=$as_save_IFS |
| 2420 | |
| 2421 | if test $ac_prog_rejected = yes; then |
| 2422 | # We found a bogon in the path, so make sure we never use it. |
| 2423 | set dummy $ac_cv_prog_CC |
| 2424 | shift |
| 2425 | if test $# != 0; then |
| 2426 | # We chose a different compiler from the bogus one. |
| 2427 | # However, it has the same basename, so the bogon will be chosen |
| 2428 | # first if we set CC to just the basename; use the full file name. |
| 2429 | shift |
| 2430 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2431 | fi |
| 2432 | fi |
| 2433 | fi |
| 2434 | fi |
| 2435 | CC=$ac_cv_prog_CC |
| 2436 | if test -n "$CC"; then |
| 2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2438 | $as_echo "$CC" >&6; } |
| 2439 | else |
| 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2441 | $as_echo "no" >&6; } |
| 2442 | fi |
| 2443 | |
| 2444 | |
| 2445 | fi |
| 2446 | if test -z "$CC"; then |
| 2447 | if test -n "$ac_tool_prefix"; then |
| 2448 | for ac_prog in cl.exe |
| 2449 | do |
| 2450 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2451 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2453 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2454 | if ${ac_cv_prog_CC+:} false; then : |
| 2455 | $as_echo_n "(cached) " >&6 |
| 2456 | else |
| 2457 | if test -n "$CC"; then |
| 2458 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2459 | else |
| 2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2461 | for as_dir in $PATH |
| 2462 | do |
| 2463 | IFS=$as_save_IFS |
| 2464 | test -z "$as_dir" && as_dir=. |
| 2465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2467 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2469 | break 2 |
| 2470 | fi |
| 2471 | done |
| 2472 | done |
| 2473 | IFS=$as_save_IFS |
| 2474 | |
| 2475 | fi |
| 2476 | fi |
| 2477 | CC=$ac_cv_prog_CC |
| 2478 | if test -n "$CC"; then |
| 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2480 | $as_echo "$CC" >&6; } |
| 2481 | else |
| 2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2483 | $as_echo "no" >&6; } |
| 2484 | fi |
| 2485 | |
| 2486 | |
| 2487 | test -n "$CC" && break |
| 2488 | done |
| 2489 | fi |
| 2490 | if test -z "$CC"; then |
| 2491 | ac_ct_CC=$CC |
| 2492 | for ac_prog in cl.exe |
| 2493 | do |
| 2494 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2495 | set dummy $ac_prog; ac_word=$2 |
| 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2497 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2498 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2499 | $as_echo_n "(cached) " >&6 |
| 2500 | else |
| 2501 | if test -n "$ac_ct_CC"; then |
| 2502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2503 | else |
| 2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2505 | for as_dir in $PATH |
| 2506 | do |
| 2507 | IFS=$as_save_IFS |
| 2508 | test -z "$as_dir" && as_dir=. |
| 2509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2511 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2513 | break 2 |
| 2514 | fi |
| 2515 | done |
| 2516 | done |
| 2517 | IFS=$as_save_IFS |
| 2518 | |
| 2519 | fi |
| 2520 | fi |
| 2521 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2522 | if test -n "$ac_ct_CC"; then |
| 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2524 | $as_echo "$ac_ct_CC" >&6; } |
| 2525 | else |
| 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2527 | $as_echo "no" >&6; } |
| 2528 | fi |
| 2529 | |
| 2530 | |
| 2531 | test -n "$ac_ct_CC" && break |
| 2532 | done |
| 2533 | |
| 2534 | if test "x$ac_ct_CC" = x; then |
| 2535 | CC="" |
| 2536 | else |
| 2537 | case $cross_compiling:$ac_tool_warned in |
| 2538 | yes:) |
| 2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2540 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2541 | ac_tool_warned=yes ;; |
| 2542 | esac |
| 2543 | CC=$ac_ct_CC |
| 2544 | fi |
| 2545 | fi |
| 2546 | |
| 2547 | fi |
| 2548 | |
| 2549 | |
| 2550 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2552 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2553 | See \`config.log' for more details" "$LINENO" 5; } |
| 2554 | |
| 2555 | # Provide some information about the compiler. |
| 2556 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2557 | set X $ac_compile |
| 2558 | ac_compiler=$2 |
| 2559 | for ac_option in --version -v -V -qversion; do |
| 2560 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2561 | case "(($ac_try" in |
| 2562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2563 | *) ac_try_echo=$ac_try;; |
| 2564 | esac |
| 2565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2566 | $as_echo "$ac_try_echo"; } >&5 |
| 2567 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2568 | ac_status=$? |
| 2569 | if test -s conftest.err; then |
| 2570 | sed '10a\ |
| 2571 | ... rest of stderr output deleted ... |
| 2572 | 10q' conftest.err >conftest.er1 |
| 2573 | cat conftest.er1 >&5 |
| 2574 | fi |
| 2575 | rm -f conftest.er1 conftest.err |
| 2576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2577 | test $ac_status = 0; } |
| 2578 | done |
| 2579 | |
| 2580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2581 | /* end confdefs.h. */ |
| 2582 | |
| 2583 | int |
| 2584 | main () |
| 2585 | { |
| 2586 | |
| 2587 | ; |
| 2588 | return 0; |
| 2589 | } |
| 2590 | _ACEOF |
| 2591 | ac_clean_files_save=$ac_clean_files |
| 2592 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2593 | # Try to create an executable without -o first, disregard a.out. |
| 2594 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2595 | # of exeext. |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2597 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2598 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2599 | |
| 2600 | # The possible output files: |
| 2601 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2602 | |
| 2603 | ac_rmfiles= |
| 2604 | for ac_file in $ac_files |
| 2605 | do |
| 2606 | case $ac_file in |
| 2607 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2608 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2609 | esac |
| 2610 | done |
| 2611 | rm -f $ac_rmfiles |
| 2612 | |
| 2613 | if { { ac_try="$ac_link_default" |
| 2614 | case "(($ac_try" in |
| 2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2616 | *) ac_try_echo=$ac_try;; |
| 2617 | esac |
| 2618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2619 | $as_echo "$ac_try_echo"; } >&5 |
| 2620 | (eval "$ac_link_default") 2>&5 |
| 2621 | ac_status=$? |
| 2622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2623 | test $ac_status = 0; }; then : |
| 2624 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2625 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2626 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2627 | # so that the user can short-circuit this test for compilers unknown to |
| 2628 | # Autoconf. |
| 2629 | for ac_file in $ac_files '' |
| 2630 | do |
| 2631 | test -f "$ac_file" || continue |
| 2632 | case $ac_file in |
| 2633 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2634 | ;; |
| 2635 | [ab].out ) |
| 2636 | # We found the default executable, but exeext='' is most |
| 2637 | # certainly right. |
| 2638 | break;; |
| 2639 | *.* ) |
| 2640 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2641 | then :; else |
| 2642 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2643 | fi |
| 2644 | # We set ac_cv_exeext here because the later test for it is not |
| 2645 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2646 | # argument, so we may need to know it at that point already. |
| 2647 | # Even if this section looks crufty: it has the advantage of |
| 2648 | # actually working. |
| 2649 | break;; |
| 2650 | * ) |
| 2651 | break;; |
| 2652 | esac |
| 2653 | done |
| 2654 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2655 | |
| 2656 | else |
| 2657 | ac_file='' |
| 2658 | fi |
| 2659 | if test -z "$ac_file"; then : |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2661 | $as_echo "no" >&6; } |
| 2662 | $as_echo "$as_me: failed program was:" >&5 |
| 2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2664 | |
| 2665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2667 | as_fn_error 77 "C compiler cannot create executables |
| 2668 | See \`config.log' for more details" "$LINENO" 5; } |
| 2669 | else |
| 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2671 | $as_echo "yes" >&6; } |
| 2672 | fi |
| 2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2674 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2676 | $as_echo "$ac_file" >&6; } |
| 2677 | ac_exeext=$ac_cv_exeext |
| 2678 | |
| 2679 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2680 | ac_clean_files=$ac_clean_files_save |
| 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2682 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2683 | if { { ac_try="$ac_link" |
| 2684 | case "(($ac_try" in |
| 2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2686 | *) ac_try_echo=$ac_try;; |
| 2687 | esac |
| 2688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2689 | $as_echo "$ac_try_echo"; } >&5 |
| 2690 | (eval "$ac_link") 2>&5 |
| 2691 | ac_status=$? |
| 2692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2693 | test $ac_status = 0; }; then : |
| 2694 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2695 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2696 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2697 | # `rm'. |
| 2698 | for ac_file in conftest.exe conftest conftest.*; do |
| 2699 | test -f "$ac_file" || continue |
| 2700 | case $ac_file in |
| 2701 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2702 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2703 | break;; |
| 2704 | * ) break;; |
| 2705 | esac |
| 2706 | done |
| 2707 | else |
| 2708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2710 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2711 | See \`config.log' for more details" "$LINENO" 5; } |
| 2712 | fi |
| 2713 | rm -f conftest conftest$ac_cv_exeext |
| 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2715 | $as_echo "$ac_cv_exeext" >&6; } |
| 2716 | |
| 2717 | rm -f conftest.$ac_ext |
| 2718 | EXEEXT=$ac_cv_exeext |
| 2719 | ac_exeext=$EXEEXT |
| 2720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2721 | /* end confdefs.h. */ |
| 2722 | #include <stdio.h> |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | FILE *f = fopen ("conftest.out", "w"); |
| 2727 | return ferror (f) || fclose (f) != 0; |
| 2728 | |
| 2729 | ; |
| 2730 | return 0; |
| 2731 | } |
| 2732 | _ACEOF |
| 2733 | ac_clean_files="$ac_clean_files conftest.out" |
| 2734 | # Check that the compiler produces executables we can run. If not, either |
| 2735 | # the compiler is broken, or we cross compile. |
| 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2737 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2738 | if test "$cross_compiling" != yes; then |
| 2739 | { { ac_try="$ac_link" |
| 2740 | case "(($ac_try" in |
| 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2742 | *) ac_try_echo=$ac_try;; |
| 2743 | esac |
| 2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2745 | $as_echo "$ac_try_echo"; } >&5 |
| 2746 | (eval "$ac_link") 2>&5 |
| 2747 | ac_status=$? |
| 2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2749 | test $ac_status = 0; } |
| 2750 | if { ac_try='./conftest$ac_cv_exeext' |
| 2751 | { { case "(($ac_try" in |
| 2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2753 | *) ac_try_echo=$ac_try;; |
| 2754 | esac |
| 2755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2756 | $as_echo "$ac_try_echo"; } >&5 |
| 2757 | (eval "$ac_try") 2>&5 |
| 2758 | ac_status=$? |
| 2759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2760 | test $ac_status = 0; }; }; then |
| 2761 | cross_compiling=no |
| 2762 | else |
| 2763 | if test "$cross_compiling" = maybe; then |
| 2764 | cross_compiling=yes |
| 2765 | else |
| 2766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2768 | as_fn_error $? "cannot run C compiled programs. |
| 2769 | If you meant to cross compile, use \`--host'. |
| 2770 | See \`config.log' for more details" "$LINENO" 5; } |
| 2771 | fi |
| 2772 | fi |
| 2773 | fi |
| 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2775 | $as_echo "$cross_compiling" >&6; } |
| 2776 | |
| 2777 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 2778 | ac_clean_files=$ac_clean_files_save |
| 2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2780 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 2781 | if ${ac_cv_objext+:} false; then : |
| 2782 | $as_echo_n "(cached) " >&6 |
| 2783 | else |
| 2784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2785 | /* end confdefs.h. */ |
| 2786 | |
| 2787 | int |
| 2788 | main () |
| 2789 | { |
| 2790 | |
| 2791 | ; |
| 2792 | return 0; |
| 2793 | } |
| 2794 | _ACEOF |
| 2795 | rm -f conftest.o conftest.obj |
| 2796 | if { { ac_try="$ac_compile" |
| 2797 | case "(($ac_try" in |
| 2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2799 | *) ac_try_echo=$ac_try;; |
| 2800 | esac |
| 2801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2802 | $as_echo "$ac_try_echo"; } >&5 |
| 2803 | (eval "$ac_compile") 2>&5 |
| 2804 | ac_status=$? |
| 2805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2806 | test $ac_status = 0; }; then : |
| 2807 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2808 | test -f "$ac_file" || continue; |
| 2809 | case $ac_file in |
| 2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2811 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2812 | break;; |
| 2813 | esac |
| 2814 | done |
| 2815 | else |
| 2816 | $as_echo "$as_me: failed program was:" >&5 |
| 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
| 2819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2821 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2822 | See \`config.log' for more details" "$LINENO" 5; } |
| 2823 | fi |
| 2824 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2825 | fi |
| 2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 2827 | $as_echo "$ac_cv_objext" >&6; } |
| 2828 | OBJEXT=$ac_cv_objext |
| 2829 | ac_objext=$OBJEXT |
| 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 2831 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 2832 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 2833 | $as_echo_n "(cached) " >&6 |
| 2834 | else |
| 2835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2836 | /* end confdefs.h. */ |
| 2837 | |
| 2838 | int |
| 2839 | main () |
| 2840 | { |
| 2841 | #ifndef __GNUC__ |
| 2842 | choke me |
| 2843 | #endif |
| 2844 | |
| 2845 | ; |
| 2846 | return 0; |
| 2847 | } |
| 2848 | _ACEOF |
| 2849 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2850 | ac_compiler_gnu=yes |
| 2851 | else |
| 2852 | ac_compiler_gnu=no |
| 2853 | fi |
| 2854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2855 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2856 | |
| 2857 | fi |
| 2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 2859 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2860 | if test $ac_compiler_gnu = yes; then |
| 2861 | GCC=yes |
| 2862 | else |
| 2863 | GCC= |
| 2864 | fi |
| 2865 | ac_test_CFLAGS=${CFLAGS+set} |
| 2866 | ac_save_CFLAGS=$CFLAGS |
| 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 2868 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 2869 | if ${ac_cv_prog_cc_g+:} false; then : |
| 2870 | $as_echo_n "(cached) " >&6 |
| 2871 | else |
| 2872 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2873 | ac_c_werror_flag=yes |
| 2874 | ac_cv_prog_cc_g=no |
| 2875 | CFLAGS="-g" |
| 2876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2877 | /* end confdefs.h. */ |
| 2878 | |
| 2879 | int |
| 2880 | main () |
| 2881 | { |
| 2882 | |
| 2883 | ; |
| 2884 | return 0; |
| 2885 | } |
| 2886 | _ACEOF |
| 2887 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2888 | ac_cv_prog_cc_g=yes |
| 2889 | else |
| 2890 | CFLAGS="" |
| 2891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2892 | /* end confdefs.h. */ |
| 2893 | |
| 2894 | int |
| 2895 | main () |
| 2896 | { |
| 2897 | |
| 2898 | ; |
| 2899 | return 0; |
| 2900 | } |
| 2901 | _ACEOF |
| 2902 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2903 | |
| 2904 | else |
| 2905 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2906 | CFLAGS="-g" |
| 2907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2908 | /* end confdefs.h. */ |
| 2909 | |
| 2910 | int |
| 2911 | main () |
| 2912 | { |
| 2913 | |
| 2914 | ; |
| 2915 | return 0; |
| 2916 | } |
| 2917 | _ACEOF |
| 2918 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2919 | ac_cv_prog_cc_g=yes |
| 2920 | fi |
| 2921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2922 | fi |
| 2923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2924 | fi |
| 2925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2926 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2927 | fi |
| 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 2929 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 2930 | if test "$ac_test_CFLAGS" = set; then |
| 2931 | CFLAGS=$ac_save_CFLAGS |
| 2932 | elif test $ac_cv_prog_cc_g = yes; then |
| 2933 | if test "$GCC" = yes; then |
| 2934 | CFLAGS="-g -O2" |
| 2935 | else |
| 2936 | CFLAGS="-g" |
| 2937 | fi |
| 2938 | else |
| 2939 | if test "$GCC" = yes; then |
| 2940 | CFLAGS="-O2" |
| 2941 | else |
| 2942 | CFLAGS= |
| 2943 | fi |
| 2944 | fi |
| 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 2946 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 2947 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 2948 | $as_echo_n "(cached) " >&6 |
| 2949 | else |
| 2950 | ac_cv_prog_cc_c89=no |
| 2951 | ac_save_CC=$CC |
| 2952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2953 | /* end confdefs.h. */ |
| 2954 | #include <stdarg.h> |
| 2955 | #include <stdio.h> |
| 2956 | struct stat; |
| 2957 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2958 | struct buf { int x; }; |
| 2959 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2960 | static char *e (p, i) |
| 2961 | char **p; |
| 2962 | int i; |
| 2963 | { |
| 2964 | return p[i]; |
| 2965 | } |
| 2966 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2967 | { |
| 2968 | char *s; |
| 2969 | va_list v; |
| 2970 | va_start (v,p); |
| 2971 | s = g (p, va_arg (v,int)); |
| 2972 | va_end (v); |
| 2973 | return s; |
| 2974 | } |
| 2975 | |
| 2976 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2977 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2978 | These don't provoke an error unfortunately, instead are silently treated |
| 2979 | as 'x'. The following induces an error, until -std is added to get |
| 2980 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2981 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2982 | that's true only with -std. */ |
| 2983 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2984 | |
| 2985 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2986 | inside strings and character constants. */ |
| 2987 | #define FOO(x) 'x' |
| 2988 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2989 | |
| 2990 | int test (int i, double x); |
| 2991 | struct s1 {int (*f) (int a);}; |
| 2992 | struct s2 {int (*f) (double a);}; |
| 2993 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2994 | int argc; |
| 2995 | char **argv; |
| 2996 | int |
| 2997 | main () |
| 2998 | { |
| 2999 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3000 | ; |
| 3001 | return 0; |
| 3002 | } |
| 3003 | _ACEOF |
| 3004 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3005 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3006 | do |
| 3007 | CC="$ac_save_CC $ac_arg" |
| 3008 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3009 | ac_cv_prog_cc_c89=$ac_arg |
| 3010 | fi |
| 3011 | rm -f core conftest.err conftest.$ac_objext |
| 3012 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3013 | done |
| 3014 | rm -f conftest.$ac_ext |
| 3015 | CC=$ac_save_CC |
| 3016 | |
| 3017 | fi |
| 3018 | # AC_CACHE_VAL |
| 3019 | case "x$ac_cv_prog_cc_c89" in |
| 3020 | x) |
| 3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3022 | $as_echo "none needed" >&6; } ;; |
| 3023 | xno) |
| 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3025 | $as_echo "unsupported" >&6; } ;; |
| 3026 | *) |
| 3027 | CC="$CC $ac_cv_prog_cc_c89" |
| 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3029 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3030 | esac |
| 3031 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3032 | |
| 3033 | fi |
| 3034 | |
| 3035 | ac_ext=c |
| 3036 | ac_cpp='$CPP $CPPFLAGS' |
| 3037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3040 | |
| 3041 | ac_aux_dir= |
| 3042 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3043 | if test -f "$ac_dir/install-sh"; then |
| 3044 | ac_aux_dir=$ac_dir |
| 3045 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3046 | break |
| 3047 | elif test -f "$ac_dir/install.sh"; then |
| 3048 | ac_aux_dir=$ac_dir |
| 3049 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3050 | break |
| 3051 | elif test -f "$ac_dir/shtool"; then |
| 3052 | ac_aux_dir=$ac_dir |
| 3053 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3054 | break |
| 3055 | fi |
| 3056 | done |
| 3057 | if test -z "$ac_aux_dir"; then |
| 3058 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3059 | fi |
| 3060 | |
| 3061 | # These three variables are undocumented and unsupported, |
| 3062 | # and are intended to be withdrawn in a future Autoconf release. |
| 3063 | # They can cause serious problems if a builder's source tree is in a directory |
| 3064 | # whose full name contains unusual characters. |
| 3065 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3066 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3067 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3068 | |
| 3069 | |
| 3070 | # Find a good install program. We prefer a C program (faster), |
| 3071 | # so one script is as good as another. But avoid the broken or |
| 3072 | # incompatible versions: |
| 3073 | # SysV /etc/install, /usr/sbin/install |
| 3074 | # SunOS /usr/etc/install |
| 3075 | # IRIX /sbin/install |
| 3076 | # AIX /bin/install |
| 3077 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3078 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3079 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3080 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3081 | # OS/2's system install, which has a completely different semantic |
| 3082 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3083 | # Reject install programs that cannot install multiple files. |
| 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3085 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3086 | if test -z "$INSTALL"; then |
| 3087 | if ${ac_cv_path_install+:} false; then : |
| 3088 | $as_echo_n "(cached) " >&6 |
| 3089 | else |
| 3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3091 | for as_dir in $PATH |
| 3092 | do |
| 3093 | IFS=$as_save_IFS |
| 3094 | test -z "$as_dir" && as_dir=. |
| 3095 | # Account for people who put trailing slashes in PATH elements. |
| 3096 | case $as_dir/ in #(( |
| 3097 | ./ | .// | /[cC]/* | \ |
| 3098 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3099 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3100 | /usr/ucb/* ) ;; |
| 3101 | *) |
| 3102 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3103 | # Don't use installbsd from OSF since it installs stuff as root |
| 3104 | # by default. |
| 3105 | for ac_prog in ginstall scoinst install; do |
| 3106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3107 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3108 | if test $ac_prog = install && |
| 3109 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3110 | # AIX install. It has an incompatible calling convention. |
| 3111 | : |
| 3112 | elif test $ac_prog = install && |
| 3113 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3114 | # program-specific install script used by HP pwplus--don't use. |
| 3115 | : |
| 3116 | else |
| 3117 | rm -rf conftest.one conftest.two conftest.dir |
| 3118 | echo one > conftest.one |
| 3119 | echo two > conftest.two |
| 3120 | mkdir conftest.dir |
| 3121 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3122 | test -s conftest.one && test -s conftest.two && |
| 3123 | test -s conftest.dir/conftest.one && |
| 3124 | test -s conftest.dir/conftest.two |
| 3125 | then |
| 3126 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3127 | break 3 |
| 3128 | fi |
| 3129 | fi |
| 3130 | fi |
| 3131 | done |
| 3132 | done |
| 3133 | ;; |
| 3134 | esac |
| 3135 | |
| 3136 | done |
| 3137 | IFS=$as_save_IFS |
| 3138 | |
| 3139 | rm -rf conftest.one conftest.two conftest.dir |
| 3140 | |
| 3141 | fi |
| 3142 | if test "${ac_cv_path_install+set}" = set; then |
| 3143 | INSTALL=$ac_cv_path_install |
| 3144 | else |
| 3145 | # As a last resort, use the slow shell script. Don't cache a |
| 3146 | # value for INSTALL within a source directory, because that will |
| 3147 | # break other packages using the cache if that directory is |
| 3148 | # removed, or if the value is a relative name. |
| 3149 | INSTALL=$ac_install_sh |
| 3150 | fi |
| 3151 | fi |
| 3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3153 | $as_echo "$INSTALL" >&6; } |
| 3154 | |
| 3155 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3156 | # It thinks the first close brace ends the variable substitution. |
| 3157 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3158 | |
| 3159 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3160 | |
| 3161 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3162 | |
| 3163 | |
| 3164 | # Checks for libraries. |
| 3165 | |
| 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fparseln in -lutil" >&5 |
| 3167 | $as_echo_n "checking for fparseln in -lutil... " >&6; } |
| 3168 | if ${ac_cv_lib_util_fparseln+:} false; then : |
| 3169 | $as_echo_n "(cached) " >&6 |
| 3170 | else |
| 3171 | ac_check_lib_save_LIBS=$LIBS |
| 3172 | LIBS="-lutil $LIBS" |
| 3173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3174 | /* end confdefs.h. */ |
| 3175 | |
| 3176 | /* Override any GCC internal prototype to avoid an error. |
| 3177 | Use char because int might match the return type of a GCC |
| 3178 | builtin and then its argument prototype would still apply. */ |
| 3179 | #ifdef __cplusplus |
| 3180 | extern "C" |
| 3181 | #endif |
| 3182 | char fparseln (); |
| 3183 | int |
| 3184 | main () |
| 3185 | { |
| 3186 | return fparseln (); |
| 3187 | ; |
| 3188 | return 0; |
| 3189 | } |
| 3190 | _ACEOF |
| 3191 | if ac_fn_c_try_link "$LINENO"; then : |
| 3192 | ac_cv_lib_util_fparseln=yes |
| 3193 | else |
| 3194 | ac_cv_lib_util_fparseln=no |
| 3195 | fi |
| 3196 | rm -f core conftest.err conftest.$ac_objext \ |
| 3197 | conftest$ac_exeext conftest.$ac_ext |
| 3198 | LIBS=$ac_check_lib_save_LIBS |
| 3199 | fi |
| 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_fparseln" >&5 |
| 3201 | $as_echo "$ac_cv_lib_util_fparseln" >&6; } |
| 3202 | if test "x$ac_cv_lib_util_fparseln" = xyes; then : |
| 3203 | cat >>confdefs.h <<_ACEOF |
| 3204 | #define HAVE_LIBUTIL 1 |
| 3205 | _ACEOF |
| 3206 | |
| 3207 | LIBS="-lutil $LIBS" |
| 3208 | |
| 3209 | fi |
| 3210 | |
| 3211 | |
| 3212 | # Checks for header files. |
| 3213 | ac_ext=c |
| 3214 | ac_cpp='$CPP $CPPFLAGS' |
| 3215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3219 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3220 | # On Suns, sometimes $CPP names a directory. |
| 3221 | if test -n "$CPP" && test -d "$CPP"; then |
| 3222 | CPP= |
| 3223 | fi |
| 3224 | if test -z "$CPP"; then |
| 3225 | if ${ac_cv_prog_CPP+:} false; then : |
| 3226 | $as_echo_n "(cached) " >&6 |
| 3227 | else |
| 3228 | # Double quotes because CPP needs to be expanded |
| 3229 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3230 | do |
| 3231 | ac_preproc_ok=false |
| 3232 | for ac_c_preproc_warn_flag in '' yes |
| 3233 | do |
| 3234 | # Use a header file that comes with gcc, so configuring glibc |
| 3235 | # with a fresh cross-compiler works. |
| 3236 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3237 | # <limits.h> exists even on freestanding compilers. |
| 3238 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3239 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3241 | /* end confdefs.h. */ |
| 3242 | #ifdef __STDC__ |
| 3243 | # include <limits.h> |
| 3244 | #else |
| 3245 | # include <assert.h> |
| 3246 | #endif |
| 3247 | Syntax error |
| 3248 | _ACEOF |
| 3249 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3250 | |
| 3251 | else |
| 3252 | # Broken: fails on valid input. |
| 3253 | continue |
| 3254 | fi |
| 3255 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3256 | |
| 3257 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3258 | # can be detected and how. |
| 3259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3260 | /* end confdefs.h. */ |
| 3261 | #include <ac_nonexistent.h> |
| 3262 | _ACEOF |
| 3263 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3264 | # Broken: success on invalid input. |
| 3265 | continue |
| 3266 | else |
| 3267 | # Passes both tests. |
| 3268 | ac_preproc_ok=: |
| 3269 | break |
| 3270 | fi |
| 3271 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3272 | |
| 3273 | done |
| 3274 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3275 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3276 | if $ac_preproc_ok; then : |
| 3277 | break |
| 3278 | fi |
| 3279 | |
| 3280 | done |
| 3281 | ac_cv_prog_CPP=$CPP |
| 3282 | |
| 3283 | fi |
| 3284 | CPP=$ac_cv_prog_CPP |
| 3285 | else |
| 3286 | ac_cv_prog_CPP=$CPP |
| 3287 | fi |
| 3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3289 | $as_echo "$CPP" >&6; } |
| 3290 | ac_preproc_ok=false |
| 3291 | for ac_c_preproc_warn_flag in '' yes |
| 3292 | do |
| 3293 | # Use a header file that comes with gcc, so configuring glibc |
| 3294 | # with a fresh cross-compiler works. |
| 3295 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3296 | # <limits.h> exists even on freestanding compilers. |
| 3297 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3298 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3300 | /* end confdefs.h. */ |
| 3301 | #ifdef __STDC__ |
| 3302 | # include <limits.h> |
| 3303 | #else |
| 3304 | # include <assert.h> |
| 3305 | #endif |
| 3306 | Syntax error |
| 3307 | _ACEOF |
| 3308 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3309 | |
| 3310 | else |
| 3311 | # Broken: fails on valid input. |
| 3312 | continue |
| 3313 | fi |
| 3314 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3315 | |
| 3316 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3317 | # can be detected and how. |
| 3318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3319 | /* end confdefs.h. */ |
| 3320 | #include <ac_nonexistent.h> |
| 3321 | _ACEOF |
| 3322 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3323 | # Broken: success on invalid input. |
| 3324 | continue |
| 3325 | else |
| 3326 | # Passes both tests. |
| 3327 | ac_preproc_ok=: |
| 3328 | break |
| 3329 | fi |
| 3330 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3331 | |
| 3332 | done |
| 3333 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3334 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3335 | if $ac_preproc_ok; then : |
| 3336 | |
| 3337 | else |
| 3338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3339 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3340 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3341 | See \`config.log' for more details" "$LINENO" 5; } |
| 3342 | fi |
| 3343 | |
| 3344 | ac_ext=c |
| 3345 | ac_cpp='$CPP $CPPFLAGS' |
| 3346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3349 | |
| 3350 | |
| 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3352 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3353 | if ${ac_cv_path_GREP+:} false; then : |
| 3354 | $as_echo_n "(cached) " >&6 |
| 3355 | else |
| 3356 | if test -z "$GREP"; then |
| 3357 | ac_path_GREP_found=false |
| 3358 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3360 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3361 | do |
| 3362 | IFS=$as_save_IFS |
| 3363 | test -z "$as_dir" && as_dir=. |
| 3364 | for ac_prog in grep ggrep; do |
| 3365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3366 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3367 | as_fn_executable_p "$ac_path_GREP" || continue |
| 3368 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3369 | # Check for GNU $ac_path_GREP |
| 3370 | case `"$ac_path_GREP" --version 2>&1` in |
| 3371 | *GNU*) |
| 3372 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3373 | *) |
| 3374 | ac_count=0 |
| 3375 | $as_echo_n 0123456789 >"conftest.in" |
| 3376 | while : |
| 3377 | do |
| 3378 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3379 | mv "conftest.tmp" "conftest.in" |
| 3380 | cp "conftest.in" "conftest.nl" |
| 3381 | $as_echo 'GREP' >> "conftest.nl" |
| 3382 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3383 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3384 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3385 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3386 | # Best one so far, save it but keep looking for a better one |
| 3387 | ac_cv_path_GREP="$ac_path_GREP" |
| 3388 | ac_path_GREP_max=$ac_count |
| 3389 | fi |
| 3390 | # 10*(2^10) chars as input seems more than enough |
| 3391 | test $ac_count -gt 10 && break |
| 3392 | done |
| 3393 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3394 | esac |
| 3395 | |
| 3396 | $ac_path_GREP_found && break 3 |
| 3397 | done |
| 3398 | done |
| 3399 | done |
| 3400 | IFS=$as_save_IFS |
| 3401 | if test -z "$ac_cv_path_GREP"; then |
| 3402 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3403 | fi |
| 3404 | else |
| 3405 | ac_cv_path_GREP=$GREP |
| 3406 | fi |
| 3407 | |
| 3408 | fi |
| 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3410 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3411 | GREP="$ac_cv_path_GREP" |
| 3412 | |
| 3413 | |
| 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3415 | $as_echo_n "checking for egrep... " >&6; } |
| 3416 | if ${ac_cv_path_EGREP+:} false; then : |
| 3417 | $as_echo_n "(cached) " >&6 |
| 3418 | else |
| 3419 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3420 | then ac_cv_path_EGREP="$GREP -E" |
| 3421 | else |
| 3422 | if test -z "$EGREP"; then |
| 3423 | ac_path_EGREP_found=false |
| 3424 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3426 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3427 | do |
| 3428 | IFS=$as_save_IFS |
| 3429 | test -z "$as_dir" && as_dir=. |
| 3430 | for ac_prog in egrep; do |
| 3431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3432 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3433 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 3434 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3435 | # Check for GNU $ac_path_EGREP |
| 3436 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3437 | *GNU*) |
| 3438 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3439 | *) |
| 3440 | ac_count=0 |
| 3441 | $as_echo_n 0123456789 >"conftest.in" |
| 3442 | while : |
| 3443 | do |
| 3444 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3445 | mv "conftest.tmp" "conftest.in" |
| 3446 | cp "conftest.in" "conftest.nl" |
| 3447 | $as_echo 'EGREP' >> "conftest.nl" |
| 3448 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3449 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3450 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3451 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3452 | # Best one so far, save it but keep looking for a better one |
| 3453 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3454 | ac_path_EGREP_max=$ac_count |
| 3455 | fi |
| 3456 | # 10*(2^10) chars as input seems more than enough |
| 3457 | test $ac_count -gt 10 && break |
| 3458 | done |
| 3459 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3460 | esac |
| 3461 | |
| 3462 | $ac_path_EGREP_found && break 3 |
| 3463 | done |
| 3464 | done |
| 3465 | done |
| 3466 | IFS=$as_save_IFS |
| 3467 | if test -z "$ac_cv_path_EGREP"; then |
| 3468 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3469 | fi |
| 3470 | else |
| 3471 | ac_cv_path_EGREP=$EGREP |
| 3472 | fi |
| 3473 | |
| 3474 | fi |
| 3475 | fi |
| 3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3477 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3478 | EGREP="$ac_cv_path_EGREP" |
| 3479 | |
| 3480 | |
| 3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3482 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 3483 | if ${ac_cv_header_stdc+:} false; then : |
| 3484 | $as_echo_n "(cached) " >&6 |
| 3485 | else |
| 3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3487 | /* end confdefs.h. */ |
| 3488 | #include <stdlib.h> |
| 3489 | #include <stdarg.h> |
| 3490 | #include <string.h> |
| 3491 | #include <float.h> |
| 3492 | |
| 3493 | int |
| 3494 | main () |
| 3495 | { |
| 3496 | |
| 3497 | ; |
| 3498 | return 0; |
| 3499 | } |
| 3500 | _ACEOF |
| 3501 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3502 | ac_cv_header_stdc=yes |
| 3503 | else |
| 3504 | ac_cv_header_stdc=no |
| 3505 | fi |
| 3506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3507 | |
| 3508 | if test $ac_cv_header_stdc = yes; then |
| 3509 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3511 | /* end confdefs.h. */ |
| 3512 | #include <string.h> |
| 3513 | |
| 3514 | _ACEOF |
| 3515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3516 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 3517 | |
| 3518 | else |
| 3519 | ac_cv_header_stdc=no |
| 3520 | fi |
| 3521 | rm -f conftest* |
| 3522 | |
| 3523 | fi |
| 3524 | |
| 3525 | if test $ac_cv_header_stdc = yes; then |
| 3526 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3528 | /* end confdefs.h. */ |
| 3529 | #include <stdlib.h> |
| 3530 | |
| 3531 | _ACEOF |
| 3532 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3533 | $EGREP "free" >/dev/null 2>&1; then : |
| 3534 | |
| 3535 | else |
| 3536 | ac_cv_header_stdc=no |
| 3537 | fi |
| 3538 | rm -f conftest* |
| 3539 | |
| 3540 | fi |
| 3541 | |
| 3542 | if test $ac_cv_header_stdc = yes; then |
| 3543 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3544 | if test "$cross_compiling" = yes; then : |
| 3545 | : |
| 3546 | else |
| 3547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3548 | /* end confdefs.h. */ |
| 3549 | #include <ctype.h> |
| 3550 | #include <stdlib.h> |
| 3551 | #if ((' ' & 0x0FF) == 0x020) |
| 3552 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3553 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3554 | #else |
| 3555 | # define ISLOWER(c) \ |
| 3556 | (('a' <= (c) && (c) <= 'i') \ |
| 3557 | || ('j' <= (c) && (c) <= 'r') \ |
| 3558 | || ('s' <= (c) && (c) <= 'z')) |
| 3559 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3560 | #endif |
| 3561 | |
| 3562 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3563 | int |
| 3564 | main () |
| 3565 | { |
| 3566 | int i; |
| 3567 | for (i = 0; i < 256; i++) |
| 3568 | if (XOR (islower (i), ISLOWER (i)) |
| 3569 | || toupper (i) != TOUPPER (i)) |
| 3570 | return 2; |
| 3571 | return 0; |
| 3572 | } |
| 3573 | _ACEOF |
| 3574 | if ac_fn_c_try_run "$LINENO"; then : |
| 3575 | |
| 3576 | else |
| 3577 | ac_cv_header_stdc=no |
| 3578 | fi |
| 3579 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3580 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3581 | fi |
| 3582 | |
| 3583 | fi |
| 3584 | fi |
| 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3586 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 3587 | if test $ac_cv_header_stdc = yes; then |
| 3588 | |
| 3589 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3590 | |
| 3591 | fi |
| 3592 | |
| 3593 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3594 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3595 | inttypes.h stdint.h unistd.h |
| 3596 | do : |
| 3597 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3598 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3599 | " |
| 3600 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3601 | cat >>confdefs.h <<_ACEOF |
| 3602 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3603 | _ACEOF |
| 3604 | |
| 3605 | fi |
| 3606 | |
| 3607 | done |
| 3608 | |
| 3609 | |
| 3610 | for ac_header in ctype.h dirent.h err.h errno.h fcntl.h fnmatch.h fts.h \ |
| 3611 | grp.h limits.h md5.h netdb.h pwd.h rmd160.h sha1.h sha2.h \ |
| 3612 | stdarg.h stddef.h stdio.h stdlib.h string.h time.h unistd.h \ |
| 3613 | util.h vis.h |
| 3614 | do : |
| 3615 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3616 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 3617 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3618 | cat >>confdefs.h <<_ACEOF |
| 3619 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3620 | _ACEOF |
| 3621 | |
| 3622 | fi |
| 3623 | |
| 3624 | done |
| 3625 | |
| 3626 | for ac_header in sys/cdefs.h sys/param.h sys/queue.h sys/stat.h sys/types.h |
| 3627 | do : |
| 3628 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3629 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 3630 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3631 | cat >>confdefs.h <<_ACEOF |
| 3632 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3633 | _ACEOF |
| 3634 | |
| 3635 | fi |
| 3636 | |
| 3637 | done |
| 3638 | |
| 3639 | |
| 3640 | # Checks for typedefs, structures, and compiler characteristics. |
| 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 3642 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 3643 | if ${ac_cv_c_const+:} false; then : |
| 3644 | $as_echo_n "(cached) " >&6 |
| 3645 | else |
| 3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3647 | /* end confdefs.h. */ |
| 3648 | |
| 3649 | int |
| 3650 | main () |
| 3651 | { |
| 3652 | |
| 3653 | #ifndef __cplusplus |
| 3654 | /* Ultrix mips cc rejects this sort of thing. */ |
| 3655 | typedef int charset[2]; |
| 3656 | const charset cs = { 0, 0 }; |
| 3657 | /* SunOS 4.1.1 cc rejects this. */ |
| 3658 | char const *const *pcpcc; |
| 3659 | char **ppc; |
| 3660 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3661 | struct point {int x, y;}; |
| 3662 | static struct point const zero = {0,0}; |
| 3663 | /* AIX XL C 1.02.0.0 rejects this. |
| 3664 | It does not let you subtract one const X* pointer from another in |
| 3665 | an arm of an if-expression whose if-part is not a constant |
| 3666 | expression */ |
| 3667 | const char *g = "string"; |
| 3668 | pcpcc = &g + (g ? g-g : 0); |
| 3669 | /* HPUX 7.0 cc rejects these. */ |
| 3670 | ++pcpcc; |
| 3671 | ppc = (char**) pcpcc; |
| 3672 | pcpcc = (char const *const *) ppc; |
| 3673 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 3674 | char tx; |
| 3675 | char *t = &tx; |
| 3676 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3677 | |
| 3678 | *t++ = 0; |
| 3679 | if (s) return 0; |
| 3680 | } |
| 3681 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3682 | int x[] = {25, 17}; |
| 3683 | const int *foo = &x[0]; |
| 3684 | ++foo; |
| 3685 | } |
| 3686 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3687 | typedef const int *iptr; |
| 3688 | iptr p = 0; |
| 3689 | ++p; |
| 3690 | } |
| 3691 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 3692 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3693 | struct s { int j; const int *ap[3]; } bx; |
| 3694 | struct s *b = &bx; b->j = 5; |
| 3695 | } |
| 3696 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3697 | const int foo = 10; |
| 3698 | if (!foo) return 0; |
| 3699 | } |
| 3700 | return !cs[0] && !zero.x; |
| 3701 | #endif |
| 3702 | |
| 3703 | ; |
| 3704 | return 0; |
| 3705 | } |
| 3706 | _ACEOF |
| 3707 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3708 | ac_cv_c_const=yes |
| 3709 | else |
| 3710 | ac_cv_c_const=no |
| 3711 | fi |
| 3712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3713 | fi |
| 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 3715 | $as_echo "$ac_cv_c_const" >&6; } |
| 3716 | if test $ac_cv_c_const = no; then |
| 3717 | |
| 3718 | $as_echo "#define const /**/" >>confdefs.h |
| 3719 | |
| 3720 | fi |
| 3721 | |
| 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 3723 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 3724 | if ${ac_cv_type_uid_t+:} false; then : |
| 3725 | $as_echo_n "(cached) " >&6 |
| 3726 | else |
| 3727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3728 | /* end confdefs.h. */ |
| 3729 | #include <sys/types.h> |
| 3730 | |
| 3731 | _ACEOF |
| 3732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3733 | $EGREP "uid_t" >/dev/null 2>&1; then : |
| 3734 | ac_cv_type_uid_t=yes |
| 3735 | else |
| 3736 | ac_cv_type_uid_t=no |
| 3737 | fi |
| 3738 | rm -f conftest* |
| 3739 | |
| 3740 | fi |
| 3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 3742 | $as_echo "$ac_cv_type_uid_t" >&6; } |
| 3743 | if test $ac_cv_type_uid_t = no; then |
| 3744 | |
| 3745 | $as_echo "#define uid_t int" >>confdefs.h |
| 3746 | |
| 3747 | |
| 3748 | $as_echo "#define gid_t int" >>confdefs.h |
| 3749 | |
| 3750 | fi |
| 3751 | |
| 3752 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 3753 | if test "x$ac_cv_type_mode_t" = xyes; then : |
| 3754 | |
| 3755 | else |
| 3756 | |
| 3757 | cat >>confdefs.h <<_ACEOF |
| 3758 | #define mode_t int |
| 3759 | _ACEOF |
| 3760 | |
| 3761 | fi |
| 3762 | |
| 3763 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 3764 | if test "x$ac_cv_type_off_t" = xyes; then : |
| 3765 | |
| 3766 | else |
| 3767 | |
| 3768 | cat >>confdefs.h <<_ACEOF |
| 3769 | #define off_t long int |
| 3770 | _ACEOF |
| 3771 | |
| 3772 | fi |
| 3773 | |
| 3774 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 3775 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 3776 | |
| 3777 | else |
| 3778 | |
| 3779 | cat >>confdefs.h <<_ACEOF |
| 3780 | #define size_t unsigned int |
| 3781 | _ACEOF |
| 3782 | |
| 3783 | fi |
| 3784 | |
| 3785 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
| 3786 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
| 3787 | |
| 3788 | cat >>confdefs.h <<_ACEOF |
| 3789 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 3790 | _ACEOF |
| 3791 | |
| 3792 | |
| 3793 | fi |
| 3794 | |
| 3795 | ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" |
| 3796 | if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : |
| 3797 | |
| 3798 | cat >>confdefs.h <<_ACEOF |
| 3799 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 3800 | _ACEOF |
| 3801 | |
| 3802 | |
| 3803 | fi |
| 3804 | |
| 3805 | ac_fn_c_check_decl "$LINENO" "UF_SETTABLE" "ac_cv_have_decl_UF_SETTABLE" "$ac_includes_default" |
| 3806 | if test "x$ac_cv_have_decl_UF_SETTABLE" = xyes; then : |
| 3807 | ac_have_decl=1 |
| 3808 | else |
| 3809 | ac_have_decl=0 |
| 3810 | fi |
| 3811 | |
| 3812 | cat >>confdefs.h <<_ACEOF |
| 3813 | #define HAVE_DECL_UF_SETTABLE $ac_have_decl |
| 3814 | _ACEOF |
| 3815 | ac_fn_c_check_decl "$LINENO" "SF_SETTABLE" "ac_cv_have_decl_SF_SETTABLE" "$ac_includes_default" |
| 3816 | if test "x$ac_cv_have_decl_SF_SETTABLE" = xyes; then : |
| 3817 | ac_have_decl=1 |
| 3818 | else |
| 3819 | ac_have_decl=0 |
| 3820 | fi |
| 3821 | |
| 3822 | cat >>confdefs.h <<_ACEOF |
| 3823 | #define HAVE_DECL_SF_SETTABLE $ac_have_decl |
| 3824 | _ACEOF |
| 3825 | |
| 3826 | |
| 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 3828 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 3829 | if ${ac_cv_header_time+:} false; then : |
| 3830 | $as_echo_n "(cached) " >&6 |
| 3831 | else |
| 3832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3833 | /* end confdefs.h. */ |
| 3834 | #include <sys/types.h> |
| 3835 | #include <sys/time.h> |
| 3836 | #include <time.h> |
| 3837 | |
| 3838 | int |
| 3839 | main () |
| 3840 | { |
| 3841 | if ((struct tm *) 0) |
| 3842 | return 0; |
| 3843 | ; |
| 3844 | return 0; |
| 3845 | } |
| 3846 | _ACEOF |
| 3847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3848 | ac_cv_header_time=yes |
| 3849 | else |
| 3850 | ac_cv_header_time=no |
| 3851 | fi |
| 3852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3853 | fi |
| 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 3855 | $as_echo "$ac_cv_header_time" >&6; } |
| 3856 | if test $ac_cv_header_time = yes; then |
| 3857 | |
| 3858 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 3859 | |
| 3860 | fi |
| 3861 | |
| 3862 | |
| 3863 | # Checks for library functions. |
| 3864 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 3865 | # for constant arguments. Useless! |
| 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 3867 | $as_echo_n "checking for working alloca.h... " >&6; } |
| 3868 | if ${ac_cv_working_alloca_h+:} false; then : |
| 3869 | $as_echo_n "(cached) " >&6 |
| 3870 | else |
| 3871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3872 | /* end confdefs.h. */ |
| 3873 | #include <alloca.h> |
| 3874 | int |
| 3875 | main () |
| 3876 | { |
| 3877 | char *p = (char *) alloca (2 * sizeof (int)); |
| 3878 | if (p) return 0; |
| 3879 | ; |
| 3880 | return 0; |
| 3881 | } |
| 3882 | _ACEOF |
| 3883 | if ac_fn_c_try_link "$LINENO"; then : |
| 3884 | ac_cv_working_alloca_h=yes |
| 3885 | else |
| 3886 | ac_cv_working_alloca_h=no |
| 3887 | fi |
| 3888 | rm -f core conftest.err conftest.$ac_objext \ |
| 3889 | conftest$ac_exeext conftest.$ac_ext |
| 3890 | fi |
| 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 3892 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 3893 | if test $ac_cv_working_alloca_h = yes; then |
| 3894 | |
| 3895 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 3896 | |
| 3897 | fi |
| 3898 | |
| 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 3900 | $as_echo_n "checking for alloca... " >&6; } |
| 3901 | if ${ac_cv_func_alloca_works+:} false; then : |
| 3902 | $as_echo_n "(cached) " >&6 |
| 3903 | else |
| 3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3905 | /* end confdefs.h. */ |
| 3906 | #ifdef __GNUC__ |
| 3907 | # define alloca __builtin_alloca |
| 3908 | #else |
| 3909 | # ifdef _MSC_VER |
| 3910 | # include <malloc.h> |
| 3911 | # define alloca _alloca |
| 3912 | # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) |
| 3913 | # include <stdlib.h> |
| 3914 | # else |
| 3915 | # ifdef HAVE_ALLOCA_H |
| 3916 | # include <alloca.h> |
| 3917 | # else |
| 3918 | # ifdef _AIX |
| 3919 | #pragma alloca |
| 3920 | # else |
| 3921 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 3922 | void *alloca (size_t); |
| 3923 | # endif |
| 3924 | # endif |
| 3925 | # endif |
| 3926 | # endif |
| 3927 | #endif |
| 3928 | |
| 3929 | int |
| 3930 | main () |
| 3931 | { |
| 3932 | char *p = (char *) alloca (1); |
| 3933 | if (p) return 0; |
| 3934 | ; |
| 3935 | return 0; |
| 3936 | } |
| 3937 | _ACEOF |
| 3938 | if ac_fn_c_try_link "$LINENO"; then : |
| 3939 | ac_cv_func_alloca_works=yes |
| 3940 | else |
| 3941 | ac_cv_func_alloca_works=no |
| 3942 | fi |
| 3943 | rm -f core conftest.err conftest.$ac_objext \ |
| 3944 | conftest$ac_exeext conftest.$ac_ext |
| 3945 | fi |
| 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 3947 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 3948 | |
| 3949 | if test $ac_cv_func_alloca_works = yes; then |
| 3950 | |
| 3951 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 3952 | |
| 3953 | else |
| 3954 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 3955 | # that cause trouble. Some versions do not even contain alloca or |
| 3956 | # contain a buggy version. If you still want to use their alloca, |
| 3957 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 3958 | |
| 3959 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 3960 | |
| 3961 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 3962 | |
| 3963 | |
| 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 3965 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
| 3966 | if ${ac_cv_os_cray+:} false; then : |
| 3967 | $as_echo_n "(cached) " >&6 |
| 3968 | else |
| 3969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3970 | /* end confdefs.h. */ |
| 3971 | #if defined CRAY && ! defined CRAY2 |
| 3972 | webecray |
| 3973 | #else |
| 3974 | wenotbecray |
| 3975 | #endif |
| 3976 | |
| 3977 | _ACEOF |
| 3978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3979 | $EGREP "webecray" >/dev/null 2>&1; then : |
| 3980 | ac_cv_os_cray=yes |
| 3981 | else |
| 3982 | ac_cv_os_cray=no |
| 3983 | fi |
| 3984 | rm -f conftest* |
| 3985 | |
| 3986 | fi |
| 3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 3988 | $as_echo "$ac_cv_os_cray" >&6; } |
| 3989 | if test $ac_cv_os_cray = yes; then |
| 3990 | for ac_func in _getb67 GETB67 getb67; do |
| 3991 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3992 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 3993 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 3994 | |
| 3995 | cat >>confdefs.h <<_ACEOF |
| 3996 | #define CRAY_STACKSEG_END $ac_func |
| 3997 | _ACEOF |
| 3998 | |
| 3999 | break |
| 4000 | fi |
| 4001 | |
| 4002 | done |
| 4003 | fi |
| 4004 | |
| 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 4006 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 4007 | if ${ac_cv_c_stack_direction+:} false; then : |
| 4008 | $as_echo_n "(cached) " >&6 |
| 4009 | else |
| 4010 | if test "$cross_compiling" = yes; then : |
| 4011 | ac_cv_c_stack_direction=0 |
| 4012 | else |
| 4013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4014 | /* end confdefs.h. */ |
| 4015 | $ac_includes_default |
| 4016 | int |
| 4017 | find_stack_direction (int *addr, int depth) |
| 4018 | { |
| 4019 | int dir, dummy = 0; |
| 4020 | if (! addr) |
| 4021 | addr = &dummy; |
| 4022 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 4023 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 4024 | return dir + dummy; |
| 4025 | } |
| 4026 | |
| 4027 | int |
| 4028 | main (int argc, char **argv) |
| 4029 | { |
| 4030 | return find_stack_direction (0, argc + !argv + 20) < 0; |
| 4031 | } |
| 4032 | _ACEOF |
| 4033 | if ac_fn_c_try_run "$LINENO"; then : |
| 4034 | ac_cv_c_stack_direction=1 |
| 4035 | else |
| 4036 | ac_cv_c_stack_direction=-1 |
| 4037 | fi |
| 4038 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4039 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4040 | fi |
| 4041 | |
| 4042 | fi |
| 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 4044 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 4045 | cat >>confdefs.h <<_ACEOF |
| 4046 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 4047 | _ACEOF |
| 4048 | |
| 4049 | |
| 4050 | fi |
| 4051 | |
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 4053 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 4054 | if ${ac_cv_type_mbstate_t+:} false; then : |
| 4055 | $as_echo_n "(cached) " >&6 |
| 4056 | else |
| 4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4058 | /* end confdefs.h. */ |
| 4059 | $ac_includes_default |
| 4060 | # include <wchar.h> |
| 4061 | int |
| 4062 | main () |
| 4063 | { |
| 4064 | mbstate_t x; return sizeof x; |
| 4065 | ; |
| 4066 | return 0; |
| 4067 | } |
| 4068 | _ACEOF |
| 4069 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4070 | ac_cv_type_mbstate_t=yes |
| 4071 | else |
| 4072 | ac_cv_type_mbstate_t=no |
| 4073 | fi |
| 4074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4075 | fi |
| 4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 4077 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 4078 | if test $ac_cv_type_mbstate_t = yes; then |
| 4079 | |
| 4080 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 4081 | |
| 4082 | else |
| 4083 | |
| 4084 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 4085 | |
| 4086 | fi |
| 4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 |
| 4088 | $as_echo_n "checking for working POSIX fnmatch... " >&6; } |
| 4089 | if ${ac_cv_func_fnmatch_works+:} false; then : |
| 4090 | $as_echo_n "(cached) " >&6 |
| 4091 | else |
| 4092 | # Some versions of Solaris, SCO, and the GNU C Library |
| 4093 | # have a broken or incompatible fnmatch. |
| 4094 | # So we run a test program. If we are cross-compiling, take no chance. |
| 4095 | # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. |
| 4096 | if test "$cross_compiling" = yes; then : |
| 4097 | ac_cv_func_fnmatch_works=cross |
| 4098 | else |
| 4099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4100 | /* end confdefs.h. */ |
| 4101 | #include <fnmatch.h> |
| 4102 | # define y(a, b, c) (fnmatch (a, b, c) == 0) |
| 4103 | # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) |
| 4104 | |
| 4105 | int |
| 4106 | main () |
| 4107 | { |
| 4108 | return |
| 4109 | (!(y ("a*", "abc", 0) |
| 4110 | && n ("d*/*1", "d/s/1", FNM_PATHNAME) |
| 4111 | && y ("a\\\\bc", "abc", 0) |
| 4112 | && n ("a\\\\bc", "abc", FNM_NOESCAPE) |
| 4113 | && y ("*x", ".x", 0) |
| 4114 | && n ("*x", ".x", FNM_PERIOD) |
| 4115 | && 1)); |
| 4116 | ; |
| 4117 | return 0; |
| 4118 | } |
| 4119 | _ACEOF |
| 4120 | if ac_fn_c_try_run "$LINENO"; then : |
| 4121 | ac_cv_func_fnmatch_works=yes |
| 4122 | else |
| 4123 | ac_cv_func_fnmatch_works=no |
| 4124 | fi |
| 4125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4126 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4127 | fi |
| 4128 | |
| 4129 | fi |
| 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 |
| 4131 | $as_echo "$ac_cv_func_fnmatch_works" >&6; } |
| 4132 | if test $ac_cv_func_fnmatch_works = yes; then : |
| 4133 | rm -f "$ac_config_libobj_dir/fnmatch.h" |
| 4134 | else |
| 4135 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
| 4136 | if test "x$ac_cv_have_decl_getenv" = xyes; then : |
| 4137 | ac_have_decl=1 |
| 4138 | else |
| 4139 | ac_have_decl=0 |
| 4140 | fi |
| 4141 | |
| 4142 | cat >>confdefs.h <<_ACEOF |
| 4143 | #define HAVE_DECL_GETENV $ac_have_decl |
| 4144 | _ACEOF |
| 4145 | |
| 4146 | for ac_func in btowc mbsrtowcs mempcpy wmempcpy |
| 4147 | do : |
| 4148 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4149 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4150 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 4151 | cat >>confdefs.h <<_ACEOF |
| 4152 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4153 | _ACEOF |
| 4154 | |
| 4155 | fi |
| 4156 | done |
| 4157 | |
| 4158 | for ac_header in wchar.h wctype.h |
| 4159 | do : |
| 4160 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4161 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 4162 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4163 | cat >>confdefs.h <<_ACEOF |
| 4164 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4165 | _ACEOF |
| 4166 | |
| 4167 | fi |
| 4168 | |
| 4169 | done |
| 4170 | |
| 4171 | case " $LIBOBJS " in |
| 4172 | *" fnmatch.$ac_objext "* ) ;; |
| 4173 | *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" |
| 4174 | ;; |
| 4175 | esac |
| 4176 | |
| 4177 | ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" |
| 4178 | |
| 4179 | |
| 4180 | $as_echo "#define fnmatch rpl_fnmatch" >>confdefs.h |
| 4181 | |
| 4182 | |
| 4183 | fi |
| 4184 | |
| 4185 | |
| 4186 | for ac_func in endgrent endpwent getcwd gethostname mkdir SHA256_File strchr strpbrk strstr strtol strtoul |
| 4187 | do : |
| 4188 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4189 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 4190 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 4191 | cat >>confdefs.h <<_ACEOF |
| 4192 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4193 | _ACEOF |
| 4194 | |
| 4195 | fi |
| 4196 | done |
| 4197 | |
| 4198 | |
| 4199 | ac_config_files="$ac_config_files Makefile" |
| 4200 | |
| 4201 | cat >confcache <<\_ACEOF |
| 4202 | # This file is a shell script that caches the results of configure |
| 4203 | # tests run on this system so they can be shared between configure |
| 4204 | # scripts and configure runs, see configure's option --config-cache. |
| 4205 | # It is not useful on other systems. If it contains results you don't |
| 4206 | # want to keep, you may remove or edit it. |
| 4207 | # |
| 4208 | # config.status only pays attention to the cache file if you give it |
| 4209 | # the --recheck option to rerun configure. |
| 4210 | # |
| 4211 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4212 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4213 | # following values. |
| 4214 | |
| 4215 | _ACEOF |
| 4216 | |
| 4217 | # The following way of writing the cache mishandles newlines in values, |
| 4218 | # but we know of no workaround that is simple, portable, and efficient. |
| 4219 | # So, we kill variables containing newlines. |
| 4220 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4221 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4222 | ( |
| 4223 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 4224 | eval ac_val=\$$ac_var |
| 4225 | case $ac_val in #( |
| 4226 | *${as_nl}*) |
| 4227 | case $ac_var in #( |
| 4228 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 4229 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 4230 | esac |
| 4231 | case $ac_var in #( |
| 4232 | _ | IFS | as_nl) ;; #( |
| 4233 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 4234 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 4235 | esac ;; |
| 4236 | esac |
| 4237 | done |
| 4238 | |
| 4239 | (set) 2>&1 | |
| 4240 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 4241 | *${as_nl}ac_space=\ *) |
| 4242 | # `set' does not quote correctly, so add quotes: double-quote |
| 4243 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 4244 | sed -n \ |
| 4245 | "s/'/'\\\\''/g; |
| 4246 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4247 | ;; #( |
| 4248 | *) |
| 4249 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4250 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 4251 | ;; |
| 4252 | esac | |
| 4253 | sort |
| 4254 | ) | |
| 4255 | sed ' |
| 4256 | /^ac_cv_env_/b end |
| 4257 | t clear |
| 4258 | :clear |
| 4259 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4260 | t end |
| 4261 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4262 | :end' >>confcache |
| 4263 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 4264 | if test -w "$cache_file"; then |
| 4265 | if test "x$cache_file" != "x/dev/null"; then |
| 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 4267 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 4268 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 4269 | cat confcache >"$cache_file" |
| 4270 | else |
| 4271 | case $cache_file in #( |
| 4272 | */* | ?:*) |
| 4273 | mv -f confcache "$cache_file"$$ && |
| 4274 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 4275 | *) |
| 4276 | mv -f confcache "$cache_file" ;; |
| 4277 | esac |
| 4278 | fi |
| 4279 | fi |
| 4280 | else |
| 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 4282 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 4283 | fi |
| 4284 | fi |
| 4285 | rm -f confcache |
| 4286 | |
| 4287 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4288 | # Let make expand exec_prefix. |
| 4289 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4290 | |
| 4291 | DEFS=-DHAVE_CONFIG_H |
| 4292 | |
| 4293 | ac_libobjs= |
| 4294 | ac_ltlibobjs= |
| 4295 | U= |
| 4296 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 4297 | # 1. Remove the extension, and $U if already installed. |
| 4298 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 4299 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 4300 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 4301 | # will be set to the directory where LIBOBJS objects are built. |
| 4302 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 4303 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 4304 | done |
| 4305 | LIBOBJS=$ac_libobjs |
| 4306 | |
| 4307 | LTLIBOBJS=$ac_ltlibobjs |
| 4308 | |
| 4309 | |
| 4310 | |
| 4311 | : "${CONFIG_STATUS=./config.status}" |
| 4312 | ac_write_fail=0 |
| 4313 | ac_clean_files_save=$ac_clean_files |
| 4314 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 4316 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 4317 | as_write_fail=0 |
| 4318 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 4319 | #! $SHELL |
| 4320 | # Generated by $as_me. |
| 4321 | # Run this file to recreate the current configuration. |
| 4322 | # Compiler output produced by configure, useful for debugging |
| 4323 | # configure, is in config.log if it exists. |
| 4324 | |
| 4325 | debug=false |
| 4326 | ac_cs_recheck=false |
| 4327 | ac_cs_silent=false |
| 4328 | |
| 4329 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 4330 | export SHELL |
| 4331 | _ASEOF |
| 4332 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 4333 | ## -------------------- ## |
| 4334 | ## M4sh Initialization. ## |
| 4335 | ## -------------------- ## |
| 4336 | |
| 4337 | # Be more Bourne compatible |
| 4338 | DUALCASE=1; export DUALCASE # for MKS sh |
| 4339 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 4340 | emulate sh |
| 4341 | NULLCMD=: |
| 4342 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 4343 | # is contrary to our usage. Disable this feature. |
| 4344 | alias -g '${1+"$@"}'='"$@"' |
| 4345 | setopt NO_GLOB_SUBST |
| 4346 | else |
| 4347 | case `(set -o) 2>/dev/null` in #( |
| 4348 | *posix*) : |
| 4349 | set -o posix ;; #( |
| 4350 | *) : |
| 4351 | ;; |
| 4352 | esac |
| 4353 | fi |
| 4354 | |
| 4355 | |
| 4356 | as_nl=' |
| 4357 | ' |
| 4358 | export as_nl |
| 4359 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 4360 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4361 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 4362 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 4363 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 4364 | # but without wasting forks for bash or zsh. |
| 4365 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 4366 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 4367 | as_echo='print -r --' |
| 4368 | as_echo_n='print -rn --' |
| 4369 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 4370 | as_echo='printf %s\n' |
| 4371 | as_echo_n='printf %s' |
| 4372 | else |
| 4373 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 4374 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 4375 | as_echo_n='/usr/ucb/echo -n' |
| 4376 | else |
| 4377 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 4378 | as_echo_n_body='eval |
| 4379 | arg=$1; |
| 4380 | case $arg in #( |
| 4381 | *"$as_nl"*) |
| 4382 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 4383 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 4384 | esac; |
| 4385 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 4386 | ' |
| 4387 | export as_echo_n_body |
| 4388 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 4389 | fi |
| 4390 | export as_echo_body |
| 4391 | as_echo='sh -c $as_echo_body as_echo' |
| 4392 | fi |
| 4393 | |
| 4394 | # The user is always right. |
| 4395 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4396 | PATH_SEPARATOR=: |
| 4397 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 4398 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 4399 | PATH_SEPARATOR=';' |
| 4400 | } |
| 4401 | fi |
| 4402 | |
| 4403 | |
| 4404 | # IFS |
| 4405 | # We need space, tab and new line, in precisely that order. Quoting is |
| 4406 | # there to prevent editors from complaining about space-tab. |
| 4407 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 4408 | # splitting by setting IFS to empty value.) |
| 4409 | IFS=" "" $as_nl" |
| 4410 | |
| 4411 | # Find who we are. Look in the path if we contain no directory separator. |
| 4412 | as_myself= |
| 4413 | case $0 in #(( |
| 4414 | *[\\/]* ) as_myself=$0 ;; |
| 4415 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
| 4420 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 4421 | done |
| 4422 | IFS=$as_save_IFS |
| 4423 | |
| 4424 | ;; |
| 4425 | esac |
| 4426 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 4427 | # in which case we are not to be found in the path. |
| 4428 | if test "x$as_myself" = x; then |
| 4429 | as_myself=$0 |
| 4430 | fi |
| 4431 | if test ! -f "$as_myself"; then |
| 4432 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 4433 | exit 1 |
| 4434 | fi |
| 4435 | |
| 4436 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 4437 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 4438 | # suppresses any "Segmentation fault" message there. '((' could |
| 4439 | # trigger a bug in pdksh 5.2.14. |
| 4440 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 4441 | do eval test x\${$as_var+set} = xset \ |
| 4442 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 4443 | done |
| 4444 | PS1='$ ' |
| 4445 | PS2='> ' |
| 4446 | PS4='+ ' |
| 4447 | |
| 4448 | # NLS nuisances. |
| 4449 | LC_ALL=C |
| 4450 | export LC_ALL |
| 4451 | LANGUAGE=C |
| 4452 | export LANGUAGE |
| 4453 | |
| 4454 | # CDPATH. |
| 4455 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 4456 | |
| 4457 | |
| 4458 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 4459 | # ---------------------------------------- |
| 4460 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 4461 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 4462 | # script with STATUS, using 1 if that was 0. |
| 4463 | as_fn_error () |
| 4464 | { |
| 4465 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 4466 | if test "$4"; then |
| 4467 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 4468 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 4469 | fi |
| 4470 | $as_echo "$as_me: error: $2" >&2 |
| 4471 | as_fn_exit $as_status |
| 4472 | } # as_fn_error |
| 4473 | |
| 4474 | |
| 4475 | # as_fn_set_status STATUS |
| 4476 | # ----------------------- |
| 4477 | # Set $? to STATUS, without forking. |
| 4478 | as_fn_set_status () |
| 4479 | { |
| 4480 | return $1 |
| 4481 | } # as_fn_set_status |
| 4482 | |
| 4483 | # as_fn_exit STATUS |
| 4484 | # ----------------- |
| 4485 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 4486 | as_fn_exit () |
| 4487 | { |
| 4488 | set +e |
| 4489 | as_fn_set_status $1 |
| 4490 | exit $1 |
| 4491 | } # as_fn_exit |
| 4492 | |
| 4493 | # as_fn_unset VAR |
| 4494 | # --------------- |
| 4495 | # Portably unset VAR. |
| 4496 | as_fn_unset () |
| 4497 | { |
| 4498 | { eval $1=; unset $1;} |
| 4499 | } |
| 4500 | as_unset=as_fn_unset |
| 4501 | # as_fn_append VAR VALUE |
| 4502 | # ---------------------- |
| 4503 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 4504 | # advantage of any shell optimizations that allow amortized linear growth over |
| 4505 | # repeated appends, instead of the typical quadratic growth present in naive |
| 4506 | # implementations. |
| 4507 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 4508 | eval 'as_fn_append () |
| 4509 | { |
| 4510 | eval $1+=\$2 |
| 4511 | }' |
| 4512 | else |
| 4513 | as_fn_append () |
| 4514 | { |
| 4515 | eval $1=\$$1\$2 |
| 4516 | } |
| 4517 | fi # as_fn_append |
| 4518 | |
| 4519 | # as_fn_arith ARG... |
| 4520 | # ------------------ |
| 4521 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 4522 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 4523 | # must be portable across $(()) and expr. |
| 4524 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 4525 | eval 'as_fn_arith () |
| 4526 | { |
| 4527 | as_val=$(( $* )) |
| 4528 | }' |
| 4529 | else |
| 4530 | as_fn_arith () |
| 4531 | { |
| 4532 | as_val=`expr "$@" || test $? -eq 1` |
| 4533 | } |
| 4534 | fi # as_fn_arith |
| 4535 | |
| 4536 | |
| 4537 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 4538 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 4539 | as_expr=expr |
| 4540 | else |
| 4541 | as_expr=false |
| 4542 | fi |
| 4543 | |
| 4544 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 4545 | as_basename=basename |
| 4546 | else |
| 4547 | as_basename=false |
| 4548 | fi |
| 4549 | |
| 4550 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 4551 | as_dirname=dirname |
| 4552 | else |
| 4553 | as_dirname=false |
| 4554 | fi |
| 4555 | |
| 4556 | as_me=`$as_basename -- "$0" || |
| 4557 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4558 | X"$0" : 'X\(//\)$' \| \ |
| 4559 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 4560 | $as_echo X/"$0" | |
| 4561 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 4562 | s//\1/ |
| 4563 | q |
| 4564 | } |
| 4565 | /^X\/\(\/\/\)$/{ |
| 4566 | s//\1/ |
| 4567 | q |
| 4568 | } |
| 4569 | /^X\/\(\/\).*/{ |
| 4570 | s//\1/ |
| 4571 | q |
| 4572 | } |
| 4573 | s/.*/./; q'` |
| 4574 | |
| 4575 | # Avoid depending upon Character Ranges. |
| 4576 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 4577 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 4578 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 4579 | as_cr_digits='0123456789' |
| 4580 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 4581 | |
| 4582 | ECHO_C= ECHO_N= ECHO_T= |
| 4583 | case `echo -n x` in #((((( |
| 4584 | -n*) |
| 4585 | case `echo 'xy\c'` in |
| 4586 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 4587 | xy) ECHO_C='\c';; |
| 4588 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 4589 | ECHO_T=' ';; |
| 4590 | esac;; |
| 4591 | *) |
| 4592 | ECHO_N='-n';; |
| 4593 | esac |
| 4594 | |
| 4595 | rm -f conf$$ conf$$.exe conf$$.file |
| 4596 | if test -d conf$$.dir; then |
| 4597 | rm -f conf$$.dir/conf$$.file |
| 4598 | else |
| 4599 | rm -f conf$$.dir |
| 4600 | mkdir conf$$.dir 2>/dev/null |
| 4601 | fi |
| 4602 | if (echo >conf$$.file) 2>/dev/null; then |
| 4603 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 4604 | as_ln_s='ln -s' |
| 4605 | # ... but there are two gotchas: |
| 4606 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 4607 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 4608 | # In both cases, we have to default to `cp -pR'. |
| 4609 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 4610 | as_ln_s='cp -pR' |
| 4611 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 4612 | as_ln_s=ln |
| 4613 | else |
| 4614 | as_ln_s='cp -pR' |
| 4615 | fi |
| 4616 | else |
| 4617 | as_ln_s='cp -pR' |
| 4618 | fi |
| 4619 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 4620 | rmdir conf$$.dir 2>/dev/null |
| 4621 | |
| 4622 | |
| 4623 | # as_fn_mkdir_p |
| 4624 | # ------------- |
| 4625 | # Create "$as_dir" as a directory, including parents if necessary. |
| 4626 | as_fn_mkdir_p () |
| 4627 | { |
| 4628 | |
| 4629 | case $as_dir in #( |
| 4630 | -*) as_dir=./$as_dir;; |
| 4631 | esac |
| 4632 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 4633 | as_dirs= |
| 4634 | while :; do |
| 4635 | case $as_dir in #( |
| 4636 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 4637 | *) as_qdir=$as_dir;; |
| 4638 | esac |
| 4639 | as_dirs="'$as_qdir' $as_dirs" |
| 4640 | as_dir=`$as_dirname -- "$as_dir" || |
| 4641 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 4642 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 4643 | X"$as_dir" : 'X\(//\)$' \| \ |
| 4644 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 4645 | $as_echo X"$as_dir" | |
| 4646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 4647 | s//\1/ |
| 4648 | q |
| 4649 | } |
| 4650 | /^X\(\/\/\)[^/].*/{ |
| 4651 | s//\1/ |
| 4652 | q |
| 4653 | } |
| 4654 | /^X\(\/\/\)$/{ |
| 4655 | s//\1/ |
| 4656 | q |
| 4657 | } |
| 4658 | /^X\(\/\).*/{ |
| 4659 | s//\1/ |
| 4660 | q |
| 4661 | } |
| 4662 | s/.*/./; q'` |
| 4663 | test -d "$as_dir" && break |
| 4664 | done |
| 4665 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 4666 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 4667 | |
| 4668 | |
| 4669 | } # as_fn_mkdir_p |
| 4670 | if mkdir -p . 2>/dev/null; then |
| 4671 | as_mkdir_p='mkdir -p "$as_dir"' |
| 4672 | else |
| 4673 | test -d ./-p && rmdir ./-p |
| 4674 | as_mkdir_p=false |
| 4675 | fi |
| 4676 | |
| 4677 | |
| 4678 | # as_fn_executable_p FILE |
| 4679 | # ----------------------- |
| 4680 | # Test if FILE is an executable regular file. |
| 4681 | as_fn_executable_p () |
| 4682 | { |
| 4683 | test -f "$1" && test -x "$1" |
| 4684 | } # as_fn_executable_p |
| 4685 | as_test_x='test -x' |
| 4686 | as_executable_p=as_fn_executable_p |
| 4687 | |
| 4688 | # Sed expression to map a string onto a valid CPP name. |
| 4689 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 4690 | |
| 4691 | # Sed expression to map a string onto a valid variable name. |
| 4692 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 4693 | |
| 4694 | |
| 4695 | exec 6>&1 |
| 4696 | ## ----------------------------------- ## |
| 4697 | ## Main body of $CONFIG_STATUS script. ## |
| 4698 | ## ----------------------------------- ## |
| 4699 | _ASEOF |
| 4700 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 4701 | |
| 4702 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4703 | # Save the log message, to keep $0 and so on meaningful, and to |
| 4704 | # report actual input values of CONFIG_FILES etc. instead of their |
| 4705 | # values after options handling. |
| 4706 | ac_log=" |
| 4707 | This file was extended by mtree $as_me 20040722, which was |
| 4708 | generated by GNU Autoconf 2.69. Invocation command line was |
| 4709 | |
| 4710 | CONFIG_FILES = $CONFIG_FILES |
| 4711 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 4712 | CONFIG_LINKS = $CONFIG_LINKS |
| 4713 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 4714 | $ $0 $@ |
| 4715 | |
| 4716 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 4717 | " |
| 4718 | |
| 4719 | _ACEOF |
| 4720 | |
| 4721 | case $ac_config_files in *" |
| 4722 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 4723 | esac |
| 4724 | |
| 4725 | case $ac_config_headers in *" |
| 4726 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 4727 | esac |
| 4728 | |
| 4729 | |
| 4730 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4731 | # Files that config.status was made for. |
| 4732 | config_files="$ac_config_files" |
| 4733 | config_headers="$ac_config_headers" |
| 4734 | config_links="$ac_config_links" |
| 4735 | |
| 4736 | _ACEOF |
| 4737 | |
| 4738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4739 | ac_cs_usage="\ |
| 4740 | \`$as_me' instantiates files and other configuration actions |
| 4741 | from templates according to the current configuration. Unless the files |
| 4742 | and actions are specified as TAGs, all are instantiated by default. |
| 4743 | |
| 4744 | Usage: $0 [OPTION]... [TAG]... |
| 4745 | |
| 4746 | -h, --help print this help, then exit |
| 4747 | -V, --version print version number and configuration settings, then exit |
| 4748 | --config print configuration, then exit |
| 4749 | -q, --quiet, --silent |
| 4750 | do not print progress messages |
| 4751 | -d, --debug don't remove temporary files |
| 4752 | --recheck update $as_me by reconfiguring in the same conditions |
| 4753 | --file=FILE[:TEMPLATE] |
| 4754 | instantiate the configuration file FILE |
| 4755 | --header=FILE[:TEMPLATE] |
| 4756 | instantiate the configuration header FILE |
| 4757 | |
| 4758 | Configuration files: |
| 4759 | $config_files |
| 4760 | |
| 4761 | Configuration headers: |
| 4762 | $config_headers |
| 4763 | |
| 4764 | Configuration links: |
| 4765 | $config_links |
| 4766 | |
| 4767 | Report bugs to <[email protected]>." |
| 4768 | |
| 4769 | _ACEOF |
| 4770 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4771 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 4772 | ac_cs_version="\\ |
| 4773 | mtree config.status 20040722 |
| 4774 | configured by $0, generated by GNU Autoconf 2.69, |
| 4775 | with options \\"\$ac_cs_config\\" |
| 4776 | |
| 4777 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 4778 | This config.status script is free software; the Free Software Foundation |
| 4779 | gives unlimited permission to copy, distribute and modify it." |
| 4780 | |
| 4781 | ac_pwd='$ac_pwd' |
| 4782 | srcdir='$srcdir' |
| 4783 | INSTALL='$INSTALL' |
| 4784 | test -n "\$AWK" || AWK=awk |
| 4785 | _ACEOF |
| 4786 | |
| 4787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4788 | # The default lists apply if the user does not specify any file. |
| 4789 | ac_need_defaults=: |
| 4790 | while test $# != 0 |
| 4791 | do |
| 4792 | case $1 in |
| 4793 | --*=?*) |
| 4794 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 4795 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 4796 | ac_shift=: |
| 4797 | ;; |
| 4798 | --*=) |
| 4799 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 4800 | ac_optarg= |
| 4801 | ac_shift=: |
| 4802 | ;; |
| 4803 | *) |
| 4804 | ac_option=$1 |
| 4805 | ac_optarg=$2 |
| 4806 | ac_shift=shift |
| 4807 | ;; |
| 4808 | esac |
| 4809 | |
| 4810 | case $ac_option in |
| 4811 | # Handling of the options. |
| 4812 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4813 | ac_cs_recheck=: ;; |
| 4814 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 4815 | $as_echo "$ac_cs_version"; exit ;; |
| 4816 | --config | --confi | --conf | --con | --co | --c ) |
| 4817 | $as_echo "$ac_cs_config"; exit ;; |
| 4818 | --debug | --debu | --deb | --de | --d | -d ) |
| 4819 | debug=: ;; |
| 4820 | --file | --fil | --fi | --f ) |
| 4821 | $ac_shift |
| 4822 | case $ac_optarg in |
| 4823 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4824 | '') as_fn_error $? "missing file argument" ;; |
| 4825 | esac |
| 4826 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 4827 | ac_need_defaults=false;; |
| 4828 | --header | --heade | --head | --hea ) |
| 4829 | $ac_shift |
| 4830 | case $ac_optarg in |
| 4831 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 4832 | esac |
| 4833 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 4834 | ac_need_defaults=false;; |
| 4835 | --he | --h) |
| 4836 | # Conflict between --help and --header |
| 4837 | as_fn_error $? "ambiguous option: \`$1' |
| 4838 | Try \`$0 --help' for more information.";; |
| 4839 | --help | --hel | -h ) |
| 4840 | $as_echo "$ac_cs_usage"; exit ;; |
| 4841 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 4842 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 4843 | ac_cs_silent=: ;; |
| 4844 | |
| 4845 | # This is an error. |
| 4846 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 4847 | Try \`$0 --help' for more information." ;; |
| 4848 | |
| 4849 | *) as_fn_append ac_config_targets " $1" |
| 4850 | ac_need_defaults=false ;; |
| 4851 | |
| 4852 | esac |
| 4853 | shift |
| 4854 | done |
| 4855 | |
| 4856 | ac_configure_extra_args= |
| 4857 | |
| 4858 | if $ac_cs_silent; then |
| 4859 | exec 6>/dev/null |
| 4860 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 4861 | fi |
| 4862 | |
| 4863 | _ACEOF |
| 4864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4865 | if \$ac_cs_recheck; then |
| 4866 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 4867 | shift |
| 4868 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 4869 | CONFIG_SHELL='$SHELL' |
| 4870 | export CONFIG_SHELL |
| 4871 | exec "\$@" |
| 4872 | fi |
| 4873 | |
| 4874 | _ACEOF |
| 4875 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4876 | exec 5>>config.log |
| 4877 | { |
| 4878 | echo |
| 4879 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 4880 | ## Running $as_me. ## |
| 4881 | _ASBOX |
| 4882 | $as_echo "$ac_log" |
| 4883 | } >&5 |
| 4884 | |
| 4885 | _ACEOF |
| 4886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4887 | _ACEOF |
| 4888 | |
| 4889 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 4890 | |
| 4891 | # Handling of arguments. |
| 4892 | for ac_config_target in $ac_config_targets |
| 4893 | do |
| 4894 | case $ac_config_target in |
| 4895 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 4896 | "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;; |
| 4897 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 4898 | |
| 4899 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 4900 | esac |
| 4901 | done |
| 4902 | |
| 4903 | |
| 4904 | # If the user did not use the arguments to specify the items to instantiate, |
| 4905 | # then the envvar interface is used. Set only those that are not. |
| 4906 | # We use the long form for the default assignment because of an extremely |
| 4907 | # bizarre bug on SunOS 4.1.3. |
| 4908 | if $ac_need_defaults; then |
| 4909 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 4910 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 4911 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 4912 | fi |
| 4913 | |
| 4914 | # Have a temporary directory for convenience. Make it in the build tree |
| 4915 | # simply because there is no reason against having it here, and in addition, |
| 4916 | # creating and moving files from /tmp can sometimes cause problems. |
| 4917 | # Hook for its removal unless debugging. |
| 4918 | # Note that there is a small window in which the directory will not be cleaned: |
| 4919 | # after its creation but before its name has been assigned to `$tmp'. |
| 4920 | $debug || |
| 4921 | { |
| 4922 | tmp= ac_tmp= |
| 4923 | trap 'exit_status=$? |
| 4924 | : "${ac_tmp:=$tmp}" |
| 4925 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 4926 | ' 0 |
| 4927 | trap 'as_fn_exit 1' 1 2 13 15 |
| 4928 | } |
| 4929 | # Create a (secure) tmp directory for tmp files. |
| 4930 | |
| 4931 | { |
| 4932 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 4933 | test -d "$tmp" |
| 4934 | } || |
| 4935 | { |
| 4936 | tmp=./conf$$-$RANDOM |
| 4937 | (umask 077 && mkdir "$tmp") |
| 4938 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 4939 | ac_tmp=$tmp |
| 4940 | |
| 4941 | # Set up the scripts for CONFIG_FILES section. |
| 4942 | # No need to generate them if there are no CONFIG_FILES. |
| 4943 | # This happens for instance with `./config.status config.h'. |
| 4944 | if test -n "$CONFIG_FILES"; then |
| 4945 | |
| 4946 | |
| 4947 | ac_cr=`echo X | tr X '\015'` |
| 4948 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 4949 | # But we know of no other shell where ac_cr would be empty at this |
| 4950 | # point, so we can use a bashism as a fallback. |
| 4951 | if test "x$ac_cr" = x; then |
| 4952 | eval ac_cr=\$\'\\r\' |
| 4953 | fi |
| 4954 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 4955 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 4956 | ac_cs_awk_cr='\\r' |
| 4957 | else |
| 4958 | ac_cs_awk_cr=$ac_cr |
| 4959 | fi |
| 4960 | |
| 4961 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 4962 | _ACEOF |
| 4963 | |
| 4964 | |
| 4965 | { |
| 4966 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 4967 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 4968 | echo "_ACEOF" |
| 4969 | } >conf$$subs.sh || |
| 4970 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4971 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 4972 | ac_delim='%!_!# ' |
| 4973 | for ac_last_try in false false false false false :; do |
| 4974 | . ./conf$$subs.sh || |
| 4975 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4976 | |
| 4977 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 4978 | if test $ac_delim_n = $ac_delim_num; then |
| 4979 | break |
| 4980 | elif $ac_last_try; then |
| 4981 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 4982 | else |
| 4983 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 4984 | fi |
| 4985 | done |
| 4986 | rm -f conf$$subs.sh |
| 4987 | |
| 4988 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 4989 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 4990 | _ACEOF |
| 4991 | sed -n ' |
| 4992 | h |
| 4993 | s/^/S["/; s/!.*/"]=/ |
| 4994 | p |
| 4995 | g |
| 4996 | s/^[^!]*!// |
| 4997 | :repl |
| 4998 | t repl |
| 4999 | s/'"$ac_delim"'$// |
| 5000 | t delim |
| 5001 | :nl |
| 5002 | h |
| 5003 | s/\(.\{148\}\)..*/\1/ |
| 5004 | t more1 |
| 5005 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5006 | p |
| 5007 | n |
| 5008 | b repl |
| 5009 | :more1 |
| 5010 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5011 | p |
| 5012 | g |
| 5013 | s/.\{148\}// |
| 5014 | t nl |
| 5015 | :delim |
| 5016 | h |
| 5017 | s/\(.\{148\}\)..*/\1/ |
| 5018 | t more2 |
| 5019 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5020 | p |
| 5021 | b |
| 5022 | :more2 |
| 5023 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5024 | p |
| 5025 | g |
| 5026 | s/.\{148\}// |
| 5027 | t delim |
| 5028 | ' <conf$$subs.awk | sed ' |
| 5029 | /^[^""]/{ |
| 5030 | N |
| 5031 | s/\n// |
| 5032 | } |
| 5033 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5034 | rm -f conf$$subs.awk |
| 5035 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5036 | _ACAWK |
| 5037 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 5038 | for (key in S) S_is_set[key] = 1 |
| 5039 | FS = "" |
| 5040 | |
| 5041 | } |
| 5042 | { |
| 5043 | line = $ 0 |
| 5044 | nfields = split(line, field, "@") |
| 5045 | substed = 0 |
| 5046 | len = length(field[1]) |
| 5047 | for (i = 2; i < nfields; i++) { |
| 5048 | key = field[i] |
| 5049 | keylen = length(key) |
| 5050 | if (S_is_set[key]) { |
| 5051 | value = S[key] |
| 5052 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 5053 | len += length(value) + length(field[++i]) |
| 5054 | substed = 1 |
| 5055 | } else |
| 5056 | len += 1 + keylen |
| 5057 | } |
| 5058 | |
| 5059 | print line |
| 5060 | } |
| 5061 | |
| 5062 | _ACAWK |
| 5063 | _ACEOF |
| 5064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5065 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 5066 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 5067 | else |
| 5068 | cat |
| 5069 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 5070 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 5071 | _ACEOF |
| 5072 | |
| 5073 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 5074 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 5075 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5076 | # (actually we leave an empty line to preserve line numbers). |
| 5077 | if test "x$srcdir" = x.; then |
| 5078 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 5079 | h |
| 5080 | s/// |
| 5081 | s/^/:/ |
| 5082 | s/[ ]*$/:/ |
| 5083 | s/:\$(srcdir):/:/g |
| 5084 | s/:\${srcdir}:/:/g |
| 5085 | s/:@srcdir@:/:/g |
| 5086 | s/^:*// |
| 5087 | s/:*$// |
| 5088 | x |
| 5089 | s/\(=[ ]*\).*/\1/ |
| 5090 | G |
| 5091 | s/\n// |
| 5092 | s/^[^=]*=[ ]*$// |
| 5093 | }' |
| 5094 | fi |
| 5095 | |
| 5096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5097 | fi # test -n "$CONFIG_FILES" |
| 5098 | |
| 5099 | # Set up the scripts for CONFIG_HEADERS section. |
| 5100 | # No need to generate them if there are no CONFIG_HEADERS. |
| 5101 | # This happens for instance with `./config.status Makefile'. |
| 5102 | if test -n "$CONFIG_HEADERS"; then |
| 5103 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 5104 | BEGIN { |
| 5105 | _ACEOF |
| 5106 | |
| 5107 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 5108 | # here-document in config.status, that substitutes the proper values into |
| 5109 | # config.h.in to produce config.h. |
| 5110 | |
| 5111 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 5112 | # handling of long lines. |
| 5113 | ac_delim='%!_!# ' |
| 5114 | for ac_last_try in false false :; do |
| 5115 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 5116 | if test -z "$ac_tt"; then |
| 5117 | break |
| 5118 | elif $ac_last_try; then |
| 5119 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 5120 | else |
| 5121 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5122 | fi |
| 5123 | done |
| 5124 | |
| 5125 | # For the awk script, D is an array of macro values keyed by name, |
| 5126 | # likewise P contains macro parameters if any. Preserve backslash |
| 5127 | # newline sequences. |
| 5128 | |
| 5129 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 5130 | sed -n ' |
| 5131 | s/.\{148\}/&'"$ac_delim"'/g |
| 5132 | t rset |
| 5133 | :rset |
| 5134 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 5135 | t def |
| 5136 | d |
| 5137 | :def |
| 5138 | s/\\$// |
| 5139 | t bsnl |
| 5140 | s/["\\]/\\&/g |
| 5141 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5142 | D["\1"]=" \3"/p |
| 5143 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 5144 | d |
| 5145 | :bsnl |
| 5146 | s/["\\]/\\&/g |
| 5147 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5148 | D["\1"]=" \3\\\\\\n"\\/p |
| 5149 | t cont |
| 5150 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 5151 | t cont |
| 5152 | d |
| 5153 | :cont |
| 5154 | n |
| 5155 | s/.\{148\}/&'"$ac_delim"'/g |
| 5156 | t clear |
| 5157 | :clear |
| 5158 | s/\\$// |
| 5159 | t bsnlc |
| 5160 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 5161 | d |
| 5162 | :bsnlc |
| 5163 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 5164 | b cont |
| 5165 | ' <confdefs.h | sed ' |
| 5166 | s/'"$ac_delim"'/"\\\ |
| 5167 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5168 | |
| 5169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5170 | for (key in D) D_is_set[key] = 1 |
| 5171 | FS = "" |
| 5172 | } |
| 5173 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 5174 | line = \$ 0 |
| 5175 | split(line, arg, " ") |
| 5176 | if (arg[1] == "#") { |
| 5177 | defundef = arg[2] |
| 5178 | mac1 = arg[3] |
| 5179 | } else { |
| 5180 | defundef = substr(arg[1], 2) |
| 5181 | mac1 = arg[2] |
| 5182 | } |
| 5183 | split(mac1, mac2, "(") #) |
| 5184 | macro = mac2[1] |
| 5185 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 5186 | if (D_is_set[macro]) { |
| 5187 | # Preserve the white space surrounding the "#". |
| 5188 | print prefix "define", macro P[macro] D[macro] |
| 5189 | next |
| 5190 | } else { |
| 5191 | # Replace #undef with comments. This is necessary, for example, |
| 5192 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 5193 | # on some systems where configure will not decide to define it. |
| 5194 | if (defundef == "undef") { |
| 5195 | print "/*", prefix defundef, macro, "*/" |
| 5196 | next |
| 5197 | } |
| 5198 | } |
| 5199 | } |
| 5200 | { print } |
| 5201 | _ACAWK |
| 5202 | _ACEOF |
| 5203 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5204 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 5205 | fi # test -n "$CONFIG_HEADERS" |
| 5206 | |
| 5207 | |
| 5208 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS " |
| 5209 | shift |
| 5210 | for ac_tag |
| 5211 | do |
| 5212 | case $ac_tag in |
| 5213 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 5214 | esac |
| 5215 | case $ac_mode$ac_tag in |
| 5216 | :[FHL]*:*);; |
| 5217 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 5218 | :[FH]-) ac_tag=-:-;; |
| 5219 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 5220 | esac |
| 5221 | ac_save_IFS=$IFS |
| 5222 | IFS=: |
| 5223 | set x $ac_tag |
| 5224 | IFS=$ac_save_IFS |
| 5225 | shift |
| 5226 | ac_file=$1 |
| 5227 | shift |
| 5228 | |
| 5229 | case $ac_mode in |
| 5230 | :L) ac_source=$1;; |
| 5231 | :[FH]) |
| 5232 | ac_file_inputs= |
| 5233 | for ac_f |
| 5234 | do |
| 5235 | case $ac_f in |
| 5236 | -) ac_f="$ac_tmp/stdin";; |
| 5237 | *) # Look for the file first in the build tree, then in the source tree |
| 5238 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 5239 | # because $ac_f cannot contain `:'. |
| 5240 | test -f "$ac_f" || |
| 5241 | case $ac_f in |
| 5242 | [\\/$]*) false;; |
| 5243 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 5244 | esac || |
| 5245 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 5246 | esac |
| 5247 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 5248 | as_fn_append ac_file_inputs " '$ac_f'" |
| 5249 | done |
| 5250 | |
| 5251 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 5252 | # use $as_me), people would be surprised to read: |
| 5253 | # /* config.h. Generated by config.status. */ |
| 5254 | configure_input='Generated from '` |
| 5255 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 5256 | `' by configure.' |
| 5257 | if test x"$ac_file" != x-; then |
| 5258 | configure_input="$ac_file. $configure_input" |
| 5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 5260 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 5261 | fi |
| 5262 | # Neutralize special characters interpreted by sed in replacement strings. |
| 5263 | case $configure_input in #( |
| 5264 | *\&* | *\|* | *\\* ) |
| 5265 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 5266 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 5267 | *) ac_sed_conf_input=$configure_input;; |
| 5268 | esac |
| 5269 | |
| 5270 | case $ac_tag in |
| 5271 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 5272 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 5273 | esac |
| 5274 | ;; |
| 5275 | esac |
| 5276 | |
| 5277 | ac_dir=`$as_dirname -- "$ac_file" || |
| 5278 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5279 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 5280 | X"$ac_file" : 'X\(//\)$' \| \ |
| 5281 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 5282 | $as_echo X"$ac_file" | |
| 5283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5284 | s//\1/ |
| 5285 | q |
| 5286 | } |
| 5287 | /^X\(\/\/\)[^/].*/{ |
| 5288 | s//\1/ |
| 5289 | q |
| 5290 | } |
| 5291 | /^X\(\/\/\)$/{ |
| 5292 | s//\1/ |
| 5293 | q |
| 5294 | } |
| 5295 | /^X\(\/\).*/{ |
| 5296 | s//\1/ |
| 5297 | q |
| 5298 | } |
| 5299 | s/.*/./; q'` |
| 5300 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 5301 | ac_builddir=. |
| 5302 | |
| 5303 | case "$ac_dir" in |
| 5304 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5305 | *) |
| 5306 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 5307 | # A ".." for each directory in $ac_dir_suffix. |
| 5308 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 5309 | case $ac_top_builddir_sub in |
| 5310 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 5311 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 5312 | esac ;; |
| 5313 | esac |
| 5314 | ac_abs_top_builddir=$ac_pwd |
| 5315 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 5316 | # for backward compatibility: |
| 5317 | ac_top_builddir=$ac_top_build_prefix |
| 5318 | |
| 5319 | case $srcdir in |
| 5320 | .) # We are building in place. |
| 5321 | ac_srcdir=. |
| 5322 | ac_top_srcdir=$ac_top_builddir_sub |
| 5323 | ac_abs_top_srcdir=$ac_pwd ;; |
| 5324 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 5325 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 5326 | ac_top_srcdir=$srcdir |
| 5327 | ac_abs_top_srcdir=$srcdir ;; |
| 5328 | *) # Relative name. |
| 5329 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 5330 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 5331 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 5332 | esac |
| 5333 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 5334 | |
| 5335 | |
| 5336 | case $ac_mode in |
| 5337 | :F) |
| 5338 | # |
| 5339 | # CONFIG_FILE |
| 5340 | # |
| 5341 | |
| 5342 | case $INSTALL in |
| 5343 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 5344 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 5345 | esac |
| 5346 | _ACEOF |
| 5347 | |
| 5348 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5349 | # If the template does not know about datarootdir, expand it. |
| 5350 | # FIXME: This hack should be removed a few years after 2.60. |
| 5351 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 5352 | ac_sed_dataroot=' |
| 5353 | /datarootdir/ { |
| 5354 | p |
| 5355 | q |
| 5356 | } |
| 5357 | /@datadir@/p |
| 5358 | /@docdir@/p |
| 5359 | /@infodir@/p |
| 5360 | /@localedir@/p |
| 5361 | /@mandir@/p' |
| 5362 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 5363 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 5364 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 5366 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 5367 | _ACEOF |
| 5368 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5369 | ac_datarootdir_hack=' |
| 5370 | s&@datadir@&$datadir&g |
| 5371 | s&@docdir@&$docdir&g |
| 5372 | s&@infodir@&$infodir&g |
| 5373 | s&@localedir@&$localedir&g |
| 5374 | s&@mandir@&$mandir&g |
| 5375 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 5376 | esac |
| 5377 | _ACEOF |
| 5378 | |
| 5379 | # Neutralize VPATH when `$srcdir' = `.'. |
| 5380 | # Shell code in configure.ac might set extrasub. |
| 5381 | # FIXME: do we really want to maintain this feature? |
| 5382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5383 | ac_sed_extra="$ac_vpsub |
| 5384 | $extrasub |
| 5385 | _ACEOF |
| 5386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5387 | :t |
| 5388 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 5389 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 5390 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 5391 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 5392 | s&@srcdir@&$ac_srcdir&;t t |
| 5393 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 5394 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 5395 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 5396 | s&@builddir@&$ac_builddir&;t t |
| 5397 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 5398 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 5399 | s&@INSTALL@&$ac_INSTALL&;t t |
| 5400 | $ac_datarootdir_hack |
| 5401 | " |
| 5402 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 5403 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 5404 | |
| 5405 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 5406 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 5407 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 5408 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 5410 | which seems to be undefined. Please make sure it is defined" >&5 |
| 5411 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 5412 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 5413 | |
| 5414 | rm -f "$ac_tmp/stdin" |
| 5415 | case $ac_file in |
| 5416 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 5417 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 5418 | esac \ |
| 5419 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 5420 | ;; |
| 5421 | :H) |
| 5422 | # |
| 5423 | # CONFIG_HEADER |
| 5424 | # |
| 5425 | if test x"$ac_file" != x-; then |
| 5426 | { |
| 5427 | $as_echo "/* $configure_input */" \ |
| 5428 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 5429 | } >"$ac_tmp/config.h" \ |
| 5430 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 5431 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 5433 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 5434 | else |
| 5435 | rm -f "$ac_file" |
| 5436 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 5437 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 5438 | fi |
| 5439 | else |
| 5440 | $as_echo "/* $configure_input */" \ |
| 5441 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 5442 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 5443 | fi |
| 5444 | ;; |
| 5445 | :L) |
| 5446 | # |
| 5447 | # CONFIG_LINK |
| 5448 | # |
| 5449 | |
| 5450 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
| 5451 | : |
| 5452 | else |
| 5453 | # Prefer the file from the source tree if names are identical. |
| 5454 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
| 5455 | ac_source=$srcdir/$ac_source |
| 5456 | fi |
| 5457 | |
| 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
| 5459 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
| 5460 | |
| 5461 | if test ! -r "$ac_source"; then |
| 5462 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
| 5463 | fi |
| 5464 | rm -f "$ac_file" |
| 5465 | |
| 5466 | # Try a relative symlink, then a hard link, then a copy. |
| 5467 | case $ac_source in |
| 5468 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
| 5469 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
| 5470 | esac |
| 5471 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
| 5472 | ln "$ac_source" "$ac_file" 2>/dev/null || |
| 5473 | cp -p "$ac_source" "$ac_file" || |
| 5474 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
| 5475 | fi |
| 5476 | ;; |
| 5477 | |
| 5478 | esac |
| 5479 | |
| 5480 | done # for ac_tag |
| 5481 | |
| 5482 | |
| 5483 | as_fn_exit 0 |
| 5484 | _ACEOF |
| 5485 | ac_clean_files=$ac_clean_files_save |
| 5486 | |
| 5487 | test $ac_write_fail = 0 || |
| 5488 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 5489 | |
| 5490 | |
| 5491 | # configure is writing to config.log, and then calls config.status. |
| 5492 | # config.status does its own redirection, appending to config.log. |
| 5493 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 5494 | # by configure, so config.status won't be able to write to it; its |
| 5495 | # output is simply discarded. So we exec the FD to /dev/null, |
| 5496 | # effectively closing config.log, so it can be properly (re)opened and |
| 5497 | # appended to by config.status. When coming back to configure, we |
| 5498 | # need to make the FD available again. |
| 5499 | if test "$no_create" != yes; then |
| 5500 | ac_cs_success=: |
| 5501 | ac_config_status_args= |
| 5502 | test "$silent" = yes && |
| 5503 | ac_config_status_args="$ac_config_status_args --quiet" |
| 5504 | exec 5>/dev/null |
| 5505 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 5506 | exec 5>>config.log |
| 5507 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 5508 | # would make configure fail if this is the last instruction. |
| 5509 | $ac_cs_success || as_fn_exit 1 |
| 5510 | fi |
| 5511 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 5513 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 5514 | fi |
| 5515 |