1 #! /bin/sh 2 # From configure.ac for Readline 8.1, version 2.90. 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.69 for readline 8.1. 5 # 6 # Report bugs to <bug-readline (at] gnu.org>. 7 # 8 # 9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27 else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 35 36 37 as_nl=' 38 ' 39 export as_nl 40 # Printing a long string crashes Solaris 7 /usr/bin/printf. 41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44 # Prefer a ksh shell builtin over an external printf program on Solaris, 45 # but without wasting forks for bash or zsh. 46 if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53 else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73 fi 74 75 # The user is always right. 76 if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82 fi 83 84 85 # IFS 86 # We need space, tab and new line, in precisely that order. Quoting is 87 # there to prevent editors from complaining about space-tab. 88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 89 # splitting by setting IFS to empty value.) 90 IFS=" "" $as_nl" 91 92 # Find who we are. Look in the path if we contain no directory separator. 93 as_myself= 94 case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97 for as_dir in $PATH 98 do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103 IFS=$as_save_IFS 104 105 ;; 106 esac 107 # We did not find ourselves, most probably we were run as `sh COMMAND' 108 # in which case we are not to be found in the path. 109 if test "x$as_myself" = x; then 110 as_myself=$0 111 fi 112 if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115 fi 116 117 # Unset variables that we do not need and which cause bugs (e.g. in 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119 # suppresses any "Segmentation fault" message there. '((' could 120 # trigger a bug in pdksh 5.2.14. 121 for as_var in BASH_ENV ENV MAIL MAILPATH 122 do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124 done 125 PS1='$ ' 126 PS2='> ' 127 PS4='+ ' 128 129 # NLS nuisances. 130 LC_ALL=C 131 export LC_ALL 132 LANGUAGE=C 133 export LANGUAGE 134 135 # CDPATH. 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138 # Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143 # neutralization value for shells without unset; and this also 144 # works around shells that cannot unset nonexistent variables. 145 # Preserve -v and -x to the replacement shell. 146 BASH_ENV=/dev/null 147 ENV=/dev/null 148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149 case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154 esac 155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156 # Admittedly, this is quite paranoid, since all the known shells bail 157 # out after a failed `exec'. 158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159 as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163 if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171 else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177 esac 178 fi 179 " 180 as_required="as_fn_return () { (exit \$1); } 181 as_fn_success () { as_fn_return 0; } 182 as_fn_failure () { as_fn_return 1; } 183 as_fn_ret_success () { return 0; } 184 as_fn_ret_failure () { return 1; } 185 186 exitcode=0 187 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193 else 194 exitcode=1; echo positional parameters were not saved. 195 fi 196 test x\$exitcode = x0 || exit 1 197 test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 test \$(( 1 + 1 )) = 2 || exit 1" 203 if (eval "$as_required") 2>/dev/null; then : 204 as_have_required=yes 205 else 206 as_have_required=no 207 fi 208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 209 210 else 211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212 as_found=false 213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 214 do 215 IFS=$as_save_IFS 216 test -z "$as_dir" && as_dir=. 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir/$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi; } 238 IFS=$as_save_IFS 239 240 241 if test "x$CONFIG_SHELL" != x; then : 242 export CONFIG_SHELL 243 # We cannot yet assume a decent shell, so we have to provide a 244 # neutralization value for shells without unset; and this also 245 # works around shells that cannot unset nonexistent variables. 246 # Preserve -v and -x to the replacement shell. 247 BASH_ENV=/dev/null 248 ENV=/dev/null 249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 250 case $- in # (((( 251 *v*x* | *x*v* ) as_opts=-vx ;; 252 *v* ) as_opts=-v ;; 253 *x* ) as_opts=-x ;; 254 * ) as_opts= ;; 255 esac 256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 257 # Admittedly, this is quite paranoid, since all the known shells bail 258 # out after a failed `exec'. 259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 260 exit 255 261 fi 262 263 if test x$as_have_required = xno; then : 264 $as_echo "$0: This script requires a shell more modern than all" 265 $as_echo "$0: the shells that I found on your system." 266 if test x${ZSH_VERSION+set} = xset ; then 267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 271 $0: bug-readline (at] gnu.org about your system, including any 272 $0: error possibly output before this message. Then install 273 $0: a modern shell, or manually run the script under such a 274 $0: shell if you do have one." 275 fi 276 exit 1 277 fi 278 fi 279 fi 280 SHELL=${CONFIG_SHELL-/bin/sh} 281 export SHELL 282 # Unset more variables known to interfere with behavior of common tools. 283 CLICOLOR_FORCE= GREP_OPTIONS= 284 unset CLICOLOR_FORCE GREP_OPTIONS 285 286 ## --------------------- ## 287 ## M4sh Shell Functions. ## 288 ## --------------------- ## 289 # as_fn_unset VAR 290 # --------------- 291 # Portably unset VAR. 292 as_fn_unset () 293 { 294 { eval $1=; unset $1;} 295 } 296 as_unset=as_fn_unset 297 298 # as_fn_set_status STATUS 299 # ----------------------- 300 # Set $? to STATUS, without forking. 301 as_fn_set_status () 302 { 303 return $1 304 } # as_fn_set_status 305 306 # as_fn_exit STATUS 307 # ----------------- 308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309 as_fn_exit () 310 { 311 set +e 312 as_fn_set_status $1 313 exit $1 314 } # as_fn_exit 315 316 # as_fn_mkdir_p 317 # ------------- 318 # Create "$as_dir" as a directory, including parents if necessary. 319 as_fn_mkdir_p () 320 { 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 $as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362 } # as_fn_mkdir_p 363 364 # as_fn_executable_p FILE 365 # ----------------------- 366 # Test if FILE is an executable regular file. 367 as_fn_executable_p () 368 { 369 test -f "$1" && test -x "$1" 370 } # as_fn_executable_p 371 # as_fn_append VAR VALUE 372 # ---------------------- 373 # Append the text in VALUE to the end of the definition contained in VAR. Take 374 # advantage of any shell optimizations that allow amortized linear growth over 375 # repeated appends, instead of the typical quadratic growth present in naive 376 # implementations. 377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382 else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387 fi # as_fn_append 388 389 # as_fn_arith ARG... 390 # ------------------ 391 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 # must be portable across $(()) and expr. 394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399 else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404 fi # as_fn_arith 405 406 407 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 # ---------------------------------------- 409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411 # script with STATUS, using 1 if that was 0. 412 as_fn_error () 413 { 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421 } # as_fn_error 422 423 if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426 else 427 as_expr=false 428 fi 429 430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432 else 433 as_basename=false 434 fi 435 436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438 else 439 as_dirname=false 440 fi 441 442 as_me=`$as_basename -- "$0" || 443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 $as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461 # Avoid depending upon Character Ranges. 462 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465 as_cr_digits='0123456789' 466 as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502 } 503 504 ECHO_C= ECHO_N= ECHO_T= 505 case `echo -n x` in #((((( 506 -n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513 *) 514 ECHO_N='-n';; 515 esac 516 517 rm -f conf$$ conf$$.exe conf$$.file 518 if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520 else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523 fi 524 if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538 else 539 as_ln_s='cp -pR' 540 fi 541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542 rmdir conf$$.dir 2>/dev/null 543 544 if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546 else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549 fi 550 551 as_test_x='test -x' 552 as_executable_p=as_fn_executable_p 553 554 # Sed expression to map a string onto a valid CPP name. 555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557 # Sed expression to map a string onto a valid variable name. 558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561 test -n "$DJDIR" || exec 7<&0 </dev/null 562 exec 6>&1 563 564 # Name of the host. 565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566 # so uname gets run too. 567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569 # 570 # Initializations. 571 # 572 ac_default_prefix=/usr/local 573 ac_clean_files= 574 ac_config_libobj_dir=. 575 LIBOBJS= 576 cross_compiling=no 577 subdirs= 578 MFLAGS= 579 MAKEFLAGS= 580 581 # Identity of this package. 582 PACKAGE_NAME='readline' 583 PACKAGE_TARNAME='readline' 584 PACKAGE_VERSION='8.1' 585 PACKAGE_STRING='readline 8.1' 586 PACKAGE_BUGREPORT='bug-readline (at] gnu.org' 587 PACKAGE_URL='' 588 589 ac_unique_file="readline.h" 590 # Factoring default headers for most tests. 591 ac_includes_default="\ 592 #include <stdio.h> 593 #ifdef HAVE_SYS_TYPES_H 594 # include <sys/types.h> 595 #endif 596 #ifdef HAVE_SYS_STAT_H 597 # include <sys/stat.h> 598 #endif 599 #ifdef STDC_HEADERS 600 # include <stdlib.h> 601 # include <stddef.h> 602 #else 603 # ifdef HAVE_STDLIB_H 604 # include <stdlib.h> 605 # endif 606 #endif 607 #ifdef HAVE_STRING_H 608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 # include <memory.h> 610 # endif 611 # include <string.h> 612 #endif 613 #ifdef HAVE_STRINGS_H 614 # include <strings.h> 615 #endif 616 #ifdef HAVE_INTTYPES_H 617 # include <inttypes.h> 618 #endif 619 #ifdef HAVE_STDINT_H 620 # include <stdint.h> 621 #endif 622 #ifdef HAVE_UNISTD_H 623 # include <unistd.h> 624 #endif" 625 626 ac_subst_vars='LTLIBOBJS 627 TERMCAP_PKG_CONFIG_LIB 628 TERMCAP_LIB 629 LIBVERSION 630 ARFLAGS 631 LOCAL_DEFS 632 LOCAL_LDFLAGS 633 LOCAL_CFLAGS 634 BUILD_DIR 635 EXAMPLES_INSTALL_TARGET 636 SHARED_INSTALL_TARGET 637 STATIC_INSTALL_TARGET 638 SHARED_TARGET 639 STATIC_TARGET 640 SHLIB_MINOR 641 SHLIB_MAJOR 642 SHLIB_LIBS 643 SHLIB_DLLVERSION 644 SHLIB_LIBVERSION 645 SHLIB_LIBSUFF 646 SHLIB_LIBPREF 647 SHLIB_DOT 648 SHLIB_XLDFLAGS 649 SHLIB_STATUS 650 SHOBJ_STATUS 651 SHOBJ_LIBS 652 SHOBJ_XLDFLAGS 653 SHOBJ_LDFLAGS 654 SHOBJ_LD 655 SHOBJ_CFLAGS 656 SHOBJ_CC 657 LIBOBJS 658 MAKE_SHELL 659 RANLIB 660 AR 661 INSTALL_DATA 662 INSTALL_SCRIPT 663 INSTALL_PROGRAM 664 EGREP 665 GREP 666 CPP 667 OBJEXT 668 EXEEXT 669 ac_ct_CC 670 CPPFLAGS 671 LDFLAGS 672 CFLAGS 673 CC 674 SET_MAKE 675 CROSS_COMPILE 676 BRACKETED_PASTE 677 host_os 678 host_vendor 679 host_cpu 680 host 681 build_os 682 build_vendor 683 build_cpu 684 build 685 target_alias 686 host_alias 687 build_alias 688 LIBS 689 ECHO_T 690 ECHO_N 691 ECHO_C 692 DEFS 693 mandir 694 localedir 695 libdir 696 psdir 697 pdfdir 698 dvidir 699 htmldir 700 infodir 701 docdir 702 oldincludedir 703 includedir 704 localstatedir 705 sharedstatedir 706 sysconfdir 707 datadir 708 datarootdir 709 libexecdir 710 sbindir 711 bindir 712 program_transform_name 713 prefix 714 exec_prefix 715 PACKAGE_URL 716 PACKAGE_BUGREPORT 717 PACKAGE_STRING 718 PACKAGE_VERSION 719 PACKAGE_TARNAME 720 PACKAGE_NAME 721 PATH_SEPARATOR 722 SHELL' 723 ac_subst_files='' 724 ac_user_opts=' 725 enable_option_checking 726 with_curses 727 with_shared_termcap_library 728 enable_multibyte 729 enable_static 730 enable_install_examples 731 enable_bracketed_paste_default 732 enable_largefile 733 ' 734 ac_precious_vars='build_alias 735 host_alias 736 target_alias 737 CC 738 CFLAGS 739 LDFLAGS 740 LIBS 741 CPPFLAGS 742 CPP' 743 744 745 # Initialize some variables set by options. 746 ac_init_help= 747 ac_init_version=false 748 ac_unrecognized_opts= 749 ac_unrecognized_sep= 750 # The variables have the same names as the options, with 751 # dashes changed to underlines. 752 cache_file=/dev/null 753 exec_prefix=NONE 754 no_create= 755 no_recursion= 756 prefix=NONE 757 program_prefix=NONE 758 program_suffix=NONE 759 program_transform_name=s,x,x, 760 silent= 761 site= 762 srcdir= 763 verbose= 764 x_includes=NONE 765 x_libraries=NONE 766 767 # Installation directory options. 768 # These are left unexpanded so users can "make install exec_prefix=/foo" 769 # and all the variables that are supposed to be based on exec_prefix 770 # by default will actually change. 771 # Use braces instead of parens because sh, perl, etc. also accept them. 772 # (The list follows the same order as the GNU Coding Standards.) 773 bindir='${exec_prefix}/bin' 774 sbindir='${exec_prefix}/sbin' 775 libexecdir='${exec_prefix}/libexec' 776 datarootdir='${prefix}/share' 777 datadir='${datarootdir}' 778 sysconfdir='${prefix}/etc' 779 sharedstatedir='${prefix}/com' 780 localstatedir='${prefix}/var' 781 includedir='${prefix}/include' 782 oldincludedir='/usr/include' 783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 784 infodir='${datarootdir}/info' 785 htmldir='${docdir}' 786 dvidir='${docdir}' 787 pdfdir='${docdir}' 788 psdir='${docdir}' 789 libdir='${exec_prefix}/lib' 790 localedir='${datarootdir}/locale' 791 mandir='${datarootdir}/man' 792 793 ac_prev= 794 ac_dashdash= 795 for ac_option 796 do 797 # If the previous option needs an argument, assign it. 798 if test -n "$ac_prev"; then 799 eval $ac_prev=\$ac_option 800 ac_prev= 801 continue 802 fi 803 804 case $ac_option in 805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 806 *=) ac_optarg= ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 852 as_fn_error $? "invalid feature name: $ac_useropt" 853 ac_useropt_orig=$ac_useropt 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 855 case $ac_user_opts in 856 *" 857 "enable_$ac_useropt" 858 "*) ;; 859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 860 ac_unrecognized_sep=', ';; 861 esac 862 eval enable_$ac_useropt=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error $? "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883 "enable_$ac_useropt" 884 "*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1034 ac_prev=sbindir ;; 1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1036 | --sbi=* | --sb=*) 1037 sbindir=$ac_optarg ;; 1038 1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1041 | --sharedst | --shareds | --shared | --share | --shar \ 1042 | --sha | --sh) 1043 ac_prev=sharedstatedir ;; 1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1047 | --sha=* | --sh=*) 1048 sharedstatedir=$ac_optarg ;; 1049 1050 -site | --site | --sit) 1051 ac_prev=site ;; 1052 -site=* | --site=* | --sit=*) 1053 site=$ac_optarg ;; 1054 1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1056 ac_prev=srcdir ;; 1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1058 srcdir=$ac_optarg ;; 1059 1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1061 | --syscon | --sysco | --sysc | --sys | --sy) 1062 ac_prev=sysconfdir ;; 1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1065 sysconfdir=$ac_optarg ;; 1066 1067 -target | --target | --targe | --targ | --tar | --ta | --t) 1068 ac_prev=target_alias ;; 1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1070 target_alias=$ac_optarg ;; 1071 1072 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1073 verbose=yes ;; 1074 1075 -version | --version | --versio | --versi | --vers | -V) 1076 ac_init_version=: ;; 1077 1078 -with-* | --with-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error $? "invalid package name: $ac_useropt" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087 "with_$ac_useropt" 1088 "*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval with_$ac_useropt=\$ac_optarg ;; 1093 1094 -without-* | --without-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error $? "invalid package name: $ac_useropt" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103 "with_$ac_useropt" 1104 "*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=no ;; 1109 1110 --x) 1111 # Obsolete; use --with-x. 1112 with_x=yes ;; 1113 1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1115 | --x-incl | --x-inc | --x-in | --x-i) 1116 ac_prev=x_includes ;; 1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1119 x_includes=$ac_optarg ;; 1120 1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1123 ac_prev=x_libraries ;; 1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1126 x_libraries=$ac_optarg ;; 1127 1128 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1129 Try \`$0 --help' for more information" 1130 ;; 1131 1132 *=*) 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1134 # Reject names that are not valid shell variable names. 1135 case $ac_envvar in #( 1136 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1138 esac 1139 eval $ac_envvar=\$ac_optarg 1140 export $ac_envvar ;; 1141 1142 *) 1143 # FIXME: should be removed in autoconf 3.0. 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1148 ;; 1149 1150 esac 1151 done 1152 1153 if test -n "$ac_prev"; then 1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1155 as_fn_error $? "missing argument to $ac_option" 1156 fi 1157 1158 if test -n "$ac_unrecognized_opts"; then 1159 case $enable_option_checking in 1160 no) ;; 1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1163 esac 1164 fi 1165 1166 # Check all directory arguments for consistency. 1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1168 datadir sysconfdir sharedstatedir localstatedir includedir \ 1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1170 libdir localedir mandir 1171 do 1172 eval ac_val=\$$ac_var 1173 # Remove trailing slashes. 1174 case $ac_val in 1175 */ ) 1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1177 eval $ac_var=\$ac_val;; 1178 esac 1179 # Be sure to have absolute directory names. 1180 case $ac_val in 1181 [\\/$]* | ?:[\\/]* ) continue;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1183 esac 1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1185 done 1186 1187 # There might be people who depend on the old broken behavior: `$host' 1188 # used to hold the argument of --host etc. 1189 # FIXME: To remove some day. 1190 build=$build_alias 1191 host=$host_alias 1192 target=$target_alias 1193 1194 # FIXME: To remove some day. 1195 if test "x$host_alias" != x; then 1196 if test "x$build_alias" = x; then 1197 cross_compiling=maybe 1198 elif test "x$build_alias" != "x$host_alias"; then 1199 cross_compiling=yes 1200 fi 1201 fi 1202 1203 ac_tool_prefix= 1204 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1205 1206 test "$silent" = yes && exec 6>/dev/null 1207 1208 1209 ac_pwd=`pwd` && test -n "$ac_pwd" && 1210 ac_ls_di=`ls -di .` && 1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1212 as_fn_error $? "working directory cannot be determined" 1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1214 as_fn_error $? "pwd does not report name of working directory" 1215 1216 1217 # Find the source files, if location was not specified. 1218 if test -z "$srcdir"; then 1219 ac_srcdir_defaulted=yes 1220 # Try the directory containing this script, then the parent directory. 1221 ac_confdir=`$as_dirname -- "$as_myself" || 1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1223 X"$as_myself" : 'X\(//\)[^/]' \| \ 1224 X"$as_myself" : 'X\(//\)$' \| \ 1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1226 $as_echo X"$as_myself" | 1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1228 s//\1/ 1229 q 1230 } 1231 /^X\(\/\/\)[^/].*/{ 1232 s//\1/ 1233 q 1234 } 1235 /^X\(\/\/\)$/{ 1236 s//\1/ 1237 q 1238 } 1239 /^X\(\/\).*/{ 1240 s//\1/ 1241 q 1242 } 1243 s/.*/./; q'` 1244 srcdir=$ac_confdir 1245 if test ! -r "$srcdir/$ac_unique_file"; then 1246 srcdir=.. 1247 fi 1248 else 1249 ac_srcdir_defaulted=no 1250 fi 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1253 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1254 fi 1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1256 ac_abs_confdir=`( 1257 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1258 pwd)` 1259 # When building in place, set srcdir=. 1260 if test "$ac_abs_confdir" = "$ac_pwd"; then 1261 srcdir=. 1262 fi 1263 # Remove unnecessary trailing slashes from srcdir. 1264 # Double slashes in file names in object file debugging info 1265 # mess up M-x gdb in Emacs. 1266 case $srcdir in 1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1268 esac 1269 for ac_var in $ac_precious_vars; do 1270 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1271 eval ac_env_${ac_var}_value=\$${ac_var} 1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1273 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1274 done 1275 1276 # 1277 # Report the --help message. 1278 # 1279 if test "$ac_init_help" = "long"; then 1280 # Omit some internal or obsolete options to make the list less imposing. 1281 # This message is too long to be a string in the A/UX 3.1 sh. 1282 cat <<_ACEOF 1283 \`configure' configures readline 8.1 to adapt to many kinds of systems. 1284 1285 Usage: $0 [OPTION]... [VAR=VALUE]... 1286 1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1288 VAR=VALUE. See below for descriptions of some of the useful variables. 1289 1290 Defaults for the options are specified in brackets. 1291 1292 Configuration: 1293 -h, --help display this help and exit 1294 --help=short display options specific to this package 1295 --help=recursive display the short help of all the included packages 1296 -V, --version display version information and exit 1297 -q, --quiet, --silent do not print \`checking ...' messages 1298 --cache-file=FILE cache test results in FILE [disabled] 1299 -C, --config-cache alias for \`--cache-file=config.cache' 1300 -n, --no-create do not create output files 1301 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1302 1303 Installation directories: 1304 --prefix=PREFIX install architecture-independent files in PREFIX 1305 [$ac_default_prefix] 1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1307 [PREFIX] 1308 1309 By default, \`make install' will install all the files in 1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1312 for instance \`--prefix=\$HOME'. 1313 1314 For better control, use the options below. 1315 1316 Fine tuning of the installation directories: 1317 --bindir=DIR user executables [EPREFIX/bin] 1318 --sbindir=DIR system admin executables [EPREFIX/sbin] 1319 --libexecdir=DIR program executables [EPREFIX/libexec] 1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1323 --libdir=DIR object code libraries [EPREFIX/lib] 1324 --includedir=DIR C header files [PREFIX/include] 1325 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1328 --infodir=DIR info documentation [DATAROOTDIR/info] 1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1330 --mandir=DIR man documentation [DATAROOTDIR/man] 1331 --docdir=DIR documentation root [DATAROOTDIR/doc/readline] 1332 --htmldir=DIR html documentation [DOCDIR] 1333 --dvidir=DIR dvi documentation [DOCDIR] 1334 --pdfdir=DIR pdf documentation [DOCDIR] 1335 --psdir=DIR ps documentation [DOCDIR] 1336 _ACEOF 1337 1338 cat <<\_ACEOF 1339 1340 System types: 1341 --build=BUILD configure for building on BUILD [guessed] 1342 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1343 _ACEOF 1344 fi 1345 1346 if test -n "$ac_init_help"; then 1347 case $ac_init_help in 1348 short | recursive ) echo "Configuration of readline 8.1:";; 1349 esac 1350 cat <<\_ACEOF 1351 1352 Optional Features: 1353 --disable-option-checking ignore unrecognized --enable/--with options 1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1356 --enable-multibyte enable multibyte characters if OS supports them 1357 --enable-static build static libraries [[default=YES]] 1358 --disable-install-examples 1359 don't install examples [[default=install]] 1360 --disable-bracketed-paste-default 1361 disable bracketed paste by default 1362 [[default=enable]] 1363 --disable-largefile omit support for large files 1364 1365 Optional Packages: 1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1368 --with-curses use the curses library instead of the termcap 1369 library 1370 --with-shared-termcap-library 1371 link the readline shared library against the 1372 termcap/curses shared library [[default=NO]] 1373 1374 Some influential environment variables: 1375 CC C compiler command 1376 CFLAGS C compiler flags 1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1378 nonstandard directory <lib dir> 1379 LIBS libraries to pass to the linker, e.g. -l<library> 1380 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1381 you have headers in a nonstandard directory <include dir> 1382 CPP C preprocessor 1383 1384 Use these variables to override the choices made by `configure' or to help 1385 it to find libraries and programs with nonstandard names/locations. 1386 1387 Report bugs to <bug-readline (at] gnu.org>. 1388 _ACEOF 1389 ac_status=$? 1390 fi 1391 1392 if test "$ac_init_help" = "recursive"; then 1393 # If there are subdirs, report their specific --help. 1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1395 test -d "$ac_dir" || 1396 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1397 continue 1398 ac_builddir=. 1399 1400 case "$ac_dir" in 1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1402 *) 1403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1404 # A ".." for each directory in $ac_dir_suffix. 1405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1406 case $ac_top_builddir_sub in 1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1409 esac ;; 1410 esac 1411 ac_abs_top_builddir=$ac_pwd 1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1413 # for backward compatibility: 1414 ac_top_builddir=$ac_top_build_prefix 1415 1416 case $srcdir in 1417 .) # We are building in place. 1418 ac_srcdir=. 1419 ac_top_srcdir=$ac_top_builddir_sub 1420 ac_abs_top_srcdir=$ac_pwd ;; 1421 [\\/]* | ?:[\\/]* ) # Absolute name. 1422 ac_srcdir=$srcdir$ac_dir_suffix; 1423 ac_top_srcdir=$srcdir 1424 ac_abs_top_srcdir=$srcdir ;; 1425 *) # Relative name. 1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1427 ac_top_srcdir=$ac_top_build_prefix$srcdir 1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1429 esac 1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1431 1432 cd "$ac_dir" || { ac_status=$?; continue; } 1433 # Check for guested configure. 1434 if test -f "$ac_srcdir/configure.gnu"; then 1435 echo && 1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1437 elif test -f "$ac_srcdir/configure"; then 1438 echo && 1439 $SHELL "$ac_srcdir/configure" --help=recursive 1440 else 1441 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1442 fi || ac_status=$? 1443 cd "$ac_pwd" || { ac_status=$?; break; } 1444 done 1445 fi 1446 1447 test -n "$ac_init_help" && exit $ac_status 1448 if $ac_init_version; then 1449 cat <<\_ACEOF 1450 readline configure 8.1 1451 generated by GNU Autoconf 2.69 1452 1453 Copyright (C) 2012 Free Software Foundation, Inc. 1454 This configure script is free software; the Free Software Foundation 1455 gives unlimited permission to copy, distribute and modify it. 1456 _ACEOF 1457 exit 1458 fi 1459 1460 ## ------------------------ ## 1461 ## Autoconf initialization. ## 1462 ## ------------------------ ## 1463 1464 # ac_fn_c_try_compile LINENO 1465 # -------------------------- 1466 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1467 ac_fn_c_try_compile () 1468 { 1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1470 rm -f conftest.$ac_objext 1471 if { { ac_try="$ac_compile" 1472 case "(($ac_try" in 1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1474 *) ac_try_echo=$ac_try;; 1475 esac 1476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1477 $as_echo "$ac_try_echo"; } >&5 1478 (eval "$ac_compile") 2>conftest.err 1479 ac_status=$? 1480 if test -s conftest.err; then 1481 grep -v '^ *+' conftest.err >conftest.er1 1482 cat conftest.er1 >&5 1483 mv -f conftest.er1 conftest.err 1484 fi 1485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1486 test $ac_status = 0; } && { 1487 test -z "$ac_c_werror_flag" || 1488 test ! -s conftest.err 1489 } && test -s conftest.$ac_objext; then : 1490 ac_retval=0 1491 else 1492 $as_echo "$as_me: failed program was:" >&5 1493 sed 's/^/| /' conftest.$ac_ext >&5 1494 1495 ac_retval=1 1496 fi 1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1498 as_fn_set_status $ac_retval 1499 1500 } # ac_fn_c_try_compile 1501 1502 # ac_fn_c_try_cpp LINENO 1503 # ---------------------- 1504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1505 ac_fn_c_try_cpp () 1506 { 1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1508 if { { ac_try="$ac_cpp conftest.$ac_ext" 1509 case "(($ac_try" in 1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1511 *) ac_try_echo=$ac_try;; 1512 esac 1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1514 $as_echo "$ac_try_echo"; } >&5 1515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1516 ac_status=$? 1517 if test -s conftest.err; then 1518 grep -v '^ *+' conftest.err >conftest.er1 1519 cat conftest.er1 >&5 1520 mv -f conftest.er1 conftest.err 1521 fi 1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1523 test $ac_status = 0; } > conftest.i && { 1524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1525 test ! -s conftest.err 1526 }; then : 1527 ac_retval=0 1528 else 1529 $as_echo "$as_me: failed program was:" >&5 1530 sed 's/^/| /' conftest.$ac_ext >&5 1531 1532 ac_retval=1 1533 fi 1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1535 as_fn_set_status $ac_retval 1536 1537 } # ac_fn_c_try_cpp 1538 1539 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1540 # ------------------------------------------------------- 1541 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1542 # the include files in INCLUDES and setting the cache variable VAR 1543 # accordingly. 1544 ac_fn_c_check_header_mongrel () 1545 { 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 if eval \${$3+:} false; then : 1548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1549 $as_echo_n "checking for $2... " >&6; } 1550 if eval \${$3+:} false; then : 1551 $as_echo_n "(cached) " >&6 1552 fi 1553 eval ac_res=\$$3 1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1555 $as_echo "$ac_res" >&6; } 1556 else 1557 # Is the header compilable? 1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1559 $as_echo_n "checking $2 usability... " >&6; } 1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1561 /* end confdefs.h. */ 1562 $4 1563 #include <$2> 1564 _ACEOF 1565 if ac_fn_c_try_compile "$LINENO"; then : 1566 ac_header_compiler=yes 1567 else 1568 ac_header_compiler=no 1569 fi 1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1572 $as_echo "$ac_header_compiler" >&6; } 1573 1574 # Is the header present? 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1576 $as_echo_n "checking $2 presence... " >&6; } 1577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1578 /* end confdefs.h. */ 1579 #include <$2> 1580 _ACEOF 1581 if ac_fn_c_try_cpp "$LINENO"; then : 1582 ac_header_preproc=yes 1583 else 1584 ac_header_preproc=no 1585 fi 1586 rm -f conftest.err conftest.i conftest.$ac_ext 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1588 $as_echo "$ac_header_preproc" >&6; } 1589 1590 # So? What about this header? 1591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1592 yes:no: ) 1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1594 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1596 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1597 ;; 1598 no:yes:* ) 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1600 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1602 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1604 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1606 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1608 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1609 ( $as_echo "## ----------------------------------- ## 1610 ## Report this to bug-readline (at] gnu.org ## 1611 ## ----------------------------------- ##" 1612 ) | sed "s/^/$as_me: WARNING: /" >&2 1613 ;; 1614 esac 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616 $as_echo_n "checking for $2... " >&6; } 1617 if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619 else 1620 eval "$3=\$ac_header_compiler" 1621 fi 1622 eval ac_res=\$$3 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624 $as_echo "$ac_res" >&6; } 1625 fi 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 1628 } # ac_fn_c_check_header_mongrel 1629 1630 # ac_fn_c_try_run LINENO 1631 # ---------------------- 1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1633 # that executables *can* be run. 1634 ac_fn_c_try_run () 1635 { 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_link" 1638 case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641 esac 1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643 $as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_link") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1648 { { case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651 esac 1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653 $as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_try") 2>&5 1655 ac_status=$? 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; }; }; then : 1658 ac_retval=0 1659 else 1660 $as_echo "$as_me: program exited with status $ac_status" >&5 1661 $as_echo "$as_me: failed program was:" >&5 1662 sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=$ac_status 1665 fi 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670 } # ac_fn_c_try_run 1671 1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1673 # ------------------------------------------------------- 1674 # Tests whether HEADER exists and can be compiled using the include files in 1675 # INCLUDES, setting the cache variable VAR accordingly. 1676 ac_fn_c_check_header_compile () 1677 { 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1680 $as_echo_n "checking for $2... " >&6; } 1681 if eval \${$3+:} false; then : 1682 $as_echo_n "(cached) " >&6 1683 else 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685 /* end confdefs.h. */ 1686 $4 1687 #include <$2> 1688 _ACEOF 1689 if ac_fn_c_try_compile "$LINENO"; then : 1690 eval "$3=yes" 1691 else 1692 eval "$3=no" 1693 fi 1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695 fi 1696 eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698 $as_echo "$ac_res" >&6; } 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 1701 } # ac_fn_c_check_header_compile 1702 1703 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1704 # ------------------------------------------- 1705 # Tests whether TYPE exists after having included INCLUDES, setting cache 1706 # variable VAR accordingly. 1707 ac_fn_c_check_type () 1708 { 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711 $as_echo_n "checking for $2... " >&6; } 1712 if eval \${$3+:} false; then : 1713 $as_echo_n "(cached) " >&6 1714 else 1715 eval "$3=no" 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717 /* end confdefs.h. */ 1718 $4 1719 int 1720 main () 1721 { 1722 if (sizeof ($2)) 1723 return 0; 1724 ; 1725 return 0; 1726 } 1727 _ACEOF 1728 if ac_fn_c_try_compile "$LINENO"; then : 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730 /* end confdefs.h. */ 1731 $4 1732 int 1733 main () 1734 { 1735 if (sizeof (($2))) 1736 return 0; 1737 ; 1738 return 0; 1739 } 1740 _ACEOF 1741 if ac_fn_c_try_compile "$LINENO"; then : 1742 1743 else 1744 eval "$3=yes" 1745 fi 1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1747 fi 1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749 fi 1750 eval ac_res=\$$3 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752 $as_echo "$ac_res" >&6; } 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 1755 } # ac_fn_c_check_type 1756 1757 # ac_fn_c_try_link LINENO 1758 # ----------------------- 1759 # Try to link conftest.$ac_ext, and return whether this succeeded. 1760 ac_fn_c_try_link () 1761 { 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 rm -f conftest.$ac_objext conftest$ac_exeext 1764 if { { ac_try="$ac_link" 1765 case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768 esac 1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770 $as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_link") 2>conftest.err 1772 ac_status=$? 1773 if test -s conftest.err; then 1774 grep -v '^ *+' conftest.err >conftest.er1 1775 cat conftest.er1 >&5 1776 mv -f conftest.er1 conftest.err 1777 fi 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { 1780 test -z "$ac_c_werror_flag" || 1781 test ! -s conftest.err 1782 } && test -s conftest$ac_exeext && { 1783 test "$cross_compiling" = yes || 1784 test -x conftest$ac_exeext 1785 }; then : 1786 ac_retval=0 1787 else 1788 $as_echo "$as_me: failed program was:" >&5 1789 sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792 fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801 } # ac_fn_c_try_link 1802 1803 # ac_fn_c_check_func LINENO FUNC VAR 1804 # ---------------------------------- 1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1806 ac_fn_c_check_func () 1807 { 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810 $as_echo_n "checking for $2... " >&6; } 1811 if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813 else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815 /* end confdefs.h. */ 1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1818 #define $2 innocuous_$2 1819 1820 /* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $2 (); below. 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1823 <limits.h> exists even on freestanding compilers. */ 1824 1825 #ifdef __STDC__ 1826 # include <limits.h> 1827 #else 1828 # include <assert.h> 1829 #endif 1830 1831 #undef $2 1832 1833 /* Override any GCC internal prototype to avoid an error. 1834 Use char because int might match the return type of a GCC 1835 builtin and then its argument prototype would still apply. */ 1836 #ifdef __cplusplus 1837 extern "C" 1838 #endif 1839 char $2 (); 1840 /* The GNU C library defines this for functions which it implements 1841 to always fail with ENOSYS. Some functions are actually named 1842 something starting with __ and the normal name is an alias. */ 1843 #if defined __stub_$2 || defined __stub___$2 1844 choke me 1845 #endif 1846 1847 int 1848 main () 1849 { 1850 return $2 (); 1851 ; 1852 return 0; 1853 } 1854 _ACEOF 1855 if ac_fn_c_try_link "$LINENO"; then : 1856 eval "$3=yes" 1857 else 1858 eval "$3=no" 1859 fi 1860 rm -f core conftest.err conftest.$ac_objext \ 1861 conftest$ac_exeext conftest.$ac_ext 1862 fi 1863 eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865 $as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868 } # ac_fn_c_check_func 1869 1870 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1871 # ---------------------------------------------------- 1872 # Tries to find if the field MEMBER exists in type AGGR, after including 1873 # INCLUDES, setting cache variable VAR accordingly. 1874 ac_fn_c_check_member () 1875 { 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1878 $as_echo_n "checking for $2.$3... " >&6; } 1879 if eval \${$4+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881 else 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883 /* end confdefs.h. */ 1884 $5 1885 int 1886 main () 1887 { 1888 static $2 ac_aggr; 1889 if (ac_aggr.$3) 1890 return 0; 1891 ; 1892 return 0; 1893 } 1894 _ACEOF 1895 if ac_fn_c_try_compile "$LINENO"; then : 1896 eval "$4=yes" 1897 else 1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899 /* end confdefs.h. */ 1900 $5 1901 int 1902 main () 1903 { 1904 static $2 ac_aggr; 1905 if (sizeof ac_aggr.$3) 1906 return 0; 1907 ; 1908 return 0; 1909 } 1910 _ACEOF 1911 if ac_fn_c_try_compile "$LINENO"; then : 1912 eval "$4=yes" 1913 else 1914 eval "$4=no" 1915 fi 1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1917 fi 1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1919 fi 1920 eval ac_res=\$$4 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922 $as_echo "$ac_res" >&6; } 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 1925 } # ac_fn_c_check_member 1926 1927 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1928 # --------------------------------------------- 1929 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1930 # accordingly. 1931 ac_fn_c_check_decl () 1932 { 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 as_decl_name=`echo $2|sed 's/ *(.*//'` 1935 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1937 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1938 if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940 else 1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942 /* end confdefs.h. */ 1943 $4 1944 int 1945 main () 1946 { 1947 #ifndef $as_decl_name 1948 #ifdef __cplusplus 1949 (void) $as_decl_use; 1950 #else 1951 (void) $as_decl_name; 1952 #endif 1953 #endif 1954 1955 ; 1956 return 0; 1957 } 1958 _ACEOF 1959 if ac_fn_c_try_compile "$LINENO"; then : 1960 eval "$3=yes" 1961 else 1962 eval "$3=no" 1963 fi 1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965 fi 1966 eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968 $as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 1971 } # ac_fn_c_check_decl 1972 1973 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1974 # -------------------------------------------- 1975 # Tries to find the compile-time value of EXPR in a program that includes 1976 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1977 # computed 1978 ac_fn_c_compute_int () 1979 { 1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1981 if test "$cross_compiling" = yes; then 1982 # Depending upon the size, compute the lo and hi bounds. 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984 /* end confdefs.h. */ 1985 $4 1986 int 1987 main () 1988 { 1989 static int test_array [1 - 2 * !(($2) >= 0)]; 1990 test_array [0] = 0; 1991 return test_array [0]; 1992 1993 ; 1994 return 0; 1995 } 1996 _ACEOF 1997 if ac_fn_c_try_compile "$LINENO"; then : 1998 ac_lo=0 ac_mid=0 1999 while :; do 2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001 /* end confdefs.h. */ 2002 $4 2003 int 2004 main () 2005 { 2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2007 test_array [0] = 0; 2008 return test_array [0]; 2009 2010 ; 2011 return 0; 2012 } 2013 _ACEOF 2014 if ac_fn_c_try_compile "$LINENO"; then : 2015 ac_hi=$ac_mid; break 2016 else 2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2018 if test $ac_lo -le $ac_mid; then 2019 ac_lo= ac_hi= 2020 break 2021 fi 2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2023 fi 2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025 done 2026 else 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028 /* end confdefs.h. */ 2029 $4 2030 int 2031 main () 2032 { 2033 static int test_array [1 - 2 * !(($2) < 0)]; 2034 test_array [0] = 0; 2035 return test_array [0]; 2036 2037 ; 2038 return 0; 2039 } 2040 _ACEOF 2041 if ac_fn_c_try_compile "$LINENO"; then : 2042 ac_hi=-1 ac_mid=-1 2043 while :; do 2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045 /* end confdefs.h. */ 2046 $4 2047 int 2048 main () 2049 { 2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2051 test_array [0] = 0; 2052 return test_array [0]; 2053 2054 ; 2055 return 0; 2056 } 2057 _ACEOF 2058 if ac_fn_c_try_compile "$LINENO"; then : 2059 ac_lo=$ac_mid; break 2060 else 2061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2062 if test $ac_mid -le $ac_hi; then 2063 ac_lo= ac_hi= 2064 break 2065 fi 2066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2067 fi 2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2069 done 2070 else 2071 ac_lo= ac_hi= 2072 fi 2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2074 fi 2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2076 # Binary search between lo and hi bounds. 2077 while test "x$ac_lo" != "x$ac_hi"; do 2078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080 /* end confdefs.h. */ 2081 $4 2082 int 2083 main () 2084 { 2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2086 test_array [0] = 0; 2087 return test_array [0]; 2088 2089 ; 2090 return 0; 2091 } 2092 _ACEOF 2093 if ac_fn_c_try_compile "$LINENO"; then : 2094 ac_hi=$ac_mid 2095 else 2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2097 fi 2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099 done 2100 case $ac_lo in #(( 2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2102 '') ac_retval=1 ;; 2103 esac 2104 else 2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2106 /* end confdefs.h. */ 2107 $4 2108 static long int longval () { return $2; } 2109 static unsigned long int ulongval () { return $2; } 2110 #include <stdio.h> 2111 #include <stdlib.h> 2112 int 2113 main () 2114 { 2115 2116 FILE *f = fopen ("conftest.val", "w"); 2117 if (! f) 2118 return 1; 2119 if (($2) < 0) 2120 { 2121 long int i = longval (); 2122 if (i != ($2)) 2123 return 1; 2124 fprintf (f, "%ld", i); 2125 } 2126 else 2127 { 2128 unsigned long int i = ulongval (); 2129 if (i != ($2)) 2130 return 1; 2131 fprintf (f, "%lu", i); 2132 } 2133 /* Do not output a trailing newline, as this causes \r\n confusion 2134 on some platforms. */ 2135 return ferror (f) || fclose (f) != 0; 2136 2137 ; 2138 return 0; 2139 } 2140 _ACEOF 2141 if ac_fn_c_try_run "$LINENO"; then : 2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2143 else 2144 ac_retval=1 2145 fi 2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2147 conftest.$ac_objext conftest.beam conftest.$ac_ext 2148 rm -f conftest.val 2149 2150 fi 2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2152 as_fn_set_status $ac_retval 2153 2154 } # ac_fn_c_compute_int 2155 cat >config.log <<_ACEOF 2156 This file contains any messages produced by compilers while 2157 running configure, to aid debugging if configure makes a mistake. 2158 2159 It was created by readline $as_me 8.1, which was 2160 generated by GNU Autoconf 2.69. Invocation command line was 2161 2162 $ $0 $@ 2163 2164 _ACEOF 2165 exec 5>>config.log 2166 { 2167 cat <<_ASUNAME 2168 ## --------- ## 2169 ## Platform. ## 2170 ## --------- ## 2171 2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2173 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2174 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2175 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2176 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2177 2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2179 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2180 2181 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2182 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2184 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2185 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2186 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2187 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2188 2189 _ASUNAME 2190 2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2192 for as_dir in $PATH 2193 do 2194 IFS=$as_save_IFS 2195 test -z "$as_dir" && as_dir=. 2196 $as_echo "PATH: $as_dir" 2197 done 2198 IFS=$as_save_IFS 2199 2200 } >&5 2201 2202 cat >&5 <<_ACEOF 2203 2204 2205 ## ----------- ## 2206 ## Core tests. ## 2207 ## ----------- ## 2208 2209 _ACEOF 2210 2211 2212 # Keep a trace of the command line. 2213 # Strip out --no-create and --no-recursion so they do not pile up. 2214 # Strip out --silent because we don't want to record it for future runs. 2215 # Also quote any args containing shell meta-characters. 2216 # Make two passes to allow for proper duplicate-argument suppression. 2217 ac_configure_args= 2218 ac_configure_args0= 2219 ac_configure_args1= 2220 ac_must_keep_next=false 2221 for ac_pass in 1 2 2222 do 2223 for ac_arg 2224 do 2225 case $ac_arg in 2226 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2228 | -silent | --silent | --silen | --sile | --sil) 2229 continue ;; 2230 *\'*) 2231 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2232 esac 2233 case $ac_pass in 2234 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2235 2) 2236 as_fn_append ac_configure_args1 " '$ac_arg'" 2237 if test $ac_must_keep_next = true; then 2238 ac_must_keep_next=false # Got value, back to normal. 2239 else 2240 case $ac_arg in 2241 *=* | --config-cache | -C | -disable-* | --disable-* \ 2242 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2243 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2244 | -with-* | --with-* | -without-* | --without-* | --x) 2245 case "$ac_configure_args0 " in 2246 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2247 esac 2248 ;; 2249 -* ) ac_must_keep_next=true ;; 2250 esac 2251 fi 2252 as_fn_append ac_configure_args " '$ac_arg'" 2253 ;; 2254 esac 2255 done 2256 done 2257 { ac_configure_args0=; unset ac_configure_args0;} 2258 { ac_configure_args1=; unset ac_configure_args1;} 2259 2260 # When interrupted or exit'd, cleanup temporary files, and complete 2261 # config.log. We remove comments because anyway the quotes in there 2262 # would cause problems or look ugly. 2263 # WARNING: Use '\'' to represent an apostrophe within the trap. 2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2265 trap 'exit_status=$? 2266 # Save into config.log some information that might help in debugging. 2267 { 2268 echo 2269 2270 $as_echo "## ---------------- ## 2271 ## Cache variables. ## 2272 ## ---------------- ##" 2273 echo 2274 # The following way of writing the cache mishandles newlines in values, 2275 ( 2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2277 eval ac_val=\$$ac_var 2278 case $ac_val in #( 2279 *${as_nl}*) 2280 case $ac_var in #( 2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2283 esac 2284 case $ac_var in #( 2285 _ | IFS | as_nl) ;; #( 2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2287 *) { eval $ac_var=; unset $ac_var;} ;; 2288 esac ;; 2289 esac 2290 done 2291 (set) 2>&1 | 2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2293 *${as_nl}ac_space=\ *) 2294 sed -n \ 2295 "s/'\''/'\''\\\\'\'''\''/g; 2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2297 ;; #( 2298 *) 2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2300 ;; 2301 esac | 2302 sort 2303 ) 2304 echo 2305 2306 $as_echo "## ----------------- ## 2307 ## Output variables. ## 2308 ## ----------------- ##" 2309 echo 2310 for ac_var in $ac_subst_vars 2311 do 2312 eval ac_val=\$$ac_var 2313 case $ac_val in 2314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2315 esac 2316 $as_echo "$ac_var='\''$ac_val'\''" 2317 done | sort 2318 echo 2319 2320 if test -n "$ac_subst_files"; then 2321 $as_echo "## ------------------- ## 2322 ## File substitutions. ## 2323 ## ------------------- ##" 2324 echo 2325 for ac_var in $ac_subst_files 2326 do 2327 eval ac_val=\$$ac_var 2328 case $ac_val in 2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2330 esac 2331 $as_echo "$ac_var='\''$ac_val'\''" 2332 done | sort 2333 echo 2334 fi 2335 2336 if test -s confdefs.h; then 2337 $as_echo "## ----------- ## 2338 ## confdefs.h. ## 2339 ## ----------- ##" 2340 echo 2341 cat confdefs.h 2342 echo 2343 fi 2344 test "$ac_signal" != 0 && 2345 $as_echo "$as_me: caught signal $ac_signal" 2346 $as_echo "$as_me: exit $exit_status" 2347 } >&5 2348 rm -f core *.core core.conftest.* && 2349 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2350 exit $exit_status 2351 ' 0 2352 for ac_signal in 1 2 13 15; do 2353 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2354 done 2355 ac_signal=0 2356 2357 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2358 rm -f -r conftest* confdefs.h 2359 2360 $as_echo "/* confdefs.h */" > confdefs.h 2361 2362 # Predefined preprocessor variables. 2363 2364 cat >>confdefs.h <<_ACEOF 2365 #define PACKAGE_NAME "$PACKAGE_NAME" 2366 _ACEOF 2367 2368 cat >>confdefs.h <<_ACEOF 2369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2370 _ACEOF 2371 2372 cat >>confdefs.h <<_ACEOF 2373 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2374 _ACEOF 2375 2376 cat >>confdefs.h <<_ACEOF 2377 #define PACKAGE_STRING "$PACKAGE_STRING" 2378 _ACEOF 2379 2380 cat >>confdefs.h <<_ACEOF 2381 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2382 _ACEOF 2383 2384 cat >>confdefs.h <<_ACEOF 2385 #define PACKAGE_URL "$PACKAGE_URL" 2386 _ACEOF 2387 2388 2389 # Let the site file select an alternate cache file if it wants to. 2390 # Prefer an explicitly selected file to automatically selected ones. 2391 ac_site_file1=NONE 2392 ac_site_file2=NONE 2393 if test -n "$CONFIG_SITE"; then 2394 # We do not want a PATH search for config.site. 2395 case $CONFIG_SITE in #(( 2396 -*) ac_site_file1=./$CONFIG_SITE;; 2397 */*) ac_site_file1=$CONFIG_SITE;; 2398 *) ac_site_file1=./$CONFIG_SITE;; 2399 esac 2400 elif test "x$prefix" != xNONE; then 2401 ac_site_file1=$prefix/share/config.site 2402 ac_site_file2=$prefix/etc/config.site 2403 else 2404 ac_site_file1=$ac_default_prefix/share/config.site 2405 ac_site_file2=$ac_default_prefix/etc/config.site 2406 fi 2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2408 do 2409 test "x$ac_site_file" = xNONE && continue 2410 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2413 sed 's/^/| /' "$ac_site_file" >&5 2414 . "$ac_site_file" \ 2415 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2417 as_fn_error $? "failed to load site script $ac_site_file 2418 See \`config.log' for more details" "$LINENO" 5; } 2419 fi 2420 done 2421 2422 if test -r "$cache_file"; then 2423 # Some versions of bash will fail to source /dev/null (special files 2424 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2425 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2427 $as_echo "$as_me: loading cache $cache_file" >&6;} 2428 case $cache_file in 2429 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2430 *) . "./$cache_file";; 2431 esac 2432 fi 2433 else 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2435 $as_echo "$as_me: creating cache $cache_file" >&6;} 2436 >$cache_file 2437 fi 2438 2439 # Check that the precious variables saved in the cache have kept the same 2440 # value. 2441 ac_cache_corrupted=false 2442 for ac_var in $ac_precious_vars; do 2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2444 eval ac_new_set=\$ac_env_${ac_var}_set 2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2446 eval ac_new_val=\$ac_env_${ac_var}_value 2447 case $ac_old_set,$ac_new_set in 2448 set,) 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2450 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2451 ac_cache_corrupted=: ;; 2452 ,set) 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2454 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2455 ac_cache_corrupted=: ;; 2456 ,);; 2457 *) 2458 if test "x$ac_old_val" != "x$ac_new_val"; then 2459 # differences in whitespace do not lead to failure. 2460 ac_old_val_w=`echo x $ac_old_val` 2461 ac_new_val_w=`echo x $ac_new_val` 2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2464 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2465 ac_cache_corrupted=: 2466 else 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2468 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2469 eval $ac_var=\$ac_old_val 2470 fi 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2472 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2474 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2475 fi;; 2476 esac 2477 # Pass precious variables to config.status. 2478 if test "$ac_new_set" = set; then 2479 case $ac_new_val in 2480 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2481 *) ac_arg=$ac_var=$ac_new_val ;; 2482 esac 2483 case " $ac_configure_args " in 2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2486 esac 2487 fi 2488 done 2489 if $ac_cache_corrupted; then 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2493 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2494 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2495 fi 2496 ## -------------------- ## 2497 ## Main body of script. ## 2498 ## -------------------- ## 2499 2500 ac_ext=c 2501 ac_cpp='$CPP $CPPFLAGS' 2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 ac_aux_dir= 2515 for ac_dir in ../.. "$srcdir"/../..; do 2516 if test -f "$ac_dir/install-sh"; then 2517 ac_aux_dir=$ac_dir 2518 ac_install_sh="$ac_aux_dir/install-sh -c" 2519 break 2520 elif test -f "$ac_dir/install.sh"; then 2521 ac_aux_dir=$ac_dir 2522 ac_install_sh="$ac_aux_dir/install.sh -c" 2523 break 2524 elif test -f "$ac_dir/shtool"; then 2525 ac_aux_dir=$ac_dir 2526 ac_install_sh="$ac_aux_dir/shtool install -c" 2527 break 2528 fi 2529 done 2530 if test -z "$ac_aux_dir"; then 2531 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2532 fi 2533 2534 # These three variables are undocumented and unsupported, 2535 # and are intended to be withdrawn in a future Autoconf release. 2536 # They can cause serious problems if a builder's source tree is in a directory 2537 # whose full name contains unusual characters. 2538 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2539 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2540 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2541 2542 2543 ac_config_headers="$ac_config_headers config.h" 2544 2545 2546 LIBVERSION=8.2 2547 2548 # Make sure we can run config.sub. 2549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2551 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2553 $as_echo_n "checking build system type... " >&6; } 2554 if ${ac_cv_build+:} false; then : 2555 $as_echo_n "(cached) " >&6 2556 else 2557 ac_build_alias=$build_alias 2558 test "x$ac_build_alias" = x && 2559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2560 test "x$ac_build_alias" = x && 2561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2564 2565 fi 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2567 $as_echo "$ac_cv_build" >&6; } 2568 case $ac_cv_build in 2569 *-*-*) ;; 2570 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2571 esac 2572 build=$ac_cv_build 2573 ac_save_IFS=$IFS; IFS='-' 2574 set x $ac_cv_build 2575 shift 2576 build_cpu=$1 2577 build_vendor=$2 2578 shift; shift 2579 # Remember, the first character of IFS is used to create $*, 2580 # except with old shells: 2581 build_os=$* 2582 IFS=$ac_save_IFS 2583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2584 2585 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2587 $as_echo_n "checking host system type... " >&6; } 2588 if ${ac_cv_host+:} false; then : 2589 $as_echo_n "(cached) " >&6 2590 else 2591 if test "x$host_alias" = x; then 2592 ac_cv_host=$ac_cv_build 2593 else 2594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2596 fi 2597 2598 fi 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2600 $as_echo "$ac_cv_host" >&6; } 2601 case $ac_cv_host in 2602 *-*-*) ;; 2603 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2604 esac 2605 host=$ac_cv_host 2606 ac_save_IFS=$IFS; IFS='-' 2607 set x $ac_cv_host 2608 shift 2609 host_cpu=$1 2610 host_vendor=$2 2611 shift; shift 2612 # Remember, the first character of IFS is used to create $*, 2613 # except with old shells: 2614 host_os=$* 2615 IFS=$ac_save_IFS 2616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2617 2618 2619 2620 2621 opt_curses=no 2622 opt_shared_termcap_lib=no 2623 2624 2625 # Check whether --with-curses was given. 2626 if test "${with_curses+set}" = set; then : 2627 withval=$with_curses; opt_curses=$withval 2628 fi 2629 2630 2631 # Check whether --with-shared-termcap-library was given. 2632 if test "${with_shared_termcap_library+set}" = set; then : 2633 withval=$with_shared_termcap_library; opt_shared_termcap_lib=$withval 2634 fi 2635 2636 2637 if test "$opt_curses" = "yes"; then 2638 prefer_curses=yes 2639 fi 2640 2641 opt_multibyte=yes 2642 opt_static_libs=yes 2643 opt_shared_libs=no 2644 opt_install_examples=no 2645 opt_bracketed_paste_default=yes 2646 2647 # Check whether --enable-multibyte was given. 2648 if test "${enable_multibyte+set}" = set; then : 2649 enableval=$enable_multibyte; opt_multibyte=$enableval 2650 fi 2651 2652 # Check whether --enable-static was given. 2653 if test "${enable_static+set}" = set; then : 2654 enableval=$enable_static; opt_static_libs=$enableval 2655 fi 2656 2657 # Check whether --enable-install-examples was given. 2658 if test "${enable_install_examples+set}" = set; then : 2659 enableval=$enable_install_examples; opt_install_examples=$enableval 2660 fi 2661 2662 2663 # Check whether --enable-bracketed-paste-default was given. 2664 if test "${enable_bracketed_paste_default+set}" = set; then : 2665 enableval=$enable_bracketed_paste_default; opt_bracketed_paste_default=$enableval 2666 fi 2667 2668 2669 if test $opt_multibyte = no; then 2670 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h 2671 2672 fi 2673 2674 if test $opt_bracketed_paste_default = yes; then 2675 BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1' 2676 else 2677 BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0' 2678 fi 2679 2680 2681 2682 2683 CROSS_COMPILE= 2684 if test "x$cross_compiling" = "xyes"; then 2685 case "${host}" in 2686 *-cygwin*) 2687 cross_cache=${srcdir}/cross-build/cygwin.cache 2688 ;; 2689 *-mingw*) 2690 cross_cache=${srcdir}/cross-build/mingw.cache 2691 ;; 2692 i[3456]86-*-beos*) 2693 cross_cache=${srcdir}/cross-build/x86-beos.cache 2694 ;; 2695 *) echo "configure: cross-compiling for $host is not supported" >&2 2696 ;; 2697 esac 2698 if test -n "${cross_cache}" && test -r "${cross_cache}"; then 2699 echo "loading cross-build cache file ${cross_cache}" 2700 . ${cross_cache} 2701 fi 2702 unset cross_cache 2703 CROSS_COMPILE='-DCROSS_COMPILING' 2704 2705 fi 2706 2707 echo "" 2708 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" 2709 echo "" 2710 2711 # We want these before the checks, so the checks can modify their values. 2712 test -z "$CFLAGS" && want_auto_cflags=1 2713 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2716 set x ${MAKE-make} 2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720 else 2721 cat >conftest.make <<\_ACEOF 2722 SHELL = /bin/sh 2723 all: 2724 @echo '@@@%%%=$(MAKE)=@@@%%%' 2725 _ACEOF 2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2728 *@@@%%%=?*=@@@%%%*) 2729 eval ac_cv_prog_make_${ac_make}_set=yes;; 2730 *) 2731 eval ac_cv_prog_make_${ac_make}_set=no;; 2732 esac 2733 rm -f conftest.make 2734 fi 2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2737 $as_echo "yes" >&6; } 2738 SET_MAKE= 2739 else 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741 $as_echo "no" >&6; } 2742 SET_MAKE="MAKE=${MAKE-make}" 2743 fi 2744 2745 ac_ext=c 2746 ac_cpp='$CPP $CPPFLAGS' 2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2750 if test -n "$ac_tool_prefix"; then 2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754 $as_echo_n "checking for $ac_word... " >&6; } 2755 if ${ac_cv_prog_CC+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757 else 2758 if test -n "$CC"; then 2759 ac_cv_prog_CC="$CC" # Let the user override the test. 2760 else 2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762 for as_dir in $PATH 2763 do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2768 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772 done 2773 done 2774 IFS=$as_save_IFS 2775 2776 fi 2777 fi 2778 CC=$ac_cv_prog_CC 2779 if test -n "$CC"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2781 $as_echo "$CC" >&6; } 2782 else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784 $as_echo "no" >&6; } 2785 fi 2786 2787 2788 fi 2789 if test -z "$ac_cv_prog_CC"; then 2790 ac_ct_CC=$CC 2791 # Extract the first word of "gcc", so it can be a program name with args. 2792 set dummy gcc; ac_word=$2 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2794 $as_echo_n "checking for $ac_word... " >&6; } 2795 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797 else 2798 if test -n "$ac_ct_CC"; then 2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2800 else 2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802 for as_dir in $PATH 2803 do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 for ac_exec_ext in '' $ac_executable_extensions; do 2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2808 ac_cv_prog_ac_ct_CC="gcc" 2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2810 break 2 2811 fi 2812 done 2813 done 2814 IFS=$as_save_IFS 2815 2816 fi 2817 fi 2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2819 if test -n "$ac_ct_CC"; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2821 $as_echo "$ac_ct_CC" >&6; } 2822 else 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2824 $as_echo "no" >&6; } 2825 fi 2826 2827 if test "x$ac_ct_CC" = x; then 2828 CC="" 2829 else 2830 case $cross_compiling:$ac_tool_warned in 2831 yes:) 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2834 ac_tool_warned=yes ;; 2835 esac 2836 CC=$ac_ct_CC 2837 fi 2838 else 2839 CC="$ac_cv_prog_CC" 2840 fi 2841 2842 if test -z "$CC"; then 2843 if test -n "$ac_tool_prefix"; then 2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2845 set dummy ${ac_tool_prefix}cc; ac_word=$2 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2847 $as_echo_n "checking for $ac_word... " >&6; } 2848 if ${ac_cv_prog_CC+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850 else 2851 if test -n "$CC"; then 2852 ac_cv_prog_CC="$CC" # Let the user override the test. 2853 else 2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2855 for as_dir in $PATH 2856 do 2857 IFS=$as_save_IFS 2858 test -z "$as_dir" && as_dir=. 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_CC="${ac_tool_prefix}cc" 2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865 done 2866 done 2867 IFS=$as_save_IFS 2868 2869 fi 2870 fi 2871 CC=$ac_cv_prog_CC 2872 if test -n "$CC"; then 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2874 $as_echo "$CC" >&6; } 2875 else 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2877 $as_echo "no" >&6; } 2878 fi 2879 2880 2881 fi 2882 fi 2883 if test -z "$CC"; then 2884 # Extract the first word of "cc", so it can be a program name with args. 2885 set dummy cc; ac_word=$2 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887 $as_echo_n "checking for $ac_word... " >&6; } 2888 if ${ac_cv_prog_CC+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890 else 2891 if test -n "$CC"; then 2892 ac_cv_prog_CC="$CC" # Let the user override the test. 2893 else 2894 ac_prog_rejected=no 2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896 for as_dir in $PATH 2897 do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2903 ac_prog_rejected=yes 2904 continue 2905 fi 2906 ac_cv_prog_CC="cc" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910 done 2911 done 2912 IFS=$as_save_IFS 2913 2914 if test $ac_prog_rejected = yes; then 2915 # We found a bogon in the path, so make sure we never use it. 2916 set dummy $ac_cv_prog_CC 2917 shift 2918 if test $# != 0; then 2919 # We chose a different compiler from the bogus one. 2920 # However, it has the same basename, so the bogon will be chosen 2921 # first if we set CC to just the basename; use the full file name. 2922 shift 2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2924 fi 2925 fi 2926 fi 2927 fi 2928 CC=$ac_cv_prog_CC 2929 if test -n "$CC"; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2931 $as_echo "$CC" >&6; } 2932 else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934 $as_echo "no" >&6; } 2935 fi 2936 2937 2938 fi 2939 if test -z "$CC"; then 2940 if test -n "$ac_tool_prefix"; then 2941 for ac_prog in cl.exe 2942 do 2943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2946 $as_echo_n "checking for $ac_word... " >&6; } 2947 if ${ac_cv_prog_CC+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949 else 2950 if test -n "$CC"; then 2951 ac_cv_prog_CC="$CC" # Let the user override the test. 2952 else 2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954 for as_dir in $PATH 2955 do 2956 IFS=$as_save_IFS 2957 test -z "$as_dir" && as_dir=. 2958 for ac_exec_ext in '' $ac_executable_extensions; do 2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2962 break 2 2963 fi 2964 done 2965 done 2966 IFS=$as_save_IFS 2967 2968 fi 2969 fi 2970 CC=$ac_cv_prog_CC 2971 if test -n "$CC"; then 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2973 $as_echo "$CC" >&6; } 2974 else 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976 $as_echo "no" >&6; } 2977 fi 2978 2979 2980 test -n "$CC" && break 2981 done 2982 fi 2983 if test -z "$CC"; then 2984 ac_ct_CC=$CC 2985 for ac_prog in cl.exe 2986 do 2987 # Extract the first word of "$ac_prog", so it can be a program name with args. 2988 set dummy $ac_prog; ac_word=$2 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990 $as_echo_n "checking for $ac_word... " >&6; } 2991 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993 else 2994 if test -n "$ac_ct_CC"; then 2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2996 else 2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998 for as_dir in $PATH 2999 do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_ac_ct_CC="$ac_prog" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008 done 3009 done 3010 IFS=$as_save_IFS 3011 3012 fi 3013 fi 3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3015 if test -n "$ac_ct_CC"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3017 $as_echo "$ac_ct_CC" >&6; } 3018 else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020 $as_echo "no" >&6; } 3021 fi 3022 3023 3024 test -n "$ac_ct_CC" && break 3025 done 3026 3027 if test "x$ac_ct_CC" = x; then 3028 CC="" 3029 else 3030 case $cross_compiling:$ac_tool_warned in 3031 yes:) 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3034 ac_tool_warned=yes ;; 3035 esac 3036 CC=$ac_ct_CC 3037 fi 3038 fi 3039 3040 fi 3041 3042 3043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3045 as_fn_error $? "no acceptable C compiler found in \$PATH 3046 See \`config.log' for more details" "$LINENO" 5; } 3047 3048 # Provide some information about the compiler. 3049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3050 set X $ac_compile 3051 ac_compiler=$2 3052 for ac_option in --version -v -V -qversion; do 3053 { { ac_try="$ac_compiler $ac_option >&5" 3054 case "(($ac_try" in 3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3056 *) ac_try_echo=$ac_try;; 3057 esac 3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3059 $as_echo "$ac_try_echo"; } >&5 3060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3061 ac_status=$? 3062 if test -s conftest.err; then 3063 sed '10a\ 3064 ... rest of stderr output deleted ... 3065 10q' conftest.err >conftest.er1 3066 cat conftest.er1 >&5 3067 fi 3068 rm -f conftest.er1 conftest.err 3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3070 test $ac_status = 0; } 3071 done 3072 3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3074 /* end confdefs.h. */ 3075 3076 int 3077 main () 3078 { 3079 3080 ; 3081 return 0; 3082 } 3083 _ACEOF 3084 ac_clean_files_save=$ac_clean_files 3085 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3086 # Try to create an executable without -o first, disregard a.out. 3087 # It will help us diagnose broken compilers, and finding out an intuition 3088 # of exeext. 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3090 $as_echo_n "checking whether the C compiler works... " >&6; } 3091 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3092 3093 # The possible output files: 3094 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3095 3096 ac_rmfiles= 3097 for ac_file in $ac_files 3098 do 3099 case $ac_file in 3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3102 esac 3103 done 3104 rm -f $ac_rmfiles 3105 3106 if { { ac_try="$ac_link_default" 3107 case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110 esac 3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3112 $as_echo "$ac_try_echo"; } >&5 3113 (eval "$ac_link_default") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3116 test $ac_status = 0; }; then : 3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3119 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3120 # so that the user can short-circuit this test for compilers unknown to 3121 # Autoconf. 3122 for ac_file in $ac_files '' 3123 do 3124 test -f "$ac_file" || continue 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3127 ;; 3128 [ab].out ) 3129 # We found the default executable, but exeext='' is most 3130 # certainly right. 3131 break;; 3132 *.* ) 3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3134 then :; else 3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3136 fi 3137 # We set ac_cv_exeext here because the later test for it is not 3138 # safe: cross compilers may not add the suffix if given an `-o' 3139 # argument, so we may need to know it at that point already. 3140 # Even if this section looks crufty: it has the advantage of 3141 # actually working. 3142 break;; 3143 * ) 3144 break;; 3145 esac 3146 done 3147 test "$ac_cv_exeext" = no && ac_cv_exeext= 3148 3149 else 3150 ac_file='' 3151 fi 3152 if test -z "$ac_file"; then : 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154 $as_echo "no" >&6; } 3155 $as_echo "$as_me: failed program was:" >&5 3156 sed 's/^/| /' conftest.$ac_ext >&5 3157 3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3160 as_fn_error 77 "C compiler cannot create executables 3161 See \`config.log' for more details" "$LINENO" 5; } 3162 else 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3164 $as_echo "yes" >&6; } 3165 fi 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3167 $as_echo_n "checking for C compiler default output file name... " >&6; } 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3169 $as_echo "$ac_file" >&6; } 3170 ac_exeext=$ac_cv_exeext 3171 3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3173 ac_clean_files=$ac_clean_files_save 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3175 $as_echo_n "checking for suffix of executables... " >&6; } 3176 if { { ac_try="$ac_link" 3177 case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180 esac 3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3182 $as_echo "$ac_try_echo"; } >&5 3183 (eval "$ac_link") 2>&5 3184 ac_status=$? 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; }; then : 3187 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3189 # work properly (i.e., refer to `conftest.exe'), while it won't with 3190 # `rm'. 3191 for ac_file in conftest.exe conftest conftest.*; do 3192 test -f "$ac_file" || continue 3193 case $ac_file in 3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3196 break;; 3197 * ) break;; 3198 esac 3199 done 3200 else 3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3204 See \`config.log' for more details" "$LINENO" 5; } 3205 fi 3206 rm -f conftest conftest$ac_cv_exeext 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3208 $as_echo "$ac_cv_exeext" >&6; } 3209 3210 rm -f conftest.$ac_ext 3211 EXEEXT=$ac_cv_exeext 3212 ac_exeext=$EXEEXT 3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3214 /* end confdefs.h. */ 3215 #include <stdio.h> 3216 int 3217 main () 3218 { 3219 FILE *f = fopen ("conftest.out", "w"); 3220 return ferror (f) || fclose (f) != 0; 3221 3222 ; 3223 return 0; 3224 } 3225 _ACEOF 3226 ac_clean_files="$ac_clean_files conftest.out" 3227 # Check that the compiler produces executables we can run. If not, either 3228 # the compiler is broken, or we cross compile. 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3230 $as_echo_n "checking whether we are cross compiling... " >&6; } 3231 if test "$cross_compiling" != yes; then 3232 { { ac_try="$ac_link" 3233 case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236 esac 3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238 $as_echo "$ac_try_echo"; } >&5 3239 (eval "$ac_link") 2>&5 3240 ac_status=$? 3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; } 3243 if { ac_try='./conftest$ac_cv_exeext' 3244 { { case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247 esac 3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3249 $as_echo "$ac_try_echo"; } >&5 3250 (eval "$ac_try") 2>&5 3251 ac_status=$? 3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253 test $ac_status = 0; }; }; then 3254 cross_compiling=no 3255 else 3256 if test "$cross_compiling" = maybe; then 3257 cross_compiling=yes 3258 else 3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3261 as_fn_error $? "cannot run C compiled programs. 3262 If you meant to cross compile, use \`--host'. 3263 See \`config.log' for more details" "$LINENO" 5; } 3264 fi 3265 fi 3266 fi 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3268 $as_echo "$cross_compiling" >&6; } 3269 3270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3271 ac_clean_files=$ac_clean_files_save 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3273 $as_echo_n "checking for suffix of object files... " >&6; } 3274 if ${ac_cv_objext+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276 else 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278 /* end confdefs.h. */ 3279 3280 int 3281 main () 3282 { 3283 3284 ; 3285 return 0; 3286 } 3287 _ACEOF 3288 rm -f conftest.o conftest.obj 3289 if { { ac_try="$ac_compile" 3290 case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293 esac 3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3295 $as_echo "$ac_try_echo"; } >&5 3296 (eval "$ac_compile") 2>&5 3297 ac_status=$? 3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3299 test $ac_status = 0; }; then : 3300 for ac_file in conftest.o conftest.obj conftest.*; do 3301 test -f "$ac_file" || continue; 3302 case $ac_file in 3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3305 break;; 3306 esac 3307 done 3308 else 3309 $as_echo "$as_me: failed program was:" >&5 3310 sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3314 as_fn_error $? "cannot compute suffix of object files: cannot compile 3315 See \`config.log' for more details" "$LINENO" 5; } 3316 fi 3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3318 fi 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3320 $as_echo "$ac_cv_objext" >&6; } 3321 OBJEXT=$ac_cv_objext 3322 ac_objext=$OBJEXT 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3325 if ${ac_cv_c_compiler_gnu+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327 else 3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3329 /* end confdefs.h. */ 3330 3331 int 3332 main () 3333 { 3334 #ifndef __GNUC__ 3335 choke me 3336 #endif 3337 3338 ; 3339 return 0; 3340 } 3341 _ACEOF 3342 if ac_fn_c_try_compile "$LINENO"; then : 3343 ac_compiler_gnu=yes 3344 else 3345 ac_compiler_gnu=no 3346 fi 3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3349 3350 fi 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3353 if test $ac_compiler_gnu = yes; then 3354 GCC=yes 3355 else 3356 GCC= 3357 fi 3358 ac_test_CFLAGS=${CFLAGS+set} 3359 ac_save_CFLAGS=$CFLAGS 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3361 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3362 if ${ac_cv_prog_cc_g+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364 else 3365 ac_save_c_werror_flag=$ac_c_werror_flag 3366 ac_c_werror_flag=yes 3367 ac_cv_prog_cc_g=no 3368 CFLAGS="-g" 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370 /* end confdefs.h. */ 3371 3372 int 3373 main () 3374 { 3375 3376 ; 3377 return 0; 3378 } 3379 _ACEOF 3380 if ac_fn_c_try_compile "$LINENO"; then : 3381 ac_cv_prog_cc_g=yes 3382 else 3383 CFLAGS="" 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385 /* end confdefs.h. */ 3386 3387 int 3388 main () 3389 { 3390 3391 ; 3392 return 0; 3393 } 3394 _ACEOF 3395 if ac_fn_c_try_compile "$LINENO"; then : 3396 3397 else 3398 ac_c_werror_flag=$ac_save_c_werror_flag 3399 CFLAGS="-g" 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401 /* end confdefs.h. */ 3402 3403 int 3404 main () 3405 { 3406 3407 ; 3408 return 0; 3409 } 3410 _ACEOF 3411 if ac_fn_c_try_compile "$LINENO"; then : 3412 ac_cv_prog_cc_g=yes 3413 fi 3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3415 fi 3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3417 fi 3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3419 ac_c_werror_flag=$ac_save_c_werror_flag 3420 fi 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3422 $as_echo "$ac_cv_prog_cc_g" >&6; } 3423 if test "$ac_test_CFLAGS" = set; then 3424 CFLAGS=$ac_save_CFLAGS 3425 elif test $ac_cv_prog_cc_g = yes; then 3426 if test "$GCC" = yes; then 3427 CFLAGS="-g -O2" 3428 else 3429 CFLAGS="-g" 3430 fi 3431 else 3432 if test "$GCC" = yes; then 3433 CFLAGS="-O2" 3434 else 3435 CFLAGS= 3436 fi 3437 fi 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3440 if ${ac_cv_prog_cc_c89+:} false; then : 3441 $as_echo_n "(cached) " >&6 3442 else 3443 ac_cv_prog_cc_c89=no 3444 ac_save_CC=$CC 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446 /* end confdefs.h. */ 3447 #include <stdarg.h> 3448 #include <stdio.h> 3449 struct stat; 3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3451 struct buf { int x; }; 3452 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3453 static char *e (p, i) 3454 char **p; 3455 int i; 3456 { 3457 return p[i]; 3458 } 3459 static char *f (char * (*g) (char **, int), char **p, ...) 3460 { 3461 char *s; 3462 va_list v; 3463 va_start (v,p); 3464 s = g (p, va_arg (v,int)); 3465 va_end (v); 3466 return s; 3467 } 3468 3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3470 function prototypes and stuff, but not '\xHH' hex character constants. 3471 These don't provoke an error unfortunately, instead are silently treated 3472 as 'x'. The following induces an error, until -std is added to get 3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3474 array size at least. It's necessary to write '\x00'==0 to get something 3475 that's true only with -std. */ 3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3477 3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3479 inside strings and character constants. */ 3480 #define FOO(x) 'x' 3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3482 3483 int test (int i, double x); 3484 struct s1 {int (*f) (int a);}; 3485 struct s2 {int (*f) (double a);}; 3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3487 int argc; 3488 char **argv; 3489 int 3490 main () 3491 { 3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3493 ; 3494 return 0; 3495 } 3496 _ACEOF 3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3499 do 3500 CC="$ac_save_CC $ac_arg" 3501 if ac_fn_c_try_compile "$LINENO"; then : 3502 ac_cv_prog_cc_c89=$ac_arg 3503 fi 3504 rm -f core conftest.err conftest.$ac_objext 3505 test "x$ac_cv_prog_cc_c89" != "xno" && break 3506 done 3507 rm -f conftest.$ac_ext 3508 CC=$ac_save_CC 3509 3510 fi 3511 # AC_CACHE_VAL 3512 case "x$ac_cv_prog_cc_c89" in 3513 x) 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3515 $as_echo "none needed" >&6; } ;; 3516 xno) 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3518 $as_echo "unsupported" >&6; } ;; 3519 *) 3520 CC="$CC $ac_cv_prog_cc_c89" 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3523 esac 3524 if test "x$ac_cv_prog_cc_c89" != xno; then : 3525 3526 fi 3527 3528 ac_ext=c 3529 ac_cpp='$CPP $CPPFLAGS' 3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3533 3534 3535 ac_ext=c 3536 ac_cpp='$CPP $CPPFLAGS' 3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3541 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3542 # On Suns, sometimes $CPP names a directory. 3543 if test -n "$CPP" && test -d "$CPP"; then 3544 CPP= 3545 fi 3546 if test -z "$CPP"; then 3547 if ${ac_cv_prog_CPP+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549 else 3550 # Double quotes because CPP needs to be expanded 3551 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3552 do 3553 ac_preproc_ok=false 3554 for ac_c_preproc_warn_flag in '' yes 3555 do 3556 # Use a header file that comes with gcc, so configuring glibc 3557 # with a fresh cross-compiler works. 3558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3559 # <limits.h> exists even on freestanding compilers. 3560 # On the NeXT, cc -E runs the code through the compiler's parser, 3561 # not just through cpp. "Syntax error" is here to catch this case. 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3563 /* end confdefs.h. */ 3564 #ifdef __STDC__ 3565 # include <limits.h> 3566 #else 3567 # include <assert.h> 3568 #endif 3569 Syntax error 3570 _ACEOF 3571 if ac_fn_c_try_cpp "$LINENO"; then : 3572 3573 else 3574 # Broken: fails on valid input. 3575 continue 3576 fi 3577 rm -f conftest.err conftest.i conftest.$ac_ext 3578 3579 # OK, works on sane cases. Now check whether nonexistent headers 3580 # can be detected and how. 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582 /* end confdefs.h. */ 3583 #include <ac_nonexistent.h> 3584 _ACEOF 3585 if ac_fn_c_try_cpp "$LINENO"; then : 3586 # Broken: success on invalid input. 3587 continue 3588 else 3589 # Passes both tests. 3590 ac_preproc_ok=: 3591 break 3592 fi 3593 rm -f conftest.err conftest.i conftest.$ac_ext 3594 3595 done 3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3597 rm -f conftest.i conftest.err conftest.$ac_ext 3598 if $ac_preproc_ok; then : 3599 break 3600 fi 3601 3602 done 3603 ac_cv_prog_CPP=$CPP 3604 3605 fi 3606 CPP=$ac_cv_prog_CPP 3607 else 3608 ac_cv_prog_CPP=$CPP 3609 fi 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3611 $as_echo "$CPP" >&6; } 3612 ac_preproc_ok=false 3613 for ac_c_preproc_warn_flag in '' yes 3614 do 3615 # Use a header file that comes with gcc, so configuring glibc 3616 # with a fresh cross-compiler works. 3617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3618 # <limits.h> exists even on freestanding compilers. 3619 # On the NeXT, cc -E runs the code through the compiler's parser, 3620 # not just through cpp. "Syntax error" is here to catch this case. 3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622 /* end confdefs.h. */ 3623 #ifdef __STDC__ 3624 # include <limits.h> 3625 #else 3626 # include <assert.h> 3627 #endif 3628 Syntax error 3629 _ACEOF 3630 if ac_fn_c_try_cpp "$LINENO"; then : 3631 3632 else 3633 # Broken: fails on valid input. 3634 continue 3635 fi 3636 rm -f conftest.err conftest.i conftest.$ac_ext 3637 3638 # OK, works on sane cases. Now check whether nonexistent headers 3639 # can be detected and how. 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641 /* end confdefs.h. */ 3642 #include <ac_nonexistent.h> 3643 _ACEOF 3644 if ac_fn_c_try_cpp "$LINENO"; then : 3645 # Broken: success on invalid input. 3646 continue 3647 else 3648 # Passes both tests. 3649 ac_preproc_ok=: 3650 break 3651 fi 3652 rm -f conftest.err conftest.i conftest.$ac_ext 3653 3654 done 3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3656 rm -f conftest.i conftest.err conftest.$ac_ext 3657 if $ac_preproc_ok; then : 3658 3659 else 3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3662 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3663 See \`config.log' for more details" "$LINENO" 5; } 3664 fi 3665 3666 ac_ext=c 3667 ac_cpp='$CPP $CPPFLAGS' 3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671 3672 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3674 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3675 if ${ac_cv_path_GREP+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677 else 3678 if test -z "$GREP"; then 3679 ac_path_GREP_found=false 3680 # Loop through the user's path and test for each of PROGNAME-LIST 3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3683 do 3684 IFS=$as_save_IFS 3685 test -z "$as_dir" && as_dir=. 3686 for ac_prog in grep ggrep; do 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3689 as_fn_executable_p "$ac_path_GREP" || continue 3690 # Check for GNU ac_path_GREP and select it if it is found. 3691 # Check for GNU $ac_path_GREP 3692 case `"$ac_path_GREP" --version 2>&1` in 3693 *GNU*) 3694 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3695 *) 3696 ac_count=0 3697 $as_echo_n 0123456789 >"conftest.in" 3698 while : 3699 do 3700 cat "conftest.in" "conftest.in" >"conftest.tmp" 3701 mv "conftest.tmp" "conftest.in" 3702 cp "conftest.in" "conftest.nl" 3703 $as_echo 'GREP' >> "conftest.nl" 3704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3706 as_fn_arith $ac_count + 1 && ac_count=$as_val 3707 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3708 # Best one so far, save it but keep looking for a better one 3709 ac_cv_path_GREP="$ac_path_GREP" 3710 ac_path_GREP_max=$ac_count 3711 fi 3712 # 10*(2^10) chars as input seems more than enough 3713 test $ac_count -gt 10 && break 3714 done 3715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3716 esac 3717 3718 $ac_path_GREP_found && break 3 3719 done 3720 done 3721 done 3722 IFS=$as_save_IFS 3723 if test -z "$ac_cv_path_GREP"; then 3724 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3725 fi 3726 else 3727 ac_cv_path_GREP=$GREP 3728 fi 3729 3730 fi 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3732 $as_echo "$ac_cv_path_GREP" >&6; } 3733 GREP="$ac_cv_path_GREP" 3734 3735 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3737 $as_echo_n "checking for egrep... " >&6; } 3738 if ${ac_cv_path_EGREP+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740 else 3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3742 then ac_cv_path_EGREP="$GREP -E" 3743 else 3744 if test -z "$EGREP"; then 3745 ac_path_EGREP_found=false 3746 # Loop through the user's path and test for each of PROGNAME-LIST 3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3749 do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_prog in egrep; do 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3755 as_fn_executable_p "$ac_path_EGREP" || continue 3756 # Check for GNU ac_path_EGREP and select it if it is found. 3757 # Check for GNU $ac_path_EGREP 3758 case `"$ac_path_EGREP" --version 2>&1` in 3759 *GNU*) 3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3761 *) 3762 ac_count=0 3763 $as_echo_n 0123456789 >"conftest.in" 3764 while : 3765 do 3766 cat "conftest.in" "conftest.in" >"conftest.tmp" 3767 mv "conftest.tmp" "conftest.in" 3768 cp "conftest.in" "conftest.nl" 3769 $as_echo 'EGREP' >> "conftest.nl" 3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3772 as_fn_arith $ac_count + 1 && ac_count=$as_val 3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3774 # Best one so far, save it but keep looking for a better one 3775 ac_cv_path_EGREP="$ac_path_EGREP" 3776 ac_path_EGREP_max=$ac_count 3777 fi 3778 # 10*(2^10) chars as input seems more than enough 3779 test $ac_count -gt 10 && break 3780 done 3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3782 esac 3783 3784 $ac_path_EGREP_found && break 3 3785 done 3786 done 3787 done 3788 IFS=$as_save_IFS 3789 if test -z "$ac_cv_path_EGREP"; then 3790 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3791 fi 3792 else 3793 ac_cv_path_EGREP=$EGREP 3794 fi 3795 3796 fi 3797 fi 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3799 $as_echo "$ac_cv_path_EGREP" >&6; } 3800 EGREP="$ac_cv_path_EGREP" 3801 3802 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3804 $as_echo_n "checking for ANSI C header files... " >&6; } 3805 if ${ac_cv_header_stdc+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807 else 3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809 /* end confdefs.h. */ 3810 #include <stdlib.h> 3811 #include <stdarg.h> 3812 #include <string.h> 3813 #include <float.h> 3814 3815 int 3816 main () 3817 { 3818 3819 ; 3820 return 0; 3821 } 3822 _ACEOF 3823 if ac_fn_c_try_compile "$LINENO"; then : 3824 ac_cv_header_stdc=yes 3825 else 3826 ac_cv_header_stdc=no 3827 fi 3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3829 3830 if test $ac_cv_header_stdc = yes; then 3831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833 /* end confdefs.h. */ 3834 #include <string.h> 3835 3836 _ACEOF 3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3838 $EGREP "memchr" >/dev/null 2>&1; then : 3839 3840 else 3841 ac_cv_header_stdc=no 3842 fi 3843 rm -f conftest* 3844 3845 fi 3846 3847 if test $ac_cv_header_stdc = yes; then 3848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850 /* end confdefs.h. */ 3851 #include <stdlib.h> 3852 3853 _ACEOF 3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3855 $EGREP "free" >/dev/null 2>&1; then : 3856 3857 else 3858 ac_cv_header_stdc=no 3859 fi 3860 rm -f conftest* 3861 3862 fi 3863 3864 if test $ac_cv_header_stdc = yes; then 3865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3866 if test "$cross_compiling" = yes; then : 3867 : 3868 else 3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3870 /* end confdefs.h. */ 3871 #include <ctype.h> 3872 #include <stdlib.h> 3873 #if ((' ' & 0x0FF) == 0x020) 3874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3876 #else 3877 # define ISLOWER(c) \ 3878 (('a' <= (c) && (c) <= 'i') \ 3879 || ('j' <= (c) && (c) <= 'r') \ 3880 || ('s' <= (c) && (c) <= 'z')) 3881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3882 #endif 3883 3884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3885 int 3886 main () 3887 { 3888 int i; 3889 for (i = 0; i < 256; i++) 3890 if (XOR (islower (i), ISLOWER (i)) 3891 || toupper (i) != TOUPPER (i)) 3892 return 2; 3893 return 0; 3894 } 3895 _ACEOF 3896 if ac_fn_c_try_run "$LINENO"; then : 3897 3898 else 3899 ac_cv_header_stdc=no 3900 fi 3901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3902 conftest.$ac_objext conftest.beam conftest.$ac_ext 3903 fi 3904 3905 fi 3906 fi 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3908 $as_echo "$ac_cv_header_stdc" >&6; } 3909 if test $ac_cv_header_stdc = yes; then 3910 3911 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3912 3913 fi 3914 3915 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3916 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3917 inttypes.h stdint.h unistd.h 3918 do : 3919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3920 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3921 " 3922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3923 cat >>confdefs.h <<_ACEOF 3924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3925 _ACEOF 3926 3927 fi 3928 3929 done 3930 3931 3932 3933 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3934 if test "x$ac_cv_header_minix_config_h" = xyes; then : 3935 MINIX=yes 3936 else 3937 MINIX= 3938 fi 3939 3940 3941 if test "$MINIX" = yes; then 3942 3943 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3944 3945 3946 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3947 3948 3949 $as_echo "#define _MINIX 1" >>confdefs.h 3950 3951 fi 3952 3953 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3955 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3956 if ${ac_cv_safe_to_define___extensions__+:} false; then : 3957 $as_echo_n "(cached) " >&6 3958 else 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960 /* end confdefs.h. */ 3961 3962 # define __EXTENSIONS__ 1 3963 $ac_includes_default 3964 int 3965 main () 3966 { 3967 3968 ; 3969 return 0; 3970 } 3971 _ACEOF 3972 if ac_fn_c_try_compile "$LINENO"; then : 3973 ac_cv_safe_to_define___extensions__=yes 3974 else 3975 ac_cv_safe_to_define___extensions__=no 3976 fi 3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3978 fi 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3980 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3981 test $ac_cv_safe_to_define___extensions__ = yes && 3982 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3983 3984 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3985 3986 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3987 3988 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3989 3990 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3991 3992 3993 3994 # If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS 3995 if test -n "$want_auto_cflags" ; then 3996 AUTO_CFLAGS="-g ${GCC:+-O2}" 3997 STYLE_CFLAGS="${GCC:+-Wno-parentheses} ${GCC:+-Wno-format-security} ${GCC:+-Wno-tautological-constant-out-of-range-compare}" 3998 fi 3999 4000 if test $ac_cv_c_compiler_gnu = yes; then 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4002 $as_echo_n "checking whether $CC needs -traditional... " >&6; } 4003 if ${ac_cv_prog_gcc_traditional+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005 else 4006 ac_pattern="Autoconf.*'x'" 4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008 /* end confdefs.h. */ 4009 #include <sgtty.h> 4010 Autoconf TIOCGETP 4011 _ACEOF 4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4013 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4014 ac_cv_prog_gcc_traditional=yes 4015 else 4016 ac_cv_prog_gcc_traditional=no 4017 fi 4018 rm -f conftest* 4019 4020 4021 if test $ac_cv_prog_gcc_traditional = no; then 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023 /* end confdefs.h. */ 4024 #include <termio.h> 4025 Autoconf TCGETA 4026 _ACEOF 4027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4028 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4029 ac_cv_prog_gcc_traditional=yes 4030 fi 4031 rm -f conftest* 4032 4033 fi 4034 fi 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4036 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4037 if test $ac_cv_prog_gcc_traditional = yes; then 4038 CC="$CC -traditional" 4039 fi 4040 fi 4041 4042 # Find a good install program. We prefer a C program (faster), 4043 # so one script is as good as another. But avoid the broken or 4044 # incompatible versions: 4045 # SysV /etc/install, /usr/sbin/install 4046 # SunOS /usr/etc/install 4047 # IRIX /sbin/install 4048 # AIX /bin/install 4049 # AmigaOS /C/install, which installs bootblocks on floppy discs 4050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4053 # OS/2's system install, which has a completely different semantic 4054 # ./install, which can be erroneously created by make from ./install.sh. 4055 # Reject install programs that cannot install multiple files. 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4057 $as_echo_n "checking for a BSD-compatible install... " >&6; } 4058 if test -z "$INSTALL"; then 4059 if ${ac_cv_path_install+:} false; then : 4060 $as_echo_n "(cached) " >&6 4061 else 4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4063 for as_dir in $PATH 4064 do 4065 IFS=$as_save_IFS 4066 test -z "$as_dir" && as_dir=. 4067 # Account for people who put trailing slashes in PATH elements. 4068 case $as_dir/ in #(( 4069 ./ | .// | /[cC]/* | \ 4070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4071 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4072 /usr/ucb/* ) ;; 4073 *) 4074 # OSF1 and SCO ODT 3.0 have their own names for install. 4075 # Don't use installbsd from OSF since it installs stuff as root 4076 # by default. 4077 for ac_prog in ginstall scoinst install; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4080 if test $ac_prog = install && 4081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4082 # AIX install. It has an incompatible calling convention. 4083 : 4084 elif test $ac_prog = install && 4085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4086 # program-specific install script used by HP pwplus--don't use. 4087 : 4088 else 4089 rm -rf conftest.one conftest.two conftest.dir 4090 echo one > conftest.one 4091 echo two > conftest.two 4092 mkdir conftest.dir 4093 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4094 test -s conftest.one && test -s conftest.two && 4095 test -s conftest.dir/conftest.one && 4096 test -s conftest.dir/conftest.two 4097 then 4098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4099 break 3 4100 fi 4101 fi 4102 fi 4103 done 4104 done 4105 ;; 4106 esac 4107 4108 done 4109 IFS=$as_save_IFS 4110 4111 rm -rf conftest.one conftest.two conftest.dir 4112 4113 fi 4114 if test "${ac_cv_path_install+set}" = set; then 4115 INSTALL=$ac_cv_path_install 4116 else 4117 # As a last resort, use the slow shell script. Don't cache a 4118 # value for INSTALL within a source directory, because that will 4119 # break other packages using the cache if that directory is 4120 # removed, or if the value is a relative name. 4121 INSTALL=$ac_install_sh 4122 fi 4123 fi 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4125 $as_echo "$INSTALL" >&6; } 4126 4127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4128 # It thinks the first close brace ends the variable substitution. 4129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4130 4131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4132 4133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4134 4135 if test -n "$ac_tool_prefix"; then 4136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4137 set dummy ${ac_tool_prefix}ar; ac_word=$2 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4139 $as_echo_n "checking for $ac_word... " >&6; } 4140 if ${ac_cv_prog_AR+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142 else 4143 if test -n "$AR"; then 4144 ac_cv_prog_AR="$AR" # Let the user override the test. 4145 else 4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147 for as_dir in $PATH 4148 do 4149 IFS=$as_save_IFS 4150 test -z "$as_dir" && as_dir=. 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4153 ac_cv_prog_AR="${ac_tool_prefix}ar" 4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4155 break 2 4156 fi 4157 done 4158 done 4159 IFS=$as_save_IFS 4160 4161 fi 4162 fi 4163 AR=$ac_cv_prog_AR 4164 if test -n "$AR"; then 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4166 $as_echo "$AR" >&6; } 4167 else 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169 $as_echo "no" >&6; } 4170 fi 4171 4172 4173 fi 4174 if test -z "$ac_cv_prog_AR"; then 4175 ac_ct_AR=$AR 4176 # Extract the first word of "ar", so it can be a program name with args. 4177 set dummy ar; ac_word=$2 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4179 $as_echo_n "checking for $ac_word... " >&6; } 4180 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182 else 4183 if test -n "$ac_ct_AR"; then 4184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4185 else 4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4187 for as_dir in $PATH 4188 do 4189 IFS=$as_save_IFS 4190 test -z "$as_dir" && as_dir=. 4191 for ac_exec_ext in '' $ac_executable_extensions; do 4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4193 ac_cv_prog_ac_ct_AR="ar" 4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4195 break 2 4196 fi 4197 done 4198 done 4199 IFS=$as_save_IFS 4200 4201 fi 4202 fi 4203 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4204 if test -n "$ac_ct_AR"; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4206 $as_echo "$ac_ct_AR" >&6; } 4207 else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4209 $as_echo "no" >&6; } 4210 fi 4211 4212 if test "x$ac_ct_AR" = x; then 4213 AR="" 4214 else 4215 case $cross_compiling:$ac_tool_warned in 4216 yes:) 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4219 ac_tool_warned=yes ;; 4220 esac 4221 AR=$ac_ct_AR 4222 fi 4223 else 4224 AR="$ac_cv_prog_AR" 4225 fi 4226 4227 test -n "$ARFLAGS" || ARFLAGS="cr" 4228 if test -n "$ac_tool_prefix"; then 4229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4232 $as_echo_n "checking for $ac_word... " >&6; } 4233 if ${ac_cv_prog_RANLIB+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235 else 4236 if test -n "$RANLIB"; then 4237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4238 else 4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240 for as_dir in $PATH 4241 do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_exec_ext in '' $ac_executable_extensions; do 4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4248 break 2 4249 fi 4250 done 4251 done 4252 IFS=$as_save_IFS 4253 4254 fi 4255 fi 4256 RANLIB=$ac_cv_prog_RANLIB 4257 if test -n "$RANLIB"; then 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4259 $as_echo "$RANLIB" >&6; } 4260 else 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262 $as_echo "no" >&6; } 4263 fi 4264 4265 4266 fi 4267 if test -z "$ac_cv_prog_RANLIB"; then 4268 ac_ct_RANLIB=$RANLIB 4269 # Extract the first word of "ranlib", so it can be a program name with args. 4270 set dummy ranlib; ac_word=$2 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4272 $as_echo_n "checking for $ac_word... " >&6; } 4273 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275 else 4276 if test -n "$ac_ct_RANLIB"; then 4277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4278 else 4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280 for as_dir in $PATH 4281 do 4282 IFS=$as_save_IFS 4283 test -z "$as_dir" && as_dir=. 4284 for ac_exec_ext in '' $ac_executable_extensions; do 4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4286 ac_cv_prog_ac_ct_RANLIB="ranlib" 4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4288 break 2 4289 fi 4290 done 4291 done 4292 IFS=$as_save_IFS 4293 4294 fi 4295 fi 4296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4297 if test -n "$ac_ct_RANLIB"; then 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4299 $as_echo "$ac_ct_RANLIB" >&6; } 4300 else 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4302 $as_echo "no" >&6; } 4303 fi 4304 4305 if test "x$ac_ct_RANLIB" = x; then 4306 RANLIB=":" 4307 else 4308 case $cross_compiling:$ac_tool_warned in 4309 yes:) 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4312 ac_tool_warned=yes ;; 4313 esac 4314 RANLIB=$ac_ct_RANLIB 4315 fi 4316 else 4317 RANLIB="$ac_cv_prog_RANLIB" 4318 fi 4319 4320 4321 MAKE_SHELL=/bin/sh 4322 4323 4324 4325 # codeset.m4 serial 5 (gettext-0.18.2) 4326 4327 4328 4329 4330 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4332 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4333 if ${ac_cv_c_const+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335 else 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337 /* end confdefs.h. */ 4338 4339 int 4340 main () 4341 { 4342 4343 #ifndef __cplusplus 4344 /* Ultrix mips cc rejects this sort of thing. */ 4345 typedef int charset[2]; 4346 const charset cs = { 0, 0 }; 4347 /* SunOS 4.1.1 cc rejects this. */ 4348 char const *const *pcpcc; 4349 char **ppc; 4350 /* NEC SVR4.0.2 mips cc rejects this. */ 4351 struct point {int x, y;}; 4352 static struct point const zero = {0,0}; 4353 /* AIX XL C 1.02.0.0 rejects this. 4354 It does not let you subtract one const X* pointer from another in 4355 an arm of an if-expression whose if-part is not a constant 4356 expression */ 4357 const char *g = "string"; 4358 pcpcc = &g + (g ? g-g : 0); 4359 /* HPUX 7.0 cc rejects these. */ 4360 ++pcpcc; 4361 ppc = (char**) pcpcc; 4362 pcpcc = (char const *const *) ppc; 4363 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4364 char tx; 4365 char *t = &tx; 4366 char const *s = 0 ? (char *) 0 : (char const *) 0; 4367 4368 *t++ = 0; 4369 if (s) return 0; 4370 } 4371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4372 int x[] = {25, 17}; 4373 const int *foo = &x[0]; 4374 ++foo; 4375 } 4376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4377 typedef const int *iptr; 4378 iptr p = 0; 4379 ++p; 4380 } 4381 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4383 struct s { int j; const int *ap[3]; } bx; 4384 struct s *b = &bx; b->j = 5; 4385 } 4386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4387 const int foo = 10; 4388 if (!foo) return 0; 4389 } 4390 return !cs[0] && !zero.x; 4391 #endif 4392 4393 ; 4394 return 0; 4395 } 4396 _ACEOF 4397 if ac_fn_c_try_compile "$LINENO"; then : 4398 ac_cv_c_const=yes 4399 else 4400 ac_cv_c_const=no 4401 fi 4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4403 fi 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4405 $as_echo "$ac_cv_c_const" >&6; } 4406 if test $ac_cv_c_const = no; then 4407 4408 $as_echo "#define const /**/" >>confdefs.h 4409 4410 fi 4411 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4413 $as_echo_n "checking for inline... " >&6; } 4414 if ${ac_cv_c_inline+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416 else 4417 ac_cv_c_inline=no 4418 for ac_kw in inline __inline__ __inline; do 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420 /* end confdefs.h. */ 4421 #ifndef __cplusplus 4422 typedef int foo_t; 4423 static $ac_kw foo_t static_foo () {return 0; } 4424 $ac_kw foo_t foo () {return 0; } 4425 #endif 4426 4427 _ACEOF 4428 if ac_fn_c_try_compile "$LINENO"; then : 4429 ac_cv_c_inline=$ac_kw 4430 fi 4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4432 test "$ac_cv_c_inline" != no && break 4433 done 4434 4435 fi 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4437 $as_echo "$ac_cv_c_inline" >&6; } 4438 4439 case $ac_cv_c_inline in 4440 inline | yes) ;; 4441 *) 4442 case $ac_cv_c_inline in 4443 no) ac_val=;; 4444 *) ac_val=$ac_cv_c_inline;; 4445 esac 4446 cat >>confdefs.h <<_ACEOF 4447 #ifndef __cplusplus 4448 #define inline $ac_val 4449 #endif 4450 _ACEOF 4451 ;; 4452 esac 4453 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 4455 $as_echo_n "checking for function prototypes... " >&6; } 4456 if test "$ac_cv_prog_cc_c89" != no; then 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4458 $as_echo "yes" >&6; } 4459 4460 $as_echo "#define PROTOTYPES 1" >>confdefs.h 4461 4462 4463 $as_echo "#define __PROTOTYPES 1" >>confdefs.h 4464 4465 else 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4467 $as_echo "no" >&6; } 4468 fi 4469 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 4471 $as_echo_n "checking whether char is unsigned... " >&6; } 4472 if ${ac_cv_c_char_unsigned+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474 else 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476 /* end confdefs.h. */ 4477 $ac_includes_default 4478 int 4479 main () 4480 { 4481 static int test_array [1 - 2 * !(((char) -1) < 0)]; 4482 test_array [0] = 0; 4483 return test_array [0]; 4484 4485 ; 4486 return 0; 4487 } 4488 _ACEOF 4489 if ac_fn_c_try_compile "$LINENO"; then : 4490 ac_cv_c_char_unsigned=no 4491 else 4492 ac_cv_c_char_unsigned=yes 4493 fi 4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4495 fi 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 4497 $as_echo "$ac_cv_c_char_unsigned" >&6; } 4498 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 4499 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 4500 4501 fi 4502 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 4504 $as_echo_n "checking for working volatile... " >&6; } 4505 if ${ac_cv_c_volatile+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507 else 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4509 /* end confdefs.h. */ 4510 4511 int 4512 main () 4513 { 4514 4515 volatile int x; 4516 int * volatile y = (int *) 0; 4517 return !x && !y; 4518 ; 4519 return 0; 4520 } 4521 _ACEOF 4522 if ac_fn_c_try_compile "$LINENO"; then : 4523 ac_cv_c_volatile=yes 4524 else 4525 ac_cv_c_volatile=no 4526 fi 4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4528 fi 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 4530 $as_echo "$ac_cv_c_volatile" >&6; } 4531 if test $ac_cv_c_volatile = no; then 4532 4533 $as_echo "#define volatile /**/" >>confdefs.h 4534 4535 fi 4536 4537 4538 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4539 if test "x$ac_cv_type_size_t" = xyes; then : 4540 4541 else 4542 4543 cat >>confdefs.h <<_ACEOF 4544 #define size_t unsigned int 4545 _ACEOF 4546 4547 fi 4548 4549 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 4550 if test "x$ac_cv_type_ssize_t" = xyes; then : 4551 4552 else 4553 4554 cat >>confdefs.h <<_ACEOF 4555 #define ssize_t int 4556 _ACEOF 4557 4558 fi 4559 4560 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 4562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 4563 if ${ac_cv_header_stat_broken+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565 else 4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4567 /* end confdefs.h. */ 4568 #include <sys/types.h> 4569 #include <sys/stat.h> 4570 4571 #if defined S_ISBLK && defined S_IFDIR 4572 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 4573 #endif 4574 4575 #if defined S_ISBLK && defined S_IFCHR 4576 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 4577 #endif 4578 4579 #if defined S_ISLNK && defined S_IFREG 4580 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 4581 #endif 4582 4583 #if defined S_ISSOCK && defined S_IFREG 4584 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 4585 #endif 4586 4587 _ACEOF 4588 if ac_fn_c_try_compile "$LINENO"; then : 4589 ac_cv_header_stat_broken=no 4590 else 4591 ac_cv_header_stat_broken=yes 4592 fi 4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4594 fi 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 4596 $as_echo "$ac_cv_header_stat_broken" >&6; } 4597 if test $ac_cv_header_stat_broken = yes; then 4598 4599 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 4600 4601 fi 4602 4603 ac_header_dirent=no 4604 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4605 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 4607 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 4608 if eval \${$as_ac_Header+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610 else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612 /* end confdefs.h. */ 4613 #include <sys/types.h> 4614 #include <$ac_hdr> 4615 4616 int 4617 main () 4618 { 4619 if ((DIR *) 0) 4620 return 0; 4621 ; 4622 return 0; 4623 } 4624 _ACEOF 4625 if ac_fn_c_try_compile "$LINENO"; then : 4626 eval "$as_ac_Header=yes" 4627 else 4628 eval "$as_ac_Header=no" 4629 fi 4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4631 fi 4632 eval ac_res=\$$as_ac_Header 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4634 $as_echo "$ac_res" >&6; } 4635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4636 cat >>confdefs.h <<_ACEOF 4637 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4638 _ACEOF 4639 4640 ac_header_dirent=$ac_hdr; break 4641 fi 4642 4643 done 4644 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4645 if test $ac_header_dirent = dirent.h; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 4647 $as_echo_n "checking for library containing opendir... " >&6; } 4648 if ${ac_cv_search_opendir+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650 else 4651 ac_func_search_save_LIBS=$LIBS 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653 /* end confdefs.h. */ 4654 4655 /* Override any GCC internal prototype to avoid an error. 4656 Use char because int might match the return type of a GCC 4657 builtin and then its argument prototype would still apply. */ 4658 #ifdef __cplusplus 4659 extern "C" 4660 #endif 4661 char opendir (); 4662 int 4663 main () 4664 { 4665 return opendir (); 4666 ; 4667 return 0; 4668 } 4669 _ACEOF 4670 for ac_lib in '' dir; do 4671 if test -z "$ac_lib"; then 4672 ac_res="none required" 4673 else 4674 ac_res=-l$ac_lib 4675 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4676 fi 4677 if ac_fn_c_try_link "$LINENO"; then : 4678 ac_cv_search_opendir=$ac_res 4679 fi 4680 rm -f core conftest.err conftest.$ac_objext \ 4681 conftest$ac_exeext 4682 if ${ac_cv_search_opendir+:} false; then : 4683 break 4684 fi 4685 done 4686 if ${ac_cv_search_opendir+:} false; then : 4687 4688 else 4689 ac_cv_search_opendir=no 4690 fi 4691 rm conftest.$ac_ext 4692 LIBS=$ac_func_search_save_LIBS 4693 fi 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 4695 $as_echo "$ac_cv_search_opendir" >&6; } 4696 ac_res=$ac_cv_search_opendir 4697 if test "$ac_res" != no; then : 4698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4699 4700 fi 4701 4702 else 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 4704 $as_echo_n "checking for library containing opendir... " >&6; } 4705 if ${ac_cv_search_opendir+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707 else 4708 ac_func_search_save_LIBS=$LIBS 4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4710 /* end confdefs.h. */ 4711 4712 /* Override any GCC internal prototype to avoid an error. 4713 Use char because int might match the return type of a GCC 4714 builtin and then its argument prototype would still apply. */ 4715 #ifdef __cplusplus 4716 extern "C" 4717 #endif 4718 char opendir (); 4719 int 4720 main () 4721 { 4722 return opendir (); 4723 ; 4724 return 0; 4725 } 4726 _ACEOF 4727 for ac_lib in '' x; do 4728 if test -z "$ac_lib"; then 4729 ac_res="none required" 4730 else 4731 ac_res=-l$ac_lib 4732 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4733 fi 4734 if ac_fn_c_try_link "$LINENO"; then : 4735 ac_cv_search_opendir=$ac_res 4736 fi 4737 rm -f core conftest.err conftest.$ac_objext \ 4738 conftest$ac_exeext 4739 if ${ac_cv_search_opendir+:} false; then : 4740 break 4741 fi 4742 done 4743 if ${ac_cv_search_opendir+:} false; then : 4744 4745 else 4746 ac_cv_search_opendir=no 4747 fi 4748 rm conftest.$ac_ext 4749 LIBS=$ac_func_search_save_LIBS 4750 fi 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 4752 $as_echo "$ac_cv_search_opendir" >&6; } 4753 ac_res=$ac_cv_search_opendir 4754 if test "$ac_res" != no; then : 4755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4756 4757 fi 4758 4759 fi 4760 4761 4762 for ac_func in fcntl gettimeofday kill lstat pselect readlink select setitimer 4763 do : 4764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4767 cat >>confdefs.h <<_ACEOF 4768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4769 _ACEOF 4770 4771 fi 4772 done 4773 4774 for ac_func in fnmatch memmove putenv setenv setlocale \ 4775 strcasecmp strpbrk sysconf tcgetattr vsnprintf 4776 do : 4777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4780 cat >>confdefs.h <<_ACEOF 4781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4782 _ACEOF 4783 4784 fi 4785 done 4786 4787 for ac_func in isascii isxdigit 4788 do : 4789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4792 cat >>confdefs.h <<_ACEOF 4793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4794 _ACEOF 4795 4796 fi 4797 done 4798 4799 for ac_func in getpwent getpwnam getpwuid 4800 do : 4801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4804 cat >>confdefs.h <<_ACEOF 4805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4806 _ACEOF 4807 4808 fi 4809 done 4810 4811 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 4813 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 4814 if ${ac_cv_type_uid_t+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816 else 4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4818 /* end confdefs.h. */ 4819 #include <sys/types.h> 4820 4821 _ACEOF 4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4823 $EGREP "uid_t" >/dev/null 2>&1; then : 4824 ac_cv_type_uid_t=yes 4825 else 4826 ac_cv_type_uid_t=no 4827 fi 4828 rm -f conftest* 4829 4830 fi 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 4832 $as_echo "$ac_cv_type_uid_t" >&6; } 4833 if test $ac_cv_type_uid_t = no; then 4834 4835 $as_echo "#define uid_t int" >>confdefs.h 4836 4837 4838 $as_echo "#define gid_t int" >>confdefs.h 4839 4840 fi 4841 4842 for ac_header in unistd.h 4843 do : 4844 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 4845 if test "x$ac_cv_header_unistd_h" = xyes; then : 4846 cat >>confdefs.h <<_ACEOF 4847 #define HAVE_UNISTD_H 1 4848 _ACEOF 4849 4850 fi 4851 4852 done 4853 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 4855 $as_echo_n "checking for working chown... " >&6; } 4856 if ${ac_cv_func_chown_works+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858 else 4859 if test "$cross_compiling" = yes; then : 4860 ac_cv_func_chown_works=no 4861 else 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863 /* end confdefs.h. */ 4864 $ac_includes_default 4865 #include <fcntl.h> 4866 4867 int 4868 main () 4869 { 4870 char *f = "conftest.chown"; 4871 struct stat before, after; 4872 4873 if (creat (f, 0600) < 0) 4874 return 1; 4875 if (stat (f, &before) < 0) 4876 return 1; 4877 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 4878 return 1; 4879 if (stat (f, &after) < 0) 4880 return 1; 4881 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 4882 4883 ; 4884 return 0; 4885 } 4886 _ACEOF 4887 if ac_fn_c_try_run "$LINENO"; then : 4888 ac_cv_func_chown_works=yes 4889 else 4890 ac_cv_func_chown_works=no 4891 fi 4892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4893 conftest.$ac_objext conftest.beam conftest.$ac_ext 4894 fi 4895 4896 rm -f conftest.chown 4897 4898 fi 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 4900 $as_echo "$ac_cv_func_chown_works" >&6; } 4901 if test $ac_cv_func_chown_works = yes; then 4902 4903 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h 4904 4905 fi 4906 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 4908 $as_echo_n "checking for working strcoll... " >&6; } 4909 if ${ac_cv_func_strcoll_works+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911 else 4912 if test "$cross_compiling" = yes; then : 4913 ac_cv_func_strcoll_works=no 4914 else 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916 /* end confdefs.h. */ 4917 $ac_includes_default 4918 int 4919 main () 4920 { 4921 return (strcoll ("abc", "def") >= 0 || 4922 strcoll ("ABC", "DEF") >= 0 || 4923 strcoll ("123", "456") >= 0) 4924 ; 4925 return 0; 4926 } 4927 _ACEOF 4928 if ac_fn_c_try_run "$LINENO"; then : 4929 ac_cv_func_strcoll_works=yes 4930 else 4931 ac_cv_func_strcoll_works=no 4932 fi 4933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4934 conftest.$ac_objext conftest.beam conftest.$ac_ext 4935 fi 4936 4937 fi 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 4939 $as_echo "$ac_cv_func_strcoll_works" >&6; } 4940 if test $ac_cv_func_strcoll_works = yes; then 4941 4942 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h 4943 4944 fi 4945 4946 4947 for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h stdbool.h \ 4948 string.h strings.h \ 4949 limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h 4950 do : 4951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4954 cat >>confdefs.h <<_ACEOF 4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4956 _ACEOF 4957 4958 fi 4959 4960 done 4961 4962 for ac_header in sys/ioctl.h sys/pte.h sys/stream.h sys/select.h \ 4963 sys/time.h sys/file.h 4964 do : 4965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4968 cat >>confdefs.h <<_ACEOF 4969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4970 _ACEOF 4971 4972 fi 4973 4974 done 4975 4976 4977 for ac_header in sys/ptem.h 4978 do : 4979 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" " 4980 #if HAVE_SYS_STREAM_H 4981 # include <sys/stream.h> 4982 #endif 4983 4984 " 4985 if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 4986 cat >>confdefs.h <<_ACEOF 4987 #define HAVE_SYS_PTEM_H 1 4988 _ACEOF 4989 4990 fi 4991 4992 done 4993 4994 4995 # Check whether --enable-largefile was given. 4996 if test "${enable_largefile+set}" = set; then : 4997 enableval=$enable_largefile; 4998 fi 4999 5000 if test "$enable_largefile" != no; then 5001 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5003 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5004 if ${ac_cv_sys_largefile_CC+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006 else 5007 ac_cv_sys_largefile_CC=no 5008 if test "$GCC" != yes; then 5009 ac_save_CC=$CC 5010 while :; do 5011 # IRIX 6.2 and later do not support large files by default, 5012 # so use the C compiler's -n32 option if that helps. 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014 /* end confdefs.h. */ 5015 #include <sys/types.h> 5016 /* Check that off_t can represent 2**63 - 1 correctly. 5017 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5018 since some C++ compilers masquerading as C compilers 5019 incorrectly reject 9223372036854775807. */ 5020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5022 && LARGE_OFF_T % 2147483647 == 1) 5023 ? 1 : -1]; 5024 int 5025 main () 5026 { 5027 5028 ; 5029 return 0; 5030 } 5031 _ACEOF 5032 if ac_fn_c_try_compile "$LINENO"; then : 5033 break 5034 fi 5035 rm -f core conftest.err conftest.$ac_objext 5036 CC="$CC -n32" 5037 if ac_fn_c_try_compile "$LINENO"; then : 5038 ac_cv_sys_largefile_CC=' -n32'; break 5039 fi 5040 rm -f core conftest.err conftest.$ac_objext 5041 break 5042 done 5043 CC=$ac_save_CC 5044 rm -f conftest.$ac_ext 5045 fi 5046 fi 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5048 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 5049 if test "$ac_cv_sys_largefile_CC" != no; then 5050 CC=$CC$ac_cv_sys_largefile_CC 5051 fi 5052 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5054 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5055 if ${ac_cv_sys_file_offset_bits+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057 else 5058 while :; do 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060 /* end confdefs.h. */ 5061 #include <sys/types.h> 5062 /* Check that off_t can represent 2**63 - 1 correctly. 5063 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5064 since some C++ compilers masquerading as C compilers 5065 incorrectly reject 9223372036854775807. */ 5066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5068 && LARGE_OFF_T % 2147483647 == 1) 5069 ? 1 : -1]; 5070 int 5071 main () 5072 { 5073 5074 ; 5075 return 0; 5076 } 5077 _ACEOF 5078 if ac_fn_c_try_compile "$LINENO"; then : 5079 ac_cv_sys_file_offset_bits=no; break 5080 fi 5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083 /* end confdefs.h. */ 5084 #define _FILE_OFFSET_BITS 64 5085 #include <sys/types.h> 5086 /* Check that off_t can represent 2**63 - 1 correctly. 5087 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5088 since some C++ compilers masquerading as C compilers 5089 incorrectly reject 9223372036854775807. */ 5090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5092 && LARGE_OFF_T % 2147483647 == 1) 5093 ? 1 : -1]; 5094 int 5095 main () 5096 { 5097 5098 ; 5099 return 0; 5100 } 5101 _ACEOF 5102 if ac_fn_c_try_compile "$LINENO"; then : 5103 ac_cv_sys_file_offset_bits=64; break 5104 fi 5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5106 ac_cv_sys_file_offset_bits=unknown 5107 break 5108 done 5109 fi 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5111 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5112 case $ac_cv_sys_file_offset_bits in #( 5113 no | unknown) ;; 5114 *) 5115 cat >>confdefs.h <<_ACEOF 5116 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5117 _ACEOF 5118 ;; 5119 esac 5120 rm -rf conftest* 5121 if test $ac_cv_sys_file_offset_bits = unknown; then 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5123 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5124 if ${ac_cv_sys_large_files+:} false; then : 5125 $as_echo_n "(cached) " >&6 5126 else 5127 while :; do 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129 /* end confdefs.h. */ 5130 #include <sys/types.h> 5131 /* Check that off_t can represent 2**63 - 1 correctly. 5132 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5133 since some C++ compilers masquerading as C compilers 5134 incorrectly reject 9223372036854775807. */ 5135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5137 && LARGE_OFF_T % 2147483647 == 1) 5138 ? 1 : -1]; 5139 int 5140 main () 5141 { 5142 5143 ; 5144 return 0; 5145 } 5146 _ACEOF 5147 if ac_fn_c_try_compile "$LINENO"; then : 5148 ac_cv_sys_large_files=no; break 5149 fi 5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152 /* end confdefs.h. */ 5153 #define _LARGE_FILES 1 5154 #include <sys/types.h> 5155 /* Check that off_t can represent 2**63 - 1 correctly. 5156 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5157 since some C++ compilers masquerading as C compilers 5158 incorrectly reject 9223372036854775807. */ 5159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5161 && LARGE_OFF_T % 2147483647 == 1) 5162 ? 1 : -1]; 5163 int 5164 main () 5165 { 5166 5167 ; 5168 return 0; 5169 } 5170 _ACEOF 5171 if ac_fn_c_try_compile "$LINENO"; then : 5172 ac_cv_sys_large_files=1; break 5173 fi 5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175 ac_cv_sys_large_files=unknown 5176 break 5177 done 5178 fi 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5180 $as_echo "$ac_cv_sys_large_files" >&6; } 5181 case $ac_cv_sys_large_files in #( 5182 no | unknown) ;; 5183 *) 5184 cat >>confdefs.h <<_ACEOF 5185 #define _LARGE_FILES $ac_cv_sys_large_files 5186 _ACEOF 5187 ;; 5188 esac 5189 rm -rf conftest* 5190 fi 5191 5192 5193 fi 5194 5195 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5 5197 $as_echo_n "checking for type of signal functions... " >&6; } 5198 if ${bash_cv_signal_vintage+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200 else 5201 5202 if ${bash_cv_posix_signals+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204 else 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206 /* end confdefs.h. */ 5207 5208 #include <signal.h> 5209 5210 int 5211 main () 5212 { 5213 5214 sigset_t ss; 5215 struct sigaction sa; 5216 sigemptyset(&ss); sigsuspend(&ss); 5217 sigaction(SIGINT, &sa, (struct sigaction *) 0); 5218 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); 5219 5220 ; 5221 return 0; 5222 } 5223 _ACEOF 5224 if ac_fn_c_try_link "$LINENO"; then : 5225 bash_cv_posix_signals=yes 5226 else 5227 bash_cv_posix_signals=no 5228 5229 fi 5230 rm -f core conftest.err conftest.$ac_objext \ 5231 conftest$ac_exeext conftest.$ac_ext 5232 fi 5233 5234 5235 if test $bash_cv_posix_signals = yes; then 5236 bash_cv_signal_vintage=posix 5237 else 5238 if ${bash_cv_bsd_signals+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240 else 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242 /* end confdefs.h. */ 5243 5244 #include <signal.h> 5245 5246 int 5247 main () 5248 { 5249 5250 int mask = sigmask(SIGINT); 5251 sigsetmask(mask); sigblock(mask); sigpause(mask); 5252 5253 ; 5254 return 0; 5255 } 5256 _ACEOF 5257 if ac_fn_c_try_link "$LINENO"; then : 5258 bash_cv_bsd_signals=yes 5259 else 5260 bash_cv_bsd_signals=no 5261 5262 fi 5263 rm -f core conftest.err conftest.$ac_objext \ 5264 conftest$ac_exeext conftest.$ac_ext 5265 fi 5266 5267 5268 if test $bash_cv_bsd_signals = yes; then 5269 bash_cv_signal_vintage=4.2bsd 5270 else 5271 if ${bash_cv_sysv_signals+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273 else 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275 /* end confdefs.h. */ 5276 5277 #include <signal.h> 5278 void foo() { } 5279 5280 int 5281 main () 5282 { 5283 5284 int mask = sigmask(SIGINT); 5285 sigset(SIGINT, foo); sigrelse(SIGINT); 5286 sighold(SIGINT); sigpause(SIGINT); 5287 5288 ; 5289 return 0; 5290 } 5291 _ACEOF 5292 if ac_fn_c_try_link "$LINENO"; then : 5293 bash_cv_sysv_signals=yes 5294 else 5295 bash_cv_sysv_signals=no 5296 5297 fi 5298 rm -f core conftest.err conftest.$ac_objext \ 5299 conftest$ac_exeext conftest.$ac_ext 5300 fi 5301 5302 5303 if test $bash_cv_sysv_signals = yes; then 5304 bash_cv_signal_vintage=svr3 5305 else 5306 bash_cv_signal_vintage=v7 5307 fi 5308 fi 5309 fi 5310 5311 fi 5312 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5 5314 $as_echo "$bash_cv_signal_vintage" >&6; } 5315 if test "$bash_cv_signal_vintage" = posix; then 5316 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h 5317 5318 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then 5319 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h 5320 5321 elif test "$bash_cv_signal_vintage" = svr3; then 5322 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h 5323 5324 fi 5325 5326 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal handlers must be reinstalled when invoked" >&5 5328 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; } 5329 if ${bash_cv_must_reinstall_sighandlers+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331 else 5332 if test "$cross_compiling" = yes; then : 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 5334 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} 5335 bash_cv_must_reinstall_sighandlers=no 5336 5337 else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339 /* end confdefs.h. */ 5340 5341 #include <signal.h> 5342 #ifdef HAVE_UNISTD_H 5343 #include <unistd.h> 5344 #endif 5345 #include <stdlib.h> 5346 5347 typedef void sigfunc(); 5348 5349 volatile int nsigint; 5350 5351 #ifdef HAVE_POSIX_SIGNALS 5352 sigfunc * 5353 set_signal_handler(sig, handler) 5354 int sig; 5355 sigfunc *handler; 5356 { 5357 struct sigaction act, oact; 5358 act.sa_handler = handler; 5359 act.sa_flags = 0; 5360 sigemptyset (&act.sa_mask); 5361 sigemptyset (&oact.sa_mask); 5362 sigaction (sig, &act, &oact); 5363 return (oact.sa_handler); 5364 } 5365 #else 5366 #define set_signal_handler(s, h) signal(s, h) 5367 #endif 5368 5369 void 5370 sigint(s) 5371 int s; 5372 { 5373 nsigint++; 5374 } 5375 5376 int 5377 main() 5378 { 5379 nsigint = 0; 5380 set_signal_handler(SIGINT, sigint); 5381 kill((int)getpid(), SIGINT); 5382 kill((int)getpid(), SIGINT); 5383 exit(nsigint != 2); 5384 } 5385 5386 _ACEOF 5387 if ac_fn_c_try_run "$LINENO"; then : 5388 bash_cv_must_reinstall_sighandlers=no 5389 else 5390 bash_cv_must_reinstall_sighandlers=yes 5391 fi 5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5393 conftest.$ac_objext conftest.beam conftest.$ac_ext 5394 fi 5395 5396 fi 5397 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_must_reinstall_sighandlers" >&5 5399 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; } 5400 if test $bash_cv_must_reinstall_sighandlers = yes; then 5401 $as_echo "#define MUST_REINSTALL_SIGHANDLERS 1" >>confdefs.h 5402 5403 fi 5404 5405 5406 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 5408 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; } 5409 if ${bash_cv_func_sigsetjmp+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411 else 5412 if test "$cross_compiling" = yes; then : 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&5 5414 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to $bash_cv_posix_signals" >&2;} 5415 if test "$bash_cv_posix_signals" = "yes" ; then 5416 bash_cv_func_sigsetjmp=present 5417 else 5418 bash_cv_func_sigsetjmp=missing 5419 fi 5420 5421 else 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423 /* end confdefs.h. */ 5424 5425 #ifdef HAVE_UNISTD_H 5426 #include <unistd.h> 5427 #endif 5428 #include <sys/types.h> 5429 #include <signal.h> 5430 #include <setjmp.h> 5431 #include <stdlib.h> 5432 5433 int 5434 main() 5435 { 5436 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) 5437 exit (1); 5438 #else 5439 5440 int code; 5441 sigset_t set, oset, nset; 5442 sigjmp_buf xx; 5443 5444 /* get the mask */ 5445 sigemptyset(&set); 5446 sigemptyset(&oset); 5447 5448 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); 5449 /* paranoia -- make sure SIGINT is not blocked */ 5450 sigdelset (&oset, SIGINT); 5451 sigprocmask (SIG_SETMASK, &oset, (sigset_t *)NULL); 5452 5453 /* save it */ 5454 code = sigsetjmp(xx, 1); 5455 if (code) 5456 { 5457 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &nset); 5458 /* could compare nset to oset here, but we just look for SIGINT */ 5459 if (sigismember (&nset, SIGINT)) 5460 exit(1); 5461 exit(0); 5462 } 5463 5464 /* change it so that SIGINT is blocked */ 5465 sigaddset(&set, SIGINT); 5466 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); 5467 5468 /* and siglongjmp */ 5469 siglongjmp(xx, 10); 5470 exit(1); 5471 #endif 5472 } 5473 5474 _ACEOF 5475 if ac_fn_c_try_run "$LINENO"; then : 5476 bash_cv_func_sigsetjmp=present 5477 else 5478 bash_cv_func_sigsetjmp=missing 5479 fi 5480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5481 conftest.$ac_objext conftest.beam conftest.$ac_ext 5482 fi 5483 5484 fi 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_sigsetjmp" >&5 5487 $as_echo "$bash_cv_func_sigsetjmp" >&6; } 5488 if test $bash_cv_func_sigsetjmp = present; then 5489 $as_echo "#define HAVE_POSIX_SIGSETJMP 1" >>confdefs.h 5490 5491 fi 5492 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5 5494 $as_echo_n "checking for lstat... " >&6; } 5495 if ${bash_cv_func_lstat+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497 else 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499 /* end confdefs.h. */ 5500 5501 #include <sys/types.h> 5502 #include <sys/stat.h> 5503 5504 int 5505 main () 5506 { 5507 lstat(".",(struct stat *)0); 5508 ; 5509 return 0; 5510 } 5511 _ACEOF 5512 if ac_fn_c_try_link "$LINENO"; then : 5513 bash_cv_func_lstat=yes 5514 else 5515 bash_cv_func_lstat=no 5516 fi 5517 rm -f core conftest.err conftest.$ac_objext \ 5518 conftest$ac_exeext conftest.$ac_ext 5519 fi 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_lstat" >&5 5521 $as_echo "$bash_cv_func_lstat" >&6; } 5522 if test $bash_cv_func_lstat = yes; then 5523 $as_echo "#define HAVE_LSTAT 1" >>confdefs.h 5524 5525 fi 5526 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not strcoll and strcmp differ" >&5 5528 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; } 5529 if ${bash_cv_func_strcoll_broken+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531 else 5532 if test "$cross_compiling" = yes; then : 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 5534 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} 5535 bash_cv_func_strcoll_broken=no 5536 5537 else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539 /* end confdefs.h. */ 5540 5541 #include <stdio.h> 5542 #if defined (HAVE_LOCALE_H) 5543 #include <locale.h> 5544 #endif 5545 #include <string.h> 5546 #include <stdlib.h> 5547 5548 int 5549 main(c, v) 5550 int c; 5551 char *v[]; 5552 { 5553 int r1, r2; 5554 char *deflocale, *defcoll; 5555 5556 #ifdef HAVE_SETLOCALE 5557 deflocale = setlocale(LC_ALL, ""); 5558 defcoll = setlocale(LC_COLLATE, ""); 5559 #endif 5560 5561 #ifdef HAVE_STRCOLL 5562 /* These two values are taken from tests/glob-test. */ 5563 r1 = strcoll("abd", "aXd"); 5564 #else 5565 r1 = 0; 5566 #endif 5567 r2 = strcmp("abd", "aXd"); 5568 5569 /* These two should both be greater than 0. It is permissible for 5570 a system to return different values, as long as the sign is the 5571 same. */ 5572 5573 /* Exit with 1 (failure) if these two values are both > 0, since 5574 this tests whether strcoll(3) is broken with respect to strcmp(3) 5575 in the default locale. */ 5576 exit (r1 > 0 && r2 > 0); 5577 } 5578 5579 _ACEOF 5580 if ac_fn_c_try_run "$LINENO"; then : 5581 bash_cv_func_strcoll_broken=yes 5582 else 5583 bash_cv_func_strcoll_broken=no 5584 fi 5585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5586 conftest.$ac_objext conftest.beam conftest.$ac_ext 5587 fi 5588 5589 fi 5590 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_strcoll_broken" >&5 5592 $as_echo "$bash_cv_func_strcoll_broken" >&6; } 5593 if test $bash_cv_func_strcoll_broken = yes; then 5594 $as_echo "#define STRCOLL_BROKEN 1" >>confdefs.h 5595 5596 fi 5597 5598 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpw functions are declared in pwd.h" >&5 5600 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; } 5601 if ${bash_cv_getpw_declared+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603 else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605 /* end confdefs.h. */ 5606 5607 #include <sys/types.h> 5608 #ifdef HAVE_UNISTD_H 5609 # include <unistd.h> 5610 #endif 5611 #include <pwd.h> 5612 5613 _ACEOF 5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5615 $EGREP "getpwuid" >/dev/null 2>&1; then : 5616 bash_cv_getpw_declared=yes 5617 else 5618 bash_cv_getpw_declared=no 5619 fi 5620 rm -f conftest* 5621 5622 fi 5623 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_getpw_declared" >&5 5625 $as_echo "$bash_cv_getpw_declared" >&6; } 5626 if test $bash_cv_getpw_declared = yes; then 5627 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h 5628 5629 fi 5630 5631 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 5633 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } 5634 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636 else 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638 /* end confdefs.h. */ 5639 #include <sys/types.h> 5640 #include <termios.h> 5641 #ifdef TIOCGWINSZ 5642 yes 5643 #endif 5644 5645 _ACEOF 5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5647 $EGREP "yes" >/dev/null 2>&1; then : 5648 ac_cv_sys_tiocgwinsz_in_termios_h=yes 5649 else 5650 ac_cv_sys_tiocgwinsz_in_termios_h=no 5651 fi 5652 rm -f conftest* 5653 5654 fi 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 5656 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } 5657 5658 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 5660 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } 5661 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663 else 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665 /* end confdefs.h. */ 5666 #include <sys/types.h> 5667 #include <sys/ioctl.h> 5668 #ifdef TIOCGWINSZ 5669 yes 5670 #endif 5671 5672 _ACEOF 5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5674 $EGREP "yes" >/dev/null 2>&1; then : 5675 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 5676 else 5677 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 5678 fi 5679 rm -f conftest* 5680 5681 fi 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 5683 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } 5684 5685 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 5686 5687 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h 5688 5689 fi 5690 fi 5691 5692 5693 5694 for ac_header in inttypes.h 5695 do : 5696 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 5697 if test "x$ac_cv_header_inttypes_h" = xyes; then : 5698 cat >>confdefs.h <<_ACEOF 5699 #define HAVE_INTTYPES_H 1 5700 _ACEOF 5701 5702 fi 5703 5704 done 5705 5706 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 5708 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; } 5709 if ${ac_cv_have_sig_atomic_t+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711 else 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713 /* end confdefs.h. */ 5714 #include <signal.h> 5715 int 5716 main () 5717 { 5718 sig_atomic_t x; 5719 ; 5720 return 0; 5721 } 5722 _ACEOF 5723 if ac_fn_c_try_link "$LINENO"; then : 5724 ac_cv_have_sig_atomic_t=yes 5725 else 5726 ac_cv_have_sig_atomic_t=no 5727 fi 5728 rm -f core conftest.err conftest.$ac_objext \ 5729 conftest$ac_exeext conftest.$ac_ext 5730 fi 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sig_atomic_t" >&5 5732 $as_echo "$ac_cv_have_sig_atomic_t" >&6; } 5733 if test "$ac_cv_have_sig_atomic_t" = "no" 5734 then 5735 5736 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 5738 $as_echo_n "checking for sig_atomic_t... " >&6; } 5739 if ${bash_cv_type_sig_atomic_t+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741 else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743 /* end confdefs.h. */ 5744 #include <sys/types.h> 5745 #if HAVE_STDLIB_H 5746 #include <stdlib.h> 5747 #endif 5748 #if HAVE_STDDEF_H 5749 #include <stddef.h> 5750 #endif 5751 #if HAVE_INTTYPES_H 5752 #include <inttypes.h> 5753 #endif 5754 #if HAVE_STDINT_H 5755 #include <stdint.h> 5756 #endif 5757 #include <signal.h> 5758 5759 _ACEOF 5760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5761 $EGREP "sig_atomic_t" >/dev/null 2>&1; then : 5762 bash_cv_type_sig_atomic_t=yes 5763 else 5764 bash_cv_type_sig_atomic_t=no 5765 fi 5766 rm -f conftest* 5767 5768 fi 5769 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_sig_atomic_t" >&5 5771 $as_echo "$bash_cv_type_sig_atomic_t" >&6; } 5772 5773 if test $bash_cv_type_sig_atomic_t = no; then 5774 cat >>confdefs.h <<_ACEOF 5775 #define sig_atomic_t int 5776 _ACEOF 5777 5778 fi 5779 5780 fi 5781 5782 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIOCSTAT in sys/ioctl.h" >&5 5784 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; } 5785 if ${bash_cv_tiocstat_in_ioctl+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787 else 5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789 /* end confdefs.h. */ 5790 5791 #include <sys/types.h> 5792 #include <sys/ioctl.h> 5793 int 5794 main () 5795 { 5796 int x = TIOCSTAT; 5797 ; 5798 return 0; 5799 } 5800 _ACEOF 5801 if ac_fn_c_try_compile "$LINENO"; then : 5802 bash_cv_tiocstat_in_ioctl=yes 5803 else 5804 bash_cv_tiocstat_in_ioctl=no 5805 5806 fi 5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5808 fi 5809 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_tiocstat_in_ioctl" >&5 5811 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; } 5812 if test $bash_cv_tiocstat_in_ioctl = yes; then 5813 $as_echo "#define TIOCSTAT_IN_SYS_IOCTL 1" >>confdefs.h 5814 5815 fi 5816 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIONREAD in sys/ioctl.h" >&5 5818 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; } 5819 if ${bash_cv_fionread_in_ioctl+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821 else 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823 /* end confdefs.h. */ 5824 5825 #include <sys/types.h> 5826 #include <sys/ioctl.h> 5827 int 5828 main () 5829 { 5830 int x = FIONREAD; 5831 ; 5832 return 0; 5833 } 5834 _ACEOF 5835 if ac_fn_c_try_compile "$LINENO"; then : 5836 bash_cv_fionread_in_ioctl=yes 5837 else 5838 bash_cv_fionread_in_ioctl=no 5839 5840 fi 5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842 fi 5843 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_fionread_in_ioctl" >&5 5845 $as_echo "$bash_cv_fionread_in_ioctl" >&6; } 5846 if test $bash_cv_fionread_in_ioctl = yes; then 5847 $as_echo "#define FIONREAD_IN_SYS_IOCTL 1" >>confdefs.h 5848 5849 fi 5850 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t in sys/types.h" >&5 5852 $as_echo_n "checking for speed_t in sys/types.h... " >&6; } 5853 if ${bash_cv_speed_t_in_sys_types+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855 else 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857 /* end confdefs.h. */ 5858 #include <sys/types.h> 5859 int 5860 main () 5861 { 5862 speed_t x; 5863 ; 5864 return 0; 5865 } 5866 _ACEOF 5867 if ac_fn_c_try_compile "$LINENO"; then : 5868 bash_cv_speed_t_in_sys_types=yes 5869 else 5870 bash_cv_speed_t_in_sys_types=no 5871 fi 5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5873 fi 5874 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_speed_t_in_sys_types" >&5 5876 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; } 5877 if test $bash_cv_speed_t_in_sys_types = yes; then 5878 $as_echo "#define SPEED_T_IN_SYS_TYPES 1" >>confdefs.h 5879 5880 fi 5881 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5 5883 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; } 5884 if ${bash_cv_struct_winsize_header+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886 else 5887 5888 if ${bash_cv_struct_winsize_ioctl+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890 else 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892 /* end confdefs.h. */ 5893 5894 #include <sys/types.h> 5895 #include <sys/ioctl.h> 5896 5897 int 5898 main () 5899 { 5900 5901 struct winsize x; 5902 if (sizeof (x) > 0) return (0); 5903 5904 ; 5905 return 0; 5906 } 5907 _ACEOF 5908 if ac_fn_c_try_compile "$LINENO"; then : 5909 bash_cv_struct_winsize_ioctl=yes 5910 else 5911 bash_cv_struct_winsize_ioctl=no 5912 fi 5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5914 5915 fi 5916 5917 5918 if ${bash_cv_struct_winsize_termios+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920 else 5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922 /* end confdefs.h. */ 5923 5924 #include <sys/types.h> 5925 #include <sys/termios.h> 5926 5927 int 5928 main () 5929 { 5930 5931 struct winsize x; 5932 if (sizeof (x) > 0) return (0); 5933 5934 ; 5935 return 0; 5936 } 5937 _ACEOF 5938 if ac_fn_c_try_compile "$LINENO"; then : 5939 bash_cv_struct_winsize_termios=yes 5940 else 5941 bash_cv_struct_winsize_termios=no 5942 fi 5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5944 5945 fi 5946 5947 5948 5949 if test $bash_cv_struct_winsize_ioctl = yes; then 5950 bash_cv_struct_winsize_header=ioctl_h 5951 elif test $bash_cv_struct_winsize_termios = yes; then 5952 bash_cv_struct_winsize_header=termios_h 5953 else 5954 bash_cv_struct_winsize_header=other 5955 fi 5956 5957 fi 5958 5959 if test $bash_cv_struct_winsize_header = ioctl_h; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sys/ioctl.h" >&5 5961 $as_echo "sys/ioctl.h" >&6; } 5962 $as_echo "#define STRUCT_WINSIZE_IN_SYS_IOCTL 1" >>confdefs.h 5963 5964 elif test $bash_cv_struct_winsize_header = termios_h; then 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: termios.h" >&5 5966 $as_echo "termios.h" >&6; } 5967 $as_echo "#define STRUCT_WINSIZE_IN_TERMIOS 1" >>confdefs.h 5968 5969 else 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5971 $as_echo "not found" >&6; } 5972 fi 5973 5974 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_ino" >&5 5976 $as_echo_n "checking for struct dirent.d_ino... " >&6; } 5977 if ${bash_cv_dirent_has_d_ino+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979 else 5980 5981 5982 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" " 5983 #include <stdio.h> 5984 #include <sys/types.h> 5985 #ifdef HAVE_UNISTD_H 5986 # include <unistd.h> 5987 #endif /* HAVE_UNISTD_H */ 5988 #if defined(HAVE_DIRENT_H) 5989 # include <dirent.h> 5990 #else 5991 # define dirent direct 5992 # ifdef HAVE_SYS_NDIR_H 5993 # include <sys/ndir.h> 5994 # endif /* SYSNDIR */ 5995 # ifdef HAVE_SYS_DIR_H 5996 # include <sys/dir.h> 5997 # endif /* SYSDIR */ 5998 # ifdef HAVE_NDIR_H 5999 # include <ndir.h> 6000 # endif 6001 #endif /* HAVE_DIRENT_H */ 6002 6003 " 6004 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then : 6005 6006 cat >>confdefs.h <<_ACEOF 6007 #define HAVE_STRUCT_DIRENT_D_INO 1 6008 _ACEOF 6009 6010 bash_cv_dirent_has_d_ino=yes 6011 else 6012 bash_cv_dirent_has_d_ino=no 6013 fi 6014 6015 6016 fi 6017 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_ino" >&5 6019 $as_echo "$bash_cv_dirent_has_d_ino" >&6; } 6020 if test $bash_cv_dirent_has_d_ino = yes; then 6021 $as_echo "#define HAVE_STRUCT_DIRENT_D_INO 1" >>confdefs.h 6022 6023 fi 6024 6025 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_fileno" >&5 6027 $as_echo_n "checking for struct dirent.d_fileno... " >&6; } 6028 if ${bash_cv_dirent_has_d_fileno+:} false; then : 6029 $as_echo_n "(cached) " >&6 6030 else 6031 6032 6033 ac_fn_c_check_member "$LINENO" "struct dirent" "d_fileno" "ac_cv_member_struct_dirent_d_fileno" " 6034 #include <stdio.h> 6035 #include <sys/types.h> 6036 #ifdef HAVE_UNISTD_H 6037 # include <unistd.h> 6038 #endif /* HAVE_UNISTD_H */ 6039 #if defined(HAVE_DIRENT_H) 6040 # include <dirent.h> 6041 #else 6042 # define dirent direct 6043 # ifdef HAVE_SYS_NDIR_H 6044 # include <sys/ndir.h> 6045 # endif /* SYSNDIR */ 6046 # ifdef HAVE_SYS_DIR_H 6047 # include <sys/dir.h> 6048 # endif /* SYSDIR */ 6049 # ifdef HAVE_NDIR_H 6050 # include <ndir.h> 6051 # endif 6052 #endif /* HAVE_DIRENT_H */ 6053 6054 " 6055 if test "x$ac_cv_member_struct_dirent_d_fileno" = xyes; then : 6056 6057 cat >>confdefs.h <<_ACEOF 6058 #define HAVE_STRUCT_DIRENT_D_FILENO 1 6059 _ACEOF 6060 6061 bash_cv_dirent_has_d_fileno=yes 6062 else 6063 bash_cv_dirent_has_d_fileno=no 6064 fi 6065 6066 6067 fi 6068 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_dirent_has_d_fileno" >&5 6070 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; } 6071 if test $bash_cv_dirent_has_d_fileno = yes; then 6072 $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>confdefs.h 6073 6074 fi 6075 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval in sys/time.h and time.h" >&5 6077 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; } 6078 if ${bash_cv_struct_timeval+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080 else 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082 /* end confdefs.h. */ 6083 #if HAVE_SYS_TIME_H 6084 #include <sys/time.h> 6085 #endif 6086 #include <time.h> 6087 6088 int 6089 main () 6090 { 6091 static struct timeval x; x.tv_sec = x.tv_usec; 6092 6093 ; 6094 return 0; 6095 } 6096 _ACEOF 6097 if ac_fn_c_try_compile "$LINENO"; then : 6098 bash_cv_struct_timeval=yes 6099 else 6100 bash_cv_struct_timeval=no 6101 fi 6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6103 6104 fi 6105 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_struct_timeval" >&5 6107 $as_echo "$bash_cv_struct_timeval" >&6; } 6108 if test $bash_cv_struct_timeval = yes; then 6109 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 6110 6111 fi 6112 6113 6114 for ac_header in libaudit.h 6115 do : 6116 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 6117 if test "x$ac_cv_header_libaudit_h" = xyes; then : 6118 cat >>confdefs.h <<_ACEOF 6119 #define HAVE_LIBAUDIT_H 1 6120 _ACEOF 6121 6122 fi 6123 6124 done 6125 6126 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h> 6127 " 6128 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then : 6129 ac_have_decl=1 6130 else 6131 ac_have_decl=0 6132 fi 6133 6134 cat >>confdefs.h <<_ACEOF 6135 #define HAVE_DECL_AUDIT_USER_TTY $ac_have_decl 6136 _ACEOF 6137 6138 6139 case "$host_os" in 6140 aix*) prefer_curses=yes ;; 6141 esac 6142 6143 if test "X$bash_cv_termcap_lib" = "X"; then 6144 _bash_needmsg=yes 6145 else 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 6147 $as_echo_n "checking which library has the termcap functions... " >&6; } 6148 _bash_needmsg= 6149 fi 6150 if ${bash_cv_termcap_lib+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152 else 6153 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 6154 if test "x$ac_cv_func_tgetent" = xyes; then : 6155 bash_cv_termcap_lib=libc 6156 else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 6158 $as_echo_n "checking for tgetent in -ltermcap... " >&6; } 6159 if ${ac_cv_lib_termcap_tgetent+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161 else 6162 ac_check_lib_save_LIBS=$LIBS 6163 LIBS="-ltermcap $LIBS" 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6165 /* end confdefs.h. */ 6166 6167 /* Override any GCC internal prototype to avoid an error. 6168 Use char because int might match the return type of a GCC 6169 builtin and then its argument prototype would still apply. */ 6170 #ifdef __cplusplus 6171 extern "C" 6172 #endif 6173 char tgetent (); 6174 int 6175 main () 6176 { 6177 return tgetent (); 6178 ; 6179 return 0; 6180 } 6181 _ACEOF 6182 if ac_fn_c_try_link "$LINENO"; then : 6183 ac_cv_lib_termcap_tgetent=yes 6184 else 6185 ac_cv_lib_termcap_tgetent=no 6186 fi 6187 rm -f core conftest.err conftest.$ac_objext \ 6188 conftest$ac_exeext conftest.$ac_ext 6189 LIBS=$ac_check_lib_save_LIBS 6190 fi 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 6192 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } 6193 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : 6194 bash_cv_termcap_lib=libtermcap 6195 else 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 6197 $as_echo_n "checking for tgetent in -ltinfo... " >&6; } 6198 if ${ac_cv_lib_tinfo_tgetent+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200 else 6201 ac_check_lib_save_LIBS=$LIBS 6202 LIBS="-ltinfo $LIBS" 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204 /* end confdefs.h. */ 6205 6206 /* Override any GCC internal prototype to avoid an error. 6207 Use char because int might match the return type of a GCC 6208 builtin and then its argument prototype would still apply. */ 6209 #ifdef __cplusplus 6210 extern "C" 6211 #endif 6212 char tgetent (); 6213 int 6214 main () 6215 { 6216 return tgetent (); 6217 ; 6218 return 0; 6219 } 6220 _ACEOF 6221 if ac_fn_c_try_link "$LINENO"; then : 6222 ac_cv_lib_tinfo_tgetent=yes 6223 else 6224 ac_cv_lib_tinfo_tgetent=no 6225 fi 6226 rm -f core conftest.err conftest.$ac_objext \ 6227 conftest$ac_exeext conftest.$ac_ext 6228 LIBS=$ac_check_lib_save_LIBS 6229 fi 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 6231 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 6232 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : 6233 bash_cv_termcap_lib=libtinfo 6234 else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 6236 $as_echo_n "checking for tgetent in -lcurses... " >&6; } 6237 if ${ac_cv_lib_curses_tgetent+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239 else 6240 ac_check_lib_save_LIBS=$LIBS 6241 LIBS="-lcurses $LIBS" 6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243 /* end confdefs.h. */ 6244 6245 /* Override any GCC internal prototype to avoid an error. 6246 Use char because int might match the return type of a GCC 6247 builtin and then its argument prototype would still apply. */ 6248 #ifdef __cplusplus 6249 extern "C" 6250 #endif 6251 char tgetent (); 6252 int 6253 main () 6254 { 6255 return tgetent (); 6256 ; 6257 return 0; 6258 } 6259 _ACEOF 6260 if ac_fn_c_try_link "$LINENO"; then : 6261 ac_cv_lib_curses_tgetent=yes 6262 else 6263 ac_cv_lib_curses_tgetent=no 6264 fi 6265 rm -f core conftest.err conftest.$ac_objext \ 6266 conftest$ac_exeext conftest.$ac_ext 6267 LIBS=$ac_check_lib_save_LIBS 6268 fi 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 6270 $as_echo "$ac_cv_lib_curses_tgetent" >&6; } 6271 if test "x$ac_cv_lib_curses_tgetent" = xyes; then : 6272 bash_cv_termcap_lib=libcurses 6273 else 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 6275 $as_echo_n "checking for tgetent in -lncurses... " >&6; } 6276 if ${ac_cv_lib_ncurses_tgetent+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278 else 6279 ac_check_lib_save_LIBS=$LIBS 6280 LIBS="-lncurses $LIBS" 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282 /* end confdefs.h. */ 6283 6284 /* Override any GCC internal prototype to avoid an error. 6285 Use char because int might match the return type of a GCC 6286 builtin and then its argument prototype would still apply. */ 6287 #ifdef __cplusplus 6288 extern "C" 6289 #endif 6290 char tgetent (); 6291 int 6292 main () 6293 { 6294 return tgetent (); 6295 ; 6296 return 0; 6297 } 6298 _ACEOF 6299 if ac_fn_c_try_link "$LINENO"; then : 6300 ac_cv_lib_ncurses_tgetent=yes 6301 else 6302 ac_cv_lib_ncurses_tgetent=no 6303 fi 6304 rm -f core conftest.err conftest.$ac_objext \ 6305 conftest$ac_exeext conftest.$ac_ext 6306 LIBS=$ac_check_lib_save_LIBS 6307 fi 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 6309 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } 6310 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : 6311 bash_cv_termcap_lib=libncurses 6312 else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5 6314 $as_echo_n "checking for tgetent in -lncursesw... " >&6; } 6315 if ${ac_cv_lib_ncursesw_tgetent+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317 else 6318 ac_check_lib_save_LIBS=$LIBS 6319 LIBS="-lncursesw $LIBS" 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321 /* end confdefs.h. */ 6322 6323 /* Override any GCC internal prototype to avoid an error. 6324 Use char because int might match the return type of a GCC 6325 builtin and then its argument prototype would still apply. */ 6326 #ifdef __cplusplus 6327 extern "C" 6328 #endif 6329 char tgetent (); 6330 int 6331 main () 6332 { 6333 return tgetent (); 6334 ; 6335 return 0; 6336 } 6337 _ACEOF 6338 if ac_fn_c_try_link "$LINENO"; then : 6339 ac_cv_lib_ncursesw_tgetent=yes 6340 else 6341 ac_cv_lib_ncursesw_tgetent=no 6342 fi 6343 rm -f core conftest.err conftest.$ac_objext \ 6344 conftest$ac_exeext conftest.$ac_ext 6345 LIBS=$ac_check_lib_save_LIBS 6346 fi 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5 6348 $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; } 6349 if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then : 6350 bash_cv_termcap_lib=libncursesw 6351 else 6352 bash_cv_termcap_lib=gnutermcap 6353 fi 6354 6355 fi 6356 6357 fi 6358 6359 fi 6360 6361 fi 6362 6363 fi 6364 6365 fi 6366 6367 if test "X$_bash_needmsg" = "Xyes"; then 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 6369 $as_echo_n "checking which library has the termcap functions... " >&6; } 6370 fi 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 6372 $as_echo "using $bash_cv_termcap_lib" >&6; } 6373 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then 6374 LDFLAGS="$LDFLAGS -L./lib/termcap" 6375 TERMCAP_LIB="./lib/termcap/libtermcap.a" 6376 TERMCAP_DEP="./lib/termcap/libtermcap.a" 6377 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then 6378 TERMCAP_LIB=-ltermcap 6379 TERMCAP_DEP= 6380 elif test $bash_cv_termcap_lib = libtinfo; then 6381 TERMCAP_LIB=-ltinfo 6382 TERMCAP_DEP= 6383 elif test $bash_cv_termcap_lib = libncurses; then 6384 TERMCAP_LIB=-lncurses 6385 TERMCAP_DEP= 6386 elif test $bash_cv_termcap_lib = libc; then 6387 TERMCAP_LIB= 6388 TERMCAP_DEP= 6389 else 6390 # we assume ncurses is installed somewhere the linker can find it 6391 TERMCAP_LIB=-lncurses 6392 TERMCAP_DEP= 6393 fi 6394 6395 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then 6396 if test "$prefer_curses" = yes; then 6397 TERMCAP_LIB=-lcurses 6398 else 6399 TERMCAP_LIB=-ltermcap #default 6400 fi 6401 fi 6402 # Windows ncurses installation 6403 if test "$TERMCAP_LIB" = "-lncurses"; then 6404 for ac_header in ncurses/termcap.h 6405 do : 6406 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default" 6407 if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then : 6408 cat >>confdefs.h <<_ACEOF 6409 #define HAVE_NCURSES_TERMCAP_H 1 6410 _ACEOF 6411 6412 fi 6413 6414 done 6415 6416 fi 6417 case "$opt_shared_termcap_lib" in 6418 [Yy][Ee][Ss]) SHARED_TERMCAP="$TERMCAP_LIB" ;; 6419 -l*) SHARED_TERMCAP="$opt_shared_termcap_lib" ;; 6420 esac 6421 6422 case "$TERMCAP_LIB" in 6423 -ltinfo) TERMCAP_PKG_CONFIG_LIB=tinfo ;; 6424 -lcurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; 6425 -lncurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; 6426 -ltermcap) TERMCAP_PKG_CONFIG_LIB=termcap ;; 6427 *) TERMCAP_PKG_CONFIG_LIB=termcap ;; 6428 esac 6429 6430 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 6432 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 6433 if ${am_cv_langinfo_codeset+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435 else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437 /* end confdefs.h. */ 6438 #include <langinfo.h> 6439 int 6440 main () 6441 { 6442 char* cs = nl_langinfo(CODESET); return !cs; 6443 ; 6444 return 0; 6445 } 6446 _ACEOF 6447 if ac_fn_c_try_link "$LINENO"; then : 6448 am_cv_langinfo_codeset=yes 6449 else 6450 am_cv_langinfo_codeset=no 6451 fi 6452 rm -f core conftest.err conftest.$ac_objext \ 6453 conftest$ac_exeext conftest.$ac_ext 6454 6455 fi 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 6457 $as_echo "$am_cv_langinfo_codeset" >&6; } 6458 if test $am_cv_langinfo_codeset = yes; then 6459 6460 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 6461 6462 fi 6463 6464 6465 for ac_header in wctype.h 6466 do : 6467 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 6468 if test "x$ac_cv_header_wctype_h" = xyes; then : 6469 cat >>confdefs.h <<_ACEOF 6470 #define HAVE_WCTYPE_H 1 6471 _ACEOF 6472 6473 fi 6474 6475 done 6476 6477 for ac_header in wchar.h 6478 do : 6479 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 6480 if test "x$ac_cv_header_wchar_h" = xyes; then : 6481 cat >>confdefs.h <<_ACEOF 6482 #define HAVE_WCHAR_H 1 6483 _ACEOF 6484 6485 fi 6486 6487 done 6488 6489 for ac_header in langinfo.h 6490 do : 6491 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 6492 if test "x$ac_cv_header_langinfo_h" = xyes; then : 6493 cat >>confdefs.h <<_ACEOF 6494 #define HAVE_LANGINFO_H 1 6495 _ACEOF 6496 6497 fi 6498 6499 done 6500 6501 6502 for ac_header in mbstr.h 6503 do : 6504 ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default" 6505 if test "x$ac_cv_header_mbstr_h" = xyes; then : 6506 cat >>confdefs.h <<_ACEOF 6507 #define HAVE_MBSTR_H 1 6508 _ACEOF 6509 6510 fi 6511 6512 done 6513 6514 6515 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen" 6516 if test "x$ac_cv_func_mbrlen" = xyes; then : 6517 $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h 6518 6519 fi 6520 6521 ac_fn_c_check_func "$LINENO" "mbscasecmp" "ac_cv_func_mbscasecmp" 6522 if test "x$ac_cv_func_mbscasecmp" = xyes; then : 6523 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h 6524 6525 fi 6526 6527 ac_fn_c_check_func "$LINENO" "mbscmp" "ac_cv_func_mbscmp" 6528 if test "x$ac_cv_func_mbscmp" = xyes; then : 6529 $as_echo "#define HAVE_MBSCMP 1" >>confdefs.h 6530 6531 fi 6532 6533 ac_fn_c_check_func "$LINENO" "mbsnrtowcs" "ac_cv_func_mbsnrtowcs" 6534 if test "x$ac_cv_func_mbsnrtowcs" = xyes; then : 6535 $as_echo "#define HAVE_MBSNRTOWCS 1" >>confdefs.h 6536 6537 fi 6538 6539 ac_fn_c_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs" 6540 if test "x$ac_cv_func_mbsrtowcs" = xyes; then : 6541 $as_echo "#define HAVE_MBSRTOWCS 1" >>confdefs.h 6542 6543 fi 6544 6545 6546 ac_fn_c_check_func "$LINENO" "mbschr" "ac_cv_func_mbschr" 6547 if test "x$ac_cv_func_mbschr" = xyes; then : 6548 $as_echo "#define HAVE_MBSCHR 1" >>confdefs.h 6549 6550 else 6551 case " $LIBOBJS " in 6552 *" mbschr.$ac_objext "* ) ;; 6553 *) LIBOBJS="$LIBOBJS mbschr.$ac_objext" 6554 ;; 6555 esac 6556 6557 fi 6558 6559 6560 6561 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" 6562 if test "x$ac_cv_func_wcrtomb" = xyes; then : 6563 $as_echo "#define HAVE_WCRTOMB 1" >>confdefs.h 6564 6565 fi 6566 6567 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" 6568 if test "x$ac_cv_func_wcscoll" = xyes; then : 6569 $as_echo "#define HAVE_WCSCOLL 1" >>confdefs.h 6570 6571 fi 6572 6573 ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" 6574 if test "x$ac_cv_func_wcsdup" = xyes; then : 6575 $as_echo "#define HAVE_WCSDUP 1" >>confdefs.h 6576 6577 fi 6578 6579 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" 6580 if test "x$ac_cv_func_wcwidth" = xyes; then : 6581 $as_echo "#define HAVE_WCWIDTH 1" >>confdefs.h 6582 6583 fi 6584 6585 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype" 6586 if test "x$ac_cv_func_wctype" = xyes; then : 6587 $as_echo "#define HAVE_WCTYPE 1" >>confdefs.h 6588 6589 fi 6590 6591 6592 ac_fn_c_check_func "$LINENO" "wcswidth" "ac_cv_func_wcswidth" 6593 if test "x$ac_cv_func_wcswidth" = xyes; then : 6594 $as_echo "#define HAVE_WCSWIDTH 1" >>confdefs.h 6595 6596 else 6597 case " $LIBOBJS " in 6598 *" wcswidth.$ac_objext "* ) ;; 6599 *) LIBOBJS="$LIBOBJS wcswidth.$ac_objext" 6600 ;; 6601 esac 6602 6603 fi 6604 6605 6606 6607 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 6609 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 6610 if ${ac_cv_func_mbrtowc+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612 else 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614 /* end confdefs.h. */ 6615 #include <wchar.h> 6616 int 6617 main () 6618 { 6619 wchar_t wc; 6620 char const s[] = ""; 6621 size_t n = 1; 6622 mbstate_t state; 6623 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 6624 ; 6625 return 0; 6626 } 6627 _ACEOF 6628 if ac_fn_c_try_link "$LINENO"; then : 6629 ac_cv_func_mbrtowc=yes 6630 else 6631 ac_cv_func_mbrtowc=no 6632 fi 6633 rm -f core conftest.err conftest.$ac_objext \ 6634 conftest$ac_exeext conftest.$ac_ext 6635 fi 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 6637 $as_echo "$ac_cv_func_mbrtowc" >&6; } 6638 if test $ac_cv_func_mbrtowc = yes; then 6639 6640 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 6641 6642 fi 6643 6644 if test $ac_cv_func_mbrtowc = yes; then 6645 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 6646 6647 fi 6648 6649 for ac_func in iswlower iswupper towlower towupper iswctype 6650 do : 6651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6654 cat >>confdefs.h <<_ACEOF 6655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6656 _ACEOF 6657 6658 fi 6659 done 6660 6661 6662 6663 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t in wchar.h" >&5 6665 $as_echo_n "checking for wchar_t in wchar.h... " >&6; } 6666 if ${bash_cv_type_wchar_t+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668 else 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670 /* end confdefs.h. */ 6671 6672 #include <wchar.h> 6673 int 6674 main () 6675 { 6676 6677 wchar_t foo; 6678 foo = 0; 6679 6680 ; 6681 return 0; 6682 } 6683 _ACEOF 6684 if ac_fn_c_try_compile "$LINENO"; then : 6685 bash_cv_type_wchar_t=yes 6686 else 6687 bash_cv_type_wchar_t=no 6688 6689 fi 6690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6691 fi 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wchar_t" >&5 6693 $as_echo "$bash_cv_type_wchar_t" >&6; } 6694 if test $bash_cv_type_wchar_t = yes; then 6695 6696 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 6697 6698 fi 6699 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t in wctype.h" >&5 6701 $as_echo_n "checking for wctype_t in wctype.h... " >&6; } 6702 if ${bash_cv_type_wctype_t+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704 else 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706 /* end confdefs.h. */ 6707 6708 #include <wctype.h> 6709 int 6710 main () 6711 { 6712 6713 wctype_t foo; 6714 foo = 0; 6715 6716 ; 6717 return 0; 6718 } 6719 _ACEOF 6720 if ac_fn_c_try_compile "$LINENO"; then : 6721 bash_cv_type_wctype_t=yes 6722 else 6723 bash_cv_type_wctype_t=no 6724 6725 fi 6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6727 fi 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wctype_t" >&5 6729 $as_echo "$bash_cv_type_wctype_t" >&6; } 6730 if test $bash_cv_type_wctype_t = yes; then 6731 6732 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h 6733 6734 fi 6735 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t in wctype.h" >&5 6737 $as_echo_n "checking for wint_t in wctype.h... " >&6; } 6738 if ${bash_cv_type_wint_t+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740 else 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742 /* end confdefs.h. */ 6743 6744 #include <wctype.h> 6745 int 6746 main () 6747 { 6748 6749 wint_t foo; 6750 foo = 0; 6751 6752 ; 6753 return 0; 6754 } 6755 _ACEOF 6756 if ac_fn_c_try_compile "$LINENO"; then : 6757 bash_cv_type_wint_t=yes 6758 else 6759 bash_cv_type_wint_t=no 6760 6761 fi 6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763 fi 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_type_wint_t" >&5 6765 $as_echo "$bash_cv_type_wint_t" >&6; } 6766 if test $bash_cv_type_wint_t = yes; then 6767 6768 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h 6769 6770 fi 6771 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcwidth broken with unicode combining characters" >&5 6773 $as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; } 6774 if ${bash_cv_wcwidth_broken+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776 else 6777 if test "$cross_compiling" = yes; then : 6778 bash_cv_wcwidth_broken=no 6779 6780 else 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782 /* end confdefs.h. */ 6783 6784 #include <unistd.h> 6785 #include <stdlib.h> 6786 #include <stdio.h> 6787 6788 #include <locale.h> 6789 #include <wchar.h> 6790 6791 int 6792 main(c, v) 6793 int c; 6794 char **v; 6795 { 6796 int w; 6797 6798 setlocale(LC_ALL, "en_US.UTF-8"); 6799 w = wcwidth (0x0301); 6800 exit (w == 0); /* exit 0 if wcwidth broken */ 6801 } 6802 6803 _ACEOF 6804 if ac_fn_c_try_run "$LINENO"; then : 6805 bash_cv_wcwidth_broken=yes 6806 else 6807 bash_cv_wcwidth_broken=no 6808 fi 6809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6810 conftest.$ac_objext conftest.beam conftest.$ac_ext 6811 fi 6812 6813 fi 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_wcwidth_broken" >&5 6815 $as_echo "$bash_cv_wcwidth_broken" >&6; } 6816 if test "$bash_cv_wcwidth_broken" = yes; then 6817 6818 $as_echo "#define WCWIDTH_BROKEN 1" >>confdefs.h 6819 6820 fi 6821 6822 if test "$am_cv_func_iconv" = yes; then 6823 OLDLIBS="$LIBS" 6824 LIBS="$LIBS $LIBINTL $LIBICONV" 6825 for ac_func in locale_charset 6826 do : 6827 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset" 6828 if test "x$ac_cv_func_locale_charset" = xyes; then : 6829 cat >>confdefs.h <<_ACEOF 6830 #define HAVE_LOCALE_CHARSET 1 6831 _ACEOF 6832 6833 fi 6834 done 6835 6836 LIBS="$OLDLIBS" 6837 fi 6838 6839 # The cast to long int works around a bug in the HP C Compiler 6840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6842 # This bug is HP SR number 8606223364. 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 6844 $as_echo_n "checking size of wchar_t... " >&6; } 6845 if ${ac_cv_sizeof_wchar_t+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847 else 6848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : 6849 6850 else 6851 if test "$ac_cv_type_wchar_t" = yes; then 6852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6854 as_fn_error 77 "cannot compute sizeof (wchar_t) 6855 See \`config.log' for more details" "$LINENO" 5; } 6856 else 6857 ac_cv_sizeof_wchar_t=0 6858 fi 6859 fi 6860 6861 fi 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 6863 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } 6864 6865 6866 6867 cat >>confdefs.h <<_ACEOF 6868 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 6869 _ACEOF 6870 6871 6872 6873 6874 6875 case "$host_cpu" in 6876 *cray*) LOCAL_CFLAGS=-DCRAY ;; 6877 *s390*) LOCAL_CFLAGS=-fsigned-char ;; 6878 esac 6879 6880 case "$host_os" in 6881 isc*) LOCAL_CFLAGS=-Disc386 ;; 6882 hpux*) LOCAL_CFLAGS="-DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;; 6883 esac 6884 6885 # shared library configuration section 6886 # 6887 # Shared object configuration section. These values are generated by 6888 # ${srcdir}/support/shobj-conf 6889 # 6890 if test -f ${srcdir}/support/shobj-conf; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configuration for building shared libraries" >&5 6892 $as_echo_n "checking configuration for building shared libraries... " >&6; } 6893 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` 6894 6895 # SHARED_TERMCAP is set only if opt_shared_termcap_library is set 6896 case "$SHLIB_LIBS" in 6897 *curses*|*tinfo*) ;; 6898 *termcap*|*termlib*) ;; # common aliases 6899 *) SHLIB_LIBS="$SHLIB_LIBS $SHARED_TERMCAP" ;; 6900 esac 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_STATUS" >&5 6918 $as_echo "$SHLIB_STATUS" >&6; } 6919 6920 # SHLIB_STATUS is either `supported' or `unsupported'. If it's 6921 # `unsupported', turn off any default shared library building 6922 if test "$SHLIB_STATUS" = 'unsupported'; then 6923 opt_shared_libs=no 6924 fi 6925 6926 # shared library versioning 6927 # quoted for m4 so I can use character classes 6928 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` 6929 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` 6930 6931 6932 fi 6933 6934 if test "$opt_static_libs" = "yes"; then 6935 STATIC_TARGET=static 6936 STATIC_INSTALL_TARGET=install-static 6937 fi 6938 if test "$opt_shared_libs" = "yes"; then 6939 SHARED_TARGET=shared 6940 SHARED_INSTALL_TARGET=install-shared 6941 fi 6942 6943 6944 6945 6946 6947 6948 if test "$opt_install_examples" = "yes"; then 6949 EXAMPLES_INSTALL_TARGET=install-examples 6950 fi 6951 6952 6953 case "$build_os" in 6954 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file 6955 *) BUILD_DIR=`pwd` ;; 6956 esac 6957 6958 case "$BUILD_DIR" in 6959 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; 6960 *) ;; 6961 esac 6962 6963 6964 6965 # CFLAGS=${CFLAGS-"$AUTO_CFLAGS"} 6966 if test -n "$want_auto_cflags"; then 6967 CFLAGS="$AUTO_CFLAGS" 6968 fi 6969 CFLAGS="$CFLAGS $STYLE_CFLAGS" 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc history.pc" 6988 6989 6990 ac_config_commands="$ac_config_commands stamp-h" 6991 6992 6993 cat >confcache <<\_ACEOF 6994 # This file is a shell script that caches the results of configure 6995 # tests run on this system so they can be shared between configure 6996 # scripts and configure runs, see configure's option --config-cache. 6997 # It is not useful on other systems. If it contains results you don't 6998 # want to keep, you may remove or edit it. 6999 # 7000 # config.status only pays attention to the cache file if you give it 7001 # the --recheck option to rerun configure. 7002 # 7003 # `ac_cv_env_foo' variables (set or unset) will be overridden when 7004 # loading this file, other *unset* `ac_cv_foo' will be assigned the 7005 # following values. 7006 7007 _ACEOF 7008 7009 # The following way of writing the cache mishandles newlines in values, 7010 # but we know of no workaround that is simple, portable, and efficient. 7011 # So, we kill variables containing newlines. 7012 # Ultrix sh set writes to stderr and can't be redirected directly, 7013 # and sets the high bit in the cache file unless we assign to the vars. 7014 ( 7015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7016 eval ac_val=\$$ac_var 7017 case $ac_val in #( 7018 *${as_nl}*) 7019 case $ac_var in #( 7020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7022 esac 7023 case $ac_var in #( 7024 _ | IFS | as_nl) ;; #( 7025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7026 *) { eval $ac_var=; unset $ac_var;} ;; 7027 esac ;; 7028 esac 7029 done 7030 7031 (set) 2>&1 | 7032 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7033 *${as_nl}ac_space=\ *) 7034 # `set' does not quote correctly, so add quotes: double-quote 7035 # substitution turns \\\\ into \\, and sed turns \\ into \. 7036 sed -n \ 7037 "s/'/'\\\\''/g; 7038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7039 ;; #( 7040 *) 7041 # `set' quotes correctly as required by POSIX, so do not add quotes. 7042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7043 ;; 7044 esac | 7045 sort 7046 ) | 7047 sed ' 7048 /^ac_cv_env_/b end 7049 t clear 7050 :clear 7051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7052 t end 7053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7054 :end' >>confcache 7055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7056 if test -w "$cache_file"; then 7057 if test "x$cache_file" != "x/dev/null"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7059 $as_echo "$as_me: updating cache $cache_file" >&6;} 7060 if test ! -f "$cache_file" || test -h "$cache_file"; then 7061 cat confcache >"$cache_file" 7062 else 7063 case $cache_file in #( 7064 */* | ?:*) 7065 mv -f confcache "$cache_file"$$ && 7066 mv -f "$cache_file"$$ "$cache_file" ;; #( 7067 *) 7068 mv -f confcache "$cache_file" ;; 7069 esac 7070 fi 7071 fi 7072 else 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7075 fi 7076 fi 7077 rm -f confcache 7078 7079 test "x$prefix" = xNONE && prefix=$ac_default_prefix 7080 # Let make expand exec_prefix. 7081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7082 7083 DEFS=-DHAVE_CONFIG_H 7084 7085 ac_libobjs= 7086 ac_ltlibobjs= 7087 U= 7088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7089 # 1. Remove the extension, and $U if already installed. 7090 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7091 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7093 # will be set to the directory where LIBOBJS objects are built. 7094 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7095 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7096 done 7097 LIBOBJS=$ac_libobjs 7098 7099 LTLIBOBJS=$ac_ltlibobjs 7100 7101 7102 7103 : "${CONFIG_STATUS=./config.status}" 7104 ac_write_fail=0 7105 ac_clean_files_save=$ac_clean_files 7106 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 7108 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7109 as_write_fail=0 7110 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7111 #! $SHELL 7112 # Generated by $as_me. 7113 # Run this file to recreate the current configuration. 7114 # Compiler output produced by configure, useful for debugging 7115 # configure, is in config.log if it exists. 7116 7117 debug=false 7118 ac_cs_recheck=false 7119 ac_cs_silent=false 7120 7121 SHELL=\${CONFIG_SHELL-$SHELL} 7122 export SHELL 7123 _ASEOF 7124 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7125 ## -------------------- ## 7126 ## M4sh Initialization. ## 7127 ## -------------------- ## 7128 7129 # Be more Bourne compatible 7130 DUALCASE=1; export DUALCASE # for MKS sh 7131 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7132 emulate sh 7133 NULLCMD=: 7134 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 7135 # is contrary to our usage. Disable this feature. 7136 alias -g '${1+"$@"}'='"$@"' 7137 setopt NO_GLOB_SUBST 7138 else 7139 case `(set -o) 2>/dev/null` in #( 7140 *posix*) : 7141 set -o posix ;; #( 7142 *) : 7143 ;; 7144 esac 7145 fi 7146 7147 7148 as_nl=' 7149 ' 7150 export as_nl 7151 # Printing a long string crashes Solaris 7 /usr/bin/printf. 7152 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7153 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7154 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 7155 # Prefer a ksh shell builtin over an external printf program on Solaris, 7156 # but without wasting forks for bash or zsh. 7157 if test -z "$BASH_VERSION$ZSH_VERSION" \ 7158 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 7159 as_echo='print -r --' 7160 as_echo_n='print -rn --' 7161 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 7162 as_echo='printf %s\n' 7163 as_echo_n='printf %s' 7164 else 7165 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 7166 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 7167 as_echo_n='/usr/ucb/echo -n' 7168 else 7169 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7170 as_echo_n_body='eval 7171 arg=$1; 7172 case $arg in #( 7173 *"$as_nl"*) 7174 expr "X$arg" : "X\\(.*\\)$as_nl"; 7175 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7176 esac; 7177 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7178 ' 7179 export as_echo_n_body 7180 as_echo_n='sh -c $as_echo_n_body as_echo' 7181 fi 7182 export as_echo_body 7183 as_echo='sh -c $as_echo_body as_echo' 7184 fi 7185 7186 # The user is always right. 7187 if test "${PATH_SEPARATOR+set}" != set; then 7188 PATH_SEPARATOR=: 7189 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7190 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7191 PATH_SEPARATOR=';' 7192 } 7193 fi 7194 7195 7196 # IFS 7197 # We need space, tab and new line, in precisely that order. Quoting is 7198 # there to prevent editors from complaining about space-tab. 7199 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 7200 # splitting by setting IFS to empty value.) 7201 IFS=" "" $as_nl" 7202 7203 # Find who we are. Look in the path if we contain no directory separator. 7204 as_myself= 7205 case $0 in #(( 7206 *[\\/]* ) as_myself=$0 ;; 7207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7208 for as_dir in $PATH 7209 do 7210 IFS=$as_save_IFS 7211 test -z "$as_dir" && as_dir=. 7212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7213 done 7214 IFS=$as_save_IFS 7215 7216 ;; 7217 esac 7218 # We did not find ourselves, most probably we were run as `sh COMMAND' 7219 # in which case we are not to be found in the path. 7220 if test "x$as_myself" = x; then 7221 as_myself=$0 7222 fi 7223 if test ! -f "$as_myself"; then 7224 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7225 exit 1 7226 fi 7227 7228 # Unset variables that we do not need and which cause bugs (e.g. in 7229 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 7230 # suppresses any "Segmentation fault" message there. '((' could 7231 # trigger a bug in pdksh 5.2.14. 7232 for as_var in BASH_ENV ENV MAIL MAILPATH 7233 do eval test x\${$as_var+set} = xset \ 7234 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7235 done 7236 PS1='$ ' 7237 PS2='> ' 7238 PS4='+ ' 7239 7240 # NLS nuisances. 7241 LC_ALL=C 7242 export LC_ALL 7243 LANGUAGE=C 7244 export LANGUAGE 7245 7246 # CDPATH. 7247 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7248 7249 7250 # as_fn_error STATUS ERROR [LINENO LOG_FD] 7251 # ---------------------------------------- 7252 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 7253 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 7254 # script with STATUS, using 1 if that was 0. 7255 as_fn_error () 7256 { 7257 as_status=$1; test $as_status -eq 0 && as_status=1 7258 if test "$4"; then 7259 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7260 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7261 fi 7262 $as_echo "$as_me: error: $2" >&2 7263 as_fn_exit $as_status 7264 } # as_fn_error 7265 7266 7267 # as_fn_set_status STATUS 7268 # ----------------------- 7269 # Set $? to STATUS, without forking. 7270 as_fn_set_status () 7271 { 7272 return $1 7273 } # as_fn_set_status 7274 7275 # as_fn_exit STATUS 7276 # ----------------- 7277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7278 as_fn_exit () 7279 { 7280 set +e 7281 as_fn_set_status $1 7282 exit $1 7283 } # as_fn_exit 7284 7285 # as_fn_unset VAR 7286 # --------------- 7287 # Portably unset VAR. 7288 as_fn_unset () 7289 { 7290 { eval $1=; unset $1;} 7291 } 7292 as_unset=as_fn_unset 7293 # as_fn_append VAR VALUE 7294 # ---------------------- 7295 # Append the text in VALUE to the end of the definition contained in VAR. Take 7296 # advantage of any shell optimizations that allow amortized linear growth over 7297 # repeated appends, instead of the typical quadratic growth present in naive 7298 # implementations. 7299 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7300 eval 'as_fn_append () 7301 { 7302 eval $1+=\$2 7303 }' 7304 else 7305 as_fn_append () 7306 { 7307 eval $1=\$$1\$2 7308 } 7309 fi # as_fn_append 7310 7311 # as_fn_arith ARG... 7312 # ------------------ 7313 # Perform arithmetic evaluation on the ARGs, and store the result in the 7314 # global $as_val. Take advantage of shells that can avoid forks. The arguments 7315 # must be portable across $(()) and expr. 7316 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7317 eval 'as_fn_arith () 7318 { 7319 as_val=$(( $* )) 7320 }' 7321 else 7322 as_fn_arith () 7323 { 7324 as_val=`expr "$@" || test $? -eq 1` 7325 } 7326 fi # as_fn_arith 7327 7328 7329 if expr a : '\(a\)' >/dev/null 2>&1 && 7330 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7331 as_expr=expr 7332 else 7333 as_expr=false 7334 fi 7335 7336 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7337 as_basename=basename 7338 else 7339 as_basename=false 7340 fi 7341 7342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7343 as_dirname=dirname 7344 else 7345 as_dirname=false 7346 fi 7347 7348 as_me=`$as_basename -- "$0" || 7349 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7350 X"$0" : 'X\(//\)$' \| \ 7351 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7352 $as_echo X/"$0" | 7353 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7354 s//\1/ 7355 q 7356 } 7357 /^X\/\(\/\/\)$/{ 7358 s//\1/ 7359 q 7360 } 7361 /^X\/\(\/\).*/{ 7362 s//\1/ 7363 q 7364 } 7365 s/.*/./; q'` 7366 7367 # Avoid depending upon Character Ranges. 7368 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7371 as_cr_digits='0123456789' 7372 as_cr_alnum=$as_cr_Letters$as_cr_digits 7373 7374 ECHO_C= ECHO_N= ECHO_T= 7375 case `echo -n x` in #((((( 7376 -n*) 7377 case `echo 'xy\c'` in 7378 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7379 xy) ECHO_C='\c';; 7380 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7381 ECHO_T=' ';; 7382 esac;; 7383 *) 7384 ECHO_N='-n';; 7385 esac 7386 7387 rm -f conf$$ conf$$.exe conf$$.file 7388 if test -d conf$$.dir; then 7389 rm -f conf$$.dir/conf$$.file 7390 else 7391 rm -f conf$$.dir 7392 mkdir conf$$.dir 2>/dev/null 7393 fi 7394 if (echo >conf$$.file) 2>/dev/null; then 7395 if ln -s conf$$.file conf$$ 2>/dev/null; then 7396 as_ln_s='ln -s' 7397 # ... but there are two gotchas: 7398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7400 # In both cases, we have to default to `cp -pR'. 7401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7402 as_ln_s='cp -pR' 7403 elif ln conf$$.file conf$$ 2>/dev/null; then 7404 as_ln_s=ln 7405 else 7406 as_ln_s='cp -pR' 7407 fi 7408 else 7409 as_ln_s='cp -pR' 7410 fi 7411 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7412 rmdir conf$$.dir 2>/dev/null 7413 7414 7415 # as_fn_mkdir_p 7416 # ------------- 7417 # Create "$as_dir" as a directory, including parents if necessary. 7418 as_fn_mkdir_p () 7419 { 7420 7421 case $as_dir in #( 7422 -*) as_dir=./$as_dir;; 7423 esac 7424 test -d "$as_dir" || eval $as_mkdir_p || { 7425 as_dirs= 7426 while :; do 7427 case $as_dir in #( 7428 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7429 *) as_qdir=$as_dir;; 7430 esac 7431 as_dirs="'$as_qdir' $as_dirs" 7432 as_dir=`$as_dirname -- "$as_dir" || 7433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7434 X"$as_dir" : 'X\(//\)[^/]' \| \ 7435 X"$as_dir" : 'X\(//\)$' \| \ 7436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7437 $as_echo X"$as_dir" | 7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7439 s//\1/ 7440 q 7441 } 7442 /^X\(\/\/\)[^/].*/{ 7443 s//\1/ 7444 q 7445 } 7446 /^X\(\/\/\)$/{ 7447 s//\1/ 7448 q 7449 } 7450 /^X\(\/\).*/{ 7451 s//\1/ 7452 q 7453 } 7454 s/.*/./; q'` 7455 test -d "$as_dir" && break 7456 done 7457 test -z "$as_dirs" || eval "mkdir $as_dirs" 7458 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7459 7460 7461 } # as_fn_mkdir_p 7462 if mkdir -p . 2>/dev/null; then 7463 as_mkdir_p='mkdir -p "$as_dir"' 7464 else 7465 test -d ./-p && rmdir ./-p 7466 as_mkdir_p=false 7467 fi 7468 7469 7470 # as_fn_executable_p FILE 7471 # ----------------------- 7472 # Test if FILE is an executable regular file. 7473 as_fn_executable_p () 7474 { 7475 test -f "$1" && test -x "$1" 7476 } # as_fn_executable_p 7477 as_test_x='test -x' 7478 as_executable_p=as_fn_executable_p 7479 7480 # Sed expression to map a string onto a valid CPP name. 7481 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7482 7483 # Sed expression to map a string onto a valid variable name. 7484 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7485 7486 7487 exec 6>&1 7488 ## ----------------------------------- ## 7489 ## Main body of $CONFIG_STATUS script. ## 7490 ## ----------------------------------- ## 7491 _ASEOF 7492 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7493 7494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7495 # Save the log message, to keep $0 and so on meaningful, and to 7496 # report actual input values of CONFIG_FILES etc. instead of their 7497 # values after options handling. 7498 ac_log=" 7499 This file was extended by readline $as_me 8.1, which was 7500 generated by GNU Autoconf 2.69. Invocation command line was 7501 7502 CONFIG_FILES = $CONFIG_FILES 7503 CONFIG_HEADERS = $CONFIG_HEADERS 7504 CONFIG_LINKS = $CONFIG_LINKS 7505 CONFIG_COMMANDS = $CONFIG_COMMANDS 7506 $ $0 $@ 7507 7508 on `(hostname || uname -n) 2>/dev/null | sed 1q` 7509 " 7510 7511 _ACEOF 7512 7513 case $ac_config_files in *" 7514 "*) set x $ac_config_files; shift; ac_config_files=$*;; 7515 esac 7516 7517 case $ac_config_headers in *" 7518 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7519 esac 7520 7521 7522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7523 # Files that config.status was made for. 7524 config_files="$ac_config_files" 7525 config_headers="$ac_config_headers" 7526 config_commands="$ac_config_commands" 7527 7528 _ACEOF 7529 7530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7531 ac_cs_usage="\ 7532 \`$as_me' instantiates files and other configuration actions 7533 from templates according to the current configuration. Unless the files 7534 and actions are specified as TAGs, all are instantiated by default. 7535 7536 Usage: $0 [OPTION]... [TAG]... 7537 7538 -h, --help print this help, then exit 7539 -V, --version print version number and configuration settings, then exit 7540 --config print configuration, then exit 7541 -q, --quiet, --silent 7542 do not print progress messages 7543 -d, --debug don't remove temporary files 7544 --recheck update $as_me by reconfiguring in the same conditions 7545 --file=FILE[:TEMPLATE] 7546 instantiate the configuration file FILE 7547 --header=FILE[:TEMPLATE] 7548 instantiate the configuration header FILE 7549 7550 Configuration files: 7551 $config_files 7552 7553 Configuration headers: 7554 $config_headers 7555 7556 Configuration commands: 7557 $config_commands 7558 7559 Report bugs to <bug-readline@gnu.org>." 7560 7561 _ACEOF 7562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7563 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7564 ac_cs_version="\\ 7565 readline config.status 8.1 7566 configured by $0, generated by GNU Autoconf 2.69, 7567 with options \\"\$ac_cs_config\\" 7568 7569 Copyright (C) 2012 Free Software Foundation, Inc. 7570 This config.status script is free software; the Free Software Foundation 7571 gives unlimited permission to copy, distribute and modify it." 7572 7573 ac_pwd='$ac_pwd' 7574 srcdir='$srcdir' 7575 INSTALL='$INSTALL' 7576 test -n "\$AWK" || AWK=awk 7577 _ACEOF 7578 7579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7580 # The default lists apply if the user does not specify any file. 7581 ac_need_defaults=: 7582 while test $# != 0 7583 do 7584 case $1 in 7585 --*=?*) 7586 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7588 ac_shift=: 7589 ;; 7590 --*=) 7591 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7592 ac_optarg= 7593 ac_shift=: 7594 ;; 7595 *) 7596 ac_option=$1 7597 ac_optarg=$2 7598 ac_shift=shift 7599 ;; 7600 esac 7601 7602 case $ac_option in 7603 # Handling of the options. 7604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7605 ac_cs_recheck=: ;; 7606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7607 $as_echo "$ac_cs_version"; exit ;; 7608 --config | --confi | --conf | --con | --co | --c ) 7609 $as_echo "$ac_cs_config"; exit ;; 7610 --debug | --debu | --deb | --de | --d | -d ) 7611 debug=: ;; 7612 --file | --fil | --fi | --f ) 7613 $ac_shift 7614 case $ac_optarg in 7615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7616 '') as_fn_error $? "missing file argument" ;; 7617 esac 7618 as_fn_append CONFIG_FILES " '$ac_optarg'" 7619 ac_need_defaults=false;; 7620 --header | --heade | --head | --hea ) 7621 $ac_shift 7622 case $ac_optarg in 7623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7624 esac 7625 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7626 ac_need_defaults=false;; 7627 --he | --h) 7628 # Conflict between --help and --header 7629 as_fn_error $? "ambiguous option: \`$1' 7630 Try \`$0 --help' for more information.";; 7631 --help | --hel | -h ) 7632 $as_echo "$ac_cs_usage"; exit ;; 7633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7634 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7635 ac_cs_silent=: ;; 7636 7637 # This is an error. 7638 -*) as_fn_error $? "unrecognized option: \`$1' 7639 Try \`$0 --help' for more information." ;; 7640 7641 *) as_fn_append ac_config_targets " $1" 7642 ac_need_defaults=false ;; 7643 7644 esac 7645 shift 7646 done 7647 7648 ac_configure_extra_args= 7649 7650 if $ac_cs_silent; then 7651 exec 6>/dev/null 7652 ac_configure_extra_args="$ac_configure_extra_args --silent" 7653 fi 7654 7655 _ACEOF 7656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7657 if \$ac_cs_recheck; then 7658 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7659 shift 7660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7661 CONFIG_SHELL='$SHELL' 7662 export CONFIG_SHELL 7663 exec "\$@" 7664 fi 7665 7666 _ACEOF 7667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7668 exec 5>>config.log 7669 { 7670 echo 7671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7672 ## Running $as_me. ## 7673 _ASBOX 7674 $as_echo "$ac_log" 7675 } >&5 7676 7677 _ACEOF 7678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7679 _ACEOF 7680 7681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7682 7683 # Handling of arguments. 7684 for ac_config_target in $ac_config_targets 7685 do 7686 case $ac_config_target in 7687 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7688 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7689 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 7690 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 7691 "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; 7692 "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;; 7693 "history.pc") CONFIG_FILES="$CONFIG_FILES history.pc" ;; 7694 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; 7695 7696 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7697 esac 7698 done 7699 7700 7701 # If the user did not use the arguments to specify the items to instantiate, 7702 # then the envvar interface is used. Set only those that are not. 7703 # We use the long form for the default assignment because of an extremely 7704 # bizarre bug on SunOS 4.1.3. 7705 if $ac_need_defaults; then 7706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7709 fi 7710 7711 # Have a temporary directory for convenience. Make it in the build tree 7712 # simply because there is no reason against having it here, and in addition, 7713 # creating and moving files from /tmp can sometimes cause problems. 7714 # Hook for its removal unless debugging. 7715 # Note that there is a small window in which the directory will not be cleaned: 7716 # after its creation but before its name has been assigned to `$tmp'. 7717 $debug || 7718 { 7719 tmp= ac_tmp= 7720 trap 'exit_status=$? 7721 : "${ac_tmp:=$tmp}" 7722 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7723 ' 0 7724 trap 'as_fn_exit 1' 1 2 13 15 7725 } 7726 # Create a (secure) tmp directory for tmp files. 7727 7728 { 7729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7730 test -d "$tmp" 7731 } || 7732 { 7733 tmp=./conf$$-$RANDOM 7734 (umask 077 && mkdir "$tmp") 7735 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7736 ac_tmp=$tmp 7737 7738 # Set up the scripts for CONFIG_FILES section. 7739 # No need to generate them if there are no CONFIG_FILES. 7740 # This happens for instance with `./config.status config.h'. 7741 if test -n "$CONFIG_FILES"; then 7742 7743 7744 ac_cr=`echo X | tr X '\015'` 7745 # On cygwin, bash can eat \r inside `` if the user requested igncr. 7746 # But we know of no other shell where ac_cr would be empty at this 7747 # point, so we can use a bashism as a fallback. 7748 if test "x$ac_cr" = x; then 7749 eval ac_cr=\$\'\\r\' 7750 fi 7751 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7752 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7753 ac_cs_awk_cr='\\r' 7754 else 7755 ac_cs_awk_cr=$ac_cr 7756 fi 7757 7758 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7759 _ACEOF 7760 7761 7762 { 7763 echo "cat >conf$$subs.awk <<_ACEOF" && 7764 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7765 echo "_ACEOF" 7766 } >conf$$subs.sh || 7767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7768 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7769 ac_delim='%!_!# ' 7770 for ac_last_try in false false false false false :; do 7771 . ./conf$$subs.sh || 7772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7773 7774 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7775 if test $ac_delim_n = $ac_delim_num; then 7776 break 7777 elif $ac_last_try; then 7778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7779 else 7780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7781 fi 7782 done 7783 rm -f conf$$subs.sh 7784 7785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7786 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7787 _ACEOF 7788 sed -n ' 7789 h 7790 s/^/S["/; s/!.*/"]=/ 7791 p 7792 g 7793 s/^[^!]*!// 7794 :repl 7795 t repl 7796 s/'"$ac_delim"'$// 7797 t delim 7798 :nl 7799 h 7800 s/\(.\{148\}\)..*/\1/ 7801 t more1 7802 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7803 p 7804 n 7805 b repl 7806 :more1 7807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7808 p 7809 g 7810 s/.\{148\}// 7811 t nl 7812 :delim 7813 h 7814 s/\(.\{148\}\)..*/\1/ 7815 t more2 7816 s/["\\]/\\&/g; s/^/"/; s/$/"/ 7817 p 7818 b 7819 :more2 7820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7821 p 7822 g 7823 s/.\{148\}// 7824 t delim 7825 ' <conf$$subs.awk | sed ' 7826 /^[^""]/{ 7827 N 7828 s/\n// 7829 } 7830 ' >>$CONFIG_STATUS || ac_write_fail=1 7831 rm -f conf$$subs.awk 7832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7833 _ACAWK 7834 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7835 for (key in S) S_is_set[key] = 1 7836 FS = "" 7837 7838 } 7839 { 7840 line = $ 0 7841 nfields = split(line, field, "@") 7842 substed = 0 7843 len = length(field[1]) 7844 for (i = 2; i < nfields; i++) { 7845 key = field[i] 7846 keylen = length(key) 7847 if (S_is_set[key]) { 7848 value = S[key] 7849 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7850 len += length(value) + length(field[++i]) 7851 substed = 1 7852 } else 7853 len += 1 + keylen 7854 } 7855 7856 print line 7857 } 7858 7859 _ACAWK 7860 _ACEOF 7861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7862 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7863 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7864 else 7865 cat 7866 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7867 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7868 _ACEOF 7869 7870 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7871 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7872 # trailing colons and then remove the whole line if VPATH becomes empty 7873 # (actually we leave an empty line to preserve line numbers). 7874 if test "x$srcdir" = x.; then 7875 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7876 h 7877 s/// 7878 s/^/:/ 7879 s/[ ]*$/:/ 7880 s/:\$(srcdir):/:/g 7881 s/:\${srcdir}:/:/g 7882 s/:@srcdir@:/:/g 7883 s/^:*// 7884 s/:*$// 7885 x 7886 s/\(=[ ]*\).*/\1/ 7887 G 7888 s/\n// 7889 s/^[^=]*=[ ]*$// 7890 }' 7891 fi 7892 7893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7894 fi # test -n "$CONFIG_FILES" 7895 7896 # Set up the scripts for CONFIG_HEADERS section. 7897 # No need to generate them if there are no CONFIG_HEADERS. 7898 # This happens for instance with `./config.status Makefile'. 7899 if test -n "$CONFIG_HEADERS"; then 7900 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7901 BEGIN { 7902 _ACEOF 7903 7904 # Transform confdefs.h into an awk script `defines.awk', embedded as 7905 # here-document in config.status, that substitutes the proper values into 7906 # config.h.in to produce config.h. 7907 7908 # Create a delimiter string that does not exist in confdefs.h, to ease 7909 # handling of long lines. 7910 ac_delim='%!_!# ' 7911 for ac_last_try in false false :; do 7912 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7913 if test -z "$ac_tt"; then 7914 break 7915 elif $ac_last_try; then 7916 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7917 else 7918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7919 fi 7920 done 7921 7922 # For the awk script, D is an array of macro values keyed by name, 7923 # likewise P contains macro parameters if any. Preserve backslash 7924 # newline sequences. 7925 7926 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7927 sed -n ' 7928 s/.\{148\}/&'"$ac_delim"'/g 7929 t rset 7930 :rset 7931 s/^[ ]*#[ ]*define[ ][ ]*/ / 7932 t def 7933 d 7934 :def 7935 s/\\$// 7936 t bsnl 7937 s/["\\]/\\&/g 7938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7939 D["\1"]=" \3"/p 7940 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7941 d 7942 :bsnl 7943 s/["\\]/\\&/g 7944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7945 D["\1"]=" \3\\\\\\n"\\/p 7946 t cont 7947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7948 t cont 7949 d 7950 :cont 7951 n 7952 s/.\{148\}/&'"$ac_delim"'/g 7953 t clear 7954 :clear 7955 s/\\$// 7956 t bsnlc 7957 s/["\\]/\\&/g; s/^/"/; s/$/"/p 7958 d 7959 :bsnlc 7960 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7961 b cont 7962 ' <confdefs.h | sed ' 7963 s/'"$ac_delim"'/"\\\ 7964 "/g' >>$CONFIG_STATUS || ac_write_fail=1 7965 7966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7967 for (key in D) D_is_set[key] = 1 7968 FS = "" 7969 } 7970 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7971 line = \$ 0 7972 split(line, arg, " ") 7973 if (arg[1] == "#") { 7974 defundef = arg[2] 7975 mac1 = arg[3] 7976 } else { 7977 defundef = substr(arg[1], 2) 7978 mac1 = arg[2] 7979 } 7980 split(mac1, mac2, "(") #) 7981 macro = mac2[1] 7982 prefix = substr(line, 1, index(line, defundef) - 1) 7983 if (D_is_set[macro]) { 7984 # Preserve the white space surrounding the "#". 7985 print prefix "define", macro P[macro] D[macro] 7986 next 7987 } else { 7988 # Replace #undef with comments. This is necessary, for example, 7989 # in the case of _POSIX_SOURCE, which is predefined and required 7990 # on some systems where configure will not decide to define it. 7991 if (defundef == "undef") { 7992 print "/*", prefix defundef, macro, "*/" 7993 next 7994 } 7995 } 7996 } 7997 { print } 7998 _ACAWK 7999 _ACEOF 8000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8001 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8002 fi # test -n "$CONFIG_HEADERS" 8003 8004 8005 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 8006 shift 8007 for ac_tag 8008 do 8009 case $ac_tag in 8010 :[FHLC]) ac_mode=$ac_tag; continue;; 8011 esac 8012 case $ac_mode$ac_tag in 8013 :[FHL]*:*);; 8014 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8015 :[FH]-) ac_tag=-:-;; 8016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8017 esac 8018 ac_save_IFS=$IFS 8019 IFS=: 8020 set x $ac_tag 8021 IFS=$ac_save_IFS 8022 shift 8023 ac_file=$1 8024 shift 8025 8026 case $ac_mode in 8027 :L) ac_source=$1;; 8028 :[FH]) 8029 ac_file_inputs= 8030 for ac_f 8031 do 8032 case $ac_f in 8033 -) ac_f="$ac_tmp/stdin";; 8034 *) # Look for the file first in the build tree, then in the source tree 8035 # (if the path is not absolute). The absolute path cannot be DOS-style, 8036 # because $ac_f cannot contain `:'. 8037 test -f "$ac_f" || 8038 case $ac_f in 8039 [\\/$]*) false;; 8040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8041 esac || 8042 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8043 esac 8044 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8045 as_fn_append ac_file_inputs " '$ac_f'" 8046 done 8047 8048 # Let's still pretend it is `configure' which instantiates (i.e., don't 8049 # use $as_me), people would be surprised to read: 8050 # /* config.h. Generated by config.status. */ 8051 configure_input='Generated from '` 8052 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 8053 `' by configure.' 8054 if test x"$ac_file" != x-; then 8055 configure_input="$ac_file. $configure_input" 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 8057 $as_echo "$as_me: creating $ac_file" >&6;} 8058 fi 8059 # Neutralize special characters interpreted by sed in replacement strings. 8060 case $configure_input in #( 8061 *\&* | *\|* | *\\* ) 8062 ac_sed_conf_input=`$as_echo "$configure_input" | 8063 sed 's/[\\\\&|]/\\\\&/g'`;; #( 8064 *) ac_sed_conf_input=$configure_input;; 8065 esac 8066 8067 case $ac_tag in 8068 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8070 esac 8071 ;; 8072 esac 8073 8074 ac_dir=`$as_dirname -- "$ac_file" || 8075 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8076 X"$ac_file" : 'X\(//\)[^/]' \| \ 8077 X"$ac_file" : 'X\(//\)$' \| \ 8078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8079 $as_echo X"$ac_file" | 8080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8081 s//\1/ 8082 q 8083 } 8084 /^X\(\/\/\)[^/].*/{ 8085 s//\1/ 8086 q 8087 } 8088 /^X\(\/\/\)$/{ 8089 s//\1/ 8090 q 8091 } 8092 /^X\(\/\).*/{ 8093 s//\1/ 8094 q 8095 } 8096 s/.*/./; q'` 8097 as_dir="$ac_dir"; as_fn_mkdir_p 8098 ac_builddir=. 8099 8100 case "$ac_dir" in 8101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8102 *) 8103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 8104 # A ".." for each directory in $ac_dir_suffix. 8105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 8106 case $ac_top_builddir_sub in 8107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8109 esac ;; 8110 esac 8111 ac_abs_top_builddir=$ac_pwd 8112 ac_abs_builddir=$ac_pwd$ac_dir_suffix 8113 # for backward compatibility: 8114 ac_top_builddir=$ac_top_build_prefix 8115 8116 case $srcdir in 8117 .) # We are building in place. 8118 ac_srcdir=. 8119 ac_top_srcdir=$ac_top_builddir_sub 8120 ac_abs_top_srcdir=$ac_pwd ;; 8121 [\\/]* | ?:[\\/]* ) # Absolute name. 8122 ac_srcdir=$srcdir$ac_dir_suffix; 8123 ac_top_srcdir=$srcdir 8124 ac_abs_top_srcdir=$srcdir ;; 8125 *) # Relative name. 8126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8127 ac_top_srcdir=$ac_top_build_prefix$srcdir 8128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8129 esac 8130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8131 8132 8133 case $ac_mode in 8134 :F) 8135 # 8136 # CONFIG_FILE 8137 # 8138 8139 case $INSTALL in 8140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8142 esac 8143 _ACEOF 8144 8145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8146 # If the template does not know about datarootdir, expand it. 8147 # FIXME: This hack should be removed a few years after 2.60. 8148 ac_datarootdir_hack=; ac_datarootdir_seen= 8149 ac_sed_dataroot=' 8150 /datarootdir/ { 8151 p 8152 q 8153 } 8154 /@datadir@/p 8155 /@docdir@/p 8156 /@infodir@/p 8157 /@localedir@/p 8158 /@mandir@/p' 8159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 8160 *datarootdir*) ac_datarootdir_seen=yes;; 8161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8164 _ACEOF 8165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8166 ac_datarootdir_hack=' 8167 s&@datadir@&$datadir&g 8168 s&@docdir@&$docdir&g 8169 s&@infodir@&$infodir&g 8170 s&@localedir@&$localedir&g 8171 s&@mandir@&$mandir&g 8172 s&\\\${datarootdir}&$datarootdir&g' ;; 8173 esac 8174 _ACEOF 8175 8176 # Neutralize VPATH when `$srcdir' = `.'. 8177 # Shell code in configure.ac might set extrasub. 8178 # FIXME: do we really want to maintain this feature? 8179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8180 ac_sed_extra="$ac_vpsub 8181 $extrasub 8182 _ACEOF 8183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8184 :t 8185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8186 s|@configure_input@|$ac_sed_conf_input|;t t 8187 s&@top_builddir@&$ac_top_builddir_sub&;t t 8188 s&@top_build_prefix@&$ac_top_build_prefix&;t t 8189 s&@srcdir@&$ac_srcdir&;t t 8190 s&@abs_srcdir@&$ac_abs_srcdir&;t t 8191 s&@top_srcdir@&$ac_top_srcdir&;t t 8192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8193 s&@builddir@&$ac_builddir&;t t 8194 s&@abs_builddir@&$ac_abs_builddir&;t t 8195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8196 s&@INSTALL@&$ac_INSTALL&;t t 8197 $ac_datarootdir_hack 8198 " 8199 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 8200 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8201 8202 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8203 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 8204 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 8205 "$ac_tmp/out"`; test -z "$ac_out"; } && 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8207 which seems to be undefined. Please make sure it is defined" >&5 8208 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8209 which seems to be undefined. Please make sure it is defined" >&2;} 8210 8211 rm -f "$ac_tmp/stdin" 8212 case $ac_file in 8213 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8214 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8215 esac \ 8216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8217 ;; 8218 :H) 8219 # 8220 # CONFIG_HEADER 8221 # 8222 if test x"$ac_file" != x-; then 8223 { 8224 $as_echo "/* $configure_input */" \ 8225 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 8226 } >"$ac_tmp/config.h" \ 8227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8228 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 8230 $as_echo "$as_me: $ac_file is unchanged" >&6;} 8231 else 8232 rm -f "$ac_file" 8233 mv "$ac_tmp/config.h" "$ac_file" \ 8234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8235 fi 8236 else 8237 $as_echo "/* $configure_input */" \ 8238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 8239 || as_fn_error $? "could not create -" "$LINENO" 5 8240 fi 8241 ;; 8242 8243 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8244 $as_echo "$as_me: executing $ac_file commands" >&6;} 8245 ;; 8246 esac 8247 8248 8249 case $ac_file$ac_mode in 8250 "stamp-h":C) echo > stamp-h ;; 8251 8252 esac 8253 done # for ac_tag 8254 8255 8256 as_fn_exit 0 8257 _ACEOF 8258 ac_clean_files=$ac_clean_files_save 8259 8260 test $ac_write_fail = 0 || 8261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8262 8263 8264 # configure is writing to config.log, and then calls config.status. 8265 # config.status does its own redirection, appending to config.log. 8266 # Unfortunately, on DOS this fails, as config.log is still kept open 8267 # by configure, so config.status won't be able to write to it; its 8268 # output is simply discarded. So we exec the FD to /dev/null, 8269 # effectively closing config.log, so it can be properly (re)opened and 8270 # appended to by config.status. When coming back to configure, we 8271 # need to make the FD available again. 8272 if test "$no_create" != yes; then 8273 ac_cs_success=: 8274 ac_config_status_args= 8275 test "$silent" = yes && 8276 ac_config_status_args="$ac_config_status_args --quiet" 8277 exec 5>/dev/null 8278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8279 exec 5>>config.log 8280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8281 # would make configure fail if this is the last instruction. 8282 $ac_cs_success || as_fn_exit 1 8283 fi 8284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8287 fi 8288 8289