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