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