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