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