1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.61 for XPilot NG 4.7.3. 4@%:@ 5@%:@ Report bugs to <xpilot-hacks@lists.sourceforge.net>. 6@%:@ 7@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIB@&t@OBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='XPilot NG' 576PACKAGE_TARNAME='xpilot-ng' 577PACKAGE_VERSION='4.7.3' 578PACKAGE_STRING='XPilot NG 4.7.3' 579PACKAGE_BUGREPORT='xpilot-hacks@lists.sourceforge.net' 580 581ac_unique_file="src/client/xpclient.h" 582# Factoring default headers for most tests. 583ac_includes_default="\ 584#include <stdio.h> 585#ifdef HAVE_SYS_TYPES_H 586# include <sys/types.h> 587#endif 588#ifdef HAVE_SYS_STAT_H 589# include <sys/stat.h> 590#endif 591#ifdef STDC_HEADERS 592# include <stdlib.h> 593# include <stddef.h> 594#else 595# ifdef HAVE_STDLIB_H 596# include <stdlib.h> 597# endif 598#endif 599#ifdef HAVE_STRING_H 600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 601# include <memory.h> 602# endif 603# include <string.h> 604#endif 605#ifdef HAVE_STRINGS_H 606# include <strings.h> 607#endif 608#ifdef HAVE_INTTYPES_H 609# include <inttypes.h> 610#endif 611#ifdef HAVE_STDINT_H 612# include <stdint.h> 613#endif 614#ifdef HAVE_UNISTD_H 615# include <unistd.h> 616#endif" 617 618ac_subst_vars='SHELL 619PATH_SEPARATOR 620PACKAGE_NAME 621PACKAGE_TARNAME 622PACKAGE_VERSION 623PACKAGE_STRING 624PACKAGE_BUGREPORT 625exec_prefix 626prefix 627program_transform_name 628bindir 629sbindir 630libexecdir 631datarootdir 632datadir 633sysconfdir 634sharedstatedir 635localstatedir 636includedir 637oldincludedir 638docdir 639infodir 640htmldir 641dvidir 642pdfdir 643psdir 644libdir 645localedir 646mandir 647DEFS 648ECHO_C 649ECHO_N 650ECHO_T 651LIBS 652build_alias 653host_alias 654target_alias 655build 656build_cpu 657build_vendor 658build_os 659host 660host_cpu 661host_vendor 662host_os 663target 664target_cpu 665target_vendor 666target_os 667INSTALL_PROGRAM 668INSTALL_SCRIPT 669INSTALL_DATA 670am__isrc 671CYGPATH_W 672PACKAGE 673VERSION 674ACLOCAL 675AUTOCONF 676AUTOMAKE 677AUTOHEADER 678MAKEINFO 679install_sh 680STRIP 681INSTALL_STRIP_PROGRAM 682mkdir_p 683AWK 684SET_MAKE 685am__leading_dot 686AMTAR 687am__tar 688am__untar 689MAINTAINER_MODE_TRUE 690MAINTAINER_MODE_FALSE 691MAINT 692XP_AUTHORS 693XP_COPYRIGHTDATE 694XP_COPYRIGHT 695XP_RELEASEDATE 696XP_DATADIR 697CC 698CFLAGS 699LDFLAGS 700CPPFLAGS 701ac_ct_CC 702EXEEXT 703OBJEXT 704DEPDIR 705am__include 706am__quote 707AMDEP_TRUE 708AMDEP_FALSE 709AMDEPBACKSLASH 710CCDEPMODE 711am__fastdepCC_TRUE 712am__fastdepCC_FALSE 713RANLIB 714W32_LIBS 715XMKMF 716CPP 717X_CFLAGS 718X_PRE_LIBS 719X_LIBS 720X_EXTRA_LIBS 721X_EXTENSIONS_LIB 722SDL_CONFIG 723SDL_CFLAGS 724SDL_LIBS 725SDL_EXTRA_LIBS 726GL_LIBS 727COND_CLIENT_TRUE 728COND_CLIENT_FALSE 729COND_WINDOWS_TRUE 730COND_WINDOWS_FALSE 731COND_REPLAY_TRUE 732COND_REPLAY_FALSE 733COND_XP_MAPEDIT_TRUE 734COND_XP_MAPEDIT_FALSE 735COND_X11_CLIENT_TRUE 736COND_X11_CLIENT_FALSE 737COND_SDL_CLIENT_TRUE 738COND_SDL_CLIENT_FALSE 739COND_SDL_GAMELOOP_TRUE 740COND_SDL_GAMELOOP_FALSE 741SOUND_LIBS 742COND_SOUND_TRUE 743COND_SOUND_FALSE 744GREP 745EGREP 746LIB@&t@OBJS 747POW_LIB 748LTLIBOBJS' 749ac_subst_files='' 750 ac_precious_vars='build_alias 751host_alias 752target_alias 753CC 754CFLAGS 755LDFLAGS 756LIBS 757CPPFLAGS 758XMKMF 759CPP' 760 761 762# Initialize some variables set by options. 763ac_init_help= 764ac_init_version=false 765# The variables have the same names as the options, with 766# dashes changed to underlines. 767cache_file=/dev/null 768exec_prefix=NONE 769no_create= 770no_recursion= 771prefix=NONE 772program_prefix=NONE 773program_suffix=NONE 774program_transform_name=s,x,x, 775silent= 776site= 777srcdir= 778verbose= 779x_includes=NONE 780x_libraries=NONE 781 782# Installation directory options. 783# These are left unexpanded so users can "make install exec_prefix=/foo" 784# and all the variables that are supposed to be based on exec_prefix 785# by default will actually change. 786# Use braces instead of parens because sh, perl, etc. also accept them. 787# (The list follows the same order as the GNU Coding Standards.) 788bindir='${exec_prefix}/bin' 789sbindir='${exec_prefix}/sbin' 790libexecdir='${exec_prefix}/libexec' 791datarootdir='${prefix}/share' 792datadir='${datarootdir}' 793sysconfdir='${prefix}/etc' 794sharedstatedir='${prefix}/com' 795localstatedir='${prefix}/var' 796includedir='${prefix}/include' 797oldincludedir='/usr/include' 798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 799infodir='${datarootdir}/info' 800htmldir='${docdir}' 801dvidir='${docdir}' 802pdfdir='${docdir}' 803psdir='${docdir}' 804libdir='${exec_prefix}/lib' 805localedir='${datarootdir}/locale' 806mandir='${datarootdir}/man' 807 808ac_prev= 809ac_dashdash= 810for ac_option 811do 812 # If the previous option needs an argument, assign it. 813 if test -n "$ac_prev"; then 814 eval $ac_prev=\$ac_option 815 ac_prev= 816 continue 817 fi 818 819 case $ac_option in 820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 821 *) ac_optarg=yes ;; 822 esac 823 824 # Accept the important Cygnus configure options, so we can diagnose typos. 825 826 case $ac_dashdash$ac_option in 827 --) 828 ac_dashdash=yes ;; 829 830 -bindir | --bindir | --bindi | --bind | --bin | --bi) 831 ac_prev=bindir ;; 832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833 bindir=$ac_optarg ;; 834 835 -build | --build | --buil | --bui | --bu) 836 ac_prev=build_alias ;; 837 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838 build_alias=$ac_optarg ;; 839 840 -cache-file | --cache-file | --cache-fil | --cache-fi \ 841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842 ac_prev=cache_file ;; 843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845 cache_file=$ac_optarg ;; 846 847 --config-cache | -C) 848 cache_file=config.cache ;; 849 850 -datadir | --datadir | --datadi | --datad) 851 ac_prev=datadir ;; 852 -datadir=* | --datadir=* | --datadi=* | --datad=*) 853 datadir=$ac_optarg ;; 854 855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856 | --dataroo | --dataro | --datar) 857 ac_prev=datarootdir ;; 858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860 datarootdir=$ac_optarg ;; 861 862 -disable-* | --disable-*) 863 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864 # Reject names that are not valid shell variable names. 865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 867 { (exit 1); exit 1; }; } 868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 869 eval enable_$ac_feature=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 886 { (exit 1); exit 1; }; } 887 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 888 eval enable_$ac_feature=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1034 ac_prev=sbindir ;; 1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1036 | --sbi=* | --sb=*) 1037 sbindir=$ac_optarg ;; 1038 1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1041 | --sharedst | --shareds | --shared | --share | --shar \ 1042 | --sha | --sh) 1043 ac_prev=sharedstatedir ;; 1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1047 | --sha=* | --sh=*) 1048 sharedstatedir=$ac_optarg ;; 1049 1050 -site | --site | --sit) 1051 ac_prev=site ;; 1052 -site=* | --site=* | --sit=*) 1053 site=$ac_optarg ;; 1054 1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1056 ac_prev=srcdir ;; 1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1058 srcdir=$ac_optarg ;; 1059 1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1061 | --syscon | --sysco | --sysc | --sys | --sy) 1062 ac_prev=sysconfdir ;; 1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1065 sysconfdir=$ac_optarg ;; 1066 1067 -target | --target | --targe | --targ | --tar | --ta | --t) 1068 ac_prev=target_alias ;; 1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1070 target_alias=$ac_optarg ;; 1071 1072 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1073 verbose=yes ;; 1074 1075 -version | --version | --versio | --versi | --vers | -V) 1076 ac_init_version=: ;; 1077 1078 -with-* | --with-*) 1079 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1082 { echo "$as_me: error: invalid package name: $ac_package" >&2 1083 { (exit 1); exit 1; }; } 1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1085 eval with_$ac_package=\$ac_optarg ;; 1086 1087 -without-* | --without-*) 1088 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1091 { echo "$as_me: error: invalid package name: $ac_package" >&2 1092 { (exit 1); exit 1; }; } 1093 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1094 eval with_$ac_package=no ;; 1095 1096 --x) 1097 # Obsolete; use --with-x. 1098 with_x=yes ;; 1099 1100 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1101 | --x-incl | --x-inc | --x-in | --x-i) 1102 ac_prev=x_includes ;; 1103 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1104 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1105 x_includes=$ac_optarg ;; 1106 1107 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1108 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1109 ac_prev=x_libraries ;; 1110 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1111 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1112 x_libraries=$ac_optarg ;; 1113 1114 -*) { echo "$as_me: error: unrecognized option: $ac_option 1115Try \`$0 --help' for more information." >&2 1116 { (exit 1); exit 1; }; } 1117 ;; 1118 1119 *=*) 1120 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1123 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1124 { (exit 1); exit 1; }; } 1125 eval $ac_envvar=\$ac_optarg 1126 export $ac_envvar ;; 1127 1128 *) 1129 # FIXME: should be removed in autoconf 3.0. 1130 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1131 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1132 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1133 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1134 ;; 1135 1136 esac 1137done 1138 1139if test -n "$ac_prev"; then 1140 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1141 { echo "$as_me: error: missing argument to $ac_option" >&2 1142 { (exit 1); exit 1; }; } 1143fi 1144 1145# Be sure to have absolute directory names. 1146for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1147 datadir sysconfdir sharedstatedir localstatedir includedir \ 1148 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1149 libdir localedir mandir 1150do 1151 eval ac_val=\$$ac_var 1152 case $ac_val in 1153 [\\/$]* | ?:[\\/]* ) continue;; 1154 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1155 esac 1156 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1157 { (exit 1); exit 1; }; } 1158done 1159 1160# There might be people who depend on the old broken behavior: `$host' 1161# used to hold the argument of --host etc. 1162# FIXME: To remove some day. 1163build=$build_alias 1164host=$host_alias 1165target=$target_alias 1166 1167# FIXME: To remove some day. 1168if test "x$host_alias" != x; then 1169 if test "x$build_alias" = x; then 1170 cross_compiling=maybe 1171 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1172 If a cross compiler is detected then cross compile mode will be used." >&2 1173 elif test "x$build_alias" != "x$host_alias"; then 1174 cross_compiling=yes 1175 fi 1176fi 1177 1178ac_tool_prefix= 1179test -n "$host_alias" && ac_tool_prefix=$host_alias- 1180 1181test "$silent" = yes && exec 6>/dev/null 1182 1183 1184ac_pwd=`pwd` && test -n "$ac_pwd" && 1185ac_ls_di=`ls -di .` && 1186ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1187 { echo "$as_me: error: Working directory cannot be determined" >&2 1188 { (exit 1); exit 1; }; } 1189test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1190 { echo "$as_me: error: pwd does not report name of working directory" >&2 1191 { (exit 1); exit 1; }; } 1192 1193 1194# Find the source files, if location was not specified. 1195if test -z "$srcdir"; then 1196 ac_srcdir_defaulted=yes 1197 # Try the directory containing this script, then the parent directory. 1198 ac_confdir=`$as_dirname -- "$0" || 1199$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1200 X"$0" : 'X\(//\)[^/]' \| \ 1201 X"$0" : 'X\(//\)$' \| \ 1202 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1203echo X"$0" | 1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1205 s//\1/ 1206 q 1207 } 1208 /^X\(\/\/\)[^/].*/{ 1209 s//\1/ 1210 q 1211 } 1212 /^X\(\/\/\)$/{ 1213 s//\1/ 1214 q 1215 } 1216 /^X\(\/\).*/{ 1217 s//\1/ 1218 q 1219 } 1220 s/.*/./; q'` 1221 srcdir=$ac_confdir 1222 if test ! -r "$srcdir/$ac_unique_file"; then 1223 srcdir=.. 1224 fi 1225else 1226 ac_srcdir_defaulted=no 1227fi 1228if test ! -r "$srcdir/$ac_unique_file"; then 1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1230 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1231 { (exit 1); exit 1; }; } 1232fi 1233ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1234ac_abs_confdir=`( 1235 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1236 { (exit 1); exit 1; }; } 1237 pwd)` 1238# When building in place, set srcdir=. 1239if test "$ac_abs_confdir" = "$ac_pwd"; then 1240 srcdir=. 1241fi 1242# Remove unnecessary trailing slashes from srcdir. 1243# Double slashes in file names in object file debugging info 1244# mess up M-x gdb in Emacs. 1245case $srcdir in 1246*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1247esac 1248for ac_var in $ac_precious_vars; do 1249 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1250 eval ac_env_${ac_var}_value=\$${ac_var} 1251 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1252 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1253done 1254 1255# 1256# Report the --help message. 1257# 1258if test "$ac_init_help" = "long"; then 1259 # Omit some internal or obsolete options to make the list less imposing. 1260 # This message is too long to be a string in the A/UX 3.1 sh. 1261 cat <<_ACEOF 1262\`configure' configures XPilot NG 4.7.3 to adapt to many kinds of systems. 1263 1264Usage: $0 [OPTION]... [VAR=VALUE]... 1265 1266To assign environment variables (e.g., CC, CFLAGS...), specify them as 1267VAR=VALUE. See below for descriptions of some of the useful variables. 1268 1269Defaults for the options are specified in brackets. 1270 1271Configuration: 1272 -h, --help display this help and exit 1273 --help=short display options specific to this package 1274 --help=recursive display the short help of all the included packages 1275 -V, --version display version information and exit 1276 -q, --quiet, --silent do not print \`checking...' messages 1277 --cache-file=FILE cache test results in FILE [disabled] 1278 -C, --config-cache alias for \`--cache-file=config.cache' 1279 -n, --no-create do not create output files 1280 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1281 1282Installation directories: 1283 --prefix=PREFIX install architecture-independent files in PREFIX 1284 [$ac_default_prefix] 1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1286 [PREFIX] 1287 1288By default, \`make install' will install all the files in 1289\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1290an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1291for instance \`--prefix=\$HOME'. 1292 1293For better control, use the options below. 1294 1295Fine tuning of the installation directories: 1296 --bindir=DIR user executables [EPREFIX/bin] 1297 --sbindir=DIR system admin executables [EPREFIX/sbin] 1298 --libexecdir=DIR program executables [EPREFIX/libexec] 1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1302 --libdir=DIR object code libraries [EPREFIX/lib] 1303 --includedir=DIR C header files [PREFIX/include] 1304 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1307 --infodir=DIR info documentation [DATAROOTDIR/info] 1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1309 --mandir=DIR man documentation [DATAROOTDIR/man] 1310 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/xpilot-ng@:>@ 1311 --htmldir=DIR html documentation [DOCDIR] 1312 --dvidir=DIR dvi documentation [DOCDIR] 1313 --pdfdir=DIR pdf documentation [DOCDIR] 1314 --psdir=DIR ps documentation [DOCDIR] 1315_ACEOF 1316 1317 cat <<\_ACEOF 1318 1319Program names: 1320 --program-prefix=PREFIX prepend PREFIX to installed program names 1321 --program-suffix=SUFFIX append SUFFIX to installed program names 1322 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1323 1324X features: 1325 --x-includes=DIR X include files are in DIR 1326 --x-libraries=DIR X library files are in DIR 1327 1328System types: 1329 --build=BUILD configure for building on BUILD [guessed] 1330 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1331 --target=TARGET configure for building compilers for TARGET [HOST] 1332_ACEOF 1333fi 1334 1335if test -n "$ac_init_help"; then 1336 case $ac_init_help in 1337 short | recursive ) echo "Configuration of XPilot NG 4.7.3:";; 1338 esac 1339 cat <<\_ACEOF 1340 1341Optional Features: 1342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1344 --enable-maintainer-mode enable make rules and dependencies not useful 1345 (and sometimes confusing) to the casual installer 1346 --enable-dbe support for X Doublebuffer Extension in client 1347 --enable-mbx support for X Multibuffer Extension in client 1348 --enable-plockserver lock the xpilot-ng server into memory 1349 --enable-development enable development code 1350 --enable-select-sched enable new server scheduling most useful on Linux 1351 2.6 1352 --disable-replay disable building of replay program 1353 --disable-xp-mapedit disable building of xp-mapedit program 1354 --disable-x11-client disable X11 client 1355 --disable-sdl-client disable SDL/OpenGL client 1356 --enable-sdl-gameloop enable sdl gameloop in sdl client (otherwise use 1357 gameloop optimised for X11) 1358 --enable-sound enable OpenAL sound 1359 --disable-dependency-tracking speeds up one-time build 1360 --enable-dependency-tracking do not reject slow dependency extractors 1361 --disable-sdltest Do not try to compile and run a test SDL program 1362 1363Optional Packages: 1364 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1365 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1366 --with-x use the X Window System 1367 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1368 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1369 1370Some influential environment variables: 1371 CC C compiler command 1372 CFLAGS C compiler flags 1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1374 nonstandard directory <lib dir> 1375 LIBS libraries to pass to the linker, e.g. -l<library> 1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1377 you have headers in a nonstandard directory <include dir> 1378 XMKMF Path to xmkmf, Makefile generator for X Window System 1379 CPP C preprocessor 1380 1381Use these variables to override the choices made by `configure' or to help 1382it to find libraries and programs with nonstandard names/locations. 1383 1384Report bugs to <xpilot-hacks@lists.sourceforge.net>. 1385_ACEOF 1386ac_status=$? 1387fi 1388 1389if test "$ac_init_help" = "recursive"; then 1390 # If there are subdirs, report their specific --help. 1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1392 test -d "$ac_dir" || continue 1393 ac_builddir=. 1394 1395case "$ac_dir" in 1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1397*) 1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1399 # A ".." for each directory in $ac_dir_suffix. 1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1401 case $ac_top_builddir_sub in 1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1404 esac ;; 1405esac 1406ac_abs_top_builddir=$ac_pwd 1407ac_abs_builddir=$ac_pwd$ac_dir_suffix 1408# for backward compatibility: 1409ac_top_builddir=$ac_top_build_prefix 1410 1411case $srcdir in 1412 .) # We are building in place. 1413 ac_srcdir=. 1414 ac_top_srcdir=$ac_top_builddir_sub 1415 ac_abs_top_srcdir=$ac_pwd ;; 1416 [\\/]* | ?:[\\/]* ) # Absolute name. 1417 ac_srcdir=$srcdir$ac_dir_suffix; 1418 ac_top_srcdir=$srcdir 1419 ac_abs_top_srcdir=$srcdir ;; 1420 *) # Relative name. 1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1422 ac_top_srcdir=$ac_top_build_prefix$srcdir 1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1424esac 1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1426 1427 cd "$ac_dir" || { ac_status=$?; continue; } 1428 # Check for guested configure. 1429 if test -f "$ac_srcdir/configure.gnu"; then 1430 echo && 1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1432 elif test -f "$ac_srcdir/configure"; then 1433 echo && 1434 $SHELL "$ac_srcdir/configure" --help=recursive 1435 else 1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1437 fi || ac_status=$? 1438 cd "$ac_pwd" || { ac_status=$?; break; } 1439 done 1440fi 1441 1442test -n "$ac_init_help" && exit $ac_status 1443if $ac_init_version; then 1444 cat <<\_ACEOF 1445XPilot NG configure 4.7.3 1446generated by GNU Autoconf 2.61 1447 1448Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1450This configure script is free software; the Free Software Foundation 1451gives unlimited permission to copy, distribute and modify it. 1452_ACEOF 1453 exit 1454fi 1455cat >config.log <<_ACEOF 1456This file contains any messages produced by compilers while 1457running configure, to aid debugging if configure makes a mistake. 1458 1459It was created by XPilot NG $as_me 4.7.3, which was 1460generated by GNU Autoconf 2.61. Invocation command line was 1461 1462 $ $0 $@ 1463 1464_ACEOF 1465exec 5>>config.log 1466{ 1467cat <<_ASUNAME 1468@%:@@%:@ --------- @%:@@%:@ 1469@%:@@%:@ Platform. @%:@@%:@ 1470@%:@@%:@ --------- @%:@@%:@ 1471 1472hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1473uname -m = `(uname -m) 2>/dev/null || echo unknown` 1474uname -r = `(uname -r) 2>/dev/null || echo unknown` 1475uname -s = `(uname -s) 2>/dev/null || echo unknown` 1476uname -v = `(uname -v) 2>/dev/null || echo unknown` 1477 1478/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1479/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1480 1481/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1482/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1483/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1484/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1485/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1486/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1487/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1488 1489_ASUNAME 1490 1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1492for as_dir in $PATH 1493do 1494 IFS=$as_save_IFS 1495 test -z "$as_dir" && as_dir=. 1496 echo "PATH: $as_dir" 1497done 1498IFS=$as_save_IFS 1499 1500} >&5 1501 1502cat >&5 <<_ACEOF 1503 1504 1505@%:@@%:@ ----------- @%:@@%:@ 1506@%:@@%:@ Core tests. @%:@@%:@ 1507@%:@@%:@ ----------- @%:@@%:@ 1508 1509_ACEOF 1510 1511 1512# Keep a trace of the command line. 1513# Strip out --no-create and --no-recursion so they do not pile up. 1514# Strip out --silent because we don't want to record it for future runs. 1515# Also quote any args containing shell meta-characters. 1516# Make two passes to allow for proper duplicate-argument suppression. 1517ac_configure_args= 1518ac_configure_args0= 1519ac_configure_args1= 1520ac_must_keep_next=false 1521for ac_pass in 1 2 1522do 1523 for ac_arg 1524 do 1525 case $ac_arg in 1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1528 | -silent | --silent | --silen | --sile | --sil) 1529 continue ;; 1530 *\'*) 1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1532 esac 1533 case $ac_pass in 1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1535 2) 1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1537 if test $ac_must_keep_next = true; then 1538 ac_must_keep_next=false # Got value, back to normal. 1539 else 1540 case $ac_arg in 1541 *=* | --config-cache | -C | -disable-* | --disable-* \ 1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1544 | -with-* | --with-* | -without-* | --without-* | --x) 1545 case "$ac_configure_args0 " in 1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1547 esac 1548 ;; 1549 -* ) ac_must_keep_next=true ;; 1550 esac 1551 fi 1552 ac_configure_args="$ac_configure_args '$ac_arg'" 1553 ;; 1554 esac 1555 done 1556done 1557$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1558$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1559 1560# When interrupted or exit'd, cleanup temporary files, and complete 1561# config.log. We remove comments because anyway the quotes in there 1562# would cause problems or look ugly. 1563# WARNING: Use '\'' to represent an apostrophe within the trap. 1564# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1565trap 'exit_status=$? 1566 # Save into config.log some information that might help in debugging. 1567 { 1568 echo 1569 1570 cat <<\_ASBOX 1571@%:@@%:@ ---------------- @%:@@%:@ 1572@%:@@%:@ Cache variables. @%:@@%:@ 1573@%:@@%:@ ---------------- @%:@@%:@ 1574_ASBOX 1575 echo 1576 # The following way of writing the cache mishandles newlines in values, 1577( 1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1579 eval ac_val=\$$ac_var 1580 case $ac_val in #( 1581 *${as_nl}*) 1582 case $ac_var in #( 1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1584echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1585 esac 1586 case $ac_var in #( 1587 _ | IFS | as_nl) ;; #( 1588 *) $as_unset $ac_var ;; 1589 esac ;; 1590 esac 1591 done 1592 (set) 2>&1 | 1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1594 *${as_nl}ac_space=\ *) 1595 sed -n \ 1596 "s/'\''/'\''\\\\'\'''\''/g; 1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1598 ;; #( 1599 *) 1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1601 ;; 1602 esac | 1603 sort 1604) 1605 echo 1606 1607 cat <<\_ASBOX 1608@%:@@%:@ ----------------- @%:@@%:@ 1609@%:@@%:@ Output variables. @%:@@%:@ 1610@%:@@%:@ ----------------- @%:@@%:@ 1611_ASBOX 1612 echo 1613 for ac_var in $ac_subst_vars 1614 do 1615 eval ac_val=\$$ac_var 1616 case $ac_val in 1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1618 esac 1619 echo "$ac_var='\''$ac_val'\''" 1620 done | sort 1621 echo 1622 1623 if test -n "$ac_subst_files"; then 1624 cat <<\_ASBOX 1625@%:@@%:@ ------------------- @%:@@%:@ 1626@%:@@%:@ File substitutions. @%:@@%:@ 1627@%:@@%:@ ------------------- @%:@@%:@ 1628_ASBOX 1629 echo 1630 for ac_var in $ac_subst_files 1631 do 1632 eval ac_val=\$$ac_var 1633 case $ac_val in 1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1635 esac 1636 echo "$ac_var='\''$ac_val'\''" 1637 done | sort 1638 echo 1639 fi 1640 1641 if test -s confdefs.h; then 1642 cat <<\_ASBOX 1643@%:@@%:@ ----------- @%:@@%:@ 1644@%:@@%:@ confdefs.h. @%:@@%:@ 1645@%:@@%:@ ----------- @%:@@%:@ 1646_ASBOX 1647 echo 1648 cat confdefs.h 1649 echo 1650 fi 1651 test "$ac_signal" != 0 && 1652 echo "$as_me: caught signal $ac_signal" 1653 echo "$as_me: exit $exit_status" 1654 } >&5 1655 rm -f core *.core core.conftest.* && 1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1657 exit $exit_status 1658' 0 1659for ac_signal in 1 2 13 15; do 1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1661done 1662ac_signal=0 1663 1664# confdefs.h avoids OS command line length limits that DEFS can exceed. 1665rm -f -r conftest* confdefs.h 1666 1667# Predefined preprocessor variables. 1668 1669cat >>confdefs.h <<_ACEOF 1670@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1671_ACEOF 1672 1673 1674cat >>confdefs.h <<_ACEOF 1675@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1676_ACEOF 1677 1678 1679cat >>confdefs.h <<_ACEOF 1680@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1681_ACEOF 1682 1683 1684cat >>confdefs.h <<_ACEOF 1685@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1686_ACEOF 1687 1688 1689cat >>confdefs.h <<_ACEOF 1690@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1691_ACEOF 1692 1693 1694# Let the site file select an alternate cache file if it wants to. 1695# Prefer explicitly selected file to automatically selected ones. 1696if test -n "$CONFIG_SITE"; then 1697 set x "$CONFIG_SITE" 1698elif test "x$prefix" != xNONE; then 1699 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1700else 1701 set x "$ac_default_prefix/share/config.site" \ 1702 "$ac_default_prefix/etc/config.site" 1703fi 1704shift 1705for ac_site_file 1706do 1707 if test -r "$ac_site_file"; then 1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1709echo "$as_me: loading site script $ac_site_file" >&6;} 1710 sed 's/^/| /' "$ac_site_file" >&5 1711 . "$ac_site_file" 1712 fi 1713done 1714 1715if test -r "$cache_file"; then 1716 # Some versions of bash will fail to source /dev/null (special 1717 # files actually), so we avoid doing that. 1718 if test -f "$cache_file"; then 1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1720echo "$as_me: loading cache $cache_file" >&6;} 1721 case $cache_file in 1722 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1723 *) . "./$cache_file";; 1724 esac 1725 fi 1726else 1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1728echo "$as_me: creating cache $cache_file" >&6;} 1729 >$cache_file 1730fi 1731 1732# Check that the precious variables saved in the cache have kept the same 1733# value. 1734ac_cache_corrupted=false 1735for ac_var in $ac_precious_vars; do 1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1737 eval ac_new_set=\$ac_env_${ac_var}_set 1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1739 eval ac_new_val=\$ac_env_${ac_var}_value 1740 case $ac_old_set,$ac_new_set in 1741 set,) 1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1743echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1744 ac_cache_corrupted=: ;; 1745 ,set) 1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1747echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1748 ac_cache_corrupted=: ;; 1749 ,);; 1750 *) 1751 if test "x$ac_old_val" != "x$ac_new_val"; then 1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1753echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1755echo "$as_me: former value: $ac_old_val" >&2;} 1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1757echo "$as_me: current value: $ac_new_val" >&2;} 1758 ac_cache_corrupted=: 1759 fi;; 1760 esac 1761 # Pass precious variables to config.status. 1762 if test "$ac_new_set" = set; then 1763 case $ac_new_val in 1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1765 *) ac_arg=$ac_var=$ac_new_val ;; 1766 esac 1767 case " $ac_configure_args " in 1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1770 esac 1771 fi 1772done 1773if $ac_cache_corrupted; then 1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1775echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1777echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1778 { (exit 1); exit 1; }; } 1779fi 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805ac_ext=c 1806ac_cpp='$CPP $CPPFLAGS' 1807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1809ac_compiler_gnu=$ac_cv_c_compiler_gnu 1810 1811 1812ac_aux_dir= 1813for ac_dir in config "$srcdir"/config; do 1814 if test -f "$ac_dir/install-sh"; then 1815 ac_aux_dir=$ac_dir 1816 ac_install_sh="$ac_aux_dir/install-sh -c" 1817 break 1818 elif test -f "$ac_dir/install.sh"; then 1819 ac_aux_dir=$ac_dir 1820 ac_install_sh="$ac_aux_dir/install.sh -c" 1821 break 1822 elif test -f "$ac_dir/shtool"; then 1823 ac_aux_dir=$ac_dir 1824 ac_install_sh="$ac_aux_dir/shtool install -c" 1825 break 1826 fi 1827done 1828if test -z "$ac_aux_dir"; then 1829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1830echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1831 { (exit 1); exit 1; }; } 1832fi 1833 1834# These three variables are undocumented and unsupported, 1835# and are intended to be withdrawn in a future Autoconf release. 1836# They can cause serious problems if a builder's source tree is in a directory 1837# whose full name contains unusual characters. 1838ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1839ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1840ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1841 1842 1843 1844 1845# Make sure we can run config.sub. 1846$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1847 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1848echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1849 { (exit 1); exit 1; }; } 1850 1851{ echo "$as_me:$LINENO: checking build system type" >&5 1852echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1853if test "${ac_cv_build+set}" = set; then 1854 echo $ECHO_N "(cached) $ECHO_C" >&6 1855else 1856 ac_build_alias=$build_alias 1857test "x$ac_build_alias" = x && 1858 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1859test "x$ac_build_alias" = x && 1860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1861echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1862 { (exit 1); exit 1; }; } 1863ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1865echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1866 { (exit 1); exit 1; }; } 1867 1868fi 1869{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1870echo "${ECHO_T}$ac_cv_build" >&6; } 1871case $ac_cv_build in 1872*-*-*) ;; 1873*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1874echo "$as_me: error: invalid value of canonical build" >&2;} 1875 { (exit 1); exit 1; }; };; 1876esac 1877build=$ac_cv_build 1878ac_save_IFS=$IFS; IFS='-' 1879set x $ac_cv_build 1880shift 1881build_cpu=$1 1882build_vendor=$2 1883shift; shift 1884# Remember, the first character of IFS is used to create $*, 1885# except with old shells: 1886build_os=$* 1887IFS=$ac_save_IFS 1888case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1889 1890 1891{ echo "$as_me:$LINENO: checking host system type" >&5 1892echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1893if test "${ac_cv_host+set}" = set; then 1894 echo $ECHO_N "(cached) $ECHO_C" >&6 1895else 1896 if test "x$host_alias" = x; then 1897 ac_cv_host=$ac_cv_build 1898else 1899 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1901echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1902 { (exit 1); exit 1; }; } 1903fi 1904 1905fi 1906{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1907echo "${ECHO_T}$ac_cv_host" >&6; } 1908case $ac_cv_host in 1909*-*-*) ;; 1910*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1911echo "$as_me: error: invalid value of canonical host" >&2;} 1912 { (exit 1); exit 1; }; };; 1913esac 1914host=$ac_cv_host 1915ac_save_IFS=$IFS; IFS='-' 1916set x $ac_cv_host 1917shift 1918host_cpu=$1 1919host_vendor=$2 1920shift; shift 1921# Remember, the first character of IFS is used to create $*, 1922# except with old shells: 1923host_os=$* 1924IFS=$ac_save_IFS 1925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1926 1927 1928{ echo "$as_me:$LINENO: checking target system type" >&5 1929echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1930if test "${ac_cv_target+set}" = set; then 1931 echo $ECHO_N "(cached) $ECHO_C" >&6 1932else 1933 if test "x$target_alias" = x; then 1934 ac_cv_target=$ac_cv_host 1935else 1936 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1939 { (exit 1); exit 1; }; } 1940fi 1941 1942fi 1943{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1944echo "${ECHO_T}$ac_cv_target" >&6; } 1945case $ac_cv_target in 1946*-*-*) ;; 1947*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1948echo "$as_me: error: invalid value of canonical target" >&2;} 1949 { (exit 1); exit 1; }; };; 1950esac 1951target=$ac_cv_target 1952ac_save_IFS=$IFS; IFS='-' 1953set x $ac_cv_target 1954shift 1955target_cpu=$1 1956target_vendor=$2 1957shift; shift 1958# Remember, the first character of IFS is used to create $*, 1959# except with old shells: 1960target_os=$* 1961IFS=$ac_save_IFS 1962case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1963 1964 1965# The aliases save the names the user supplied, while $host etc. 1966# will get canonicalized. 1967test -n "$target_alias" && 1968 test "$program_prefix$program_suffix$program_transform_name" = \ 1969 NONENONEs,x,x, && 1970 program_prefix=${target_alias}- 1971 1972am__api_version='1.10' 1973 1974# Find a good install program. We prefer a C program (faster), 1975# so one script is as good as another. But avoid the broken or 1976# incompatible versions: 1977# SysV /etc/install, /usr/sbin/install 1978# SunOS /usr/etc/install 1979# IRIX /sbin/install 1980# AIX /bin/install 1981# AmigaOS /C/install, which installs bootblocks on floppy discs 1982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1983# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1985# OS/2's system install, which has a completely different semantic 1986# ./install, which can be erroneously created by make from ./install.sh. 1987{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1989if test -z "$INSTALL"; then 1990if test "${ac_cv_path_install+set}" = set; then 1991 echo $ECHO_N "(cached) $ECHO_C" >&6 1992else 1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 # Account for people who put trailing slashes in PATH elements. 1999case $as_dir/ in 2000 ./ | .// | /cC/* | \ 2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2003 /usr/ucb/* ) ;; 2004 *) 2005 # OSF1 and SCO ODT 3.0 have their own names for install. 2006 # Don't use installbsd from OSF since it installs stuff as root 2007 # by default. 2008 for ac_prog in ginstall scoinst install; do 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2011 if test $ac_prog = install && 2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2013 # AIX install. It has an incompatible calling convention. 2014 : 2015 elif test $ac_prog = install && 2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2017 # program-specific install script used by HP pwplus--don't use. 2018 : 2019 else 2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2021 break 3 2022 fi 2023 fi 2024 done 2025 done 2026 ;; 2027esac 2028done 2029IFS=$as_save_IFS 2030 2031 2032fi 2033 if test "${ac_cv_path_install+set}" = set; then 2034 INSTALL=$ac_cv_path_install 2035 else 2036 # As a last resort, use the slow shell script. Don't cache a 2037 # value for INSTALL within a source directory, because that will 2038 # break other packages using the cache if that directory is 2039 # removed, or if the value is a relative name. 2040 INSTALL=$ac_install_sh 2041 fi 2042fi 2043{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2044echo "${ECHO_T}$INSTALL" >&6; } 2045 2046# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2047# It thinks the first close brace ends the variable substitution. 2048test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2049 2050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2051 2052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2053 2054{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2055echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2056# Just in case 2057sleep 1 2058echo timestamp > conftest.file 2059# Do `set' in a subshell so we don't clobber the current shell's 2060# arguments. Must try -L first in case configure is actually a 2061# symlink; some systems play weird games with the mod time of symlinks 2062# (eg FreeBSD returns the mod time of the symlink's containing 2063# directory). 2064if ( 2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2066 if test "$*" = "X"; then 2067 # -L didn't work. 2068 set X `ls -t $srcdir/configure conftest.file` 2069 fi 2070 rm -f conftest.file 2071 if test "$*" != "X $srcdir/configure conftest.file" \ 2072 && test "$*" != "X conftest.file $srcdir/configure"; then 2073 2074 # If neither matched, then we have a broken ls. This can happen 2075 # if, for instance, CONFIG_SHELL is bash and it inherits a 2076 # broken ls alias from the environment. This has actually 2077 # happened. Such a system could not be considered "sane". 2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2079alias in your environment" >&5 2080echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2081alias in your environment" >&2;} 2082 { (exit 1); exit 1; }; } 2083 fi 2084 2085 test "$2" = conftest.file 2086 ) 2087then 2088 # Ok. 2089 : 2090else 2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2092Check your system clock" >&5 2093echo "$as_me: error: newly created file is older than distributed files! 2094Check your system clock" >&2;} 2095 { (exit 1); exit 1; }; } 2096fi 2097{ echo "$as_me:$LINENO: result: yes" >&5 2098echo "${ECHO_T}yes" >&6; } 2099test "$program_prefix" != NONE && 2100 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2101# Use a double $ so make ignores it. 2102test "$program_suffix" != NONE && 2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2104# Double any \ or $. echo might interpret backslashes. 2105# By default was `s,x,x', remove it if useless. 2106cat <<\_ACEOF >conftest.sed 2107s/[\\$]/&&/g;s/;s,x,x,$// 2108_ACEOF 2109program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2110rm -f conftest.sed 2111 2112# expand $ac_aux_dir to an absolute path 2113am_aux_dir=`cd $ac_aux_dir && pwd` 2114 2115test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2116# Use eval to expand $SHELL 2117if eval "$MISSING --run true"; then 2118 am_missing_run="$MISSING --run " 2119else 2120 am_missing_run= 2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2122echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2123fi 2124 2125{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2126echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2127if test -z "$MKDIR_P"; then 2128 if test "${ac_cv_path_mkdir+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 for ac_prog in mkdir gmkdir; do 2137 for ac_exec_ext in '' $ac_executable_extensions; do 2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2140 'mkdir (GNU coreutils) '* | \ 2141 'mkdir (coreutils) '* | \ 2142 'mkdir (fileutils) '4.1*) 2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2144 break 3;; 2145 esac 2146 done 2147 done 2148done 2149IFS=$as_save_IFS 2150 2151fi 2152 2153 if test "${ac_cv_path_mkdir+set}" = set; then 2154 MKDIR_P="$ac_cv_path_mkdir -p" 2155 else 2156 # As a last resort, use the slow shell script. Don't cache a 2157 # value for MKDIR_P within a source directory, because that will 2158 # break other packages using the cache if that directory is 2159 # removed, or if the value is a relative name. 2160 test -d ./--version && rmdir ./--version 2161 MKDIR_P="$ac_install_sh -d" 2162 fi 2163fi 2164{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2165echo "${ECHO_T}$MKDIR_P" >&6; } 2166 2167mkdir_p="$MKDIR_P" 2168case $mkdir_p in 2169 [\\/$]* | ?:[\\/]*) ;; 2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2171esac 2172 2173for ac_prog in gawk mawk nawk awk 2174do 2175 # Extract the first word of "$ac_prog", so it can be a program name with args. 2176set dummy $ac_prog; ac_word=$2 2177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2179if test "${ac_cv_prog_AWK+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$AWK"; then 2183 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_AWK="$ac_prog" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198IFS=$as_save_IFS 2199 2200fi 2201fi 2202AWK=$ac_cv_prog_AWK 2203if test -n "$AWK"; then 2204 { echo "$as_me:$LINENO: result: $AWK" >&5 2205echo "${ECHO_T}$AWK" >&6; } 2206else 2207 { echo "$as_me:$LINENO: result: no" >&5 2208echo "${ECHO_T}no" >&6; } 2209fi 2210 2211 2212 test -n "$AWK" && break 2213done 2214 2215{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2217set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2218if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 cat >conftest.make <<\_ACEOF 2222SHELL = /bin/sh 2223all: 2224 @echo '@@@%%%=$(MAKE)=@@@%%%' 2225_ACEOF 2226# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2227case `${MAKE-make} -f conftest.make 2>/dev/null` in 2228 *@@@%%%=?*=@@@%%%*) 2229 eval ac_cv_prog_make_${ac_make}_set=yes;; 2230 *) 2231 eval ac_cv_prog_make_${ac_make}_set=no;; 2232esac 2233rm -f conftest.make 2234fi 2235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2236 { echo "$as_me:$LINENO: result: yes" >&5 2237echo "${ECHO_T}yes" >&6; } 2238 SET_MAKE= 2239else 2240 { echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6; } 2242 SET_MAKE="MAKE=${MAKE-make}" 2243fi 2244 2245rm -rf .tst 2>/dev/null 2246mkdir .tst 2>/dev/null 2247if test -d .tst; then 2248 am__leading_dot=. 2249else 2250 am__leading_dot=_ 2251fi 2252rmdir .tst 2>/dev/null 2253 2254if test "`cd $srcdir && pwd`" != "`pwd`"; then 2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2256 # is not polluted with repeated "-I." 2257 am__isrc=' -I$(srcdir)' 2258 # test to see if srcdir already configured 2259 if test -f $srcdir/config.status; then 2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2261echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264fi 2265 2266# test whether we have cygpath 2267if test -z "$CYGPATH_W"; then 2268 if (cygpath --version) >/dev/null 2>/dev/null; then 2269 CYGPATH_W='cygpath -w' 2270 else 2271 CYGPATH_W=echo 2272 fi 2273fi 2274 2275 2276# Define the identity of the package. 2277 PACKAGE='xpilot-ng' 2278 VERSION='4.7.3' 2279 2280 2281cat >>confdefs.h <<_ACEOF 2282@%:@define PACKAGE "$PACKAGE" 2283_ACEOF 2284 2285 2286cat >>confdefs.h <<_ACEOF 2287@%:@define VERSION "$VERSION" 2288_ACEOF 2289 2290# Some tools Automake needs. 2291 2292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2293 2294 2295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2296 2297 2298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2299 2300 2301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2302 2303 2304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2305 2306install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2307 2308# Installed binaries are usually stripped using `strip' when the user 2309# run `make install-strip'. However `strip' might not be the right 2310# tool to use in cross-compilation environments, therefore Automake 2311# will honor the `STRIP' environment variable to overrule this program. 2312if test "$cross_compiling" != no; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}strip; ac_word=$2 2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2318if test "${ac_cv_prog_STRIP+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$STRIP"; then 2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337IFS=$as_save_IFS 2338 2339fi 2340fi 2341STRIP=$ac_cv_prog_STRIP 2342if test -n "$STRIP"; then 2343 { echo "$as_me:$LINENO: result: $STRIP" >&5 2344echo "${ECHO_T}$STRIP" >&6; } 2345else 2346 { echo "$as_me:$LINENO: result: no" >&5 2347echo "${ECHO_T}no" >&6; } 2348fi 2349 2350 2351fi 2352if test -z "$ac_cv_prog_STRIP"; then 2353 ac_ct_STRIP=$STRIP 2354 # Extract the first word of "strip", so it can be a program name with args. 2355set dummy strip; ac_word=$2 2356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 if test -n "$ac_ct_STRIP"; then 2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2363else 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2371 ac_cv_prog_ac_ct_STRIP="strip" 2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377IFS=$as_save_IFS 2378 2379fi 2380fi 2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2382if test -n "$ac_ct_STRIP"; then 2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2384echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2385else 2386 { echo "$as_me:$LINENO: result: no" >&5 2387echo "${ECHO_T}no" >&6; } 2388fi 2389 2390 if test "x$ac_ct_STRIP" = x; then 2391 STRIP=":" 2392 else 2393 case $cross_compiling:$ac_tool_warned in 2394yes:) 2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2396whose name does not start with the host triplet. If you think this 2397configuration is useful to you, please write to autoconf@gnu.org." >&5 2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2399whose name does not start with the host triplet. If you think this 2400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 STRIP=$ac_ct_STRIP 2404 fi 2405else 2406 STRIP="$ac_cv_prog_STRIP" 2407fi 2408 2409fi 2410INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2411 2412# We need awk for the "check" target. The system "awk" is bad on 2413# some platforms. 2414# Always define AMTAR for backward compatibility. 2415 2416AMTAR=${AMTAR-"${am_missing_run}tar"} 2417 2418am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2419 2420 2421 2422 2423 2424{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2425echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2426 # Check whether --enable-maintainer-mode was given. 2427if test "${enable_maintainer_mode+set}" = set; then 2428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2429else 2430 USE_MAINTAINER_MODE=no 2431fi 2432 2433 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2434echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2435 if test $USE_MAINTAINER_MODE = yes; then 2436 MAINTAINER_MODE_TRUE= 2437 MAINTAINER_MODE_FALSE='#' 2438else 2439 MAINTAINER_MODE_TRUE='#' 2440 MAINTAINER_MODE_FALSE= 2441fi 2442 2443 MAINT=$MAINTAINER_MODE_TRUE 2444 2445 2446ac_config_headers="$ac_config_headers config.h" 2447 2448 2449XP_AUTHORS="Bj�rn Stabell, Ken Ronny Schouten, Bert Gijsbers, Dick Balaska, Uoti Urpala, Juha Lindstr�m, Kristian S�derblom and Erik Andersson" 2450 2451 2452XP_COPYRIGHTDATE="1991-2005" 2453 2454 2455XP_COPYRIGHT="Copyright � $XP_COPYRIGHTDATE by $XP_AUTHORS" 2456 2457 2458XP_RELEASEDATE="Sep 16, 2005" 2459 2460XP_DATADIR="$prefix/share/xpilot-ng" 2461 2462 2463# Check whether --enable-dbe was given. 2464if test "${enable_dbe+set}" = set; then 2465 enableval=$enable_dbe; if test x$enable_dbe = xyes; then 2466 2467cat >>confdefs.h <<\_ACEOF 2468@%:@define DBE 1 2469_ACEOF 2470 2471fi 2472fi 2473 2474 2475# Check whether --enable-mbx was given. 2476if test "${enable_mbx+set}" = set; then 2477 enableval=$enable_mbx; if test x$enable_mbx = xyes; then 2478 2479cat >>confdefs.h <<\_ACEOF 2480@%:@define MBX 1 2481_ACEOF 2482 2483fi 2484fi 2485 2486 2487# Check whether --enable-plockserver was given. 2488if test "${enable_plockserver+set}" = set; then 2489 enableval=$enable_plockserver; if test x$enable_plockserver = xyes; then 2490 2491cat >>confdefs.h <<\_ACEOF 2492@%:@define PLOCKSERVER 1 2493_ACEOF 2494 2495fi 2496fi 2497 2498 2499# Check whether --enable-development was given. 2500if test "${enable_development+set}" = set; then 2501 enableval=$enable_development; if test x$enable_development = xyes; then 2502 2503cat >>confdefs.h <<\_ACEOF 2504@%:@define DEVELOPMENT 1 2505_ACEOF 2506 2507fi 2508fi 2509 2510 2511# Check whether --enable-select_sched was given. 2512if test "${enable_select_sched+set}" = set; then 2513 enableval=$enable_select_sched; 2514fi 2515 2516 2517# Check whether --enable-replay was given. 2518if test "${enable_replay+set}" = set; then 2519 enableval=$enable_replay; 2520else 2521 enable_replay=yes; need_x=yes 2522fi 2523 2524 2525# Check whether --enable-xp_mapedit was given. 2526if test "${enable_xp_mapedit+set}" = set; then 2527 enableval=$enable_xp_mapedit; 2528else 2529 enable_xp_mapedit=yes; need_x=yes 2530fi 2531 2532 2533# Check whether --enable-x11_client was given. 2534if test "${enable_x11_client+set}" = set; then 2535 enableval=$enable_x11_client; 2536else 2537 enable_x11_client=yes; need_x=yes; need_libxpclient=yes 2538fi 2539 2540 2541# Check whether --enable-sdl_client was given. 2542if test "${enable_sdl_client+set}" = set; then 2543 enableval=$enable_sdl_client; 2544else 2545 enable_sdl_client=yes; need_x=yes; need_libxpclient=yes 2546fi 2547 2548if test x$enable_sdl_client = xyes; then 2549 2550cat >>confdefs.h <<\_ACEOF 2551@%:@define SDL_CLIENT 1 2552_ACEOF 2553 2554fi 2555 2556# Check whether --enable-sdl_gameloop was given. 2557if test "${enable_sdl_gameloop+set}" = set; then 2558 enableval=$enable_sdl_gameloop; 2559fi 2560 2561 2562# Check whether --enable-sound was given. 2563if test "${enable_sound+set}" = set; then 2564 enableval=$enable_sound; 2565fi 2566 2567 2568ac_ext=c 2569ac_cpp='$CPP $CPPFLAGS' 2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573if test -n "$ac_tool_prefix"; then 2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2575set dummy ${ac_tool_prefix}gcc; ac_word=$2 2576{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2578if test "${ac_cv_prog_CC+set}" = set; then 2579 echo $ECHO_N "(cached) $ECHO_C" >&6 2580else 2581 if test -n "$CC"; then 2582 ac_cv_prog_CC="$CC" # Let the user override the test. 2583else 2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 test -z "$as_dir" && as_dir=. 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2591 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596done 2597IFS=$as_save_IFS 2598 2599fi 2600fi 2601CC=$ac_cv_prog_CC 2602if test -n "$CC"; then 2603 { echo "$as_me:$LINENO: result: $CC" >&5 2604echo "${ECHO_T}$CC" >&6; } 2605else 2606 { echo "$as_me:$LINENO: result: no" >&5 2607echo "${ECHO_T}no" >&6; } 2608fi 2609 2610 2611fi 2612if test -z "$ac_cv_prog_CC"; then 2613 ac_ct_CC=$CC 2614 # Extract the first word of "gcc", so it can be a program name with args. 2615set dummy gcc; ac_word=$2 2616{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2619 echo $ECHO_N "(cached) $ECHO_C" >&6 2620else 2621 if test -n "$ac_ct_CC"; then 2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2631 ac_cv_prog_ac_ct_CC="gcc" 2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641ac_ct_CC=$ac_cv_prog_ac_ct_CC 2642if test -n "$ac_ct_CC"; then 2643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2644echo "${ECHO_T}$ac_ct_CC" >&6; } 2645else 2646 { echo "$as_me:$LINENO: result: no" >&5 2647echo "${ECHO_T}no" >&6; } 2648fi 2649 2650 if test "x$ac_ct_CC" = x; then 2651 CC="" 2652 else 2653 case $cross_compiling:$ac_tool_warned in 2654yes:) 2655{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2656whose name does not start with the host triplet. If you think this 2657configuration is useful to you, please write to autoconf@gnu.org." >&5 2658echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2659whose name does not start with the host triplet. If you think this 2660configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 CC=$ac_ct_CC 2664 fi 2665else 2666 CC="$ac_cv_prog_CC" 2667fi 2668 2669if test -z "$CC"; then 2670 if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}cc; ac_word=$2 2673{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2675if test "${ac_cv_prog_CC+set}" = set; then 2676 echo $ECHO_N "(cached) $ECHO_C" >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2688 ac_cv_prog_CC="${ac_tool_prefix}cc" 2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { echo "$as_me:$LINENO: result: $CC" >&5 2701echo "${ECHO_T}$CC" >&6; } 2702else 2703 { echo "$as_me:$LINENO: result: no" >&5 2704echo "${ECHO_T}no" >&6; } 2705fi 2706 2707 2708 fi 2709fi 2710if test -z "$CC"; then 2711 # Extract the first word of "cc", so it can be a program name with args. 2712set dummy cc; ac_word=$2 2713{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2715if test "${ac_cv_prog_CC+set}" = set; then 2716 echo $ECHO_N "(cached) $ECHO_C" >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721 ac_prog_rejected=no 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2730 ac_prog_rejected=yes 2731 continue 2732 fi 2733 ac_cv_prog_CC="cc" 2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738done 2739IFS=$as_save_IFS 2740 2741if test $ac_prog_rejected = yes; then 2742 # We found a bogon in the path, so make sure we never use it. 2743 set dummy $ac_cv_prog_CC 2744 shift 2745 if test $@%:@ != 0; then 2746 # We chose a different compiler from the bogus one. 2747 # However, it has the same basename, so the bogon will be chosen 2748 # first if we set CC to just the basename; use the full file name. 2749 shift 2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2751 fi 2752fi 2753fi 2754fi 2755CC=$ac_cv_prog_CC 2756if test -n "$CC"; then 2757 { echo "$as_me:$LINENO: result: $CC" >&5 2758echo "${ECHO_T}$CC" >&6; } 2759else 2760 { echo "$as_me:$LINENO: result: no" >&5 2761echo "${ECHO_T}no" >&6; } 2762fi 2763 2764 2765fi 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 for ac_prog in cl.exe 2769 do 2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2774if test "${ac_cv_prog_CC+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { echo "$as_me:$LINENO: result: $CC" >&5 2800echo "${ECHO_T}$CC" >&6; } 2801else 2802 { echo "$as_me:$LINENO: result: no" >&5 2803echo "${ECHO_T}no" >&6; } 2804fi 2805 2806 2807 test -n "$CC" && break 2808 done 2809fi 2810if test -z "$CC"; then 2811 ac_ct_CC=$CC 2812 for ac_prog in cl.exe 2813do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2819 echo $ECHO_N "(cached) $ECHO_C" >&6 2820else 2821 if test -n "$ac_ct_CC"; then 2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 ac_cv_prog_ac_ct_CC="$ac_prog" 2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836done 2837IFS=$as_save_IFS 2838 2839fi 2840fi 2841ac_ct_CC=$ac_cv_prog_ac_ct_CC 2842if test -n "$ac_ct_CC"; then 2843 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2844echo "${ECHO_T}$ac_ct_CC" >&6; } 2845else 2846 { echo "$as_me:$LINENO: result: no" >&5 2847echo "${ECHO_T}no" >&6; } 2848fi 2849 2850 2851 test -n "$ac_ct_CC" && break 2852done 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2860whose name does not start with the host triplet. If you think this 2861configuration is useful to you, please write to autoconf@gnu.org." >&5 2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2863whose name does not start with the host triplet. If you think this 2864configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2865ac_tool_warned=yes ;; 2866esac 2867 CC=$ac_ct_CC 2868 fi 2869fi 2870 2871fi 2872 2873 2874test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2875See \`config.log' for more details." >&5 2876echo "$as_me: error: no acceptable C compiler found in \$PATH 2877See \`config.log' for more details." >&2;} 2878 { (exit 1); exit 1; }; } 2879 2880# Provide some information about the compiler. 2881echo "$as_me:$LINENO: checking for C compiler version" >&5 2882ac_compiler=`set X $ac_compile; echo $2` 2883{ (ac_try="$ac_compiler --version >&5" 2884case "(($ac_try" in 2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2886 *) ac_try_echo=$ac_try;; 2887esac 2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2889 (eval "$ac_compiler --version >&5") 2>&5 2890 ac_status=$? 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); } 2893{ (ac_try="$ac_compiler -v >&5" 2894case "(($ac_try" in 2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2896 *) ac_try_echo=$ac_try;; 2897esac 2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2899 (eval "$ac_compiler -v >&5") 2>&5 2900 ac_status=$? 2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 (exit $ac_status); } 2903{ (ac_try="$ac_compiler -V >&5" 2904case "(($ac_try" in 2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2906 *) ac_try_echo=$ac_try;; 2907esac 2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2909 (eval "$ac_compiler -V >&5") 2>&5 2910 ac_status=$? 2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); } 2913 2914cat >conftest.$ac_ext <<_ACEOF 2915/* confdefs.h. */ 2916_ACEOF 2917cat confdefs.h >>conftest.$ac_ext 2918cat >>conftest.$ac_ext <<_ACEOF 2919/* end confdefs.h. */ 2920 2921int 2922main () 2923{ 2924 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929ac_clean_files_save=$ac_clean_files 2930ac_clean_files="$ac_clean_files a.out a.exe b.out" 2931# Try to create an executable without -o first, disregard a.out. 2932# It will help us diagnose broken compilers, and finding out an intuition 2933# of exeext. 2934{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2935echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2936ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2937# 2938# List of possible output files, starting from the most likely. 2939# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2940# only as a last resort. b.out is created by i960 compilers. 2941ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2942# 2943# The IRIX 6 linker writes into existing files which may not be 2944# executable, retaining their permissions. Remove them first so a 2945# subsequent execution test works. 2946ac_rmfiles= 2947for ac_file in $ac_files 2948do 2949 case $ac_file in 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2952 esac 2953done 2954rm -f $ac_rmfiles 2955 2956if { (ac_try="$ac_link_default" 2957case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960esac 2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2962 (eval "$ac_link_default") 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); }; then 2966 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2967# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2968# in a Makefile. We should not override ac_cv_exeext if it was cached, 2969# so that the user can short-circuit this test for compilers unknown to 2970# Autoconf. 2971for ac_file in $ac_files '' 2972do 2973 test -f "$ac_file" || continue 2974 case $ac_file in 2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2976 ;; 2977 [ab].out ) 2978 # We found the default executable, but exeext='' is most 2979 # certainly right. 2980 break;; 2981 *.* ) 2982 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2983 then :; else 2984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2985 fi 2986 # We set ac_cv_exeext here because the later test for it is not 2987 # safe: cross compilers may not add the suffix if given an `-o' 2988 # argument, so we may need to know it at that point already. 2989 # Even if this section looks crufty: it has the advantage of 2990 # actually working. 2991 break;; 2992 * ) 2993 break;; 2994 esac 2995done 2996test "$ac_cv_exeext" = no && ac_cv_exeext= 2997 2998else 2999 ac_file='' 3000fi 3001 3002{ echo "$as_me:$LINENO: result: $ac_file" >&5 3003echo "${ECHO_T}$ac_file" >&6; } 3004if test -z "$ac_file"; then 3005 echo "$as_me: failed program was:" >&5 3006sed 's/^/| /' conftest.$ac_ext >&5 3007 3008{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3009See \`config.log' for more details." >&5 3010echo "$as_me: error: C compiler cannot create executables 3011See \`config.log' for more details." >&2;} 3012 { (exit 77); exit 77; }; } 3013fi 3014 3015ac_exeext=$ac_cv_exeext 3016 3017# Check that the compiler produces executables we can run. If not, either 3018# the compiler is broken, or we cross compile. 3019{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3020echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3022# If not cross compiling, check that we can run a simple program. 3023if test "$cross_compiling" != yes; then 3024 if { ac_try='./$ac_file' 3025 { (case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3030 (eval "$ac_try") 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; }; then 3034 cross_compiling=no 3035 else 3036 if test "$cross_compiling" = maybe; then 3037 cross_compiling=yes 3038 else 3039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3040If you meant to cross compile, use \`--host'. 3041See \`config.log' for more details." >&5 3042echo "$as_me: error: cannot run C compiled programs. 3043If you meant to cross compile, use \`--host'. 3044See \`config.log' for more details." >&2;} 3045 { (exit 1); exit 1; }; } 3046 fi 3047 fi 3048fi 3049{ echo "$as_me:$LINENO: result: yes" >&5 3050echo "${ECHO_T}yes" >&6; } 3051 3052rm -f a.out a.exe conftest$ac_cv_exeext b.out 3053ac_clean_files=$ac_clean_files_save 3054# Check that the compiler produces executables we can run. If not, either 3055# the compiler is broken, or we cross compile. 3056{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3057echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3058{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3059echo "${ECHO_T}$cross_compiling" >&6; } 3060 3061{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3062echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3063if { (ac_try="$ac_link" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3069 (eval "$ac_link") 2>&5 3070 ac_status=$? 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); }; then 3073 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3074# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3075# work properly (i.e., refer to `conftest.exe'), while it won't with 3076# `rm'. 3077for ac_file in conftest.exe conftest conftest.*; do 3078 test -f "$ac_file" || continue 3079 case $ac_file in 3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3082 break;; 3083 * ) break;; 3084 esac 3085done 3086else 3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3088See \`config.log' for more details." >&5 3089echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3090See \`config.log' for more details." >&2;} 3091 { (exit 1); exit 1; }; } 3092fi 3093 3094rm -f conftest$ac_cv_exeext 3095{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3096echo "${ECHO_T}$ac_cv_exeext" >&6; } 3097 3098rm -f conftest.$ac_ext 3099EXEEXT=$ac_cv_exeext 3100ac_exeext=$EXEEXT 3101{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3102echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3103if test "${ac_cv_objext+set}" = set; then 3104 echo $ECHO_N "(cached) $ECHO_C" >&6 3105else 3106 cat >conftest.$ac_ext <<_ACEOF 3107/* confdefs.h. */ 3108_ACEOF 3109cat confdefs.h >>conftest.$ac_ext 3110cat >>conftest.$ac_ext <<_ACEOF 3111/* end confdefs.h. */ 3112 3113int 3114main () 3115{ 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121rm -f conftest.o conftest.obj 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>&5 3129 ac_status=$? 3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3131 (exit $ac_status); }; then 3132 for ac_file in conftest.o conftest.obj conftest.*; do 3133 test -f "$ac_file" || continue; 3134 case $ac_file in 3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3137 break;; 3138 esac 3139done 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3145See \`config.log' for more details." >&5 3146echo "$as_me: error: cannot compute suffix of object files: cannot compile 3147See \`config.log' for more details." >&2;} 3148 { (exit 1); exit 1; }; } 3149fi 3150 3151rm -f conftest.$ac_cv_objext conftest.$ac_ext 3152fi 3153{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3154echo "${ECHO_T}$ac_cv_objext" >&6; } 3155OBJEXT=$ac_cv_objext 3156ac_objext=$OBJEXT 3157{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3158echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3159if test "${ac_cv_c_compiler_gnu+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 cat >conftest.$ac_ext <<_ACEOF 3163/* confdefs.h. */ 3164_ACEOF 3165cat confdefs.h >>conftest.$ac_ext 3166cat >>conftest.$ac_ext <<_ACEOF 3167/* end confdefs.h. */ 3168 3169int 3170main () 3171{ 3172#ifndef __GNUC__ 3173 choke me 3174#endif 3175 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180rm -f conftest.$ac_objext 3181if { (ac_try="$ac_compile" 3182case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3187 (eval "$ac_compile") 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } && { 3194 test -z "$ac_c_werror_flag" || 3195 test ! -s conftest.err 3196 } && test -s conftest.$ac_objext; then 3197 ac_compiler_gnu=yes 3198else 3199 echo "$as_me: failed program was:" >&5 3200sed 's/^/| /' conftest.$ac_ext >&5 3201 3202 ac_compiler_gnu=no 3203fi 3204 3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3206ac_cv_c_compiler_gnu=$ac_compiler_gnu 3207 3208fi 3209{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3210echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3211GCC=`test $ac_compiler_gnu = yes && echo yes` 3212ac_test_CFLAGS=${CFLAGS+set} 3213ac_save_CFLAGS=$CFLAGS 3214{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3215echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3216if test "${ac_cv_prog_cc_g+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 ac_save_c_werror_flag=$ac_c_werror_flag 3220 ac_c_werror_flag=yes 3221 ac_cv_prog_cc_g=no 3222 CFLAGS="-g" 3223 cat >conftest.$ac_ext <<_ACEOF 3224/* confdefs.h. */ 3225_ACEOF 3226cat confdefs.h >>conftest.$ac_ext 3227cat >>conftest.$ac_ext <<_ACEOF 3228/* end confdefs.h. */ 3229 3230int 3231main () 3232{ 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238rm -f conftest.$ac_objext 3239if { (ac_try="$ac_compile" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3245 (eval "$ac_compile") 2>conftest.er1 3246 ac_status=$? 3247 grep -v '^ *+' conftest.er1 >conftest.err 3248 rm -f conftest.er1 3249 cat conftest.err >&5 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); } && { 3252 test -z "$ac_c_werror_flag" || 3253 test ! -s conftest.err 3254 } && test -s conftest.$ac_objext; then 3255 ac_cv_prog_cc_g=yes 3256else 3257 echo "$as_me: failed program was:" >&5 3258sed 's/^/| /' conftest.$ac_ext >&5 3259 3260 CFLAGS="" 3261 cat >conftest.$ac_ext <<_ACEOF 3262/* confdefs.h. */ 3263_ACEOF 3264cat confdefs.h >>conftest.$ac_ext 3265cat >>conftest.$ac_ext <<_ACEOF 3266/* end confdefs.h. */ 3267 3268int 3269main () 3270{ 3271 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276rm -f conftest.$ac_objext 3277if { (ac_try="$ac_compile" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3283 (eval "$ac_compile") 2>conftest.er1 3284 ac_status=$? 3285 grep -v '^ *+' conftest.er1 >conftest.err 3286 rm -f conftest.er1 3287 cat conftest.err >&5 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } && { 3290 test -z "$ac_c_werror_flag" || 3291 test ! -s conftest.err 3292 } && test -s conftest.$ac_objext; then 3293 : 3294else 3295 echo "$as_me: failed program was:" >&5 3296sed 's/^/| /' conftest.$ac_ext >&5 3297 3298 ac_c_werror_flag=$ac_save_c_werror_flag 3299 CFLAGS="-g" 3300 cat >conftest.$ac_ext <<_ACEOF 3301/* confdefs.h. */ 3302_ACEOF 3303cat confdefs.h >>conftest.$ac_ext 3304cat >>conftest.$ac_ext <<_ACEOF 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315rm -f conftest.$ac_objext 3316if { (ac_try="$ac_compile" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3322 (eval "$ac_compile") 2>conftest.er1 3323 ac_status=$? 3324 grep -v '^ *+' conftest.er1 >conftest.err 3325 rm -f conftest.er1 3326 cat conftest.err >&5 3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3328 (exit $ac_status); } && { 3329 test -z "$ac_c_werror_flag" || 3330 test ! -s conftest.err 3331 } && test -s conftest.$ac_objext; then 3332 ac_cv_prog_cc_g=yes 3333else 3334 echo "$as_me: failed program was:" >&5 3335sed 's/^/| /' conftest.$ac_ext >&5 3336 3337 3338fi 3339 3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3341fi 3342 3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3344fi 3345 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3347 ac_c_werror_flag=$ac_save_c_werror_flag 3348fi 3349{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3351if test "$ac_test_CFLAGS" = set; then 3352 CFLAGS=$ac_save_CFLAGS 3353elif test $ac_cv_prog_cc_g = yes; then 3354 if test "$GCC" = yes; then 3355 CFLAGS="-g -O2" 3356 else 3357 CFLAGS="-g" 3358 fi 3359else 3360 if test "$GCC" = yes; then 3361 CFLAGS="-O2" 3362 else 3363 CFLAGS= 3364 fi 3365fi 3366{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3367echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3368if test "${ac_cv_prog_cc_c89+set}" = set; then 3369 echo $ECHO_N "(cached) $ECHO_C" >&6 3370else 3371 ac_cv_prog_cc_c89=no 3372ac_save_CC=$CC 3373cat >conftest.$ac_ext <<_ACEOF 3374/* confdefs.h. */ 3375_ACEOF 3376cat confdefs.h >>conftest.$ac_ext 3377cat >>conftest.$ac_ext <<_ACEOF 3378/* end confdefs.h. */ 3379#include <stdarg.h> 3380#include <stdio.h> 3381#include <sys/types.h> 3382#include <sys/stat.h> 3383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3384struct buf { int x; }; 3385FILE * (*rcsopen) (struct buf *, struct stat *, int); 3386static char *e (p, i) 3387 char **p; 3388 int i; 3389{ 3390 return p[i]; 3391} 3392static char *f (char * (*g) (char **, int), char **p, ...) 3393{ 3394 char *s; 3395 va_list v; 3396 va_start (v,p); 3397 s = g (p, va_arg (v,int)); 3398 va_end (v); 3399 return s; 3400} 3401 3402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3403 function prototypes and stuff, but not '\xHH' hex character constants. 3404 These don't provoke an error unfortunately, instead are silently treated 3405 as 'x'. The following induces an error, until -std is added to get 3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3407 array size at least. It's necessary to write '\x00'==0 to get something 3408 that's true only with -std. */ 3409int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3410 3411/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3412 inside strings and character constants. */ 3413#define FOO(x) 'x' 3414int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3415 3416int test (int i, double x); 3417struct s1 {int (*f) (int a);}; 3418struct s2 {int (*f) (double a);}; 3419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3420int argc; 3421char **argv; 3422int 3423main () 3424{ 3425return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3432do 3433 CC="$ac_save_CC $ac_arg" 3434 rm -f conftest.$ac_objext 3435if { (ac_try="$ac_compile" 3436case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439esac 3440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3441 (eval "$ac_compile") 2>conftest.er1 3442 ac_status=$? 3443 grep -v '^ *+' conftest.er1 >conftest.err 3444 rm -f conftest.er1 3445 cat conftest.err >&5 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } && { 3448 test -z "$ac_c_werror_flag" || 3449 test ! -s conftest.err 3450 } && test -s conftest.$ac_objext; then 3451 ac_cv_prog_cc_c89=$ac_arg 3452else 3453 echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456 3457fi 3458 3459rm -f core conftest.err conftest.$ac_objext 3460 test "x$ac_cv_prog_cc_c89" != "xno" && break 3461done 3462rm -f conftest.$ac_ext 3463CC=$ac_save_CC 3464 3465fi 3466# AC_CACHE_VAL 3467case "x$ac_cv_prog_cc_c89" in 3468 x) 3469 { echo "$as_me:$LINENO: result: none needed" >&5 3470echo "${ECHO_T}none needed" >&6; } ;; 3471 xno) 3472 { echo "$as_me:$LINENO: result: unsupported" >&5 3473echo "${ECHO_T}unsupported" >&6; } ;; 3474 *) 3475 CC="$CC $ac_cv_prog_cc_c89" 3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3477echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3478esac 3479 3480 3481ac_ext=c 3482ac_cpp='$CPP $CPPFLAGS' 3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3485ac_compiler_gnu=$ac_cv_c_compiler_gnu 3486DEPDIR="${am__leading_dot}deps" 3487 3488ac_config_commands="$ac_config_commands depfiles" 3489 3490 3491am_make=${MAKE-make} 3492cat > confinc << 'END' 3493am__doit: 3494 @echo done 3495.PHONY: am__doit 3496END 3497# If we don't find an include directive, just comment out the code. 3498{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3499echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3500am__include="#" 3501am__quote= 3502_am_result=none 3503# First try GNU make style include. 3504echo "include confinc" > confmf 3505# We grep out `Entering directory' and `Leaving directory' 3506# messages which can occur if `w' ends up in MAKEFLAGS. 3507# In particular we don't look at `^make:' because GNU make might 3508# be invoked under some other name (usually "gmake"), in which 3509# case it prints its new name instead of `make'. 3510if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3511 am__include=include 3512 am__quote= 3513 _am_result=GNU 3514fi 3515# Now try BSD make style include. 3516if test "$am__include" = "#"; then 3517 echo '.include "confinc"' > confmf 3518 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3519 am__include=.include 3520 am__quote="\"" 3521 _am_result=BSD 3522 fi 3523fi 3524 3525 3526{ echo "$as_me:$LINENO: result: $_am_result" >&5 3527echo "${ECHO_T}$_am_result" >&6; } 3528rm -f confinc confmf 3529 3530# Check whether --enable-dependency-tracking was given. 3531if test "${enable_dependency_tracking+set}" = set; then 3532 enableval=$enable_dependency_tracking; 3533fi 3534 3535if test "x$enable_dependency_tracking" != xno; then 3536 am_depcomp="$ac_aux_dir/depcomp" 3537 AMDEPBACKSLASH='\' 3538fi 3539 if test "x$enable_dependency_tracking" != xno; then 3540 AMDEP_TRUE= 3541 AMDEP_FALSE='#' 3542else 3543 AMDEP_TRUE='#' 3544 AMDEP_FALSE= 3545fi 3546 3547 3548 3549depcc="$CC" am_compiler_list= 3550 3551{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3552echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3553if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555else 3556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3557 # We make a subdir and do the tests there. Otherwise we can end up 3558 # making bogus files that we don't know about and never remove. For 3559 # instance it was reported that on HP-UX the gcc test will end up 3560 # making a dummy file named `D' -- because `-MD' means `put the output 3561 # in D'. 3562 mkdir conftest.dir 3563 # Copy depcomp to subdir because otherwise we won't find it if we're 3564 # using a relative directory. 3565 cp "$am_depcomp" conftest.dir 3566 cd conftest.dir 3567 # We will build objects and dependencies in a subdirectory because 3568 # it helps to detect inapplicable dependency modes. For instance 3569 # both Tru64's cc and ICC support -MD to output dependencies as a 3570 # side effect of compilation, but ICC will put the dependencies in 3571 # the current directory while Tru64 will put them in the object 3572 # directory. 3573 mkdir sub 3574 3575 am_cv_CC_dependencies_compiler_type=none 3576 if test "$am_compiler_list" = ""; then 3577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3578 fi 3579 for depmode in $am_compiler_list; do 3580 # Setup a source with many dependencies, because some compilers 3581 # like to wrap large dependency lists on column 80 (with \), and 3582 # we should not choose a depcomp mode which is confused by this. 3583 # 3584 # We need to recreate these files for each test, as the compiler may 3585 # overwrite some of them when testing with obscure command lines. 3586 # This happens at least with the AIX C compiler. 3587 : > sub/conftest.c 3588 for i in 1 2 3 4 5 6; do 3589 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3590 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3591 # Solaris 8's {/usr,}/bin/sh. 3592 touch sub/conftst$i.h 3593 done 3594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3595 3596 case $depmode in 3597 nosideeffect) 3598 # after this tag, mechanisms are not by side-effect, so they'll 3599 # only be used when explicitly requested 3600 if test "x$enable_dependency_tracking" = xyes; then 3601 continue 3602 else 3603 break 3604 fi 3605 ;; 3606 none) break ;; 3607 esac 3608 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3609 # mode. It turns out that the SunPro C++ compiler does not properly 3610 # handle `-M -o', and we need to detect this. 3611 if depmode=$depmode \ 3612 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3614 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3615 >/dev/null 2>conftest.err && 3616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3618 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3620 # icc doesn't choke on unknown options, it will just issue warnings 3621 # or remarks (even with -Werror). So we grep stderr for any message 3622 # that says an option was ignored or not supported. 3623 # When given -MP, icc 7.0 and 7.1 complain thusly: 3624 # icc: Command line warning: ignoring option '-M'; no argument required 3625 # The diagnosis changed in icc 8.0: 3626 # icc: Command line remark: option '-MP' not supported 3627 if (grep 'ignoring option' conftest.err || 3628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3629 am_cv_CC_dependencies_compiler_type=$depmode 3630 break 3631 fi 3632 fi 3633 done 3634 3635 cd .. 3636 rm -rf conftest.dir 3637else 3638 am_cv_CC_dependencies_compiler_type=none 3639fi 3640 3641fi 3642{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3643echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3644CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3645 3646 if 3647 test "x$enable_dependency_tracking" != xno \ 3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3649 am__fastdepCC_TRUE= 3650 am__fastdepCC_FALSE='#' 3651else 3652 am__fastdepCC_TRUE='#' 3653 am__fastdepCC_FALSE= 3654fi 3655 3656 3657 3658 3659{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3660echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3661set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3662if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 cat >conftest.make <<\_ACEOF 3666SHELL = /bin/sh 3667all: 3668 @echo '@@@%%%=$(MAKE)=@@@%%%' 3669_ACEOF 3670# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3671case `${MAKE-make} -f conftest.make 2>/dev/null` in 3672 *@@@%%%=?*=@@@%%%*) 3673 eval ac_cv_prog_make_${ac_make}_set=yes;; 3674 *) 3675 eval ac_cv_prog_make_${ac_make}_set=no;; 3676esac 3677rm -f conftest.make 3678fi 3679if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3680 { echo "$as_me:$LINENO: result: yes" >&5 3681echo "${ECHO_T}yes" >&6; } 3682 SET_MAKE= 3683else 3684 { echo "$as_me:$LINENO: result: no" >&5 3685echo "${ECHO_T}no" >&6; } 3686 SET_MAKE="MAKE=${MAKE-make}" 3687fi 3688 3689if test -n "$ac_tool_prefix"; then 3690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3691set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3692{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3694if test "${ac_cv_prog_RANLIB+set}" = set; then 3695 echo $ECHO_N "(cached) $ECHO_C" >&6 3696else 3697 if test -n "$RANLIB"; then 3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3699else 3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3701for as_dir in $PATH 3702do 3703 IFS=$as_save_IFS 3704 test -z "$as_dir" && as_dir=. 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3709 break 2 3710 fi 3711done 3712done 3713IFS=$as_save_IFS 3714 3715fi 3716fi 3717RANLIB=$ac_cv_prog_RANLIB 3718if test -n "$RANLIB"; then 3719 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3720echo "${ECHO_T}$RANLIB" >&6; } 3721else 3722 { echo "$as_me:$LINENO: result: no" >&5 3723echo "${ECHO_T}no" >&6; } 3724fi 3725 3726 3727fi 3728if test -z "$ac_cv_prog_RANLIB"; then 3729 ac_ct_RANLIB=$RANLIB 3730 # Extract the first word of "ranlib", so it can be a program name with args. 3731set dummy ranlib; ac_word=$2 3732{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3734if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736else 3737 if test -n "$ac_ct_RANLIB"; then 3738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3739else 3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_exec_ext in '' $ac_executable_extensions; do 3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3747 ac_cv_prog_ac_ct_RANLIB="ranlib" 3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3749 break 2 3750 fi 3751done 3752done 3753IFS=$as_save_IFS 3754 3755fi 3756fi 3757ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3758if test -n "$ac_ct_RANLIB"; then 3759 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3760echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3761else 3762 { echo "$as_me:$LINENO: result: no" >&5 3763echo "${ECHO_T}no" >&6; } 3764fi 3765 3766 if test "x$ac_ct_RANLIB" = x; then 3767 RANLIB=":" 3768 else 3769 case $cross_compiling:$ac_tool_warned in 3770yes:) 3771{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3772whose name does not start with the host triplet. If you think this 3773configuration is useful to you, please write to autoconf@gnu.org." >&5 3774echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3775whose name does not start with the host triplet. If you think this 3776configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3777ac_tool_warned=yes ;; 3778esac 3779 RANLIB=$ac_ct_RANLIB 3780 fi 3781else 3782 RANLIB="$ac_cv_prog_RANLIB" 3783fi 3784 3785# Find a good install program. We prefer a C program (faster), 3786# so one script is as good as another. But avoid the broken or 3787# incompatible versions: 3788# SysV /etc/install, /usr/sbin/install 3789# SunOS /usr/etc/install 3790# IRIX /sbin/install 3791# AIX /bin/install 3792# AmigaOS /C/install, which installs bootblocks on floppy discs 3793# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3794# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3795# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3796# OS/2's system install, which has a completely different semantic 3797# ./install, which can be erroneously created by make from ./install.sh. 3798{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3799echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3800if test -z "$INSTALL"; then 3801if test "${ac_cv_path_install+set}" = set; then 3802 echo $ECHO_N "(cached) $ECHO_C" >&6 3803else 3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3805for as_dir in $PATH 3806do 3807 IFS=$as_save_IFS 3808 test -z "$as_dir" && as_dir=. 3809 # Account for people who put trailing slashes in PATH elements. 3810case $as_dir/ in 3811 ./ | .// | /cC/* | \ 3812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3813 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3814 /usr/ucb/* ) ;; 3815 *) 3816 # OSF1 and SCO ODT 3.0 have their own names for install. 3817 # Don't use installbsd from OSF since it installs stuff as root 3818 # by default. 3819 for ac_prog in ginstall scoinst install; do 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3822 if test $ac_prog = install && 3823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3824 # AIX install. It has an incompatible calling convention. 3825 : 3826 elif test $ac_prog = install && 3827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3828 # program-specific install script used by HP pwplus--don't use. 3829 : 3830 else 3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3832 break 3 3833 fi 3834 fi 3835 done 3836 done 3837 ;; 3838esac 3839done 3840IFS=$as_save_IFS 3841 3842 3843fi 3844 if test "${ac_cv_path_install+set}" = set; then 3845 INSTALL=$ac_cv_path_install 3846 else 3847 # As a last resort, use the slow shell script. Don't cache a 3848 # value for INSTALL within a source directory, because that will 3849 # break other packages using the cache if that directory is 3850 # removed, or if the value is a relative name. 3851 INSTALL=$ac_install_sh 3852 fi 3853fi 3854{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3855echo "${ECHO_T}$INSTALL" >&6; } 3856 3857# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3858# It thinks the first close brace ends the variable substitution. 3859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3860 3861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3862 3863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3864 3865 3866 3867 3868{ echo "$as_me:$LINENO: checking for cos in -lm" >&5 3869echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; } 3870if test "${ac_cv_lib_m_cos+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 ac_check_lib_save_LIBS=$LIBS 3874LIBS="-lm $LIBS" 3875cat >conftest.$ac_ext <<_ACEOF 3876/* confdefs.h. */ 3877_ACEOF 3878cat confdefs.h >>conftest.$ac_ext 3879cat >>conftest.$ac_ext <<_ACEOF 3880/* end confdefs.h. */ 3881 3882/* Override any GCC internal prototype to avoid an error. 3883 Use char because int might match the return type of a GCC 3884 builtin and then its argument prototype would still apply. */ 3885#ifdef __cplusplus 3886extern "C" 3887#endif 3888char cos (); 3889int 3890main () 3891{ 3892return cos (); 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897rm -f conftest.$ac_objext conftest$ac_exeext 3898if { (ac_try="$ac_link" 3899case "(($ac_try" in 3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3901 *) ac_try_echo=$ac_try;; 3902esac 3903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3904 (eval "$ac_link") 2>conftest.er1 3905 ac_status=$? 3906 grep -v '^ *+' conftest.er1 >conftest.err 3907 rm -f conftest.er1 3908 cat conftest.err >&5 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); } && { 3911 test -z "$ac_c_werror_flag" || 3912 test ! -s conftest.err 3913 } && test -s conftest$ac_exeext && 3914 $as_test_x conftest$ac_exeext; then 3915 ac_cv_lib_m_cos=yes 3916else 3917 echo "$as_me: failed program was:" >&5 3918sed 's/^/| /' conftest.$ac_ext >&5 3919 3920 ac_cv_lib_m_cos=no 3921fi 3922 3923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3924 conftest$ac_exeext conftest.$ac_ext 3925LIBS=$ac_check_lib_save_LIBS 3926fi 3927{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 3928echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; } 3929if test $ac_cv_lib_m_cos = yes; then 3930 cat >>confdefs.h <<_ACEOF 3931@%:@define HAVE_LIBM 1 3932_ACEOF 3933 3934 LIBS="-lm $LIBS" 3935 3936fi 3937 3938if test x$ac_cv_lib_m_cos != xyes; then 3939 { { echo "$as_me:$LINENO: error: *** Math library not found!" >&5 3940echo "$as_me: error: *** Math library not found!" >&2;} 3941 { (exit 1); exit 1; }; } 3942fi 3943 3944{ echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 3945echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } 3946if test "${ac_cv_lib_z_gzopen+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948else 3949 ac_check_lib_save_LIBS=$LIBS 3950LIBS="-lz $LIBS" 3951cat >conftest.$ac_ext <<_ACEOF 3952/* confdefs.h. */ 3953_ACEOF 3954cat confdefs.h >>conftest.$ac_ext 3955cat >>conftest.$ac_ext <<_ACEOF 3956/* end confdefs.h. */ 3957 3958/* Override any GCC internal prototype to avoid an error. 3959 Use char because int might match the return type of a GCC 3960 builtin and then its argument prototype would still apply. */ 3961#ifdef __cplusplus 3962extern "C" 3963#endif 3964char gzopen (); 3965int 3966main () 3967{ 3968return gzopen (); 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973rm -f conftest.$ac_objext conftest$ac_exeext 3974if { (ac_try="$ac_link" 3975case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3980 (eval "$ac_link") 2>conftest.er1 3981 ac_status=$? 3982 grep -v '^ *+' conftest.er1 >conftest.err 3983 rm -f conftest.er1 3984 cat conftest.err >&5 3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3986 (exit $ac_status); } && { 3987 test -z "$ac_c_werror_flag" || 3988 test ! -s conftest.err 3989 } && test -s conftest$ac_exeext && 3990 $as_test_x conftest$ac_exeext; then 3991 ac_cv_lib_z_gzopen=yes 3992else 3993 echo "$as_me: failed program was:" >&5 3994sed 's/^/| /' conftest.$ac_ext >&5 3995 3996 ac_cv_lib_z_gzopen=no 3997fi 3998 3999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4000 conftest$ac_exeext conftest.$ac_ext 4001LIBS=$ac_check_lib_save_LIBS 4002fi 4003{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 4004echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } 4005if test $ac_cv_lib_z_gzopen = yes; then 4006 cat >>confdefs.h <<_ACEOF 4007@%:@define HAVE_LIBZ 1 4008_ACEOF 4009 4010 LIBS="-lz $LIBS" 4011 4012fi 4013 4014if test x$ac_cv_lib_z_gzopen != xyes; then 4015 { { echo "$as_me:$LINENO: error: *** Required library zlib not found!" >&5 4016echo "$as_me: error: *** Required library zlib not found!" >&2;} 4017 { (exit 1); exit 1; }; } 4018fi 4019 4020{ echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 4021echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; } 4022if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then 4023 echo $ECHO_N "(cached) $ECHO_C" >&6 4024else 4025 ac_check_lib_save_LIBS=$LIBS 4026LIBS="-lexpat $LIBS" 4027cat >conftest.$ac_ext <<_ACEOF 4028/* confdefs.h. */ 4029_ACEOF 4030cat confdefs.h >>conftest.$ac_ext 4031cat >>conftest.$ac_ext <<_ACEOF 4032/* end confdefs.h. */ 4033 4034/* Override any GCC internal prototype to avoid an error. 4035 Use char because int might match the return type of a GCC 4036 builtin and then its argument prototype would still apply. */ 4037#ifdef __cplusplus 4038extern "C" 4039#endif 4040char XML_ParserCreate (); 4041int 4042main () 4043{ 4044return XML_ParserCreate (); 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049rm -f conftest.$ac_objext conftest$ac_exeext 4050if { (ac_try="$ac_link" 4051case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4056 (eval "$ac_link") 2>conftest.er1 4057 ac_status=$? 4058 grep -v '^ *+' conftest.er1 >conftest.err 4059 rm -f conftest.er1 4060 cat conftest.err >&5 4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4062 (exit $ac_status); } && { 4063 test -z "$ac_c_werror_flag" || 4064 test ! -s conftest.err 4065 } && test -s conftest$ac_exeext && 4066 $as_test_x conftest$ac_exeext; then 4067 ac_cv_lib_expat_XML_ParserCreate=yes 4068else 4069 echo "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072 ac_cv_lib_expat_XML_ParserCreate=no 4073fi 4074 4075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4076 conftest$ac_exeext conftest.$ac_ext 4077LIBS=$ac_check_lib_save_LIBS 4078fi 4079{ echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 4080echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; } 4081if test $ac_cv_lib_expat_XML_ParserCreate = yes; then 4082 cat >>confdefs.h <<_ACEOF 4083@%:@define HAVE_LIBEXPAT 1 4084_ACEOF 4085 4086 LIBS="-lexpat $LIBS" 4087 4088fi 4089 4090if test x$ac_cv_lib_expat_XML_ParserCreate != xyes; then 4091 { { echo "$as_me:$LINENO: error: *** Required library Expat not found!" >&5 4092echo "$as_me: error: *** Required library Expat not found!" >&2;} 4093 { (exit 1); exit 1; }; } 4094fi 4095 4096case "$target" in 4097 *-*-mingw32*) 4098 MATHLIB="" 4099 SYS_GL_LIBS="-lopengl32 -lglu32" 4100 windows_target=yes 4101 ;; 4102 *-*-beos*) 4103 MATHLIB="" 4104 SYS_GL_LIBS="-lGL" 4105 ;; 4106 *-*-linux*) 4107 MATHLIB="-lm" 4108 SYS_GL_LIBS="-L/usr/X11R6/lib -lGL -lGLU" 4109 ;; 4110 *-*-freebsd*) 4111 MATHLIB="-lm" 4112 SYS_GL_LIBS="-L/usr/X11R6/lib -lGL -lGLU" 4113 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include -I/usr/local/include" 4114 LDFLAGS="$LDFLAGS -L/usr/local/lib" 4115 ;; 4116 *) 4117 MATHLIB="-lm" 4118 SYS_GL_LIBS="-lGL -lGLU" 4119 ;; 4120esac 4121 4122if test x$windows_target = xyes; then 4123 W32_LIBS="-lmingw32 -lwsock32" 4124 4125 4126cat >>confdefs.h <<\_ACEOF 4127@%:@define _WINDOWS 1 4128_ACEOF 4129 4130 4131 enable_select_sched=yes 4132 enable_sdl_gameloop=yes 4133 enable_replay=no 4134 enable_xp_mapedit=no 4135 enable_x11_client=no 4136 need_x=no 4137fi 4138 4139ac_ext=c 4140ac_cpp='$CPP $CPPFLAGS' 4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143ac_compiler_gnu=$ac_cv_c_compiler_gnu 4144{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4145echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4146# On Suns, sometimes $CPP names a directory. 4147if test -n "$CPP" && test -d "$CPP"; then 4148 CPP= 4149fi 4150if test -z "$CPP"; then 4151 if test "${ac_cv_prog_CPP+set}" = set; then 4152 echo $ECHO_N "(cached) $ECHO_C" >&6 4153else 4154 # Double quotes because CPP needs to be expanded 4155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4156 do 4157 ac_preproc_ok=false 4158for ac_c_preproc_warn_flag in '' yes 4159do 4160 # Use a header file that comes with gcc, so configuring glibc 4161 # with a fresh cross-compiler works. 4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4163 # <limits.h> exists even on freestanding compilers. 4164 # On the NeXT, cc -E runs the code through the compiler's parser, 4165 # not just through cpp. "Syntax error" is here to catch this case. 4166 cat >conftest.$ac_ext <<_ACEOF 4167/* confdefs.h. */ 4168_ACEOF 4169cat confdefs.h >>conftest.$ac_ext 4170cat >>conftest.$ac_ext <<_ACEOF 4171/* end confdefs.h. */ 4172@%:@ifdef __STDC__ 4173@%:@ include <limits.h> 4174@%:@else 4175@%:@ include <assert.h> 4176@%:@endif 4177 Syntax error 4178_ACEOF 4179if { (ac_try="$ac_cpp conftest.$ac_ext" 4180case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183esac 4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } >/dev/null && { 4192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4193 test ! -s conftest.err 4194 }; then 4195 : 4196else 4197 echo "$as_me: failed program was:" >&5 4198sed 's/^/| /' conftest.$ac_ext >&5 4199 4200 # Broken: fails on valid input. 4201continue 4202fi 4203 4204rm -f conftest.err conftest.$ac_ext 4205 4206 # OK, works on sane cases. Now check whether nonexistent headers 4207 # can be detected and how. 4208 cat >conftest.$ac_ext <<_ACEOF 4209/* confdefs.h. */ 4210_ACEOF 4211cat confdefs.h >>conftest.$ac_ext 4212cat >>conftest.$ac_ext <<_ACEOF 4213/* end confdefs.h. */ 4214@%:@include <ac_nonexistent.h> 4215_ACEOF 4216if { (ac_try="$ac_cpp conftest.$ac_ext" 4217case "(($ac_try" in 4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4219 *) ac_try_echo=$ac_try;; 4220esac 4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4223 ac_status=$? 4224 grep -v '^ *+' conftest.er1 >conftest.err 4225 rm -f conftest.er1 4226 cat conftest.err >&5 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); } >/dev/null && { 4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4230 test ! -s conftest.err 4231 }; then 4232 # Broken: success on invalid input. 4233continue 4234else 4235 echo "$as_me: failed program was:" >&5 4236sed 's/^/| /' conftest.$ac_ext >&5 4237 4238 # Passes both tests. 4239ac_preproc_ok=: 4240break 4241fi 4242 4243rm -f conftest.err conftest.$ac_ext 4244 4245done 4246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4247rm -f conftest.err conftest.$ac_ext 4248if $ac_preproc_ok; then 4249 break 4250fi 4251 4252 done 4253 ac_cv_prog_CPP=$CPP 4254 4255fi 4256 CPP=$ac_cv_prog_CPP 4257else 4258 ac_cv_prog_CPP=$CPP 4259fi 4260{ echo "$as_me:$LINENO: result: $CPP" >&5 4261echo "${ECHO_T}$CPP" >&6; } 4262ac_preproc_ok=false 4263for ac_c_preproc_warn_flag in '' yes 4264do 4265 # Use a header file that comes with gcc, so configuring glibc 4266 # with a fresh cross-compiler works. 4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4268 # <limits.h> exists even on freestanding compilers. 4269 # On the NeXT, cc -E runs the code through the compiler's parser, 4270 # not just through cpp. "Syntax error" is here to catch this case. 4271 cat >conftest.$ac_ext <<_ACEOF 4272/* confdefs.h. */ 4273_ACEOF 4274cat confdefs.h >>conftest.$ac_ext 4275cat >>conftest.$ac_ext <<_ACEOF 4276/* end confdefs.h. */ 4277@%:@ifdef __STDC__ 4278@%:@ include <limits.h> 4279@%:@else 4280@%:@ include <assert.h> 4281@%:@endif 4282 Syntax error 4283_ACEOF 4284if { (ac_try="$ac_cpp conftest.$ac_ext" 4285case "(($ac_try" in 4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4287 *) ac_try_echo=$ac_try;; 4288esac 4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4291 ac_status=$? 4292 grep -v '^ *+' conftest.er1 >conftest.err 4293 rm -f conftest.er1 4294 cat conftest.err >&5 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); } >/dev/null && { 4297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4298 test ! -s conftest.err 4299 }; then 4300 : 4301else 4302 echo "$as_me: failed program was:" >&5 4303sed 's/^/| /' conftest.$ac_ext >&5 4304 4305 # Broken: fails on valid input. 4306continue 4307fi 4308 4309rm -f conftest.err conftest.$ac_ext 4310 4311 # OK, works on sane cases. Now check whether nonexistent headers 4312 # can be detected and how. 4313 cat >conftest.$ac_ext <<_ACEOF 4314/* confdefs.h. */ 4315_ACEOF 4316cat confdefs.h >>conftest.$ac_ext 4317cat >>conftest.$ac_ext <<_ACEOF 4318/* end confdefs.h. */ 4319@%:@include <ac_nonexistent.h> 4320_ACEOF 4321if { (ac_try="$ac_cpp conftest.$ac_ext" 4322case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325esac 4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4328 ac_status=$? 4329 grep -v '^ *+' conftest.er1 >conftest.err 4330 rm -f conftest.er1 4331 cat conftest.err >&5 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); } >/dev/null && { 4334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4335 test ! -s conftest.err 4336 }; then 4337 # Broken: success on invalid input. 4338continue 4339else 4340 echo "$as_me: failed program was:" >&5 4341sed 's/^/| /' conftest.$ac_ext >&5 4342 4343 # Passes both tests. 4344ac_preproc_ok=: 4345break 4346fi 4347 4348rm -f conftest.err conftest.$ac_ext 4349 4350done 4351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4352rm -f conftest.err conftest.$ac_ext 4353if $ac_preproc_ok; then 4354 : 4355else 4356 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4357See \`config.log' for more details." >&5 4358echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4359See \`config.log' for more details." >&2;} 4360 { (exit 1); exit 1; }; } 4361fi 4362 4363ac_ext=c 4364ac_cpp='$CPP $CPPFLAGS' 4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4367ac_compiler_gnu=$ac_cv_c_compiler_gnu 4368 4369 4370{ echo "$as_me:$LINENO: checking for X" >&5 4371echo $ECHO_N "checking for X... $ECHO_C" >&6; } 4372 4373 4374# Check whether --with-x was given. 4375if test "${with_x+set}" = set; then 4376 withval=$with_x; 4377fi 4378 4379# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4380if test "x$with_x" = xno; then 4381 # The user explicitly disabled X. 4382 have_x=disabled 4383else 4384 case $x_includes,$x_libraries in #( 4385 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 4386echo "$as_me: error: Cannot use X directory names containing '" >&2;} 4387 { (exit 1); exit 1; }; };; #( 4388 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390else 4391 # One or both of the vars are not set, and there is no cached value. 4392ac_x_includes=no ac_x_libraries=no 4393rm -f -r conftest.dir 4394if mkdir conftest.dir; then 4395 cd conftest.dir 4396 cat >Imakefile <<'_ACEOF' 4397incroot: 4398 @echo incroot='${INCROOT}' 4399usrlibdir: 4400 @echo usrlibdir='${USRLIBDIR}' 4401libdir: 4402 @echo libdir='${LIBDIR}' 4403_ACEOF 4404 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4406 for ac_var in incroot usrlibdir libdir; do 4407 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4408 done 4409 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4410 for ac_extension in a so sl; do 4411 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4412 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4413 ac_im_usrlibdir=$ac_im_libdir; break 4414 fi 4415 done 4416 # Screen out bogus values from the imake configuration. They are 4417 # bogus both because they are the default anyway, and because 4418 # using them would break gcc on systems where it needs fixed includes. 4419 case $ac_im_incroot in 4420 /usr/include) ac_x_includes= ;; 4421 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4422 esac 4423 case $ac_im_usrlibdir in 4424 /usr/lib | /lib) ;; 4425 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4426 esac 4427 fi 4428 cd .. 4429 rm -f -r conftest.dir 4430fi 4431 4432# Standard set of common directories for X headers. 4433# Check X11 before X11Rn because it is often a symlink to the current release. 4434ac_x_header_dirs=' 4435/usr/X11/include 4436/usr/X11R6/include 4437/usr/X11R5/include 4438/usr/X11R4/include 4439 4440/usr/include/X11 4441/usr/include/X11R6 4442/usr/include/X11R5 4443/usr/include/X11R4 4444 4445/usr/local/X11/include 4446/usr/local/X11R6/include 4447/usr/local/X11R5/include 4448/usr/local/X11R4/include 4449 4450/usr/local/include/X11 4451/usr/local/include/X11R6 4452/usr/local/include/X11R5 4453/usr/local/include/X11R4 4454 4455/usr/X386/include 4456/usr/x386/include 4457/usr/XFree86/include/X11 4458 4459/usr/include 4460/usr/local/include 4461/usr/unsupported/include 4462/usr/athena/include 4463/usr/local/x11r5/include 4464/usr/lpp/Xamples/include 4465 4466/usr/openwin/include 4467/usr/openwin/share/include' 4468 4469if test "$ac_x_includes" = no; then 4470 # Guess where to find include files, by looking for Xlib.h. 4471 # First, try using that file with no special directory specified. 4472 cat >conftest.$ac_ext <<_ACEOF 4473/* confdefs.h. */ 4474_ACEOF 4475cat confdefs.h >>conftest.$ac_ext 4476cat >>conftest.$ac_ext <<_ACEOF 4477/* end confdefs.h. */ 4478@%:@include <X11/Xlib.h> 4479_ACEOF 4480if { (ac_try="$ac_cpp conftest.$ac_ext" 4481case "(($ac_try" in 4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4483 *) ac_try_echo=$ac_try;; 4484esac 4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4487 ac_status=$? 4488 grep -v '^ *+' conftest.er1 >conftest.err 4489 rm -f conftest.er1 4490 cat conftest.err >&5 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); } >/dev/null && { 4493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4494 test ! -s conftest.err 4495 }; then 4496 # We can compile using X headers with no special include directory. 4497ac_x_includes= 4498else 4499 echo "$as_me: failed program was:" >&5 4500sed 's/^/| /' conftest.$ac_ext >&5 4501 4502 for ac_dir in $ac_x_header_dirs; do 4503 if test -r "$ac_dir/X11/Xlib.h"; then 4504 ac_x_includes=$ac_dir 4505 break 4506 fi 4507done 4508fi 4509 4510rm -f conftest.err conftest.$ac_ext 4511fi # $ac_x_includes = no 4512 4513if test "$ac_x_libraries" = no; then 4514 # Check for the libraries. 4515 # See if we find them without any special options. 4516 # Don't add to $LIBS permanently. 4517 ac_save_LIBS=$LIBS 4518 LIBS="-lX11 $LIBS" 4519 cat >conftest.$ac_ext <<_ACEOF 4520/* confdefs.h. */ 4521_ACEOF 4522cat confdefs.h >>conftest.$ac_ext 4523cat >>conftest.$ac_ext <<_ACEOF 4524/* end confdefs.h. */ 4525@%:@include <X11/Xlib.h> 4526int 4527main () 4528{ 4529XrmInitialize () 4530 ; 4531 return 0; 4532} 4533_ACEOF 4534rm -f conftest.$ac_objext conftest$ac_exeext 4535if { (ac_try="$ac_link" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4541 (eval "$ac_link") 2>conftest.er1 4542 ac_status=$? 4543 grep -v '^ *+' conftest.er1 >conftest.err 4544 rm -f conftest.er1 4545 cat conftest.err >&5 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); } && { 4548 test -z "$ac_c_werror_flag" || 4549 test ! -s conftest.err 4550 } && test -s conftest$ac_exeext && 4551 $as_test_x conftest$ac_exeext; then 4552 LIBS=$ac_save_LIBS 4553# We can link X programs with no special library path. 4554ac_x_libraries= 4555else 4556 echo "$as_me: failed program was:" >&5 4557sed 's/^/| /' conftest.$ac_ext >&5 4558 4559 LIBS=$ac_save_LIBS 4560for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4561do 4562 # Don't even attempt the hair of trying to link an X program! 4563 for ac_extension in a so sl; do 4564 if test -r "$ac_dir/libX11.$ac_extension"; then 4565 ac_x_libraries=$ac_dir 4566 break 2 4567 fi 4568 done 4569done 4570fi 4571 4572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4573 conftest$ac_exeext conftest.$ac_ext 4574fi # $ac_x_libraries = no 4575 4576case $ac_x_includes,$ac_x_libraries in #( 4577 no,* | *,no | *\'*) 4578 # Didn't find X, or a directory has "'" in its name. 4579 ac_cv_have_x="have_x=no";; #( 4580 *) 4581 # Record where we found X for the cache. 4582 ac_cv_have_x="have_x=yes\ 4583 ac_x_includes='$ac_x_includes'\ 4584 ac_x_libraries='$ac_x_libraries'" 4585esac 4586fi 4587;; #( 4588 *) have_x=yes;; 4589 esac 4590 eval "$ac_cv_have_x" 4591fi # $with_x != no 4592 4593if test "$have_x" != yes; then 4594 { echo "$as_me:$LINENO: result: $have_x" >&5 4595echo "${ECHO_T}$have_x" >&6; } 4596 no_x=yes 4597else 4598 # If each of the values was on the command line, it overrides each guess. 4599 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4600 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4601 # Update the cache value to reflect the command line values. 4602 ac_cv_have_x="have_x=yes\ 4603 ac_x_includes='$x_includes'\ 4604 ac_x_libraries='$x_libraries'" 4605 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4606echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 4607fi 4608 4609if test x$need_x = xyes; then 4610 if test x$no_x == xyes; then 4611 { { echo "$as_me:$LINENO: error: *** Couldn't find X headers or libraries!" >&5 4612echo "$as_me: error: *** Couldn't find X headers or libraries!" >&2;} 4613 { (exit 1); exit 1; }; } 4614 fi 4615 4616 if test "$no_x" = yes; then 4617 # Not all programs may use this symbol, but it does not hurt to define it. 4618 4619cat >>confdefs.h <<\_ACEOF 4620@%:@define X_DISPLAY_MISSING 1 4621_ACEOF 4622 4623 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4624else 4625 if test -n "$x_includes"; then 4626 X_CFLAGS="$X_CFLAGS -I$x_includes" 4627 fi 4628 4629 # It would also be nice to do this for all -L options, not just this one. 4630 if test -n "$x_libraries"; then 4631 X_LIBS="$X_LIBS -L$x_libraries" 4632 # For Solaris; some versions of Sun CC require a space after -R and 4633 # others require no space. Words are not sufficient . . . . 4634 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 4635echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 4636 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4637 ac_xsave_c_werror_flag=$ac_c_werror_flag 4638 ac_c_werror_flag=yes 4639 cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645 4646int 4647main () 4648{ 4649 4650 ; 4651 return 0; 4652} 4653_ACEOF 4654rm -f conftest.$ac_objext conftest$ac_exeext 4655if { (ac_try="$ac_link" 4656case "(($ac_try" in 4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 *) ac_try_echo=$ac_try;; 4659esac 4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4661 (eval "$ac_link") 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } && { 4668 test -z "$ac_c_werror_flag" || 4669 test ! -s conftest.err 4670 } && test -s conftest$ac_exeext && 4671 $as_test_x conftest$ac_exeext; then 4672 { echo "$as_me:$LINENO: result: no" >&5 4673echo "${ECHO_T}no" >&6; } 4674 X_LIBS="$X_LIBS -R$x_libraries" 4675else 4676 echo "$as_me: failed program was:" >&5 4677sed 's/^/| /' conftest.$ac_ext >&5 4678 4679 LIBS="$ac_xsave_LIBS -R $x_libraries" 4680 cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686 4687int 4688main () 4689{ 4690 4691 ; 4692 return 0; 4693} 4694_ACEOF 4695rm -f conftest.$ac_objext conftest$ac_exeext 4696if { (ac_try="$ac_link" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4702 (eval "$ac_link") 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } && { 4709 test -z "$ac_c_werror_flag" || 4710 test ! -s conftest.err 4711 } && test -s conftest$ac_exeext && 4712 $as_test_x conftest$ac_exeext; then 4713 { echo "$as_me:$LINENO: result: yes" >&5 4714echo "${ECHO_T}yes" >&6; } 4715 X_LIBS="$X_LIBS -R $x_libraries" 4716else 4717 echo "$as_me: failed program was:" >&5 4718sed 's/^/| /' conftest.$ac_ext >&5 4719 4720 { echo "$as_me:$LINENO: result: neither works" >&5 4721echo "${ECHO_T}neither works" >&6; } 4722fi 4723 4724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4725 conftest$ac_exeext conftest.$ac_ext 4726fi 4727 4728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4729 conftest$ac_exeext conftest.$ac_ext 4730 ac_c_werror_flag=$ac_xsave_c_werror_flag 4731 LIBS=$ac_xsave_LIBS 4732 fi 4733 4734 # Check for system-dependent libraries X programs must link with. 4735 # Do this before checking for the system-independent R6 libraries 4736 # (-lICE), since we may need -lsocket or whatever for X linking. 4737 4738 if test "$ISC" = yes; then 4739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 4740 else 4741 # Martyn Johnson says this is needed for Ultrix, if the X 4742 # libraries were built with DECnet support. And Karl Berry says 4743 # the Alpha needs dnet_stub (dnet does not exist). 4744 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 4745 cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751 4752/* Override any GCC internal prototype to avoid an error. 4753 Use char because int might match the return type of a GCC 4754 builtin and then its argument prototype would still apply. */ 4755#ifdef __cplusplus 4756extern "C" 4757#endif 4758char XOpenDisplay (); 4759int 4760main () 4761{ 4762return XOpenDisplay (); 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767rm -f conftest.$ac_objext conftest$ac_exeext 4768if { (ac_try="$ac_link" 4769case "(($ac_try" in 4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4771 *) ac_try_echo=$ac_try;; 4772esac 4773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4774 (eval "$ac_link") 2>conftest.er1 4775 ac_status=$? 4776 grep -v '^ *+' conftest.er1 >conftest.err 4777 rm -f conftest.er1 4778 cat conftest.err >&5 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } && { 4781 test -z "$ac_c_werror_flag" || 4782 test ! -s conftest.err 4783 } && test -s conftest$ac_exeext && 4784 $as_test_x conftest$ac_exeext; then 4785 : 4786else 4787 echo "$as_me: failed program was:" >&5 4788sed 's/^/| /' conftest.$ac_ext >&5 4789 4790 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 4791echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 4792if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 4793 echo $ECHO_N "(cached) $ECHO_C" >&6 4794else 4795 ac_check_lib_save_LIBS=$LIBS 4796LIBS="-ldnet $LIBS" 4797cat >conftest.$ac_ext <<_ACEOF 4798/* confdefs.h. */ 4799_ACEOF 4800cat confdefs.h >>conftest.$ac_ext 4801cat >>conftest.$ac_ext <<_ACEOF 4802/* end confdefs.h. */ 4803 4804/* Override any GCC internal prototype to avoid an error. 4805 Use char because int might match the return type of a GCC 4806 builtin and then its argument prototype would still apply. */ 4807#ifdef __cplusplus 4808extern "C" 4809#endif 4810char dnet_ntoa (); 4811int 4812main () 4813{ 4814return dnet_ntoa (); 4815 ; 4816 return 0; 4817} 4818_ACEOF 4819rm -f conftest.$ac_objext conftest$ac_exeext 4820if { (ac_try="$ac_link" 4821case "(($ac_try" in 4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4823 *) ac_try_echo=$ac_try;; 4824esac 4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4826 (eval "$ac_link") 2>conftest.er1 4827 ac_status=$? 4828 grep -v '^ *+' conftest.er1 >conftest.err 4829 rm -f conftest.er1 4830 cat conftest.err >&5 4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); } && { 4833 test -z "$ac_c_werror_flag" || 4834 test ! -s conftest.err 4835 } && test -s conftest$ac_exeext && 4836 $as_test_x conftest$ac_exeext; then 4837 ac_cv_lib_dnet_dnet_ntoa=yes 4838else 4839 echo "$as_me: failed program was:" >&5 4840sed 's/^/| /' conftest.$ac_ext >&5 4841 4842 ac_cv_lib_dnet_dnet_ntoa=no 4843fi 4844 4845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4846 conftest$ac_exeext conftest.$ac_ext 4847LIBS=$ac_check_lib_save_LIBS 4848fi 4849{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 4850echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 4851if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 4852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 4853fi 4854 4855 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4856 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 4857echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 4858if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 4859 echo $ECHO_N "(cached) $ECHO_C" >&6 4860else 4861 ac_check_lib_save_LIBS=$LIBS 4862LIBS="-ldnet_stub $LIBS" 4863cat >conftest.$ac_ext <<_ACEOF 4864/* confdefs.h. */ 4865_ACEOF 4866cat confdefs.h >>conftest.$ac_ext 4867cat >>conftest.$ac_ext <<_ACEOF 4868/* end confdefs.h. */ 4869 4870/* Override any GCC internal prototype to avoid an error. 4871 Use char because int might match the return type of a GCC 4872 builtin and then its argument prototype would still apply. */ 4873#ifdef __cplusplus 4874extern "C" 4875#endif 4876char dnet_ntoa (); 4877int 4878main () 4879{ 4880return dnet_ntoa (); 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885rm -f conftest.$ac_objext conftest$ac_exeext 4886if { (ac_try="$ac_link" 4887case "(($ac_try" in 4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4889 *) ac_try_echo=$ac_try;; 4890esac 4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4892 (eval "$ac_link") 2>conftest.er1 4893 ac_status=$? 4894 grep -v '^ *+' conftest.er1 >conftest.err 4895 rm -f conftest.er1 4896 cat conftest.err >&5 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); } && { 4899 test -z "$ac_c_werror_flag" || 4900 test ! -s conftest.err 4901 } && test -s conftest$ac_exeext && 4902 $as_test_x conftest$ac_exeext; then 4903 ac_cv_lib_dnet_stub_dnet_ntoa=yes 4904else 4905 echo "$as_me: failed program was:" >&5 4906sed 's/^/| /' conftest.$ac_ext >&5 4907 4908 ac_cv_lib_dnet_stub_dnet_ntoa=no 4909fi 4910 4911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4912 conftest$ac_exeext conftest.$ac_ext 4913LIBS=$ac_check_lib_save_LIBS 4914fi 4915{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 4916echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 4917if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 4918 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 4919fi 4920 4921 fi 4922fi 4923 4924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4925 conftest$ac_exeext conftest.$ac_ext 4926 LIBS="$ac_xsave_LIBS" 4927 4928 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 4929 # to get the SysV transport functions. 4930 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 4931 # needs -lnsl. 4932 # The nsl library prevents programs from opening the X display 4933 # on Irix 5.2, according to T.E. Dickey. 4934 # The functions gethostbyname, getservbyname, and inet_addr are 4935 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 4936 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 4937echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4938if test "${ac_cv_func_gethostbyname+set}" = set; then 4939 echo $ECHO_N "(cached) $ECHO_C" >&6 4940else 4941 cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4949#define gethostbyname innocuous_gethostbyname 4950 4951/* System header to define __stub macros and hopefully few prototypes, 4952 which can conflict with char gethostbyname (); below. 4953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4954 <limits.h> exists even on freestanding compilers. */ 4955 4956#ifdef __STDC__ 4957# include <limits.h> 4958#else 4959# include <assert.h> 4960#endif 4961 4962#undef gethostbyname 4963 4964/* Override any GCC internal prototype to avoid an error. 4965 Use char because int might match the return type of a GCC 4966 builtin and then its argument prototype would still apply. */ 4967#ifdef __cplusplus 4968extern "C" 4969#endif 4970char gethostbyname (); 4971/* The GNU C library defines this for functions which it implements 4972 to always fail with ENOSYS. Some functions are actually named 4973 something starting with __ and the normal name is an alias. */ 4974#if defined __stub_gethostbyname || defined __stub___gethostbyname 4975choke me 4976#endif 4977 4978int 4979main () 4980{ 4981return gethostbyname (); 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986rm -f conftest.$ac_objext conftest$ac_exeext 4987if { (ac_try="$ac_link" 4988case "(($ac_try" in 4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4990 *) ac_try_echo=$ac_try;; 4991esac 4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4993 (eval "$ac_link") 2>conftest.er1 4994 ac_status=$? 4995 grep -v '^ *+' conftest.er1 >conftest.err 4996 rm -f conftest.er1 4997 cat conftest.err >&5 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); } && { 5000 test -z "$ac_c_werror_flag" || 5001 test ! -s conftest.err 5002 } && test -s conftest$ac_exeext && 5003 $as_test_x conftest$ac_exeext; then 5004 ac_cv_func_gethostbyname=yes 5005else 5006 echo "$as_me: failed program was:" >&5 5007sed 's/^/| /' conftest.$ac_ext >&5 5008 5009 ac_cv_func_gethostbyname=no 5010fi 5011 5012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5013 conftest$ac_exeext conftest.$ac_ext 5014fi 5015{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5016echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5017 5018 if test $ac_cv_func_gethostbyname = no; then 5019 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5020echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5021if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 ac_check_lib_save_LIBS=$LIBS 5025LIBS="-lnsl $LIBS" 5026cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032 5033/* Override any GCC internal prototype to avoid an error. 5034 Use char because int might match the return type of a GCC 5035 builtin and then its argument prototype would still apply. */ 5036#ifdef __cplusplus 5037extern "C" 5038#endif 5039char gethostbyname (); 5040int 5041main () 5042{ 5043return gethostbyname (); 5044 ; 5045 return 0; 5046} 5047_ACEOF 5048rm -f conftest.$ac_objext conftest$ac_exeext 5049if { (ac_try="$ac_link" 5050case "(($ac_try" in 5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5052 *) ac_try_echo=$ac_try;; 5053esac 5054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5055 (eval "$ac_link") 2>conftest.er1 5056 ac_status=$? 5057 grep -v '^ *+' conftest.er1 >conftest.err 5058 rm -f conftest.er1 5059 cat conftest.err >&5 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); } && { 5062 test -z "$ac_c_werror_flag" || 5063 test ! -s conftest.err 5064 } && test -s conftest$ac_exeext && 5065 $as_test_x conftest$ac_exeext; then 5066 ac_cv_lib_nsl_gethostbyname=yes 5067else 5068 echo "$as_me: failed program was:" >&5 5069sed 's/^/| /' conftest.$ac_ext >&5 5070 5071 ac_cv_lib_nsl_gethostbyname=no 5072fi 5073 5074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5075 conftest$ac_exeext conftest.$ac_ext 5076LIBS=$ac_check_lib_save_LIBS 5077fi 5078{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5079echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5080if test $ac_cv_lib_nsl_gethostbyname = yes; then 5081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5082fi 5083 5084 if test $ac_cv_lib_nsl_gethostbyname = no; then 5085 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5086echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 5087if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5088 echo $ECHO_N "(cached) $ECHO_C" >&6 5089else 5090 ac_check_lib_save_LIBS=$LIBS 5091LIBS="-lbsd $LIBS" 5092cat >conftest.$ac_ext <<_ACEOF 5093/* confdefs.h. */ 5094_ACEOF 5095cat confdefs.h >>conftest.$ac_ext 5096cat >>conftest.$ac_ext <<_ACEOF 5097/* end confdefs.h. */ 5098 5099/* Override any GCC internal prototype to avoid an error. 5100 Use char because int might match the return type of a GCC 5101 builtin and then its argument prototype would still apply. */ 5102#ifdef __cplusplus 5103extern "C" 5104#endif 5105char gethostbyname (); 5106int 5107main () 5108{ 5109return gethostbyname (); 5110 ; 5111 return 0; 5112} 5113_ACEOF 5114rm -f conftest.$ac_objext conftest$ac_exeext 5115if { (ac_try="$ac_link" 5116case "(($ac_try" in 5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5118 *) ac_try_echo=$ac_try;; 5119esac 5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5121 (eval "$ac_link") 2>conftest.er1 5122 ac_status=$? 5123 grep -v '^ *+' conftest.er1 >conftest.err 5124 rm -f conftest.er1 5125 cat conftest.err >&5 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); } && { 5128 test -z "$ac_c_werror_flag" || 5129 test ! -s conftest.err 5130 } && test -s conftest$ac_exeext && 5131 $as_test_x conftest$ac_exeext; then 5132 ac_cv_lib_bsd_gethostbyname=yes 5133else 5134 echo "$as_me: failed program was:" >&5 5135sed 's/^/| /' conftest.$ac_ext >&5 5136 5137 ac_cv_lib_bsd_gethostbyname=no 5138fi 5139 5140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5141 conftest$ac_exeext conftest.$ac_ext 5142LIBS=$ac_check_lib_save_LIBS 5143fi 5144{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 5145echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 5146if test $ac_cv_lib_bsd_gethostbyname = yes; then 5147 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5148fi 5149 5150 fi 5151 fi 5152 5153 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5154 # socket/setsockopt and other routines are undefined under SCO ODT 5155 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5156 # on later versions), says Simon Leinen: it contains gethostby* 5157 # variants that don't use the name server (or something). -lsocket 5158 # must be given before -lnsl if both are needed. We assume that 5159 # if connect needs -lnsl, so does gethostbyname. 5160 { echo "$as_me:$LINENO: checking for connect" >&5 5161echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 5162if test "${ac_cv_func_connect+set}" = set; then 5163 echo $ECHO_N "(cached) $ECHO_C" >&6 5164else 5165 cat >conftest.$ac_ext <<_ACEOF 5166/* confdefs.h. */ 5167_ACEOF 5168cat confdefs.h >>conftest.$ac_ext 5169cat >>conftest.$ac_ext <<_ACEOF 5170/* end confdefs.h. */ 5171/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5172 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5173#define connect innocuous_connect 5174 5175/* System header to define __stub macros and hopefully few prototypes, 5176 which can conflict with char connect (); below. 5177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5178 <limits.h> exists even on freestanding compilers. */ 5179 5180#ifdef __STDC__ 5181# include <limits.h> 5182#else 5183# include <assert.h> 5184#endif 5185 5186#undef connect 5187 5188/* Override any GCC internal prototype to avoid an error. 5189 Use char because int might match the return type of a GCC 5190 builtin and then its argument prototype would still apply. */ 5191#ifdef __cplusplus 5192extern "C" 5193#endif 5194char connect (); 5195/* The GNU C library defines this for functions which it implements 5196 to always fail with ENOSYS. Some functions are actually named 5197 something starting with __ and the normal name is an alias. */ 5198#if defined __stub_connect || defined __stub___connect 5199choke me 5200#endif 5201 5202int 5203main () 5204{ 5205return connect (); 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210rm -f conftest.$ac_objext conftest$ac_exeext 5211if { (ac_try="$ac_link" 5212case "(($ac_try" in 5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5214 *) ac_try_echo=$ac_try;; 5215esac 5216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5217 (eval "$ac_link") 2>conftest.er1 5218 ac_status=$? 5219 grep -v '^ *+' conftest.er1 >conftest.err 5220 rm -f conftest.er1 5221 cat conftest.err >&5 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } && { 5224 test -z "$ac_c_werror_flag" || 5225 test ! -s conftest.err 5226 } && test -s conftest$ac_exeext && 5227 $as_test_x conftest$ac_exeext; then 5228 ac_cv_func_connect=yes 5229else 5230 echo "$as_me: failed program was:" >&5 5231sed 's/^/| /' conftest.$ac_ext >&5 5232 5233 ac_cv_func_connect=no 5234fi 5235 5236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5237 conftest$ac_exeext conftest.$ac_ext 5238fi 5239{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5240echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5241 5242 if test $ac_cv_func_connect = no; then 5243 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 5244echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 5245if test "${ac_cv_lib_socket_connect+set}" = set; then 5246 echo $ECHO_N "(cached) $ECHO_C" >&6 5247else 5248 ac_check_lib_save_LIBS=$LIBS 5249LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5250cat >conftest.$ac_ext <<_ACEOF 5251/* confdefs.h. */ 5252_ACEOF 5253cat confdefs.h >>conftest.$ac_ext 5254cat >>conftest.$ac_ext <<_ACEOF 5255/* end confdefs.h. */ 5256 5257/* Override any GCC internal prototype to avoid an error. 5258 Use char because int might match the return type of a GCC 5259 builtin and then its argument prototype would still apply. */ 5260#ifdef __cplusplus 5261extern "C" 5262#endif 5263char connect (); 5264int 5265main () 5266{ 5267return connect (); 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272rm -f conftest.$ac_objext conftest$ac_exeext 5273if { (ac_try="$ac_link" 5274case "(($ac_try" in 5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5276 *) ac_try_echo=$ac_try;; 5277esac 5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5279 (eval "$ac_link") 2>conftest.er1 5280 ac_status=$? 5281 grep -v '^ *+' conftest.er1 >conftest.err 5282 rm -f conftest.er1 5283 cat conftest.err >&5 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); } && { 5286 test -z "$ac_c_werror_flag" || 5287 test ! -s conftest.err 5288 } && test -s conftest$ac_exeext && 5289 $as_test_x conftest$ac_exeext; then 5290 ac_cv_lib_socket_connect=yes 5291else 5292 echo "$as_me: failed program was:" >&5 5293sed 's/^/| /' conftest.$ac_ext >&5 5294 5295 ac_cv_lib_socket_connect=no 5296fi 5297 5298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5299 conftest$ac_exeext conftest.$ac_ext 5300LIBS=$ac_check_lib_save_LIBS 5301fi 5302{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 5303echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 5304if test $ac_cv_lib_socket_connect = yes; then 5305 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5306fi 5307 5308 fi 5309 5310 # Guillermo Gomez says -lposix is necessary on A/UX. 5311 { echo "$as_me:$LINENO: checking for remove" >&5 5312echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 5313if test "${ac_cv_func_remove+set}" = set; then 5314 echo $ECHO_N "(cached) $ECHO_C" >&6 5315else 5316 cat >conftest.$ac_ext <<_ACEOF 5317/* confdefs.h. */ 5318_ACEOF 5319cat confdefs.h >>conftest.$ac_ext 5320cat >>conftest.$ac_ext <<_ACEOF 5321/* end confdefs.h. */ 5322/* Define remove to an innocuous variant, in case <limits.h> declares remove. 5323 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5324#define remove innocuous_remove 5325 5326/* System header to define __stub macros and hopefully few prototypes, 5327 which can conflict with char remove (); below. 5328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5329 <limits.h> exists even on freestanding compilers. */ 5330 5331#ifdef __STDC__ 5332# include <limits.h> 5333#else 5334# include <assert.h> 5335#endif 5336 5337#undef remove 5338 5339/* Override any GCC internal prototype to avoid an error. 5340 Use char because int might match the return type of a GCC 5341 builtin and then its argument prototype would still apply. */ 5342#ifdef __cplusplus 5343extern "C" 5344#endif 5345char remove (); 5346/* The GNU C library defines this for functions which it implements 5347 to always fail with ENOSYS. Some functions are actually named 5348 something starting with __ and the normal name is an alias. */ 5349#if defined __stub_remove || defined __stub___remove 5350choke me 5351#endif 5352 5353int 5354main () 5355{ 5356return remove (); 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361rm -f conftest.$ac_objext conftest$ac_exeext 5362if { (ac_try="$ac_link" 5363case "(($ac_try" in 5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5365 *) ac_try_echo=$ac_try;; 5366esac 5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5368 (eval "$ac_link") 2>conftest.er1 5369 ac_status=$? 5370 grep -v '^ *+' conftest.er1 >conftest.err 5371 rm -f conftest.er1 5372 cat conftest.err >&5 5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5374 (exit $ac_status); } && { 5375 test -z "$ac_c_werror_flag" || 5376 test ! -s conftest.err 5377 } && test -s conftest$ac_exeext && 5378 $as_test_x conftest$ac_exeext; then 5379 ac_cv_func_remove=yes 5380else 5381 echo "$as_me: failed program was:" >&5 5382sed 's/^/| /' conftest.$ac_ext >&5 5383 5384 ac_cv_func_remove=no 5385fi 5386 5387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5388 conftest$ac_exeext conftest.$ac_ext 5389fi 5390{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 5391echo "${ECHO_T}$ac_cv_func_remove" >&6; } 5392 5393 if test $ac_cv_func_remove = no; then 5394 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 5395echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 5396if test "${ac_cv_lib_posix_remove+set}" = set; then 5397 echo $ECHO_N "(cached) $ECHO_C" >&6 5398else 5399 ac_check_lib_save_LIBS=$LIBS 5400LIBS="-lposix $LIBS" 5401cat >conftest.$ac_ext <<_ACEOF 5402/* confdefs.h. */ 5403_ACEOF 5404cat confdefs.h >>conftest.$ac_ext 5405cat >>conftest.$ac_ext <<_ACEOF 5406/* end confdefs.h. */ 5407 5408/* Override any GCC internal prototype to avoid an error. 5409 Use char because int might match the return type of a GCC 5410 builtin and then its argument prototype would still apply. */ 5411#ifdef __cplusplus 5412extern "C" 5413#endif 5414char remove (); 5415int 5416main () 5417{ 5418return remove (); 5419 ; 5420 return 0; 5421} 5422_ACEOF 5423rm -f conftest.$ac_objext conftest$ac_exeext 5424if { (ac_try="$ac_link" 5425case "(($ac_try" in 5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5427 *) ac_try_echo=$ac_try;; 5428esac 5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5430 (eval "$ac_link") 2>conftest.er1 5431 ac_status=$? 5432 grep -v '^ *+' conftest.er1 >conftest.err 5433 rm -f conftest.er1 5434 cat conftest.err >&5 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } && { 5437 test -z "$ac_c_werror_flag" || 5438 test ! -s conftest.err 5439 } && test -s conftest$ac_exeext && 5440 $as_test_x conftest$ac_exeext; then 5441 ac_cv_lib_posix_remove=yes 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 5445 5446 ac_cv_lib_posix_remove=no 5447fi 5448 5449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5450 conftest$ac_exeext conftest.$ac_ext 5451LIBS=$ac_check_lib_save_LIBS 5452fi 5453{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 5454echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 5455if test $ac_cv_lib_posix_remove = yes; then 5456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5457fi 5458 5459 fi 5460 5461 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5462 { echo "$as_me:$LINENO: checking for shmat" >&5 5463echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 5464if test "${ac_cv_func_shmat+set}" = set; then 5465 echo $ECHO_N "(cached) $ECHO_C" >&6 5466else 5467 cat >conftest.$ac_ext <<_ACEOF 5468/* confdefs.h. */ 5469_ACEOF 5470cat confdefs.h >>conftest.$ac_ext 5471cat >>conftest.$ac_ext <<_ACEOF 5472/* end confdefs.h. */ 5473/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 5474 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5475#define shmat innocuous_shmat 5476 5477/* System header to define __stub macros and hopefully few prototypes, 5478 which can conflict with char shmat (); below. 5479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5480 <limits.h> exists even on freestanding compilers. */ 5481 5482#ifdef __STDC__ 5483# include <limits.h> 5484#else 5485# include <assert.h> 5486#endif 5487 5488#undef shmat 5489 5490/* Override any GCC internal prototype to avoid an error. 5491 Use char because int might match the return type of a GCC 5492 builtin and then its argument prototype would still apply. */ 5493#ifdef __cplusplus 5494extern "C" 5495#endif 5496char shmat (); 5497/* The GNU C library defines this for functions which it implements 5498 to always fail with ENOSYS. Some functions are actually named 5499 something starting with __ and the normal name is an alias. */ 5500#if defined __stub_shmat || defined __stub___shmat 5501choke me 5502#endif 5503 5504int 5505main () 5506{ 5507return shmat (); 5508 ; 5509 return 0; 5510} 5511_ACEOF 5512rm -f conftest.$ac_objext conftest$ac_exeext 5513if { (ac_try="$ac_link" 5514case "(($ac_try" in 5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5516 *) ac_try_echo=$ac_try;; 5517esac 5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5519 (eval "$ac_link") 2>conftest.er1 5520 ac_status=$? 5521 grep -v '^ *+' conftest.er1 >conftest.err 5522 rm -f conftest.er1 5523 cat conftest.err >&5 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } && { 5526 test -z "$ac_c_werror_flag" || 5527 test ! -s conftest.err 5528 } && test -s conftest$ac_exeext && 5529 $as_test_x conftest$ac_exeext; then 5530 ac_cv_func_shmat=yes 5531else 5532 echo "$as_me: failed program was:" >&5 5533sed 's/^/| /' conftest.$ac_ext >&5 5534 5535 ac_cv_func_shmat=no 5536fi 5537 5538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5539 conftest$ac_exeext conftest.$ac_ext 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 5542echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 5543 5544 if test $ac_cv_func_shmat = no; then 5545 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 5546echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 5547if test "${ac_cv_lib_ipc_shmat+set}" = set; then 5548 echo $ECHO_N "(cached) $ECHO_C" >&6 5549else 5550 ac_check_lib_save_LIBS=$LIBS 5551LIBS="-lipc $LIBS" 5552cat >conftest.$ac_ext <<_ACEOF 5553/* confdefs.h. */ 5554_ACEOF 5555cat confdefs.h >>conftest.$ac_ext 5556cat >>conftest.$ac_ext <<_ACEOF 5557/* end confdefs.h. */ 5558 5559/* Override any GCC internal prototype to avoid an error. 5560 Use char because int might match the return type of a GCC 5561 builtin and then its argument prototype would still apply. */ 5562#ifdef __cplusplus 5563extern "C" 5564#endif 5565char shmat (); 5566int 5567main () 5568{ 5569return shmat (); 5570 ; 5571 return 0; 5572} 5573_ACEOF 5574rm -f conftest.$ac_objext conftest$ac_exeext 5575if { (ac_try="$ac_link" 5576case "(($ac_try" in 5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5578 *) ac_try_echo=$ac_try;; 5579esac 5580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5581 (eval "$ac_link") 2>conftest.er1 5582 ac_status=$? 5583 grep -v '^ *+' conftest.er1 >conftest.err 5584 rm -f conftest.er1 5585 cat conftest.err >&5 5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); } && { 5588 test -z "$ac_c_werror_flag" || 5589 test ! -s conftest.err 5590 } && test -s conftest$ac_exeext && 5591 $as_test_x conftest$ac_exeext; then 5592 ac_cv_lib_ipc_shmat=yes 5593else 5594 echo "$as_me: failed program was:" >&5 5595sed 's/^/| /' conftest.$ac_ext >&5 5596 5597 ac_cv_lib_ipc_shmat=no 5598fi 5599 5600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5601 conftest$ac_exeext conftest.$ac_ext 5602LIBS=$ac_check_lib_save_LIBS 5603fi 5604{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 5605echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 5606if test $ac_cv_lib_ipc_shmat = yes; then 5607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5608fi 5609 5610 fi 5611 fi 5612 5613 # Check for libraries that X11R6 Xt/Xaw programs need. 5614 ac_save_LDFLAGS=$LDFLAGS 5615 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5616 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5617 # check for ICE first), but we must link in the order -lSM -lICE or 5618 # we get undefined symbols. So assume we have SM if we have ICE. 5619 # These have to be linked with before -lX11, unlike the other 5620 # libraries we check for below, so use a different variable. 5621 # John Interrante, Karl Berry 5622 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 5623echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 5624if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 ac_check_lib_save_LIBS=$LIBS 5628LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5629cat >conftest.$ac_ext <<_ACEOF 5630/* confdefs.h. */ 5631_ACEOF 5632cat confdefs.h >>conftest.$ac_ext 5633cat >>conftest.$ac_ext <<_ACEOF 5634/* end confdefs.h. */ 5635 5636/* Override any GCC internal prototype to avoid an error. 5637 Use char because int might match the return type of a GCC 5638 builtin and then its argument prototype would still apply. */ 5639#ifdef __cplusplus 5640extern "C" 5641#endif 5642char IceConnectionNumber (); 5643int 5644main () 5645{ 5646return IceConnectionNumber (); 5647 ; 5648 return 0; 5649} 5650_ACEOF 5651rm -f conftest.$ac_objext conftest$ac_exeext 5652if { (ac_try="$ac_link" 5653case "(($ac_try" in 5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5655 *) ac_try_echo=$ac_try;; 5656esac 5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5658 (eval "$ac_link") 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && { 5665 test -z "$ac_c_werror_flag" || 5666 test ! -s conftest.err 5667 } && test -s conftest$ac_exeext && 5668 $as_test_x conftest$ac_exeext; then 5669 ac_cv_lib_ICE_IceConnectionNumber=yes 5670else 5671 echo "$as_me: failed program was:" >&5 5672sed 's/^/| /' conftest.$ac_ext >&5 5673 5674 ac_cv_lib_ICE_IceConnectionNumber=no 5675fi 5676 5677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5678 conftest$ac_exeext conftest.$ac_ext 5679LIBS=$ac_check_lib_save_LIBS 5680fi 5681{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 5682echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 5683if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 5684 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 5685fi 5686 5687 LDFLAGS=$ac_save_LDFLAGS 5688 5689fi 5690 5691 5692 { echo "$as_me:$LINENO: checking for xf86misc extensions" >&5 5693echo $ECHO_N "checking for xf86misc extensions... $ECHO_C" >&6; } 5694 cat >conftest.$ac_ext <<_ACEOF 5695 5696 #include <X11/X.h> 5697 #include <X11/Xlib.h> 5698 #include <X11/extensions/xf86misc.h> 5699 int main(int argc, char** argv) { return 0; } 5700 5701_ACEOF 5702rm -f conftest.$ac_objext 5703if { (ac_try="$ac_compile" 5704case "(($ac_try" in 5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5706 *) ac_try_echo=$ac_try;; 5707esac 5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5709 (eval "$ac_compile") 2>conftest.er1 5710 ac_status=$? 5711 grep -v '^ *+' conftest.er1 >conftest.err 5712 rm -f conftest.er1 5713 cat conftest.err >&5 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); } && { 5716 test -z "$ac_c_werror_flag" || 5717 test ! -s conftest.err 5718 } && test -s conftest.$ac_objext; then 5719 5720 have_xf86misc=yes 5721 5722else 5723 echo "$as_me: failed program was:" >&5 5724sed 's/^/| /' conftest.$ac_ext >&5 5725 5726 5727 have_xf86misc=no 5728fi 5729 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731 { echo "$as_me:$LINENO: result: $have_xf86misc" >&5 5732echo "${ECHO_T}$have_xf86misc" >&6; } 5733 5734 if test x$enable_dbe = xyes || test x$enable_mbx = xyes || test x$have_xf86misc = xyes; then 5735 X_EXTENSIONS_LIB="-lXext" 5736 else 5737 X_EXTENSIONS_LIB= 5738 fi 5739 5740 if test x$have_xf86misc = xyes; then 5741 X_EXTENSIONS_LIB="-lXxf86misc $X_EXTENSIONS_LIB" 5742 5743cat >>confdefs.h <<\_ACEOF 5744@%:@define HAVE_XF86MISC 1 5745_ACEOF 5746 5747 fi 5748 5749 5750fi 5751 5752if test x$enable_sdl_gameloop = xyes; then 5753 5754cat >>confdefs.h <<\_ACEOF 5755@%:@define SDL_GAMELOOP 1 5756_ACEOF 5757 5758fi 5759 5760if test x$enable_x11_client = xyes; then 5761 5762cat >>confdefs.h <<\_ACEOF 5763@%:@define X11_CLIENT 1 5764_ACEOF 5765 5766fi 5767 5768if test x$enable_select_sched = xyes; then 5769 5770cat >>confdefs.h <<\_ACEOF 5771@%:@define SELECT_SCHED 1 5772_ACEOF 5773 5774fi 5775 5776if test x$enable_replay = xyes; then 5777 5778cat >>confdefs.h <<\_ACEOF 5779@%:@define REPLAY 1 5780_ACEOF 5781 5782fi 5783 5784if test x$enable_xp_mapedit = xyes; then 5785 5786cat >>confdefs.h <<\_ACEOF 5787@%:@define XP_MAPEDIT 1 5788_ACEOF 5789 5790fi 5791 5792if test x$enable_sdl_client = xyes; then 5793 5794 SDL_VERSION=1.2.0 5795 5796# Check whether --with-sdl-prefix was given. 5797if test "${with_sdl_prefix+set}" = set; then 5798 withval=$with_sdl_prefix; sdl_prefix="$withval" 5799else 5800 sdl_prefix="" 5801fi 5802 5803 5804# Check whether --with-sdl-exec-prefix was given. 5805if test "${with_sdl_exec_prefix+set}" = set; then 5806 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 5807else 5808 sdl_exec_prefix="" 5809fi 5810 5811# Check whether --enable-sdltest was given. 5812if test "${enable_sdltest+set}" = set; then 5813 enableval=$enable_sdltest; 5814else 5815 enable_sdltest=yes 5816fi 5817 5818 5819 if test x$sdl_exec_prefix != x ; then 5820 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 5821 if test x${SDL_CONFIG+set} != xset ; then 5822 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 5823 fi 5824 fi 5825 if test x$sdl_prefix != x ; then 5826 sdl_args="$sdl_args --prefix=$sdl_prefix" 5827 if test x${SDL_CONFIG+set} != xset ; then 5828 SDL_CONFIG=$sdl_prefix/bin/sdl-config 5829 fi 5830 fi 5831 5832 if test "x$prefix" != xNONE; then 5833 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 5834 fi 5835 # Extract the first word of "sdl-config", so it can be a program name with args. 5836set dummy sdl-config; ac_word=$2 5837{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5839if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 5840 echo $ECHO_N "(cached) $ECHO_C" >&6 5841else 5842 case $SDL_CONFIG in 5843 [\\/]* | ?:[\\/]*) 5844 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 5845 ;; 5846 *) 5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5848for as_dir in $PATH 5849do 5850 IFS=$as_save_IFS 5851 test -z "$as_dir" && as_dir=. 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5854 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859done 5860IFS=$as_save_IFS 5861 5862 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 5863 ;; 5864esac 5865fi 5866SDL_CONFIG=$ac_cv_path_SDL_CONFIG 5867if test -n "$SDL_CONFIG"; then 5868 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 5869echo "${ECHO_T}$SDL_CONFIG" >&6; } 5870else 5871 { echo "$as_me:$LINENO: result: no" >&5 5872echo "${ECHO_T}no" >&6; } 5873fi 5874 5875 5876 min_sdl_version=$SDL_VERSION 5877 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 5878echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; } 5879 no_sdl="" 5880 if test "$SDL_CONFIG" = "no" ; then 5881 no_sdl=yes 5882 else 5883 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 5884 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 5885 5886 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 5887 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5888 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 5889 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5890 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 5891 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5892 if test "x$enable_sdltest" = "xyes" ; then 5893 ac_save_CFLAGS="$CFLAGS" 5894 ac_save_CXXFLAGS="$CXXFLAGS" 5895 ac_save_LIBS="$LIBS" 5896 CFLAGS="$CFLAGS $SDL_CFLAGS" 5897 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5898 LIBS="$LIBS $SDL_LIBS" 5899 rm -f conf.sdltest 5900 if test "$cross_compiling" = yes; then 5901 echo $ac_n "cross compiling; assumed OK... $ac_c" 5902else 5903 cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909 5910#include <stdio.h> 5911#include <stdlib.h> 5912#include <string.h> 5913#include "SDL.h" 5914 5915char* 5916my_strdup (char *str) 5917{ 5918 char *new_str; 5919 5920 if (str) 5921 { 5922 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 5923 strcpy (new_str, str); 5924 } 5925 else 5926 new_str = NULL; 5927 5928 return new_str; 5929} 5930 5931int main (int argc, char *argv[]) 5932{ 5933 int major, minor, micro; 5934 char *tmp_version; 5935 5936 /* This hangs on some systems (?) 5937 system ("touch conf.sdltest"); 5938 */ 5939 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 5940 5941 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5942 tmp_version = my_strdup("$min_sdl_version"); 5943 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5944 printf("%s, bad version string\n", "$min_sdl_version"); 5945 exit(1); 5946 } 5947 5948 if (($sdl_major_version > major) || 5949 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 5950 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 5951 { 5952 return 0; 5953 } 5954 else 5955 { 5956 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 5957 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 5958 printf("*** best to upgrade to the required version.\n"); 5959 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 5960 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 5961 printf("*** config.cache before re-running configure\n"); 5962 return 1; 5963 } 5964} 5965 5966 5967_ACEOF 5968rm -f conftest$ac_exeext 5969if { (ac_try="$ac_link" 5970case "(($ac_try" in 5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5972 *) ac_try_echo=$ac_try;; 5973esac 5974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5975 (eval "$ac_link") 2>&5 5976 ac_status=$? 5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5979 { (case "(($ac_try" in 5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5981 *) ac_try_echo=$ac_try;; 5982esac 5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5984 (eval "$ac_try") 2>&5 5985 ac_status=$? 5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); }; }; then 5988 : 5989else 5990 echo "$as_me: program exited with status $ac_status" >&5 5991echo "$as_me: failed program was:" >&5 5992sed 's/^/| /' conftest.$ac_ext >&5 5993 5994( exit $ac_status ) 5995no_sdl=yes 5996fi 5997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5998fi 5999 6000 6001 CFLAGS="$ac_save_CFLAGS" 6002 CXXFLAGS="$ac_save_CXXFLAGS" 6003 LIBS="$ac_save_LIBS" 6004 fi 6005 fi 6006 if test "x$no_sdl" = x ; then 6007 { echo "$as_me:$LINENO: result: yes" >&5 6008echo "${ECHO_T}yes" >&6; } 6009 : 6010 else 6011 { echo "$as_me:$LINENO: result: no" >&5 6012echo "${ECHO_T}no" >&6; } 6013 if test "$SDL_CONFIG" = "no" ; then 6014 echo "*** The sdl-config script installed by SDL could not be found" 6015 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 6016 echo "*** your path, or set the SDL_CONFIG environment variable to the" 6017 echo "*** full path to sdl-config." 6018 else 6019 if test -f conf.sdltest ; then 6020 : 6021 else 6022 echo "*** Could not run SDL test program, checking why..." 6023 CFLAGS="$CFLAGS $SDL_CFLAGS" 6024 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 6025 LIBS="$LIBS $SDL_LIBS" 6026 cat >conftest.$ac_ext <<_ACEOF 6027/* confdefs.h. */ 6028_ACEOF 6029cat confdefs.h >>conftest.$ac_ext 6030cat >>conftest.$ac_ext <<_ACEOF 6031/* end confdefs.h. */ 6032 6033#include <stdio.h> 6034#include "SDL.h" 6035 6036int main(int argc, char *argv[]) 6037{ return 0; } 6038#undef main 6039#define main K_and_R_C_main 6040 6041int 6042main () 6043{ 6044 return 0; 6045 ; 6046 return 0; 6047} 6048_ACEOF 6049rm -f conftest.$ac_objext conftest$ac_exeext 6050if { (ac_try="$ac_link" 6051case "(($ac_try" in 6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6053 *) ac_try_echo=$ac_try;; 6054esac 6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6056 (eval "$ac_link") 2>conftest.er1 6057 ac_status=$? 6058 grep -v '^ *+' conftest.er1 >conftest.err 6059 rm -f conftest.er1 6060 cat conftest.err >&5 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } && { 6063 test -z "$ac_c_werror_flag" || 6064 test ! -s conftest.err 6065 } && test -s conftest$ac_exeext && 6066 $as_test_x conftest$ac_exeext; then 6067 echo "*** The test program compiled, but did not run. This usually means" 6068 echo "*** that the run-time linker is not finding SDL or finding the wrong" 6069 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 6070 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 6071 echo "*** to the installed location Also, make sure you have run ldconfig if that" 6072 echo "*** is required on your system" 6073 echo "***" 6074 echo "*** If you have an old version installed, it is best to remove it, although" 6075 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 6076else 6077 echo "$as_me: failed program was:" >&5 6078sed 's/^/| /' conftest.$ac_ext >&5 6079 6080 echo "*** The test program failed to compile or link. See the file config.log for the" 6081 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 6082 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 6083 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 6084fi 6085 6086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6087 conftest$ac_exeext conftest.$ac_ext 6088 CFLAGS="$ac_save_CFLAGS" 6089 CXXFLAGS="$ac_save_CXXFLAGS" 6090 LIBS="$ac_save_LIBS" 6091 fi 6092 fi 6093 SDL_CFLAGS="" 6094 SDL_LIBS="" 6095 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 6096echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 6097 { (exit 1); exit 1; }; } 6098 6099 fi 6100 6101 6102 rm -f conf.sdltest 6103 6104 6105 CFLAGS_BAK="$CFLAGS" 6106 CXXFLAGS_BAK="$CXXFLAGS" 6107 CFLAGS="$CFLAGS $SDL_CFLAGS" 6108 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 6109 6110 if test x$no_sdl = xyes; then 6111 { { echo "$as_me:$LINENO: error: SDL client will not be built." >&5 6112echo "$as_me: error: SDL client will not be built." >&2;} 6113 { (exit 1); exit 1; }; } 6114 fi 6115 6116 6117 { echo "$as_me:$LINENO: checking for SDL_ttf" >&5 6118echo $ECHO_N "checking for SDL_ttf... $ECHO_C" >&6; } 6119 cat >conftest.$ac_ext <<_ACEOF 6120 6121 #include "SDL.h" 6122 #include "SDL/SDL_ttf.h" 6123 int main(int argc, char** argv) { return 0; } 6124 6125_ACEOF 6126rm -f conftest.$ac_objext 6127if { (ac_try="$ac_compile" 6128case "(($ac_try" in 6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6130 *) ac_try_echo=$ac_try;; 6131esac 6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6133 (eval "$ac_compile") 2>conftest.er1 6134 ac_status=$? 6135 grep -v '^ *+' conftest.er1 >conftest.err 6136 rm -f conftest.er1 6137 cat conftest.err >&5 6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6139 (exit $ac_status); } && { 6140 test -z "$ac_c_werror_flag" || 6141 test ! -s conftest.err 6142 } && test -s conftest.$ac_objext; then 6143 6144 have_libsdl_ttf=yes 6145 6146else 6147 echo "$as_me: failed program was:" >&5 6148sed 's/^/| /' conftest.$ac_ext >&5 6149 6150 6151 have_libsdl_ttf=no 6152fi 6153 6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6155 { echo "$as_me:$LINENO: result: $have_libsdl_ttf" >&5 6156echo "${ECHO_T}$have_libsdl_ttf" >&6; } 6157 if test x$have_libsdl_ttf = xyes; then 6158 SDL_EXTRA_LIBS="$SDL_EXTRA_LIBS -lSDL_ttf" 6159 else 6160 { { echo "$as_me:$LINENO: error: *** Unable to find SDL_ttf headers and libraries!" >&5 6161echo "$as_me: error: *** Unable to find SDL_ttf headers and libraries!" >&2;} 6162 { (exit 1); exit 1; }; } 6163 fi 6164 6165 6166 { echo "$as_me:$LINENO: checking for SDL_image" >&5 6167echo $ECHO_N "checking for SDL_image... $ECHO_C" >&6; } 6168 cat >conftest.$ac_ext <<_ACEOF 6169 6170 #include "SDL.h" 6171 #include "SDL/SDL_image.h" 6172 int main(int argc, char** argv) { return 0; } 6173 6174_ACEOF 6175rm -f conftest.$ac_objext 6176if { (ac_try="$ac_compile" 6177case "(($ac_try" in 6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6179 *) ac_try_echo=$ac_try;; 6180esac 6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6182 (eval "$ac_compile") 2>conftest.er1 6183 ac_status=$? 6184 grep -v '^ *+' conftest.er1 >conftest.err 6185 rm -f conftest.er1 6186 cat conftest.err >&5 6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6188 (exit $ac_status); } && { 6189 test -z "$ac_c_werror_flag" || 6190 test ! -s conftest.err 6191 } && test -s conftest.$ac_objext; then 6192 6193 have_libsdl_image=yes 6194 6195else 6196 echo "$as_me: failed program was:" >&5 6197sed 's/^/| /' conftest.$ac_ext >&5 6198 6199 6200 have_libsdl_image=no 6201fi 6202 6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6204 { echo "$as_me:$LINENO: result: $have_libsdl_image" >&5 6205echo "${ECHO_T}$have_libsdl_image" >&6; } 6206 if test x$have_libsdl_image = xyes; then 6207 SDL_EXTRA_LIBS="$SDL_EXTRA_LIBS -lSDL_image" 6208 6209cat >>confdefs.h <<\_ACEOF 6210@%:@define HAVE_SDL_IMAGE 1 6211_ACEOF 6212 6213 else 6214 { { echo "$as_me:$LINENO: error: *** Unable to find SDL_image headers and libraries!" >&5 6215echo "$as_me: error: *** Unable to find SDL_image headers and libraries!" >&2;} 6216 { (exit 1); exit 1; }; } 6217 fi 6218 6219 6220 { echo "$as_me:$LINENO: checking for OpenGL support" >&5 6221echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; } 6222 cat >conftest.$ac_ext <<_ACEOF 6223 6224 #include <GL/gl.h> 6225 #include <GL/glu.h> 6226 int main(int argc, char** argv) { return 0; } 6227 6228_ACEOF 6229rm -f conftest.$ac_objext 6230if { (ac_try="$ac_compile" 6231case "(($ac_try" in 6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6233 *) ac_try_echo=$ac_try;; 6234esac 6235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6236 (eval "$ac_compile") 2>conftest.er1 6237 ac_status=$? 6238 grep -v '^ *+' conftest.er1 >conftest.err 6239 rm -f conftest.er1 6240 cat conftest.err >&5 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); } && { 6243 test -z "$ac_c_werror_flag" || 6244 test ! -s conftest.err 6245 } && test -s conftest.$ac_objext; then 6246 6247 have_opengl=yes 6248 6249else 6250 echo "$as_me: failed program was:" >&5 6251sed 's/^/| /' conftest.$ac_ext >&5 6252 6253 6254 have_opengl=no 6255fi 6256 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258 { echo "$as_me:$LINENO: result: $have_opengl" >&5 6259echo "${ECHO_T}$have_opengl" >&6; } 6260 if test x$have_opengl = xyes; then 6261 GL_LIBS="$SDL_LIBS $SYS_GL_LIBS" 6262 else 6263 { { echo "$as_me:$LINENO: error: *** Unable to find OpenGL headers and libraries!" >&5 6264echo "$as_me: error: *** Unable to find OpenGL headers and libraries!" >&2;} 6265 { (exit 1); exit 1; }; } 6266 fi 6267 6268 6269 6270 CFLAGS="$CFLAGS_BAK" 6271 CXXFLAGS="$CXXFLAGS_BAK" 6272fi 6273 6274 if test x$need_libxpclient = xyes; then 6275 COND_CLIENT_TRUE= 6276 COND_CLIENT_FALSE='#' 6277else 6278 COND_CLIENT_TRUE='#' 6279 COND_CLIENT_FALSE= 6280fi 6281 6282 if test x$windows_target = xyes; then 6283 COND_WINDOWS_TRUE= 6284 COND_WINDOWS_FALSE='#' 6285else 6286 COND_WINDOWS_TRUE='#' 6287 COND_WINDOWS_FALSE= 6288fi 6289 6290 if test x$enable_replay = xyes; then 6291 COND_REPLAY_TRUE= 6292 COND_REPLAY_FALSE='#' 6293else 6294 COND_REPLAY_TRUE='#' 6295 COND_REPLAY_FALSE= 6296fi 6297 6298 if test x$enable_xp_mapedit = xyes; then 6299 COND_XP_MAPEDIT_TRUE= 6300 COND_XP_MAPEDIT_FALSE='#' 6301else 6302 COND_XP_MAPEDIT_TRUE='#' 6303 COND_XP_MAPEDIT_FALSE= 6304fi 6305 6306 if test x$enable_x11_client = xyes; then 6307 COND_X11_CLIENT_TRUE= 6308 COND_X11_CLIENT_FALSE='#' 6309else 6310 COND_X11_CLIENT_TRUE='#' 6311 COND_X11_CLIENT_FALSE= 6312fi 6313 6314 if test x$enable_sdl_client = xyes; then 6315 COND_SDL_CLIENT_TRUE= 6316 COND_SDL_CLIENT_FALSE='#' 6317else 6318 COND_SDL_CLIENT_TRUE='#' 6319 COND_SDL_CLIENT_FALSE= 6320fi 6321 6322 if test x$enable_sdl_gameloop = xyes; then 6323 COND_SDL_GAMELOOP_TRUE= 6324 COND_SDL_GAMELOOP_FALSE='#' 6325else 6326 COND_SDL_GAMELOOP_TRUE='#' 6327 COND_SDL_GAMELOOP_FALSE= 6328fi 6329 6330 6331if test x$enable_sound = xyes; then 6332 have_openal=no 6333 have_alut=no 6334 have_sound=no 6335 { echo "$as_me:$LINENO: checking for main in -lopenal" >&5 6336echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6; } 6337if test "${ac_cv_lib_openal_main+set}" = set; then 6338 echo $ECHO_N "(cached) $ECHO_C" >&6 6339else 6340 ac_check_lib_save_LIBS=$LIBS 6341LIBS="-lopenal $LIBS" 6342cat >conftest.$ac_ext <<_ACEOF 6343/* confdefs.h. */ 6344_ACEOF 6345cat confdefs.h >>conftest.$ac_ext 6346cat >>conftest.$ac_ext <<_ACEOF 6347/* end confdefs.h. */ 6348 6349 6350int 6351main () 6352{ 6353return main (); 6354 ; 6355 return 0; 6356} 6357_ACEOF 6358rm -f conftest.$ac_objext conftest$ac_exeext 6359if { (ac_try="$ac_link" 6360case "(($ac_try" in 6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6362 *) ac_try_echo=$ac_try;; 6363esac 6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6365 (eval "$ac_link") 2>conftest.er1 6366 ac_status=$? 6367 grep -v '^ *+' conftest.er1 >conftest.err 6368 rm -f conftest.er1 6369 cat conftest.err >&5 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); } && { 6372 test -z "$ac_c_werror_flag" || 6373 test ! -s conftest.err 6374 } && test -s conftest$ac_exeext && 6375 $as_test_x conftest$ac_exeext; then 6376 ac_cv_lib_openal_main=yes 6377else 6378 echo "$as_me: failed program was:" >&5 6379sed 's/^/| /' conftest.$ac_ext >&5 6380 6381 ac_cv_lib_openal_main=no 6382fi 6383 6384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6385 conftest$ac_exeext conftest.$ac_ext 6386LIBS=$ac_check_lib_save_LIBS 6387fi 6388{ echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 6389echo "${ECHO_T}$ac_cv_lib_openal_main" >&6; } 6390if test $ac_cv_lib_openal_main = yes; then 6391 have_openal=yes 6392fi 6393 6394 { echo "$as_me:$LINENO: checking for main in -lalut" >&5 6395echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6; } 6396if test "${ac_cv_lib_alut_main+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398else 6399 ac_check_lib_save_LIBS=$LIBS 6400LIBS="-lalut $LIBS" 6401cat >conftest.$ac_ext <<_ACEOF 6402/* confdefs.h. */ 6403_ACEOF 6404cat confdefs.h >>conftest.$ac_ext 6405cat >>conftest.$ac_ext <<_ACEOF 6406/* end confdefs.h. */ 6407 6408 6409int 6410main () 6411{ 6412return main (); 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417rm -f conftest.$ac_objext conftest$ac_exeext 6418if { (ac_try="$ac_link" 6419case "(($ac_try" in 6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6421 *) ac_try_echo=$ac_try;; 6422esac 6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6424 (eval "$ac_link") 2>conftest.er1 6425 ac_status=$? 6426 grep -v '^ *+' conftest.er1 >conftest.err 6427 rm -f conftest.er1 6428 cat conftest.err >&5 6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6430 (exit $ac_status); } && { 6431 test -z "$ac_c_werror_flag" || 6432 test ! -s conftest.err 6433 } && test -s conftest$ac_exeext && 6434 $as_test_x conftest$ac_exeext; then 6435 ac_cv_lib_alut_main=yes 6436else 6437 echo "$as_me: failed program was:" >&5 6438sed 's/^/| /' conftest.$ac_ext >&5 6439 6440 ac_cv_lib_alut_main=no 6441fi 6442 6443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6444 conftest$ac_exeext conftest.$ac_ext 6445LIBS=$ac_check_lib_save_LIBS 6446fi 6447{ echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 6448echo "${ECHO_T}$ac_cv_lib_alut_main" >&6; } 6449if test $ac_cv_lib_alut_main = yes; then 6450 have_alut=yes 6451fi 6452 6453 if test x$have_openal = xyes; then 6454 if test x$have_alut = xyes; then 6455 have_sound=yes 6456 SOUND_LIBS="-lopenal -lalut" 6457 6458cat >>confdefs.h <<\_ACEOF 6459@%:@define SOUND 1 6460_ACEOF 6461 6462 else 6463 echo "*** Client sound disabled. Check that you have OpenAL installed." 6464 fi 6465 fi 6466 6467fi 6468 6469 if test x$have_sound = xyes; then 6470 COND_SOUND_TRUE= 6471 COND_SOUND_FALSE='#' 6472else 6473 COND_SOUND_TRUE='#' 6474 COND_SOUND_FALSE= 6475fi 6476 6477 6478{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 6479echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 6480if test "${ac_cv_header_time+set}" = set; then 6481 echo $ECHO_N "(cached) $ECHO_C" >&6 6482else 6483 cat >conftest.$ac_ext <<_ACEOF 6484/* confdefs.h. */ 6485_ACEOF 6486cat confdefs.h >>conftest.$ac_ext 6487cat >>conftest.$ac_ext <<_ACEOF 6488/* end confdefs.h. */ 6489#include <sys/types.h> 6490#include <sys/time.h> 6491#include <time.h> 6492 6493int 6494main () 6495{ 6496if ((struct tm *) 0) 6497return 0; 6498 ; 6499 return 0; 6500} 6501_ACEOF 6502rm -f conftest.$ac_objext 6503if { (ac_try="$ac_compile" 6504case "(($ac_try" in 6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6506 *) ac_try_echo=$ac_try;; 6507esac 6508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6509 (eval "$ac_compile") 2>conftest.er1 6510 ac_status=$? 6511 grep -v '^ *+' conftest.er1 >conftest.err 6512 rm -f conftest.er1 6513 cat conftest.err >&5 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); } && { 6516 test -z "$ac_c_werror_flag" || 6517 test ! -s conftest.err 6518 } && test -s conftest.$ac_objext; then 6519 ac_cv_header_time=yes 6520else 6521 echo "$as_me: failed program was:" >&5 6522sed 's/^/| /' conftest.$ac_ext >&5 6523 6524 ac_cv_header_time=no 6525fi 6526 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528fi 6529{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6530echo "${ECHO_T}$ac_cv_header_time" >&6; } 6531if test $ac_cv_header_time = yes; then 6532 6533cat >>confdefs.h <<\_ACEOF 6534@%:@define TIME_WITH_SYS_TIME 1 6535_ACEOF 6536 6537fi 6538 6539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 6540echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 6541if test "${ac_cv_path_GREP+set}" = set; then 6542 echo $ECHO_N "(cached) $ECHO_C" >&6 6543else 6544 # Extract the first word of "grep ggrep" to use in msg output 6545if test -z "$GREP"; then 6546set dummy grep ggrep; ac_prog_name=$2 6547if test "${ac_cv_path_GREP+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549else 6550 ac_path_GREP_found=false 6551# Loop through the user's path and test for each of PROGNAME-LIST 6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6554do 6555 IFS=$as_save_IFS 6556 test -z "$as_dir" && as_dir=. 6557 for ac_prog in grep ggrep; do 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6561 # Check for GNU ac_path_GREP and select it if it is found. 6562 # Check for GNU $ac_path_GREP 6563case `"$ac_path_GREP" --version 2>&1` in 6564*GNU*) 6565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6566*) 6567 ac_count=0 6568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6569 while : 6570 do 6571 cat "conftest.in" "conftest.in" >"conftest.tmp" 6572 mv "conftest.tmp" "conftest.in" 6573 cp "conftest.in" "conftest.nl" 6574 echo 'GREP' >> "conftest.nl" 6575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6577 ac_count=`expr $ac_count + 1` 6578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6579 # Best one so far, save it but keep looking for a better one 6580 ac_cv_path_GREP="$ac_path_GREP" 6581 ac_path_GREP_max=$ac_count 6582 fi 6583 # 10*(2^10) chars as input seems more than enough 6584 test $ac_count -gt 10 && break 6585 done 6586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6587esac 6588 6589 6590 $ac_path_GREP_found && break 3 6591 done 6592done 6593 6594done 6595IFS=$as_save_IFS 6596 6597 6598fi 6599 6600GREP="$ac_cv_path_GREP" 6601if test -z "$GREP"; then 6602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 6603echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 6604 { (exit 1); exit 1; }; } 6605fi 6606 6607else 6608 ac_cv_path_GREP=$GREP 6609fi 6610 6611 6612fi 6613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 6614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 6615 GREP="$ac_cv_path_GREP" 6616 6617 6618{ echo "$as_me:$LINENO: checking for egrep" >&5 6619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 6620if test "${ac_cv_path_EGREP+set}" = set; then 6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6622else 6623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6624 then ac_cv_path_EGREP="$GREP -E" 6625 else 6626 # Extract the first word of "egrep" to use in msg output 6627if test -z "$EGREP"; then 6628set dummy egrep; ac_prog_name=$2 6629if test "${ac_cv_path_EGREP+set}" = set; then 6630 echo $ECHO_N "(cached) $ECHO_C" >&6 6631else 6632 ac_path_EGREP_found=false 6633# Loop through the user's path and test for each of PROGNAME-LIST 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_prog in egrep; do 6640 for ac_exec_ext in '' $ac_executable_extensions; do 6641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6643 # Check for GNU ac_path_EGREP and select it if it is found. 6644 # Check for GNU $ac_path_EGREP 6645case `"$ac_path_EGREP" --version 2>&1` in 6646*GNU*) 6647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6648*) 6649 ac_count=0 6650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6651 while : 6652 do 6653 cat "conftest.in" "conftest.in" >"conftest.tmp" 6654 mv "conftest.tmp" "conftest.in" 6655 cp "conftest.in" "conftest.nl" 6656 echo 'EGREP' >> "conftest.nl" 6657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6659 ac_count=`expr $ac_count + 1` 6660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6661 # Best one so far, save it but keep looking for a better one 6662 ac_cv_path_EGREP="$ac_path_EGREP" 6663 ac_path_EGREP_max=$ac_count 6664 fi 6665 # 10*(2^10) chars as input seems more than enough 6666 test $ac_count -gt 10 && break 6667 done 6668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6669esac 6670 6671 6672 $ac_path_EGREP_found && break 3 6673 done 6674done 6675 6676done 6677IFS=$as_save_IFS 6678 6679 6680fi 6681 6682EGREP="$ac_cv_path_EGREP" 6683if test -z "$EGREP"; then 6684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 6685echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 6686 { (exit 1); exit 1; }; } 6687fi 6688 6689else 6690 ac_cv_path_EGREP=$EGREP 6691fi 6692 6693 6694 fi 6695fi 6696{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 6697echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 6698 EGREP="$ac_cv_path_EGREP" 6699 6700 6701{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6702echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6703if test "${ac_cv_header_stdc+set}" = set; then 6704 echo $ECHO_N "(cached) $ECHO_C" >&6 6705else 6706 cat >conftest.$ac_ext <<_ACEOF 6707/* confdefs.h. */ 6708_ACEOF 6709cat confdefs.h >>conftest.$ac_ext 6710cat >>conftest.$ac_ext <<_ACEOF 6711/* end confdefs.h. */ 6712#include <stdlib.h> 6713#include <stdarg.h> 6714#include <string.h> 6715#include <float.h> 6716 6717int 6718main () 6719{ 6720 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725rm -f conftest.$ac_objext 6726if { (ac_try="$ac_compile" 6727case "(($ac_try" in 6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6729 *) ac_try_echo=$ac_try;; 6730esac 6731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6732 (eval "$ac_compile") 2>conftest.er1 6733 ac_status=$? 6734 grep -v '^ *+' conftest.er1 >conftest.err 6735 rm -f conftest.er1 6736 cat conftest.err >&5 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); } && { 6739 test -z "$ac_c_werror_flag" || 6740 test ! -s conftest.err 6741 } && test -s conftest.$ac_objext; then 6742 ac_cv_header_stdc=yes 6743else 6744 echo "$as_me: failed program was:" >&5 6745sed 's/^/| /' conftest.$ac_ext >&5 6746 6747 ac_cv_header_stdc=no 6748fi 6749 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751 6752if test $ac_cv_header_stdc = yes; then 6753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6754 cat >conftest.$ac_ext <<_ACEOF 6755/* confdefs.h. */ 6756_ACEOF 6757cat confdefs.h >>conftest.$ac_ext 6758cat >>conftest.$ac_ext <<_ACEOF 6759/* end confdefs.h. */ 6760#include <string.h> 6761 6762_ACEOF 6763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6764 $EGREP "memchr" >/dev/null 2>&1; then 6765 : 6766else 6767 ac_cv_header_stdc=no 6768fi 6769rm -f conftest* 6770 6771fi 6772 6773if test $ac_cv_header_stdc = yes; then 6774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6775 cat >conftest.$ac_ext <<_ACEOF 6776/* confdefs.h. */ 6777_ACEOF 6778cat confdefs.h >>conftest.$ac_ext 6779cat >>conftest.$ac_ext <<_ACEOF 6780/* end confdefs.h. */ 6781#include <stdlib.h> 6782 6783_ACEOF 6784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6785 $EGREP "free" >/dev/null 2>&1; then 6786 : 6787else 6788 ac_cv_header_stdc=no 6789fi 6790rm -f conftest* 6791 6792fi 6793 6794if test $ac_cv_header_stdc = yes; then 6795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6796 if test "$cross_compiling" = yes; then 6797 : 6798else 6799 cat >conftest.$ac_ext <<_ACEOF 6800/* confdefs.h. */ 6801_ACEOF 6802cat confdefs.h >>conftest.$ac_ext 6803cat >>conftest.$ac_ext <<_ACEOF 6804/* end confdefs.h. */ 6805#include <ctype.h> 6806#include <stdlib.h> 6807#if ((' ' & 0x0FF) == 0x020) 6808# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6809# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6810#else 6811# define ISLOWER(c) \ 6812 (('a' <= (c) && (c) <= 'i') \ 6813 || ('j' <= (c) && (c) <= 'r') \ 6814 || ('s' <= (c) && (c) <= 'z')) 6815# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6816#endif 6817 6818#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6819int 6820main () 6821{ 6822 int i; 6823 for (i = 0; i < 256; i++) 6824 if (XOR (islower (i), ISLOWER (i)) 6825 || toupper (i) != TOUPPER (i)) 6826 return 2; 6827 return 0; 6828} 6829_ACEOF 6830rm -f conftest$ac_exeext 6831if { (ac_try="$ac_link" 6832case "(($ac_try" in 6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6834 *) ac_try_echo=$ac_try;; 6835esac 6836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6837 (eval "$ac_link") 2>&5 6838 ac_status=$? 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6841 { (case "(($ac_try" in 6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6843 *) ac_try_echo=$ac_try;; 6844esac 6845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6846 (eval "$ac_try") 2>&5 6847 ac_status=$? 6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6849 (exit $ac_status); }; }; then 6850 : 6851else 6852 echo "$as_me: program exited with status $ac_status" >&5 6853echo "$as_me: failed program was:" >&5 6854sed 's/^/| /' conftest.$ac_ext >&5 6855 6856( exit $ac_status ) 6857ac_cv_header_stdc=no 6858fi 6859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6860fi 6861 6862 6863fi 6864fi 6865{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6866echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6867if test $ac_cv_header_stdc = yes; then 6868 6869cat >>confdefs.h <<\_ACEOF 6870@%:@define STDC_HEADERS 1 6871_ACEOF 6872 6873fi 6874 6875# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6886 inttypes.h stdint.h unistd.h 6887do 6888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6889{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 cat >conftest.$ac_ext <<_ACEOF 6895/* confdefs.h. */ 6896_ACEOF 6897cat confdefs.h >>conftest.$ac_ext 6898cat >>conftest.$ac_ext <<_ACEOF 6899/* end confdefs.h. */ 6900$ac_includes_default 6901 6902@%:@include <$ac_header> 6903_ACEOF 6904rm -f conftest.$ac_objext 6905if { (ac_try="$ac_compile" 6906case "(($ac_try" in 6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6908 *) ac_try_echo=$ac_try;; 6909esac 6910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6911 (eval "$ac_compile") 2>conftest.er1 6912 ac_status=$? 6913 grep -v '^ *+' conftest.er1 >conftest.err 6914 rm -f conftest.er1 6915 cat conftest.err >&5 6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6917 (exit $ac_status); } && { 6918 test -z "$ac_c_werror_flag" || 6919 test ! -s conftest.err 6920 } && test -s conftest.$ac_objext; then 6921 eval "$as_ac_Header=yes" 6922else 6923 echo "$as_me: failed program was:" >&5 6924sed 's/^/| /' conftest.$ac_ext >&5 6925 6926 eval "$as_ac_Header=no" 6927fi 6928 6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6930fi 6931ac_res=`eval echo '${'$as_ac_Header'}'` 6932 { echo "$as_me:$LINENO: result: $ac_res" >&5 6933echo "${ECHO_T}$ac_res" >&6; } 6934if test `eval echo '${'$as_ac_Header'}'` = yes; then 6935 cat >>confdefs.h <<_ACEOF 6936@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6937_ACEOF 6938 6939fi 6940 6941done 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983for ac_header in \ 6984 arpa/inet.h \ 6985 arpa/nameser.h \ 6986 assert.h \ 6987 bstring.h \ 6988 ctype.h \ 6989 errno.h \ 6990 fcntl.h \ 6991 float.h \ 6992 limits.h \ 6993 math.h \ 6994 net/if.h \ 6995 netdb.h \ 6996 netinet/in.h \ 6997 netinet/tcp.h \ 6998 pwd.h \ 6999 resolv.h \ 7000 setjmp.h \ 7001 signal.h \ 7002 stdarg.h \ 7003 stddef.h \ 7004 sys/file.h \ 7005 sys/filio.h \ 7006 sys/fcntl.h \ 7007 sys/inttypes.h \ 7008 sys/ioctl.h \ 7009 sys/lock.h \ 7010 sys/mman.h \ 7011 sys/param.h \ 7012 sys/socket.h \ 7013 sys/sockio.h \ 7014 sys/time.h \ 7015 values.h \ 7016 X11/X.h \ 7017 X11/Xlib.h \ 7018 X11/Xos.h \ 7019 X11/Xutil.h \ 7020 X11/keysym.h \ 7021 X11/Xatom.h \ 7022 X11/Xmd.h \ 7023 7024do 7025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7027 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7030 echo $ECHO_N "(cached) $ECHO_C" >&6 7031fi 7032ac_res=`eval echo '${'$as_ac_Header'}'` 7033 { echo "$as_me:$LINENO: result: $ac_res" >&5 7034echo "${ECHO_T}$ac_res" >&6; } 7035else 7036 # Is the header compilable? 7037{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7039cat >conftest.$ac_ext <<_ACEOF 7040/* confdefs.h. */ 7041_ACEOF 7042cat confdefs.h >>conftest.$ac_ext 7043cat >>conftest.$ac_ext <<_ACEOF 7044/* end confdefs.h. */ 7045$ac_includes_default 7046@%:@include <$ac_header> 7047_ACEOF 7048rm -f conftest.$ac_objext 7049if { (ac_try="$ac_compile" 7050case "(($ac_try" in 7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7052 *) ac_try_echo=$ac_try;; 7053esac 7054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7055 (eval "$ac_compile") 2>conftest.er1 7056 ac_status=$? 7057 grep -v '^ *+' conftest.er1 >conftest.err 7058 rm -f conftest.er1 7059 cat conftest.err >&5 7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7061 (exit $ac_status); } && { 7062 test -z "$ac_c_werror_flag" || 7063 test ! -s conftest.err 7064 } && test -s conftest.$ac_objext; then 7065 ac_header_compiler=yes 7066else 7067 echo "$as_me: failed program was:" >&5 7068sed 's/^/| /' conftest.$ac_ext >&5 7069 7070 ac_header_compiler=no 7071fi 7072 7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7074{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7075echo "${ECHO_T}$ac_header_compiler" >&6; } 7076 7077# Is the header present? 7078{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7080cat >conftest.$ac_ext <<_ACEOF 7081/* confdefs.h. */ 7082_ACEOF 7083cat confdefs.h >>conftest.$ac_ext 7084cat >>conftest.$ac_ext <<_ACEOF 7085/* end confdefs.h. */ 7086@%:@include <$ac_header> 7087_ACEOF 7088if { (ac_try="$ac_cpp conftest.$ac_ext" 7089case "(($ac_try" in 7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7091 *) ac_try_echo=$ac_try;; 7092esac 7093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7095 ac_status=$? 7096 grep -v '^ *+' conftest.er1 >conftest.err 7097 rm -f conftest.er1 7098 cat conftest.err >&5 7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7100 (exit $ac_status); } >/dev/null && { 7101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7102 test ! -s conftest.err 7103 }; then 7104 ac_header_preproc=yes 7105else 7106 echo "$as_me: failed program was:" >&5 7107sed 's/^/| /' conftest.$ac_ext >&5 7108 7109 ac_header_preproc=no 7110fi 7111 7112rm -f conftest.err conftest.$ac_ext 7113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7114echo "${ECHO_T}$ac_header_preproc" >&6; } 7115 7116# So? What about this header? 7117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7118 yes:no: ) 7119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7123 ac_header_preproc=yes 7124 ;; 7125 no:yes:* ) 7126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7138 ( cat <<\_ASBOX 7139@%:@@%:@ ------------------------------------------------- @%:@@%:@ 7140@%:@@%:@ Report this to xpilot-hacks@lists.sourceforge.net @%:@@%:@ 7141@%:@@%:@ ------------------------------------------------- @%:@@%:@ 7142_ASBOX 7143 ) | sed "s/^/$as_me: WARNING: /" >&2 7144 ;; 7145esac 7146{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7149 echo $ECHO_N "(cached) $ECHO_C" >&6 7150else 7151 eval "$as_ac_Header=\$ac_header_preproc" 7152fi 7153ac_res=`eval echo '${'$as_ac_Header'}'` 7154 { echo "$as_me:$LINENO: result: $ac_res" >&5 7155echo "${ECHO_T}$ac_res" >&6; } 7156 7157fi 7158if test `eval echo '${'$as_ac_Header'}'` = yes; then 7159 cat >>confdefs.h <<_ACEOF 7160@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7161_ACEOF 7162 7163fi 7164 7165done 7166 7167 7168 7169{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7170echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7171if test "${ac_cv_c_const+set}" = set; then 7172 echo $ECHO_N "(cached) $ECHO_C" >&6 7173else 7174 cat >conftest.$ac_ext <<_ACEOF 7175/* confdefs.h. */ 7176_ACEOF 7177cat confdefs.h >>conftest.$ac_ext 7178cat >>conftest.$ac_ext <<_ACEOF 7179/* end confdefs.h. */ 7180 7181int 7182main () 7183{ 7184/* FIXME: Include the comments suggested by Paul. */ 7185#ifndef __cplusplus 7186 /* Ultrix mips cc rejects this. */ 7187 typedef int charset[2]; 7188 const charset cs; 7189 /* SunOS 4.1.1 cc rejects this. */ 7190 char const *const *pcpcc; 7191 char **ppc; 7192 /* NEC SVR4.0.2 mips cc rejects this. */ 7193 struct point {int x, y;}; 7194 static struct point const zero = {0,0}; 7195 /* AIX XL C 1.02.0.0 rejects this. 7196 It does not let you subtract one const X* pointer from another in 7197 an arm of an if-expression whose if-part is not a constant 7198 expression */ 7199 const char *g = "string"; 7200 pcpcc = &g + (g ? g-g : 0); 7201 /* HPUX 7.0 cc rejects these. */ 7202 ++pcpcc; 7203 ppc = (char**) pcpcc; 7204 pcpcc = (char const *const *) ppc; 7205 { /* SCO 3.2v4 cc rejects this. */ 7206 char *t; 7207 char const *s = 0 ? (char *) 0 : (char const *) 0; 7208 7209 *t++ = 0; 7210 if (s) return 0; 7211 } 7212 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7213 int x[] = {25, 17}; 7214 const int *foo = &x[0]; 7215 ++foo; 7216 } 7217 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7218 typedef const int *iptr; 7219 iptr p = 0; 7220 ++p; 7221 } 7222 { /* AIX XL C 1.02.0.0 rejects this saying 7223 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7224 struct s { int j; const int *ap[3]; }; 7225 struct s *b; b->j = 5; 7226 } 7227 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7228 const int foo = 10; 7229 if (!foo) return 0; 7230 } 7231 return !cs[0] && !zero.x; 7232#endif 7233 7234 ; 7235 return 0; 7236} 7237_ACEOF 7238rm -f conftest.$ac_objext 7239if { (ac_try="$ac_compile" 7240case "(($ac_try" in 7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7242 *) ac_try_echo=$ac_try;; 7243esac 7244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7245 (eval "$ac_compile") 2>conftest.er1 7246 ac_status=$? 7247 grep -v '^ *+' conftest.er1 >conftest.err 7248 rm -f conftest.er1 7249 cat conftest.err >&5 7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7251 (exit $ac_status); } && { 7252 test -z "$ac_c_werror_flag" || 7253 test ! -s conftest.err 7254 } && test -s conftest.$ac_objext; then 7255 ac_cv_c_const=yes 7256else 7257 echo "$as_me: failed program was:" >&5 7258sed 's/^/| /' conftest.$ac_ext >&5 7259 7260 ac_cv_c_const=no 7261fi 7262 7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7264fi 7265{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7266echo "${ECHO_T}$ac_cv_c_const" >&6; } 7267if test $ac_cv_c_const = no; then 7268 7269cat >>confdefs.h <<\_ACEOF 7270@%:@define const 7271_ACEOF 7272 7273fi 7274 7275{ echo "$as_me:$LINENO: checking for inline" >&5 7276echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 7277if test "${ac_cv_c_inline+set}" = set; then 7278 echo $ECHO_N "(cached) $ECHO_C" >&6 7279else 7280 ac_cv_c_inline=no 7281for ac_kw in inline __inline__ __inline; do 7282 cat >conftest.$ac_ext <<_ACEOF 7283/* confdefs.h. */ 7284_ACEOF 7285cat confdefs.h >>conftest.$ac_ext 7286cat >>conftest.$ac_ext <<_ACEOF 7287/* end confdefs.h. */ 7288#ifndef __cplusplus 7289typedef int foo_t; 7290static $ac_kw foo_t static_foo () {return 0; } 7291$ac_kw foo_t foo () {return 0; } 7292#endif 7293 7294_ACEOF 7295rm -f conftest.$ac_objext 7296if { (ac_try="$ac_compile" 7297case "(($ac_try" in 7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7299 *) ac_try_echo=$ac_try;; 7300esac 7301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7302 (eval "$ac_compile") 2>conftest.er1 7303 ac_status=$? 7304 grep -v '^ *+' conftest.er1 >conftest.err 7305 rm -f conftest.er1 7306 cat conftest.err >&5 7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7308 (exit $ac_status); } && { 7309 test -z "$ac_c_werror_flag" || 7310 test ! -s conftest.err 7311 } && test -s conftest.$ac_objext; then 7312 ac_cv_c_inline=$ac_kw 7313else 7314 echo "$as_me: failed program was:" >&5 7315sed 's/^/| /' conftest.$ac_ext >&5 7316 7317 7318fi 7319 7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7321 test "$ac_cv_c_inline" != no && break 7322done 7323 7324fi 7325{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 7326echo "${ECHO_T}$ac_cv_c_inline" >&6; } 7327 7328 7329case $ac_cv_c_inline in 7330 inline | yes) ;; 7331 *) 7332 case $ac_cv_c_inline in 7333 no) ac_val=;; 7334 *) ac_val=$ac_cv_c_inline;; 7335 esac 7336 cat >>confdefs.h <<_ACEOF 7337#ifndef __cplusplus 7338#define inline $ac_val 7339#endif 7340_ACEOF 7341 ;; 7342esac 7343 7344{ echo "$as_me:$LINENO: checking for working volatile" >&5 7345echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } 7346if test "${ac_cv_c_volatile+set}" = set; then 7347 echo $ECHO_N "(cached) $ECHO_C" >&6 7348else 7349 cat >conftest.$ac_ext <<_ACEOF 7350/* confdefs.h. */ 7351_ACEOF 7352cat confdefs.h >>conftest.$ac_ext 7353cat >>conftest.$ac_ext <<_ACEOF 7354/* end confdefs.h. */ 7355 7356int 7357main () 7358{ 7359 7360volatile int x; 7361int * volatile y = (int *) 0; 7362return !x && !y; 7363 ; 7364 return 0; 7365} 7366_ACEOF 7367rm -f conftest.$ac_objext 7368if { (ac_try="$ac_compile" 7369case "(($ac_try" in 7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7371 *) ac_try_echo=$ac_try;; 7372esac 7373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7374 (eval "$ac_compile") 2>conftest.er1 7375 ac_status=$? 7376 grep -v '^ *+' conftest.er1 >conftest.err 7377 rm -f conftest.er1 7378 cat conftest.err >&5 7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7380 (exit $ac_status); } && { 7381 test -z "$ac_c_werror_flag" || 7382 test ! -s conftest.err 7383 } && test -s conftest.$ac_objext; then 7384 ac_cv_c_volatile=yes 7385else 7386 echo "$as_me: failed program was:" >&5 7387sed 's/^/| /' conftest.$ac_ext >&5 7388 7389 ac_cv_c_volatile=no 7390fi 7391 7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7393fi 7394{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 7395echo "${ECHO_T}$ac_cv_c_volatile" >&6; } 7396if test $ac_cv_c_volatile = no; then 7397 7398cat >>confdefs.h <<\_ACEOF 7399@%:@define volatile 7400_ACEOF 7401 7402fi 7403 7404{ echo "$as_me:$LINENO: checking for mode_t" >&5 7405echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7406if test "${ac_cv_type_mode_t+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 cat >conftest.$ac_ext <<_ACEOF 7410/* confdefs.h. */ 7411_ACEOF 7412cat confdefs.h >>conftest.$ac_ext 7413cat >>conftest.$ac_ext <<_ACEOF 7414/* end confdefs.h. */ 7415$ac_includes_default 7416typedef mode_t ac__type_new_; 7417int 7418main () 7419{ 7420if ((ac__type_new_ *) 0) 7421 return 0; 7422if (sizeof (ac__type_new_)) 7423 return 0; 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428rm -f conftest.$ac_objext 7429if { (ac_try="$ac_compile" 7430case "(($ac_try" in 7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7432 *) ac_try_echo=$ac_try;; 7433esac 7434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7435 (eval "$ac_compile") 2>conftest.er1 7436 ac_status=$? 7437 grep -v '^ *+' conftest.er1 >conftest.err 7438 rm -f conftest.er1 7439 cat conftest.err >&5 7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7441 (exit $ac_status); } && { 7442 test -z "$ac_c_werror_flag" || 7443 test ! -s conftest.err 7444 } && test -s conftest.$ac_objext; then 7445 ac_cv_type_mode_t=yes 7446else 7447 echo "$as_me: failed program was:" >&5 7448sed 's/^/| /' conftest.$ac_ext >&5 7449 7450 ac_cv_type_mode_t=no 7451fi 7452 7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7454fi 7455{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 7456echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } 7457if test $ac_cv_type_mode_t = yes; then 7458 : 7459else 7460 7461cat >>confdefs.h <<_ACEOF 7462@%:@define mode_t int 7463_ACEOF 7464 7465fi 7466 7467{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7468echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 7469if test "${ac_cv_type_signal+set}" = set; then 7470 echo $ECHO_N "(cached) $ECHO_C" >&6 7471else 7472 cat >conftest.$ac_ext <<_ACEOF 7473/* confdefs.h. */ 7474_ACEOF 7475cat confdefs.h >>conftest.$ac_ext 7476cat >>conftest.$ac_ext <<_ACEOF 7477/* end confdefs.h. */ 7478#include <sys/types.h> 7479#include <signal.h> 7480 7481int 7482main () 7483{ 7484return *(signal (0, 0)) (0) == 1; 7485 ; 7486 return 0; 7487} 7488_ACEOF 7489rm -f conftest.$ac_objext 7490if { (ac_try="$ac_compile" 7491case "(($ac_try" in 7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7493 *) ac_try_echo=$ac_try;; 7494esac 7495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7496 (eval "$ac_compile") 2>conftest.er1 7497 ac_status=$? 7498 grep -v '^ *+' conftest.er1 >conftest.err 7499 rm -f conftest.er1 7500 cat conftest.err >&5 7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7502 (exit $ac_status); } && { 7503 test -z "$ac_c_werror_flag" || 7504 test ! -s conftest.err 7505 } && test -s conftest.$ac_objext; then 7506 ac_cv_type_signal=int 7507else 7508 echo "$as_me: failed program was:" >&5 7509sed 's/^/| /' conftest.$ac_ext >&5 7510 7511 ac_cv_type_signal=void 7512fi 7513 7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7515fi 7516{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7517echo "${ECHO_T}$ac_cv_type_signal" >&6; } 7518 7519cat >>confdefs.h <<_ACEOF 7520@%:@define RETSIGTYPE $ac_cv_type_signal 7521_ACEOF 7522 7523 7524{ echo "$as_me:$LINENO: checking for size_t" >&5 7525echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 7526if test "${ac_cv_type_size_t+set}" = set; then 7527 echo $ECHO_N "(cached) $ECHO_C" >&6 7528else 7529 cat >conftest.$ac_ext <<_ACEOF 7530/* confdefs.h. */ 7531_ACEOF 7532cat confdefs.h >>conftest.$ac_ext 7533cat >>conftest.$ac_ext <<_ACEOF 7534/* end confdefs.h. */ 7535$ac_includes_default 7536typedef size_t ac__type_new_; 7537int 7538main () 7539{ 7540if ((ac__type_new_ *) 0) 7541 return 0; 7542if (sizeof (ac__type_new_)) 7543 return 0; 7544 ; 7545 return 0; 7546} 7547_ACEOF 7548rm -f conftest.$ac_objext 7549if { (ac_try="$ac_compile" 7550case "(($ac_try" in 7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7552 *) ac_try_echo=$ac_try;; 7553esac 7554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7555 (eval "$ac_compile") 2>conftest.er1 7556 ac_status=$? 7557 grep -v '^ *+' conftest.er1 >conftest.err 7558 rm -f conftest.er1 7559 cat conftest.err >&5 7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7561 (exit $ac_status); } && { 7562 test -z "$ac_c_werror_flag" || 7563 test ! -s conftest.err 7564 } && test -s conftest.$ac_objext; then 7565 ac_cv_type_size_t=yes 7566else 7567 echo "$as_me: failed program was:" >&5 7568sed 's/^/| /' conftest.$ac_ext >&5 7569 7570 ac_cv_type_size_t=no 7571fi 7572 7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7574fi 7575{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 7576echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 7577if test $ac_cv_type_size_t = yes; then 7578 : 7579else 7580 7581cat >>confdefs.h <<_ACEOF 7582@%:@define size_t unsigned int 7583_ACEOF 7584 7585fi 7586 7587{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 7588echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 7589if test "${ac_cv_struct_tm+set}" = set; then 7590 echo $ECHO_N "(cached) $ECHO_C" >&6 7591else 7592 cat >conftest.$ac_ext <<_ACEOF 7593/* confdefs.h. */ 7594_ACEOF 7595cat confdefs.h >>conftest.$ac_ext 7596cat >>conftest.$ac_ext <<_ACEOF 7597/* end confdefs.h. */ 7598#include <sys/types.h> 7599#include <time.h> 7600 7601int 7602main () 7603{ 7604struct tm tm; 7605 int *p = &tm.tm_sec; 7606 return !p; 7607 ; 7608 return 0; 7609} 7610_ACEOF 7611rm -f conftest.$ac_objext 7612if { (ac_try="$ac_compile" 7613case "(($ac_try" in 7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7615 *) ac_try_echo=$ac_try;; 7616esac 7617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7618 (eval "$ac_compile") 2>conftest.er1 7619 ac_status=$? 7620 grep -v '^ *+' conftest.er1 >conftest.err 7621 rm -f conftest.er1 7622 cat conftest.err >&5 7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 (exit $ac_status); } && { 7625 test -z "$ac_c_werror_flag" || 7626 test ! -s conftest.err 7627 } && test -s conftest.$ac_objext; then 7628 ac_cv_struct_tm=time.h 7629else 7630 echo "$as_me: failed program was:" >&5 7631sed 's/^/| /' conftest.$ac_ext >&5 7632 7633 ac_cv_struct_tm=sys/time.h 7634fi 7635 7636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7637fi 7638{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 7639echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 7640if test $ac_cv_struct_tm = sys/time.h; then 7641 7642cat >>confdefs.h <<\_ACEOF 7643@%:@define TM_IN_SYS_TIME 1 7644_ACEOF 7645 7646fi 7647 7648 7649{ echo "$as_me:$LINENO: checking for socklen_t" >&5 7650echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 7651cat >conftest.$ac_ext <<_ACEOF 7652/* confdefs.h. */ 7653_ACEOF 7654cat confdefs.h >>conftest.$ac_ext 7655cat >>conftest.$ac_ext <<_ACEOF 7656/* end confdefs.h. */ 7657 7658 #include <sys/types.h> 7659 #include <sys/socket.h> 7660 socklen_t x; 7661 7662int 7663main () 7664{ 7665 7666 ; 7667 return 0; 7668} 7669_ACEOF 7670rm -f conftest.$ac_objext 7671if { (ac_try="$ac_compile" 7672case "(($ac_try" in 7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7674 *) ac_try_echo=$ac_try;; 7675esac 7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7677 (eval "$ac_compile") 2>conftest.er1 7678 ac_status=$? 7679 grep -v '^ *+' conftest.er1 >conftest.err 7680 rm -f conftest.er1 7681 cat conftest.err >&5 7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7683 (exit $ac_status); } && { 7684 test -z "$ac_c_werror_flag" || 7685 test ! -s conftest.err 7686 } && test -s conftest.$ac_objext; then 7687 7688 { echo "$as_me:$LINENO: result: yes" >&5 7689echo "${ECHO_T}yes" >&6; } 7690 7691else 7692 echo "$as_me: failed program was:" >&5 7693sed 's/^/| /' conftest.$ac_ext >&5 7694 7695 7696 cat >conftest.$ac_ext <<_ACEOF 7697/* confdefs.h. */ 7698_ACEOF 7699cat confdefs.h >>conftest.$ac_ext 7700cat >>conftest.$ac_ext <<_ACEOF 7701/* end confdefs.h. */ 7702 7703 #include <sys/types.h> 7704 #include <sys/socket.h> 7705 int accept(int, struct sockaddr *, size_t *); 7706 7707int 7708main () 7709{ 7710 7711 ; 7712 return 0; 7713} 7714_ACEOF 7715rm -f conftest.$ac_objext 7716if { (ac_try="$ac_compile" 7717case "(($ac_try" in 7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7719 *) ac_try_echo=$ac_try;; 7720esac 7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7722 (eval "$ac_compile") 2>conftest.er1 7723 ac_status=$? 7724 grep -v '^ *+' conftest.er1 >conftest.err 7725 rm -f conftest.er1 7726 cat conftest.err >&5 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 (exit $ac_status); } && { 7729 test -z "$ac_c_werror_flag" || 7730 test ! -s conftest.err 7731 } && test -s conftest.$ac_objext; then 7732 7733 { echo "$as_me:$LINENO: result: size_t" >&5 7734echo "${ECHO_T}size_t" >&6; } 7735 7736cat >>confdefs.h <<\_ACEOF 7737@%:@define socklen_t size_t 7738_ACEOF 7739 7740 7741else 7742 echo "$as_me: failed program was:" >&5 7743sed 's/^/| /' conftest.$ac_ext >&5 7744 7745 7746 { echo "$as_me:$LINENO: result: int" >&5 7747echo "${ECHO_T}int" >&6; } 7748 7749cat >>confdefs.h <<\_ACEOF 7750@%:@define socklen_t int 7751_ACEOF 7752 7753 7754fi 7755 7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7757 7758fi 7759 7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7761 7762 7763 7764{ echo "$as_me:$LINENO: checking for working memcmp" >&5 7765echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } 7766if test "${ac_cv_func_memcmp_working+set}" = set; then 7767 echo $ECHO_N "(cached) $ECHO_C" >&6 7768else 7769 if test "$cross_compiling" = yes; then 7770 ac_cv_func_memcmp_working=no 7771else 7772 cat >conftest.$ac_ext <<_ACEOF 7773/* confdefs.h. */ 7774_ACEOF 7775cat confdefs.h >>conftest.$ac_ext 7776cat >>conftest.$ac_ext <<_ACEOF 7777/* end confdefs.h. */ 7778$ac_includes_default 7779int 7780main () 7781{ 7782 7783 /* Some versions of memcmp are not 8-bit clean. */ 7784 char c0 = '\100', c1 = '\200', c2 = '\201'; 7785 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 7786 return 1; 7787 7788 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 7789 or more and with at least one buffer not starting on a 4-byte boundary. 7790 William Lewis provided this test program. */ 7791 { 7792 char foo[21]; 7793 char bar[21]; 7794 int i; 7795 for (i = 0; i < 4; i++) 7796 { 7797 char *a = foo + i; 7798 char *b = bar + i; 7799 strcpy (a, "--------01111111"); 7800 strcpy (b, "--------10000000"); 7801 if (memcmp (a, b, 16) >= 0) 7802 return 1; 7803 } 7804 return 0; 7805 } 7806 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811rm -f conftest$ac_exeext 7812if { (ac_try="$ac_link" 7813case "(($ac_try" in 7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7815 *) ac_try_echo=$ac_try;; 7816esac 7817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7818 (eval "$ac_link") 2>&5 7819 ac_status=$? 7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7822 { (case "(($ac_try" in 7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7824 *) ac_try_echo=$ac_try;; 7825esac 7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7827 (eval "$ac_try") 2>&5 7828 ac_status=$? 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 (exit $ac_status); }; }; then 7831 ac_cv_func_memcmp_working=yes 7832else 7833 echo "$as_me: program exited with status $ac_status" >&5 7834echo "$as_me: failed program was:" >&5 7835sed 's/^/| /' conftest.$ac_ext >&5 7836 7837( exit $ac_status ) 7838ac_cv_func_memcmp_working=no 7839fi 7840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7841fi 7842 7843 7844fi 7845{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 7846echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } 7847test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in 7848 *" memcmp.$ac_objext "* ) ;; 7849 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" 7850 ;; 7851esac 7852 7853 7854 7855 7856for ac_header in sys/select.h sys/socket.h 7857do 7858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7860 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7863 echo $ECHO_N "(cached) $ECHO_C" >&6 7864fi 7865ac_res=`eval echo '${'$as_ac_Header'}'` 7866 { echo "$as_me:$LINENO: result: $ac_res" >&5 7867echo "${ECHO_T}$ac_res" >&6; } 7868else 7869 # Is the header compilable? 7870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7872cat >conftest.$ac_ext <<_ACEOF 7873/* confdefs.h. */ 7874_ACEOF 7875cat confdefs.h >>conftest.$ac_ext 7876cat >>conftest.$ac_ext <<_ACEOF 7877/* end confdefs.h. */ 7878$ac_includes_default 7879@%:@include <$ac_header> 7880_ACEOF 7881rm -f conftest.$ac_objext 7882if { (ac_try="$ac_compile" 7883case "(($ac_try" in 7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7885 *) ac_try_echo=$ac_try;; 7886esac 7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7888 (eval "$ac_compile") 2>conftest.er1 7889 ac_status=$? 7890 grep -v '^ *+' conftest.er1 >conftest.err 7891 rm -f conftest.er1 7892 cat conftest.err >&5 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7894 (exit $ac_status); } && { 7895 test -z "$ac_c_werror_flag" || 7896 test ! -s conftest.err 7897 } && test -s conftest.$ac_objext; then 7898 ac_header_compiler=yes 7899else 7900 echo "$as_me: failed program was:" >&5 7901sed 's/^/| /' conftest.$ac_ext >&5 7902 7903 ac_header_compiler=no 7904fi 7905 7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7908echo "${ECHO_T}$ac_header_compiler" >&6; } 7909 7910# Is the header present? 7911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7913cat >conftest.$ac_ext <<_ACEOF 7914/* confdefs.h. */ 7915_ACEOF 7916cat confdefs.h >>conftest.$ac_ext 7917cat >>conftest.$ac_ext <<_ACEOF 7918/* end confdefs.h. */ 7919@%:@include <$ac_header> 7920_ACEOF 7921if { (ac_try="$ac_cpp conftest.$ac_ext" 7922case "(($ac_try" in 7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7924 *) ac_try_echo=$ac_try;; 7925esac 7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7928 ac_status=$? 7929 grep -v '^ *+' conftest.er1 >conftest.err 7930 rm -f conftest.er1 7931 cat conftest.err >&5 7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 (exit $ac_status); } >/dev/null && { 7934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7935 test ! -s conftest.err 7936 }; then 7937 ac_header_preproc=yes 7938else 7939 echo "$as_me: failed program was:" >&5 7940sed 's/^/| /' conftest.$ac_ext >&5 7941 7942 ac_header_preproc=no 7943fi 7944 7945rm -f conftest.err conftest.$ac_ext 7946{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7947echo "${ECHO_T}$ac_header_preproc" >&6; } 7948 7949# So? What about this header? 7950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7951 yes:no: ) 7952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7956 ac_header_preproc=yes 7957 ;; 7958 no:yes:* ) 7959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7962echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7966echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7971 ( cat <<\_ASBOX 7972@%:@@%:@ ------------------------------------------------- @%:@@%:@ 7973@%:@@%:@ Report this to xpilot-hacks@lists.sourceforge.net @%:@@%:@ 7974@%:@@%:@ ------------------------------------------------- @%:@@%:@ 7975_ASBOX 7976 ) | sed "s/^/$as_me: WARNING: /" >&2 7977 ;; 7978esac 7979{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7982 echo $ECHO_N "(cached) $ECHO_C" >&6 7983else 7984 eval "$as_ac_Header=\$ac_header_preproc" 7985fi 7986ac_res=`eval echo '${'$as_ac_Header'}'` 7987 { echo "$as_me:$LINENO: result: $ac_res" >&5 7988echo "${ECHO_T}$ac_res" >&6; } 7989 7990fi 7991if test `eval echo '${'$as_ac_Header'}'` = yes; then 7992 cat >>confdefs.h <<_ACEOF 7993@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7994_ACEOF 7995 7996fi 7997 7998done 7999 8000{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 8001echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 8002if test "${ac_cv_func_select_args+set}" = set; then 8003 echo $ECHO_N "(cached) $ECHO_C" >&6 8004else 8005 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 8006 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 8007 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 8008 cat >conftest.$ac_ext <<_ACEOF 8009/* confdefs.h. */ 8010_ACEOF 8011cat confdefs.h >>conftest.$ac_ext 8012cat >>conftest.$ac_ext <<_ACEOF 8013/* end confdefs.h. */ 8014$ac_includes_default 8015#ifdef HAVE_SYS_SELECT_H 8016# include <sys/select.h> 8017#endif 8018#ifdef HAVE_SYS_SOCKET_H 8019# include <sys/socket.h> 8020#endif 8021 8022int 8023main () 8024{ 8025extern int select ($ac_arg1, 8026 $ac_arg234, $ac_arg234, $ac_arg234, 8027 $ac_arg5); 8028 ; 8029 return 0; 8030} 8031_ACEOF 8032rm -f conftest.$ac_objext 8033if { (ac_try="$ac_compile" 8034case "(($ac_try" in 8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8036 *) ac_try_echo=$ac_try;; 8037esac 8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8039 (eval "$ac_compile") 2>conftest.er1 8040 ac_status=$? 8041 grep -v '^ *+' conftest.er1 >conftest.err 8042 rm -f conftest.er1 8043 cat conftest.err >&5 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); } && { 8046 test -z "$ac_c_werror_flag" || 8047 test ! -s conftest.err 8048 } && test -s conftest.$ac_objext; then 8049 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 8050else 8051 echo "$as_me: failed program was:" >&5 8052sed 's/^/| /' conftest.$ac_ext >&5 8053 8054 8055fi 8056 8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058 done 8059 done 8060done 8061# Provide a safe default value. 8062: ${ac_cv_func_select_args='int,int *,struct timeval *'} 8063 8064fi 8065{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 8066echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 8067ac_save_IFS=$IFS; IFS=',' 8068set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 8069IFS=$ac_save_IFS 8070shift 8071 8072cat >>confdefs.h <<_ACEOF 8073@%:@define SELECT_TYPE_ARG1 $1 8074_ACEOF 8075 8076 8077cat >>confdefs.h <<_ACEOF 8078@%:@define SELECT_TYPE_ARG234 ($2) 8079_ACEOF 8080 8081 8082cat >>confdefs.h <<_ACEOF 8083@%:@define SELECT_TYPE_ARG5 ($3) 8084_ACEOF 8085 8086rm -f conftest* 8087 8088{ echo "$as_me:$LINENO: checking for function prototypes" >&5 8089echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } 8090if test "$ac_cv_prog_cc_c89" != no; then 8091 { echo "$as_me:$LINENO: result: yes" >&5 8092echo "${ECHO_T}yes" >&6; } 8093 8094cat >>confdefs.h <<\_ACEOF 8095@%:@define PROTOTYPES 1 8096_ACEOF 8097 8098 8099cat >>confdefs.h <<\_ACEOF 8100@%:@define __PROTOTYPES 1 8101_ACEOF 8102 8103else 8104 { echo "$as_me:$LINENO: result: no" >&5 8105echo "${ECHO_T}no" >&6; } 8106fi 8107 8108{ echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 8109echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; } 8110if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 8111 echo $ECHO_N "(cached) $ECHO_C" >&6 8112else 8113 ac_cv_func_setvbuf_reversed=no 8114 cat >conftest.$ac_ext <<_ACEOF 8115/* confdefs.h. */ 8116_ACEOF 8117cat confdefs.h >>conftest.$ac_ext 8118cat >>conftest.$ac_ext <<_ACEOF 8119/* end confdefs.h. */ 8120#include <stdio.h> 8121# ifdef PROTOTYPES 8122 int (setvbuf) (FILE *, int, char *, size_t); 8123# endif 8124int 8125main () 8126{ 8127char buf; return setvbuf (stdout, _IOLBF, &buf, 1); 8128 ; 8129 return 0; 8130} 8131_ACEOF 8132rm -f conftest.$ac_objext conftest$ac_exeext 8133if { (ac_try="$ac_link" 8134case "(($ac_try" in 8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8136 *) ac_try_echo=$ac_try;; 8137esac 8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8139 (eval "$ac_link") 2>conftest.er1 8140 ac_status=$? 8141 grep -v '^ *+' conftest.er1 >conftest.err 8142 rm -f conftest.er1 8143 cat conftest.err >&5 8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 (exit $ac_status); } && { 8146 test -z "$ac_c_werror_flag" || 8147 test ! -s conftest.err 8148 } && test -s conftest$ac_exeext && 8149 $as_test_x conftest$ac_exeext; then 8150 cat >conftest.$ac_ext <<_ACEOF 8151/* confdefs.h. */ 8152_ACEOF 8153cat confdefs.h >>conftest.$ac_ext 8154cat >>conftest.$ac_ext <<_ACEOF 8155/* end confdefs.h. */ 8156#include <stdio.h> 8157# ifdef PROTOTYPES 8158 int (setvbuf) (FILE *, int, char *, size_t); 8159# endif 8160int 8161main () 8162{ 8163char buf; return setvbuf (stdout, &buf, _IOLBF, 1); 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168rm -f conftest.$ac_objext conftest$ac_exeext 8169if { (ac_try="$ac_link" 8170case "(($ac_try" in 8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8172 *) ac_try_echo=$ac_try;; 8173esac 8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8175 (eval "$ac_link") 2>conftest.er1 8176 ac_status=$? 8177 grep -v '^ *+' conftest.er1 >conftest.err 8178 rm -f conftest.er1 8179 cat conftest.err >&5 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 (exit $ac_status); } && { 8182 test -z "$ac_c_werror_flag" || 8183 test ! -s conftest.err 8184 } && test -s conftest$ac_exeext && 8185 $as_test_x conftest$ac_exeext; then 8186 # It compiles and links either way, so it must not be declared 8187 # with a prototype and most likely this is a K&R C compiler. 8188 # Try running it. 8189 if test "$cross_compiling" = yes; then 8190 : # Assume setvbuf is not reversed when cross-compiling. 8191else 8192 cat >conftest.$ac_ext <<_ACEOF 8193/* confdefs.h. */ 8194_ACEOF 8195cat confdefs.h >>conftest.$ac_ext 8196cat >>conftest.$ac_ext <<_ACEOF 8197/* end confdefs.h. */ 8198$ac_includes_default 8199int 8200main () 8201{ 8202/* This call has the arguments reversed. 8203 A reversed system may check and see that the address of buf 8204 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 8205 char buf; 8206 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) 8207 return 1; 8208 putchar ('\r'); 8209 return 0; /* Non-reversed systems SEGV here. */ 8210 ; 8211 return 0; 8212} 8213_ACEOF 8214rm -f conftest$ac_exeext 8215if { (ac_try="$ac_link" 8216case "(($ac_try" in 8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8218 *) ac_try_echo=$ac_try;; 8219esac 8220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8221 (eval "$ac_link") 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8225 { (case "(($ac_try" in 8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8227 *) ac_try_echo=$ac_try;; 8228esac 8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8230 (eval "$ac_try") 2>&5 8231 ac_status=$? 8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8233 (exit $ac_status); }; }; then 8234 ac_cv_func_setvbuf_reversed=yes 8235else 8236 echo "$as_me: program exited with status $ac_status" >&5 8237echo "$as_me: failed program was:" >&5 8238sed 's/^/| /' conftest.$ac_ext >&5 8239 8240fi 8241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8242fi 8243 8244 8245 ac_cv_func_setvbuf_reversed=yes 8246else 8247 echo "$as_me: failed program was:" >&5 8248sed 's/^/| /' conftest.$ac_ext >&5 8249 8250 8251fi 8252 8253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8254 conftest$ac_exeext conftest.$ac_ext 8255else 8256 echo "$as_me: failed program was:" >&5 8257sed 's/^/| /' conftest.$ac_ext >&5 8258 8259 8260fi 8261 8262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8263 conftest$ac_exeext conftest.$ac_ext 8264fi 8265{ echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 8266echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; } 8267if test $ac_cv_func_setvbuf_reversed = yes; then 8268 8269cat >>confdefs.h <<\_ACEOF 8270@%:@define SETVBUF_REVERSED 1 8271_ACEOF 8272 8273fi 8274 8275{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 8276echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } 8277if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 8278 echo $ECHO_N "(cached) $ECHO_C" >&6 8279else 8280 rm -f conftest.sym conftest.file 8281echo >conftest.file 8282if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 8283 if test "$cross_compiling" = yes; then 8284 ac_cv_func_lstat_dereferences_slashed_symlink=no 8285else 8286 cat >conftest.$ac_ext <<_ACEOF 8287/* confdefs.h. */ 8288_ACEOF 8289cat confdefs.h >>conftest.$ac_ext 8290cat >>conftest.$ac_ext <<_ACEOF 8291/* end confdefs.h. */ 8292$ac_includes_default 8293int 8294main () 8295{ 8296struct stat sbuf; 8297 /* Linux will dereference the symlink and fail. 8298 That is better in the sense that it means we will not 8299 have to compile and use the lstat wrapper. */ 8300 return lstat ("conftest.sym/", &sbuf) == 0; 8301 ; 8302 return 0; 8303} 8304_ACEOF 8305rm -f conftest$ac_exeext 8306if { (ac_try="$ac_link" 8307case "(($ac_try" in 8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8309 *) ac_try_echo=$ac_try;; 8310esac 8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8312 (eval "$ac_link") 2>&5 8313 ac_status=$? 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8316 { (case "(($ac_try" in 8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8318 *) ac_try_echo=$ac_try;; 8319esac 8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8321 (eval "$ac_try") 2>&5 8322 ac_status=$? 8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8324 (exit $ac_status); }; }; then 8325 ac_cv_func_lstat_dereferences_slashed_symlink=yes 8326else 8327 echo "$as_me: program exited with status $ac_status" >&5 8328echo "$as_me: failed program was:" >&5 8329sed 's/^/| /' conftest.$ac_ext >&5 8330 8331( exit $ac_status ) 8332ac_cv_func_lstat_dereferences_slashed_symlink=no 8333fi 8334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8335fi 8336 8337 8338else 8339 # If the `ln -s' command failed, then we probably don't even 8340 # have an lstat function. 8341 ac_cv_func_lstat_dereferences_slashed_symlink=no 8342fi 8343rm -f conftest.sym conftest.file 8344 8345fi 8346{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 8347echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 8348 8349test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 8350 8351cat >>confdefs.h <<_ACEOF 8352@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 8353_ACEOF 8354 8355 8356if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 8357 case " $LIB@&t@OBJS " in 8358 *" lstat.$ac_objext "* ) ;; 8359 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" 8360 ;; 8361esac 8362 8363fi 8364 8365{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 8366echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } 8367if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 8368 echo $ECHO_N "(cached) $ECHO_C" >&6 8369else 8370 if test "$cross_compiling" = yes; then 8371 ac_cv_func_stat_empty_string_bug=yes 8372else 8373 cat >conftest.$ac_ext <<_ACEOF 8374/* confdefs.h. */ 8375_ACEOF 8376cat confdefs.h >>conftest.$ac_ext 8377cat >>conftest.$ac_ext <<_ACEOF 8378/* end confdefs.h. */ 8379$ac_includes_default 8380int 8381main () 8382{ 8383struct stat sbuf; 8384 return stat ("", &sbuf) == 0; 8385 ; 8386 return 0; 8387} 8388_ACEOF 8389rm -f conftest$ac_exeext 8390if { (ac_try="$ac_link" 8391case "(($ac_try" in 8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8393 *) ac_try_echo=$ac_try;; 8394esac 8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8396 (eval "$ac_link") 2>&5 8397 ac_status=$? 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8400 { (case "(($ac_try" in 8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8402 *) ac_try_echo=$ac_try;; 8403esac 8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8405 (eval "$ac_try") 2>&5 8406 ac_status=$? 8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8408 (exit $ac_status); }; }; then 8409 ac_cv_func_stat_empty_string_bug=no 8410else 8411 echo "$as_me: program exited with status $ac_status" >&5 8412echo "$as_me: failed program was:" >&5 8413sed 's/^/| /' conftest.$ac_ext >&5 8414 8415( exit $ac_status ) 8416ac_cv_func_stat_empty_string_bug=yes 8417fi 8418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8419fi 8420 8421 8422fi 8423{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 8424echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } 8425if test $ac_cv_func_stat_empty_string_bug = yes; then 8426 case " $LIB@&t@OBJS " in 8427 *" stat.$ac_objext "* ) ;; 8428 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" 8429 ;; 8430esac 8431 8432 8433cat >>confdefs.h <<_ACEOF 8434@%:@define HAVE_STAT_EMPTY_STRING_BUG 1 8435_ACEOF 8436 8437fi 8438 8439 8440for ac_func in strftime 8441do 8442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8443{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8445if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8446 echo $ECHO_N "(cached) $ECHO_C" >&6 8447else 8448 cat >conftest.$ac_ext <<_ACEOF 8449/* confdefs.h. */ 8450_ACEOF 8451cat confdefs.h >>conftest.$ac_ext 8452cat >>conftest.$ac_ext <<_ACEOF 8453/* end confdefs.h. */ 8454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8455 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8456#define $ac_func innocuous_$ac_func 8457 8458/* System header to define __stub macros and hopefully few prototypes, 8459 which can conflict with char $ac_func (); below. 8460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8461 <limits.h> exists even on freestanding compilers. */ 8462 8463#ifdef __STDC__ 8464# include <limits.h> 8465#else 8466# include <assert.h> 8467#endif 8468 8469#undef $ac_func 8470 8471/* Override any GCC internal prototype to avoid an error. 8472 Use char because int might match the return type of a GCC 8473 builtin and then its argument prototype would still apply. */ 8474#ifdef __cplusplus 8475extern "C" 8476#endif 8477char $ac_func (); 8478/* The GNU C library defines this for functions which it implements 8479 to always fail with ENOSYS. Some functions are actually named 8480 something starting with __ and the normal name is an alias. */ 8481#if defined __stub_$ac_func || defined __stub___$ac_func 8482choke me 8483#endif 8484 8485int 8486main () 8487{ 8488return $ac_func (); 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493rm -f conftest.$ac_objext conftest$ac_exeext 8494if { (ac_try="$ac_link" 8495case "(($ac_try" in 8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8497 *) ac_try_echo=$ac_try;; 8498esac 8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8500 (eval "$ac_link") 2>conftest.er1 8501 ac_status=$? 8502 grep -v '^ *+' conftest.er1 >conftest.err 8503 rm -f conftest.er1 8504 cat conftest.err >&5 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 (exit $ac_status); } && { 8507 test -z "$ac_c_werror_flag" || 8508 test ! -s conftest.err 8509 } && test -s conftest$ac_exeext && 8510 $as_test_x conftest$ac_exeext; then 8511 eval "$as_ac_var=yes" 8512else 8513 echo "$as_me: failed program was:" >&5 8514sed 's/^/| /' conftest.$ac_ext >&5 8515 8516 eval "$as_ac_var=no" 8517fi 8518 8519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8520 conftest$ac_exeext conftest.$ac_ext 8521fi 8522ac_res=`eval echo '${'$as_ac_var'}'` 8523 { echo "$as_me:$LINENO: result: $ac_res" >&5 8524echo "${ECHO_T}$ac_res" >&6; } 8525if test `eval echo '${'$as_ac_var'}'` = yes; then 8526 cat >>confdefs.h <<_ACEOF 8527@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8528_ACEOF 8529 8530else 8531 # strftime is in -lintl on SCO UNIX. 8532{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 8533echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 8534if test "${ac_cv_lib_intl_strftime+set}" = set; then 8535 echo $ECHO_N "(cached) $ECHO_C" >&6 8536else 8537 ac_check_lib_save_LIBS=$LIBS 8538LIBS="-lintl $LIBS" 8539cat >conftest.$ac_ext <<_ACEOF 8540/* confdefs.h. */ 8541_ACEOF 8542cat confdefs.h >>conftest.$ac_ext 8543cat >>conftest.$ac_ext <<_ACEOF 8544/* end confdefs.h. */ 8545 8546/* Override any GCC internal prototype to avoid an error. 8547 Use char because int might match the return type of a GCC 8548 builtin and then its argument prototype would still apply. */ 8549#ifdef __cplusplus 8550extern "C" 8551#endif 8552char strftime (); 8553int 8554main () 8555{ 8556return strftime (); 8557 ; 8558 return 0; 8559} 8560_ACEOF 8561rm -f conftest.$ac_objext conftest$ac_exeext 8562if { (ac_try="$ac_link" 8563case "(($ac_try" in 8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8565 *) ac_try_echo=$ac_try;; 8566esac 8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8568 (eval "$ac_link") 2>conftest.er1 8569 ac_status=$? 8570 grep -v '^ *+' conftest.er1 >conftest.err 8571 rm -f conftest.er1 8572 cat conftest.err >&5 8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 (exit $ac_status); } && { 8575 test -z "$ac_c_werror_flag" || 8576 test ! -s conftest.err 8577 } && test -s conftest$ac_exeext && 8578 $as_test_x conftest$ac_exeext; then 8579 ac_cv_lib_intl_strftime=yes 8580else 8581 echo "$as_me: failed program was:" >&5 8582sed 's/^/| /' conftest.$ac_ext >&5 8583 8584 ac_cv_lib_intl_strftime=no 8585fi 8586 8587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8588 conftest$ac_exeext conftest.$ac_ext 8589LIBS=$ac_check_lib_save_LIBS 8590fi 8591{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 8592echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 8593if test $ac_cv_lib_intl_strftime = yes; then 8594 cat >>confdefs.h <<\_ACEOF 8595@%:@define HAVE_STRFTIME 1 8596_ACEOF 8597 8598LIBS="-lintl $LIBS" 8599fi 8600 8601fi 8602done 8603 8604{ echo "$as_me:$LINENO: checking for working strtod" >&5 8605echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } 8606if test "${ac_cv_func_strtod+set}" = set; then 8607 echo $ECHO_N "(cached) $ECHO_C" >&6 8608else 8609 if test "$cross_compiling" = yes; then 8610 ac_cv_func_strtod=no 8611else 8612 cat >conftest.$ac_ext <<_ACEOF 8613/* confdefs.h. */ 8614_ACEOF 8615cat confdefs.h >>conftest.$ac_ext 8616cat >>conftest.$ac_ext <<_ACEOF 8617/* end confdefs.h. */ 8618 8619$ac_includes_default 8620#ifndef strtod 8621double strtod (); 8622#endif 8623int 8624main() 8625{ 8626 { 8627 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 8628 char *string = " +69"; 8629 char *term; 8630 double value; 8631 value = strtod (string, &term); 8632 if (value != 69 || term != (string + 4)) 8633 return 1; 8634 } 8635 8636 { 8637 /* Under Solaris 2.4, strtod returns the wrong value for the 8638 terminating character under some conditions. */ 8639 char *string = "NaN"; 8640 char *term; 8641 strtod (string, &term); 8642 if (term != string && *(term - 1) == 0) 8643 return 1; 8644 } 8645 return 0; 8646} 8647 8648_ACEOF 8649rm -f conftest$ac_exeext 8650if { (ac_try="$ac_link" 8651case "(($ac_try" in 8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8653 *) ac_try_echo=$ac_try;; 8654esac 8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8656 (eval "$ac_link") 2>&5 8657 ac_status=$? 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8660 { (case "(($ac_try" in 8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8662 *) ac_try_echo=$ac_try;; 8663esac 8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8665 (eval "$ac_try") 2>&5 8666 ac_status=$? 8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8668 (exit $ac_status); }; }; then 8669 ac_cv_func_strtod=yes 8670else 8671 echo "$as_me: program exited with status $ac_status" >&5 8672echo "$as_me: failed program was:" >&5 8673sed 's/^/| /' conftest.$ac_ext >&5 8674 8675( exit $ac_status ) 8676ac_cv_func_strtod=no 8677fi 8678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8679fi 8680 8681 8682fi 8683{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 8684echo "${ECHO_T}$ac_cv_func_strtod" >&6; } 8685if test $ac_cv_func_strtod = no; then 8686 case " $LIB@&t@OBJS " in 8687 *" strtod.$ac_objext "* ) ;; 8688 *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext" 8689 ;; 8690esac 8691 8692{ echo "$as_me:$LINENO: checking for pow" >&5 8693echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 8694if test "${ac_cv_func_pow+set}" = set; then 8695 echo $ECHO_N "(cached) $ECHO_C" >&6 8696else 8697 cat >conftest.$ac_ext <<_ACEOF 8698/* confdefs.h. */ 8699_ACEOF 8700cat confdefs.h >>conftest.$ac_ext 8701cat >>conftest.$ac_ext <<_ACEOF 8702/* end confdefs.h. */ 8703/* Define pow to an innocuous variant, in case <limits.h> declares pow. 8704 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8705#define pow innocuous_pow 8706 8707/* System header to define __stub macros and hopefully few prototypes, 8708 which can conflict with char pow (); below. 8709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8710 <limits.h> exists even on freestanding compilers. */ 8711 8712#ifdef __STDC__ 8713# include <limits.h> 8714#else 8715# include <assert.h> 8716#endif 8717 8718#undef pow 8719 8720/* Override any GCC internal prototype to avoid an error. 8721 Use char because int might match the return type of a GCC 8722 builtin and then its argument prototype would still apply. */ 8723#ifdef __cplusplus 8724extern "C" 8725#endif 8726char pow (); 8727/* The GNU C library defines this for functions which it implements 8728 to always fail with ENOSYS. Some functions are actually named 8729 something starting with __ and the normal name is an alias. */ 8730#if defined __stub_pow || defined __stub___pow 8731choke me 8732#endif 8733 8734int 8735main () 8736{ 8737return pow (); 8738 ; 8739 return 0; 8740} 8741_ACEOF 8742rm -f conftest.$ac_objext conftest$ac_exeext 8743if { (ac_try="$ac_link" 8744case "(($ac_try" in 8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8746 *) ac_try_echo=$ac_try;; 8747esac 8748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8749 (eval "$ac_link") 2>conftest.er1 8750 ac_status=$? 8751 grep -v '^ *+' conftest.er1 >conftest.err 8752 rm -f conftest.er1 8753 cat conftest.err >&5 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8755 (exit $ac_status); } && { 8756 test -z "$ac_c_werror_flag" || 8757 test ! -s conftest.err 8758 } && test -s conftest$ac_exeext && 8759 $as_test_x conftest$ac_exeext; then 8760 ac_cv_func_pow=yes 8761else 8762 echo "$as_me: failed program was:" >&5 8763sed 's/^/| /' conftest.$ac_ext >&5 8764 8765 ac_cv_func_pow=no 8766fi 8767 8768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8769 conftest$ac_exeext conftest.$ac_ext 8770fi 8771{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 8772echo "${ECHO_T}$ac_cv_func_pow" >&6; } 8773 8774if test $ac_cv_func_pow = no; then 8775 { echo "$as_me:$LINENO: checking for pow in -lm" >&5 8776echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 8777if test "${ac_cv_lib_m_pow+set}" = set; then 8778 echo $ECHO_N "(cached) $ECHO_C" >&6 8779else 8780 ac_check_lib_save_LIBS=$LIBS 8781LIBS="-lm $LIBS" 8782cat >conftest.$ac_ext <<_ACEOF 8783/* confdefs.h. */ 8784_ACEOF 8785cat confdefs.h >>conftest.$ac_ext 8786cat >>conftest.$ac_ext <<_ACEOF 8787/* end confdefs.h. */ 8788 8789/* Override any GCC internal prototype to avoid an error. 8790 Use char because int might match the return type of a GCC 8791 builtin and then its argument prototype would still apply. */ 8792#ifdef __cplusplus 8793extern "C" 8794#endif 8795char pow (); 8796int 8797main () 8798{ 8799return pow (); 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804rm -f conftest.$ac_objext conftest$ac_exeext 8805if { (ac_try="$ac_link" 8806case "(($ac_try" in 8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8808 *) ac_try_echo=$ac_try;; 8809esac 8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8811 (eval "$ac_link") 2>conftest.er1 8812 ac_status=$? 8813 grep -v '^ *+' conftest.er1 >conftest.err 8814 rm -f conftest.er1 8815 cat conftest.err >&5 8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8817 (exit $ac_status); } && { 8818 test -z "$ac_c_werror_flag" || 8819 test ! -s conftest.err 8820 } && test -s conftest$ac_exeext && 8821 $as_test_x conftest$ac_exeext; then 8822 ac_cv_lib_m_pow=yes 8823else 8824 echo "$as_me: failed program was:" >&5 8825sed 's/^/| /' conftest.$ac_ext >&5 8826 8827 ac_cv_lib_m_pow=no 8828fi 8829 8830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8831 conftest$ac_exeext conftest.$ac_ext 8832LIBS=$ac_check_lib_save_LIBS 8833fi 8834{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 8835echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 8836if test $ac_cv_lib_m_pow = yes; then 8837 POW_LIB=-lm 8838else 8839 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 8840echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 8841fi 8842 8843fi 8844 8845fi 8846 8847 8848for ac_func in vprintf 8849do 8850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8851{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8854 echo $ECHO_N "(cached) $ECHO_C" >&6 8855else 8856 cat >conftest.$ac_ext <<_ACEOF 8857/* confdefs.h. */ 8858_ACEOF 8859cat confdefs.h >>conftest.$ac_ext 8860cat >>conftest.$ac_ext <<_ACEOF 8861/* end confdefs.h. */ 8862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8863 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8864#define $ac_func innocuous_$ac_func 8865 8866/* System header to define __stub macros and hopefully few prototypes, 8867 which can conflict with char $ac_func (); below. 8868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8869 <limits.h> exists even on freestanding compilers. */ 8870 8871#ifdef __STDC__ 8872# include <limits.h> 8873#else 8874# include <assert.h> 8875#endif 8876 8877#undef $ac_func 8878 8879/* Override any GCC internal prototype to avoid an error. 8880 Use char because int might match the return type of a GCC 8881 builtin and then its argument prototype would still apply. */ 8882#ifdef __cplusplus 8883extern "C" 8884#endif 8885char $ac_func (); 8886/* The GNU C library defines this for functions which it implements 8887 to always fail with ENOSYS. Some functions are actually named 8888 something starting with __ and the normal name is an alias. */ 8889#if defined __stub_$ac_func || defined __stub___$ac_func 8890choke me 8891#endif 8892 8893int 8894main () 8895{ 8896return $ac_func (); 8897 ; 8898 return 0; 8899} 8900_ACEOF 8901rm -f conftest.$ac_objext conftest$ac_exeext 8902if { (ac_try="$ac_link" 8903case "(($ac_try" in 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8905 *) ac_try_echo=$ac_try;; 8906esac 8907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8908 (eval "$ac_link") 2>conftest.er1 8909 ac_status=$? 8910 grep -v '^ *+' conftest.er1 >conftest.err 8911 rm -f conftest.er1 8912 cat conftest.err >&5 8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 (exit $ac_status); } && { 8915 test -z "$ac_c_werror_flag" || 8916 test ! -s conftest.err 8917 } && test -s conftest$ac_exeext && 8918 $as_test_x conftest$ac_exeext; then 8919 eval "$as_ac_var=yes" 8920else 8921 echo "$as_me: failed program was:" >&5 8922sed 's/^/| /' conftest.$ac_ext >&5 8923 8924 eval "$as_ac_var=no" 8925fi 8926 8927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8928 conftest$ac_exeext conftest.$ac_ext 8929fi 8930ac_res=`eval echo '${'$as_ac_var'}'` 8931 { echo "$as_me:$LINENO: result: $ac_res" >&5 8932echo "${ECHO_T}$ac_res" >&6; } 8933if test `eval echo '${'$as_ac_var'}'` = yes; then 8934 cat >>confdefs.h <<_ACEOF 8935@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8936_ACEOF 8937 8938{ echo "$as_me:$LINENO: checking for _doprnt" >&5 8939echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 8940if test "${ac_cv_func__doprnt+set}" = set; then 8941 echo $ECHO_N "(cached) $ECHO_C" >&6 8942else 8943 cat >conftest.$ac_ext <<_ACEOF 8944/* confdefs.h. */ 8945_ACEOF 8946cat confdefs.h >>conftest.$ac_ext 8947cat >>conftest.$ac_ext <<_ACEOF 8948/* end confdefs.h. */ 8949/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8951#define _doprnt innocuous__doprnt 8952 8953/* System header to define __stub macros and hopefully few prototypes, 8954 which can conflict with char _doprnt (); below. 8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8956 <limits.h> exists even on freestanding compilers. */ 8957 8958#ifdef __STDC__ 8959# include <limits.h> 8960#else 8961# include <assert.h> 8962#endif 8963 8964#undef _doprnt 8965 8966/* Override any GCC internal prototype to avoid an error. 8967 Use char because int might match the return type of a GCC 8968 builtin and then its argument prototype would still apply. */ 8969#ifdef __cplusplus 8970extern "C" 8971#endif 8972char _doprnt (); 8973/* The GNU C library defines this for functions which it implements 8974 to always fail with ENOSYS. Some functions are actually named 8975 something starting with __ and the normal name is an alias. */ 8976#if defined __stub__doprnt || defined __stub____doprnt 8977choke me 8978#endif 8979 8980int 8981main () 8982{ 8983return _doprnt (); 8984 ; 8985 return 0; 8986} 8987_ACEOF 8988rm -f conftest.$ac_objext conftest$ac_exeext 8989if { (ac_try="$ac_link" 8990case "(($ac_try" in 8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8992 *) ac_try_echo=$ac_try;; 8993esac 8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8995 (eval "$ac_link") 2>conftest.er1 8996 ac_status=$? 8997 grep -v '^ *+' conftest.er1 >conftest.err 8998 rm -f conftest.er1 8999 cat conftest.err >&5 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); } && { 9002 test -z "$ac_c_werror_flag" || 9003 test ! -s conftest.err 9004 } && test -s conftest$ac_exeext && 9005 $as_test_x conftest$ac_exeext; then 9006 ac_cv_func__doprnt=yes 9007else 9008 echo "$as_me: failed program was:" >&5 9009sed 's/^/| /' conftest.$ac_ext >&5 9010 9011 ac_cv_func__doprnt=no 9012fi 9013 9014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9015 conftest$ac_exeext conftest.$ac_ext 9016fi 9017{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9018echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 9019if test $ac_cv_func__doprnt = yes; then 9020 9021cat >>confdefs.h <<\_ACEOF 9022@%:@define HAVE_DOPRNT 1 9023_ACEOF 9024 9025fi 9026 9027fi 9028done 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061for ac_func in \ 9062 alarm \ 9063 floor \ 9064 gethostbyaddr \ 9065 gethostbyname \ 9066 gethostname \ 9067 gettimeofday \ 9068 inet_ntoa \ 9069 isascii \ 9070 memchr \ 9071 memmove \ 9072 memset \ 9073 mkdir \ 9074 pow \ 9075 rint \ 9076 select \ 9077 socket \ 9078 sqrt \ 9079 strcasecmp \ 9080 strchr \ 9081 strdup \ 9082 strerror \ 9083 strlcat \ 9084 strlcpy \ 9085 strncasecmp \ 9086 strpbrk \ 9087 strrchr \ 9088 strspn \ 9089 strstr \ 9090 strtol \ 9091 strtoul \ 9092 9093do 9094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9095{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9098 echo $ECHO_N "(cached) $ECHO_C" >&6 9099else 9100 cat >conftest.$ac_ext <<_ACEOF 9101/* confdefs.h. */ 9102_ACEOF 9103cat confdefs.h >>conftest.$ac_ext 9104cat >>conftest.$ac_ext <<_ACEOF 9105/* end confdefs.h. */ 9106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9107 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9108#define $ac_func innocuous_$ac_func 9109 9110/* System header to define __stub macros and hopefully few prototypes, 9111 which can conflict with char $ac_func (); below. 9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9113 <limits.h> exists even on freestanding compilers. */ 9114 9115#ifdef __STDC__ 9116# include <limits.h> 9117#else 9118# include <assert.h> 9119#endif 9120 9121#undef $ac_func 9122 9123/* Override any GCC internal prototype to avoid an error. 9124 Use char because int might match the return type of a GCC 9125 builtin and then its argument prototype would still apply. */ 9126#ifdef __cplusplus 9127extern "C" 9128#endif 9129char $ac_func (); 9130/* The GNU C library defines this for functions which it implements 9131 to always fail with ENOSYS. Some functions are actually named 9132 something starting with __ and the normal name is an alias. */ 9133#if defined __stub_$ac_func || defined __stub___$ac_func 9134choke me 9135#endif 9136 9137int 9138main () 9139{ 9140return $ac_func (); 9141 ; 9142 return 0; 9143} 9144_ACEOF 9145rm -f conftest.$ac_objext conftest$ac_exeext 9146if { (ac_try="$ac_link" 9147case "(($ac_try" in 9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9149 *) ac_try_echo=$ac_try;; 9150esac 9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9152 (eval "$ac_link") 2>conftest.er1 9153 ac_status=$? 9154 grep -v '^ *+' conftest.er1 >conftest.err 9155 rm -f conftest.er1 9156 cat conftest.err >&5 9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9158 (exit $ac_status); } && { 9159 test -z "$ac_c_werror_flag" || 9160 test ! -s conftest.err 9161 } && test -s conftest$ac_exeext && 9162 $as_test_x conftest$ac_exeext; then 9163 eval "$as_ac_var=yes" 9164else 9165 echo "$as_me: failed program was:" >&5 9166sed 's/^/| /' conftest.$ac_ext >&5 9167 9168 eval "$as_ac_var=no" 9169fi 9170 9171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9172 conftest$ac_exeext conftest.$ac_ext 9173fi 9174ac_res=`eval echo '${'$as_ac_var'}'` 9175 { echo "$as_me:$LINENO: result: $ac_res" >&5 9176echo "${ECHO_T}$ac_res" >&6; } 9177if test `eval echo '${'$as_ac_var'}'` = yes; then 9178 cat >>confdefs.h <<_ACEOF 9179@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9180_ACEOF 9181 9182fi 9183done 9184 9185 9186ac_config_files="$ac_config_files Makefile README contrib/Makefile contrib/xpngcc/Makefile doc/Makefile doc/man/Makefile lib/Makefile lib/fonts/Makefile lib/maps/Makefile lib/textures/Makefile lib/sound/Makefile src/Makefile src/common/Makefile src/common/version.h src/common/NT/Makefile src/common/NT/bindist/Makefile src/client/Makefile src/client/items/Makefile src/client/sdl/Makefile src/client/x11/Makefile src/client/NT/Makefile src/client/NT/res/Makefile src/server/Makefile src/replay/Makefile src/replay/tools/Makefile src/mapedit/Makefile" 9187 9188cat >confcache <<\_ACEOF 9189# This file is a shell script that caches the results of configure 9190# tests run on this system so they can be shared between configure 9191# scripts and configure runs, see configure's option --config-cache. 9192# It is not useful on other systems. If it contains results you don't 9193# want to keep, you may remove or edit it. 9194# 9195# config.status only pays attention to the cache file if you give it 9196# the --recheck option to rerun configure. 9197# 9198# `ac_cv_env_foo' variables (set or unset) will be overridden when 9199# loading this file, other *unset* `ac_cv_foo' will be assigned the 9200# following values. 9201 9202_ACEOF 9203 9204# The following way of writing the cache mishandles newlines in values, 9205# but we know of no workaround that is simple, portable, and efficient. 9206# So, we kill variables containing newlines. 9207# Ultrix sh set writes to stderr and can't be redirected directly, 9208# and sets the high bit in the cache file unless we assign to the vars. 9209( 9210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9211 eval ac_val=\$$ac_var 9212 case $ac_val in #( 9213 *${as_nl}*) 9214 case $ac_var in #( 9215 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 9216echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 9217 esac 9218 case $ac_var in #( 9219 _ | IFS | as_nl) ;; #( 9220 *) $as_unset $ac_var ;; 9221 esac ;; 9222 esac 9223 done 9224 9225 (set) 2>&1 | 9226 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9227 *${as_nl}ac_space=\ *) 9228 # `set' does not quote correctly, so add quotes (double-quote 9229 # substitution turns \\\\ into \\, and sed turns \\ into \). 9230 sed -n \ 9231 "s/'/'\\\\''/g; 9232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9233 ;; #( 9234 *) 9235 # `set' quotes correctly as required by POSIX, so do not add quotes. 9236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9237 ;; 9238 esac | 9239 sort 9240) | 9241 sed ' 9242 /^ac_cv_env_/b end 9243 t clear 9244 :clear 9245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9246 t end 9247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9248 :end' >>confcache 9249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9250 if test -w "$cache_file"; then 9251 test "x$cache_file" != "x/dev/null" && 9252 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 9253echo "$as_me: updating cache $cache_file" >&6;} 9254 cat confcache >$cache_file 9255 else 9256 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 9257echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9258 fi 9259fi 9260rm -f confcache 9261 9262test "x$prefix" = xNONE && prefix=$ac_default_prefix 9263# Let make expand exec_prefix. 9264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9265 9266DEFS=-DHAVE_CONFIG_H 9267 9268ac_libobjs= 9269ac_ltlibobjs= 9270for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 9271 # 1. Remove the extension, and $U if already installed. 9272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9273 ac_i=`echo "$ac_i" | sed "$ac_script"` 9274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9275 # will be set to the directory where LIBOBJS objects are built. 9276 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9277 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 9278done 9279LIB@&t@OBJS=$ac_libobjs 9280 9281LTLIBOBJS=$ac_ltlibobjs 9282 9283 9284if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 9285 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 9286Usually this means the macro was only invoked conditionally." >&5 9287echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 9288Usually this means the macro was only invoked conditionally." >&2;} 9289 { (exit 1); exit 1; }; } 9290fi 9291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9292 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 9293Usually this means the macro was only invoked conditionally." >&5 9294echo "$as_me: error: conditional \"AMDEP\" was never defined. 9295Usually this means the macro was only invoked conditionally." >&2;} 9296 { (exit 1); exit 1; }; } 9297fi 9298if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9299 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 9300Usually this means the macro was only invoked conditionally." >&5 9301echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 9302Usually this means the macro was only invoked conditionally." >&2;} 9303 { (exit 1); exit 1; }; } 9304fi 9305if test -z "${COND_CLIENT_TRUE}" && test -z "${COND_CLIENT_FALSE}"; then 9306 { { echo "$as_me:$LINENO: error: conditional \"COND_CLIENT\" was never defined. 9307Usually this means the macro was only invoked conditionally." >&5 9308echo "$as_me: error: conditional \"COND_CLIENT\" was never defined. 9309Usually this means the macro was only invoked conditionally." >&2;} 9310 { (exit 1); exit 1; }; } 9311fi 9312if test -z "${COND_WINDOWS_TRUE}" && test -z "${COND_WINDOWS_FALSE}"; then 9313 { { echo "$as_me:$LINENO: error: conditional \"COND_WINDOWS\" was never defined. 9314Usually this means the macro was only invoked conditionally." >&5 9315echo "$as_me: error: conditional \"COND_WINDOWS\" was never defined. 9316Usually this means the macro was only invoked conditionally." >&2;} 9317 { (exit 1); exit 1; }; } 9318fi 9319if test -z "${COND_REPLAY_TRUE}" && test -z "${COND_REPLAY_FALSE}"; then 9320 { { echo "$as_me:$LINENO: error: conditional \"COND_REPLAY\" was never defined. 9321Usually this means the macro was only invoked conditionally." >&5 9322echo "$as_me: error: conditional \"COND_REPLAY\" was never defined. 9323Usually this means the macro was only invoked conditionally." >&2;} 9324 { (exit 1); exit 1; }; } 9325fi 9326if test -z "${COND_XP_MAPEDIT_TRUE}" && test -z "${COND_XP_MAPEDIT_FALSE}"; then 9327 { { echo "$as_me:$LINENO: error: conditional \"COND_XP_MAPEDIT\" was never defined. 9328Usually this means the macro was only invoked conditionally." >&5 9329echo "$as_me: error: conditional \"COND_XP_MAPEDIT\" was never defined. 9330Usually this means the macro was only invoked conditionally." >&2;} 9331 { (exit 1); exit 1; }; } 9332fi 9333if test -z "${COND_X11_CLIENT_TRUE}" && test -z "${COND_X11_CLIENT_FALSE}"; then 9334 { { echo "$as_me:$LINENO: error: conditional \"COND_X11_CLIENT\" was never defined. 9335Usually this means the macro was only invoked conditionally." >&5 9336echo "$as_me: error: conditional \"COND_X11_CLIENT\" was never defined. 9337Usually this means the macro was only invoked conditionally." >&2;} 9338 { (exit 1); exit 1; }; } 9339fi 9340if test -z "${COND_SDL_CLIENT_TRUE}" && test -z "${COND_SDL_CLIENT_FALSE}"; then 9341 { { echo "$as_me:$LINENO: error: conditional \"COND_SDL_CLIENT\" was never defined. 9342Usually this means the macro was only invoked conditionally." >&5 9343echo "$as_me: error: conditional \"COND_SDL_CLIENT\" was never defined. 9344Usually this means the macro was only invoked conditionally." >&2;} 9345 { (exit 1); exit 1; }; } 9346fi 9347if test -z "${COND_SDL_GAMELOOP_TRUE}" && test -z "${COND_SDL_GAMELOOP_FALSE}"; then 9348 { { echo "$as_me:$LINENO: error: conditional \"COND_SDL_GAMELOOP\" was never defined. 9349Usually this means the macro was only invoked conditionally." >&5 9350echo "$as_me: error: conditional \"COND_SDL_GAMELOOP\" was never defined. 9351Usually this means the macro was only invoked conditionally." >&2;} 9352 { (exit 1); exit 1; }; } 9353fi 9354if test -z "${COND_SOUND_TRUE}" && test -z "${COND_SOUND_FALSE}"; then 9355 { { echo "$as_me:$LINENO: error: conditional \"COND_SOUND\" was never defined. 9356Usually this means the macro was only invoked conditionally." >&5 9357echo "$as_me: error: conditional \"COND_SOUND\" was never defined. 9358Usually this means the macro was only invoked conditionally." >&2;} 9359 { (exit 1); exit 1; }; } 9360fi 9361 9362: ${CONFIG_STATUS=./config.status} 9363ac_clean_files_save=$ac_clean_files 9364ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9365{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 9366echo "$as_me: creating $CONFIG_STATUS" >&6;} 9367cat >$CONFIG_STATUS <<_ACEOF 9368#! $SHELL 9369# Generated by $as_me. 9370# Run this file to recreate the current configuration. 9371# Compiler output produced by configure, useful for debugging 9372# configure, is in config.log if it exists. 9373 9374debug=false 9375ac_cs_recheck=false 9376ac_cs_silent=false 9377SHELL=\${CONFIG_SHELL-$SHELL} 9378_ACEOF 9379 9380cat >>$CONFIG_STATUS <<\_ACEOF 9381## --------------------- ## 9382## M4sh Initialization. ## 9383## --------------------- ## 9384 9385# Be more Bourne compatible 9386DUALCASE=1; export DUALCASE # for MKS sh 9387if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9388 emulate sh 9389 NULLCMD=: 9390 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 9391 # is contrary to our usage. Disable this feature. 9392 alias -g '${1+"$@"}'='"$@"' 9393 setopt NO_GLOB_SUBST 9394else 9395 case `(set -o) 2>/dev/null` in 9396 *posix*) set -o posix ;; 9397esac 9398 9399fi 9400 9401 9402 9403 9404# PATH needs CR 9405# Avoid depending upon Character Ranges. 9406as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9407as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9408as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9409as_cr_digits='0123456789' 9410as_cr_alnum=$as_cr_Letters$as_cr_digits 9411 9412# The user is always right. 9413if test "${PATH_SEPARATOR+set}" != set; then 9414 echo "#! /bin/sh" >conf$$.sh 9415 echo "exit 0" >>conf$$.sh 9416 chmod +x conf$$.sh 9417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 9418 PATH_SEPARATOR=';' 9419 else 9420 PATH_SEPARATOR=: 9421 fi 9422 rm -f conf$$.sh 9423fi 9424 9425# Support unset when possible. 9426if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9427 as_unset=unset 9428else 9429 as_unset=false 9430fi 9431 9432 9433# IFS 9434# We need space, tab and new line, in precisely that order. Quoting is 9435# there to prevent editors from complaining about space-tab. 9436# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9437# splitting by setting IFS to empty value.) 9438as_nl=' 9439' 9440IFS=" "" $as_nl" 9441 9442# Find who we are. Look in the path if we contain no directory separator. 9443case $0 in 9444 *[\\/]* ) as_myself=$0 ;; 9445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9446for as_dir in $PATH 9447do 9448 IFS=$as_save_IFS 9449 test -z "$as_dir" && as_dir=. 9450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9451done 9452IFS=$as_save_IFS 9453 9454 ;; 9455esac 9456# We did not find ourselves, most probably we were run as `sh COMMAND' 9457# in which case we are not to be found in the path. 9458if test "x$as_myself" = x; then 9459 as_myself=$0 9460fi 9461if test ! -f "$as_myself"; then 9462 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9463 { (exit 1); exit 1; } 9464fi 9465 9466# Work around bugs in pre-3.0 UWIN ksh. 9467for as_var in ENV MAIL MAILPATH 9468do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 9469done 9470PS1='$ ' 9471PS2='> ' 9472PS4='+ ' 9473 9474# NLS nuisances. 9475for as_var in \ 9476 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 9477 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 9478 LC_TELEPHONE LC_TIME 9479do 9480 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 9481 eval $as_var=C; export $as_var 9482 else 9483 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 9484 fi 9485done 9486 9487# Required to use basename. 9488if expr a : '\(a\)' >/dev/null 2>&1 && 9489 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9490 as_expr=expr 9491else 9492 as_expr=false 9493fi 9494 9495if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9496 as_basename=basename 9497else 9498 as_basename=false 9499fi 9500 9501 9502# Name of the executable. 9503as_me=`$as_basename -- "$0" || 9504$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9505 X"$0" : 'X\(//\)$' \| \ 9506 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9507echo X/"$0" | 9508 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9509 s//\1/ 9510 q 9511 } 9512 /^X\/\(\/\/\)$/{ 9513 s//\1/ 9514 q 9515 } 9516 /^X\/\(\/\).*/{ 9517 s//\1/ 9518 q 9519 } 9520 s/.*/./; q'` 9521 9522# CDPATH. 9523$as_unset CDPATH 9524 9525 9526 9527 as_lineno_1=$LINENO 9528 as_lineno_2=$LINENO 9529 test "x$as_lineno_1" != "x$as_lineno_2" && 9530 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 9531 9532 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9533 # uniformly replaced by the line number. The first 'sed' inserts a 9534 # line-number line after each line using $LINENO; the second 'sed' 9535 # does the real work. The second script uses 'N' to pair each 9536 # line-number line with the line containing $LINENO, and appends 9537 # trailing '-' during substitution so that $LINENO is not a special 9538 # case at line end. 9539 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9540 # scripts with optimization help from Paolo Bonzini. Blame Lee 9541 # E. McMahon (1931-1989) for sed's syntax. :-) 9542 sed -n ' 9543 p 9544 /[$]LINENO/= 9545 ' <$as_myself | 9546 sed ' 9547 s/[$]LINENO.*/&-/ 9548 t lineno 9549 b 9550 :lineno 9551 N 9552 :loop 9553 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 9554 t loop 9555 s/-\n.*// 9556 ' >$as_me.lineno && 9557 chmod +x "$as_me.lineno" || 9558 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 9559 { (exit 1); exit 1; }; } 9560 9561 # Don't try to exec as it changes $[0], causing all sort of problems 9562 # (the dirname of $[0] is not the place where we might find the 9563 # original and so on. Autoconf is especially sensitive to this). 9564 . "./$as_me.lineno" 9565 # Exit status is that of the last command. 9566 exit 9567} 9568 9569 9570if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9571 as_dirname=dirname 9572else 9573 as_dirname=false 9574fi 9575 9576ECHO_C= ECHO_N= ECHO_T= 9577case `echo -n x` in 9578-n*) 9579 case `echo 'x\c'` in 9580 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9581 *) ECHO_C='\c';; 9582 esac;; 9583*) 9584 ECHO_N='-n';; 9585esac 9586 9587if expr a : '\(a\)' >/dev/null 2>&1 && 9588 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9589 as_expr=expr 9590else 9591 as_expr=false 9592fi 9593 9594rm -f conf$$ conf$$.exe conf$$.file 9595if test -d conf$$.dir; then 9596 rm -f conf$$.dir/conf$$.file 9597else 9598 rm -f conf$$.dir 9599 mkdir conf$$.dir 9600fi 9601echo >conf$$.file 9602if ln -s conf$$.file conf$$ 2>/dev/null; then 9603 as_ln_s='ln -s' 9604 # ... but there are two gotchas: 9605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9607 # In both cases, we have to default to `cp -p'. 9608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9609 as_ln_s='cp -p' 9610elif ln conf$$.file conf$$ 2>/dev/null; then 9611 as_ln_s=ln 9612else 9613 as_ln_s='cp -p' 9614fi 9615rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9616rmdir conf$$.dir 2>/dev/null 9617 9618if mkdir -p . 2>/dev/null; then 9619 as_mkdir_p=: 9620else 9621 test -d ./-p && rmdir ./-p 9622 as_mkdir_p=false 9623fi 9624 9625if test -x / >/dev/null 2>&1; then 9626 as_test_x='test -x' 9627else 9628 if ls -dL / >/dev/null 2>&1; then 9629 as_ls_L_option=L 9630 else 9631 as_ls_L_option= 9632 fi 9633 as_test_x=' 9634 eval sh -c '\'' 9635 if test -d "$1"; then 9636 test -d "$1/."; 9637 else 9638 case $1 in 9639 -*)set "./$1";; 9640 esac; 9641 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 9642 ???[sx]*):;;*)false;;esac;fi 9643 '\'' sh 9644 ' 9645fi 9646as_executable_p=$as_test_x 9647 9648# Sed expression to map a string onto a valid CPP name. 9649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9650 9651# Sed expression to map a string onto a valid variable name. 9652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9653 9654 9655exec 6>&1 9656 9657# Save the log message, to keep $[0] and so on meaningful, and to 9658# report actual input values of CONFIG_FILES etc. instead of their 9659# values after options handling. 9660ac_log=" 9661This file was extended by XPilot NG $as_me 4.7.3, which was 9662generated by GNU Autoconf 2.61. Invocation command line was 9663 9664 CONFIG_FILES = $CONFIG_FILES 9665 CONFIG_HEADERS = $CONFIG_HEADERS 9666 CONFIG_LINKS = $CONFIG_LINKS 9667 CONFIG_COMMANDS = $CONFIG_COMMANDS 9668 $ $0 $@ 9669 9670on `(hostname || uname -n) 2>/dev/null | sed 1q` 9671" 9672 9673_ACEOF 9674 9675cat >>$CONFIG_STATUS <<_ACEOF 9676# Files that config.status was made for. 9677config_files="$ac_config_files" 9678config_headers="$ac_config_headers" 9679config_commands="$ac_config_commands" 9680 9681_ACEOF 9682 9683cat >>$CONFIG_STATUS <<\_ACEOF 9684ac_cs_usage="\ 9685\`$as_me' instantiates files from templates according to the 9686current configuration. 9687 9688Usage: $0 [OPTIONS] [FILE]... 9689 9690 -h, --help print this help, then exit 9691 -V, --version print version number and configuration settings, then exit 9692 -q, --quiet do not print progress messages 9693 -d, --debug don't remove temporary files 9694 --recheck update $as_me by reconfiguring in the same conditions 9695 --file=FILE[:TEMPLATE] 9696 instantiate the configuration file FILE 9697 --header=FILE[:TEMPLATE] 9698 instantiate the configuration header FILE 9699 9700Configuration files: 9701$config_files 9702 9703Configuration headers: 9704$config_headers 9705 9706Configuration commands: 9707$config_commands 9708 9709Report bugs to <bug-autoconf@gnu.org>." 9710 9711_ACEOF 9712cat >>$CONFIG_STATUS <<_ACEOF 9713ac_cs_version="\\ 9714XPilot NG config.status 4.7.3 9715configured by $0, generated by GNU Autoconf 2.61, 9716 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 9717 9718Copyright (C) 2006 Free Software Foundation, Inc. 9719This config.status script is free software; the Free Software Foundation 9720gives unlimited permission to copy, distribute and modify it." 9721 9722ac_pwd='$ac_pwd' 9723srcdir='$srcdir' 9724INSTALL='$INSTALL' 9725MKDIR_P='$MKDIR_P' 9726_ACEOF 9727 9728cat >>$CONFIG_STATUS <<\_ACEOF 9729# If no file are specified by the user, then we need to provide default 9730# value. By we need to know if files were specified by the user. 9731ac_need_defaults=: 9732while test $# != 0 9733do 9734 case $1 in 9735 --*=*) 9736 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9738 ac_shift=: 9739 ;; 9740 *) 9741 ac_option=$1 9742 ac_optarg=$2 9743 ac_shift=shift 9744 ;; 9745 esac 9746 9747 case $ac_option in 9748 # Handling of the options. 9749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9750 ac_cs_recheck=: ;; 9751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9752 echo "$ac_cs_version"; exit ;; 9753 --debug | --debu | --deb | --de | --d | -d ) 9754 debug=: ;; 9755 --file | --fil | --fi | --f ) 9756 $ac_shift 9757 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 9758 ac_need_defaults=false;; 9759 --header | --heade | --head | --hea ) 9760 $ac_shift 9761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 9762 ac_need_defaults=false;; 9763 --he | --h) 9764 # Conflict between --help and --header 9765 { echo "$as_me: error: ambiguous option: $1 9766Try \`$0 --help' for more information." >&2 9767 { (exit 1); exit 1; }; };; 9768 --help | --hel | -h ) 9769 echo "$ac_cs_usage"; exit ;; 9770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9771 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9772 ac_cs_silent=: ;; 9773 9774 # This is an error. 9775 -*) { echo "$as_me: error: unrecognized option: $1 9776Try \`$0 --help' for more information." >&2 9777 { (exit 1); exit 1; }; } ;; 9778 9779 *) ac_config_targets="$ac_config_targets $1" 9780 ac_need_defaults=false ;; 9781 9782 esac 9783 shift 9784done 9785 9786ac_configure_extra_args= 9787 9788if $ac_cs_silent; then 9789 exec 6>/dev/null 9790 ac_configure_extra_args="$ac_configure_extra_args --silent" 9791fi 9792 9793_ACEOF 9794cat >>$CONFIG_STATUS <<_ACEOF 9795if \$ac_cs_recheck; then 9796 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 9797 CONFIG_SHELL=$SHELL 9798 export CONFIG_SHELL 9799 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9800fi 9801 9802_ACEOF 9803cat >>$CONFIG_STATUS <<\_ACEOF 9804exec 5>>config.log 9805{ 9806 echo 9807 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 9808@%:@@%:@ Running $as_me. @%:@@%:@ 9809_ASBOX 9810 echo "$ac_log" 9811} >&5 9812 9813_ACEOF 9814cat >>$CONFIG_STATUS <<_ACEOF 9815# 9816# INIT-COMMANDS 9817# 9818AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9819 9820_ACEOF 9821 9822cat >>$CONFIG_STATUS <<\_ACEOF 9823 9824# Handling of arguments. 9825for ac_config_target in $ac_config_targets 9826do 9827 case $ac_config_target in 9828 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9831 "README") CONFIG_FILES="$CONFIG_FILES README" ;; 9832 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 9833 "contrib/xpngcc/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/xpngcc/Makefile" ;; 9834 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 9835 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 9836 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 9837 "lib/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES lib/fonts/Makefile" ;; 9838 "lib/maps/Makefile") CONFIG_FILES="$CONFIG_FILES lib/maps/Makefile" ;; 9839 "lib/textures/Makefile") CONFIG_FILES="$CONFIG_FILES lib/textures/Makefile" ;; 9840 "lib/sound/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sound/Makefile" ;; 9841 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 9842 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 9843 "src/common/version.h") CONFIG_FILES="$CONFIG_FILES src/common/version.h" ;; 9844 "src/common/NT/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/NT/Makefile" ;; 9845 "src/common/NT/bindist/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/NT/bindist/Makefile" ;; 9846 "src/client/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/Makefile" ;; 9847 "src/client/items/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/items/Makefile" ;; 9848 "src/client/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/sdl/Makefile" ;; 9849 "src/client/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/x11/Makefile" ;; 9850 "src/client/NT/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/NT/Makefile" ;; 9851 "src/client/NT/res/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/NT/res/Makefile" ;; 9852 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;; 9853 "src/replay/Makefile") CONFIG_FILES="$CONFIG_FILES src/replay/Makefile" ;; 9854 "src/replay/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/replay/tools/Makefile" ;; 9855 "src/mapedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapedit/Makefile" ;; 9856 9857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9858echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9859 { (exit 1); exit 1; }; };; 9860 esac 9861done 9862 9863 9864# If the user did not use the arguments to specify the items to instantiate, 9865# then the envvar interface is used. Set only those that are not. 9866# We use the long form for the default assignment because of an extremely 9867# bizarre bug on SunOS 4.1.3. 9868if $ac_need_defaults; then 9869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9872fi 9873 9874# Have a temporary directory for convenience. Make it in the build tree 9875# simply because there is no reason against having it here, and in addition, 9876# creating and moving files from /tmp can sometimes cause problems. 9877# Hook for its removal unless debugging. 9878# Note that there is a small window in which the directory will not be cleaned: 9879# after its creation but before its name has been assigned to `$tmp'. 9880$debug || 9881{ 9882 tmp= 9883 trap 'exit_status=$? 9884 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9885' 0 9886 trap '{ (exit 1); exit 1; }' 1 2 13 15 9887} 9888# Create a (secure) tmp directory for tmp files. 9889 9890{ 9891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9892 test -n "$tmp" && test -d "$tmp" 9893} || 9894{ 9895 tmp=./conf$$-$RANDOM 9896 (umask 077 && mkdir "$tmp") 9897} || 9898{ 9899 echo "$me: cannot create a temporary directory in ." >&2 9900 { (exit 1); exit 1; } 9901} 9902 9903# 9904# Set up the sed scripts for CONFIG_FILES section. 9905# 9906 9907# No need to generate the scripts if there are no CONFIG_FILES. 9908# This happens for instance when ./config.status config.h 9909if test -n "$CONFIG_FILES"; then 9910 9911_ACEOF 9912 9913 9914 9915ac_delim='%!_!# ' 9916for ac_last_try in false false false false false :; do 9917 cat >conf$$subs.sed <<_ACEOF 9918SHELL!$SHELL$ac_delim 9919PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 9920PACKAGE_NAME!$PACKAGE_NAME$ac_delim 9921PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 9922PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 9923PACKAGE_STRING!$PACKAGE_STRING$ac_delim 9924PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 9925exec_prefix!$exec_prefix$ac_delim 9926prefix!$prefix$ac_delim 9927program_transform_name!$program_transform_name$ac_delim 9928bindir!$bindir$ac_delim 9929sbindir!$sbindir$ac_delim 9930libexecdir!$libexecdir$ac_delim 9931datarootdir!$datarootdir$ac_delim 9932datadir!$datadir$ac_delim 9933sysconfdir!$sysconfdir$ac_delim 9934sharedstatedir!$sharedstatedir$ac_delim 9935localstatedir!$localstatedir$ac_delim 9936includedir!$includedir$ac_delim 9937oldincludedir!$oldincludedir$ac_delim 9938docdir!$docdir$ac_delim 9939infodir!$infodir$ac_delim 9940htmldir!$htmldir$ac_delim 9941dvidir!$dvidir$ac_delim 9942pdfdir!$pdfdir$ac_delim 9943psdir!$psdir$ac_delim 9944libdir!$libdir$ac_delim 9945localedir!$localedir$ac_delim 9946mandir!$mandir$ac_delim 9947DEFS!$DEFS$ac_delim 9948ECHO_C!$ECHO_C$ac_delim 9949ECHO_N!$ECHO_N$ac_delim 9950ECHO_T!$ECHO_T$ac_delim 9951LIBS!$LIBS$ac_delim 9952build_alias!$build_alias$ac_delim 9953host_alias!$host_alias$ac_delim 9954target_alias!$target_alias$ac_delim 9955build!$build$ac_delim 9956build_cpu!$build_cpu$ac_delim 9957build_vendor!$build_vendor$ac_delim 9958build_os!$build_os$ac_delim 9959host!$host$ac_delim 9960host_cpu!$host_cpu$ac_delim 9961host_vendor!$host_vendor$ac_delim 9962host_os!$host_os$ac_delim 9963target!$target$ac_delim 9964target_cpu!$target_cpu$ac_delim 9965target_vendor!$target_vendor$ac_delim 9966target_os!$target_os$ac_delim 9967INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 9968INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 9969INSTALL_DATA!$INSTALL_DATA$ac_delim 9970am__isrc!$am__isrc$ac_delim 9971CYGPATH_W!$CYGPATH_W$ac_delim 9972PACKAGE!$PACKAGE$ac_delim 9973VERSION!$VERSION$ac_delim 9974ACLOCAL!$ACLOCAL$ac_delim 9975AUTOCONF!$AUTOCONF$ac_delim 9976AUTOMAKE!$AUTOMAKE$ac_delim 9977AUTOHEADER!$AUTOHEADER$ac_delim 9978MAKEINFO!$MAKEINFO$ac_delim 9979install_sh!$install_sh$ac_delim 9980STRIP!$STRIP$ac_delim 9981INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 9982mkdir_p!$mkdir_p$ac_delim 9983AWK!$AWK$ac_delim 9984SET_MAKE!$SET_MAKE$ac_delim 9985am__leading_dot!$am__leading_dot$ac_delim 9986AMTAR!$AMTAR$ac_delim 9987am__tar!$am__tar$ac_delim 9988am__untar!$am__untar$ac_delim 9989MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 9990MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 9991MAINT!$MAINT$ac_delim 9992XP_AUTHORS!$XP_AUTHORS$ac_delim 9993XP_COPYRIGHTDATE!$XP_COPYRIGHTDATE$ac_delim 9994XP_COPYRIGHT!$XP_COPYRIGHT$ac_delim 9995XP_RELEASEDATE!$XP_RELEASEDATE$ac_delim 9996XP_DATADIR!$XP_DATADIR$ac_delim 9997CC!$CC$ac_delim 9998CFLAGS!$CFLAGS$ac_delim 9999LDFLAGS!$LDFLAGS$ac_delim 10000CPPFLAGS!$CPPFLAGS$ac_delim 10001ac_ct_CC!$ac_ct_CC$ac_delim 10002EXEEXT!$EXEEXT$ac_delim 10003OBJEXT!$OBJEXT$ac_delim 10004DEPDIR!$DEPDIR$ac_delim 10005am__include!$am__include$ac_delim 10006am__quote!$am__quote$ac_delim 10007AMDEP_TRUE!$AMDEP_TRUE$ac_delim 10008AMDEP_FALSE!$AMDEP_FALSE$ac_delim 10009AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 10010CCDEPMODE!$CCDEPMODE$ac_delim 10011am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 10012am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 10013RANLIB!$RANLIB$ac_delim 10014W32_LIBS!$W32_LIBS$ac_delim 10015_ACEOF 10016 10017 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 10018 break 10019 elif $ac_last_try; then 10020 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10021echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10022 { (exit 1); exit 1; }; } 10023 else 10024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10025 fi 10026done 10027 10028ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 10029if test -n "$ac_eof"; then 10030 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 10031 ac_eof=`expr $ac_eof + 1` 10032fi 10033 10034cat >>$CONFIG_STATUS <<_ACEOF 10035cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 10036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10037_ACEOF 10038sed ' 10039s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 10040s/^/s,@/; s/!/@,|#_!!_#|/ 10041:n 10042t n 10043s/'"$ac_delim"'$/,g/; t 10044s/$/\\/; p 10045N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 10046' >>$CONFIG_STATUS <conf$$subs.sed 10047rm -f conf$$subs.sed 10048cat >>$CONFIG_STATUS <<_ACEOF 10049CEOF$ac_eof 10050_ACEOF 10051 10052 10053ac_delim='%!_!# ' 10054for ac_last_try in false false false false false :; do 10055 cat >conf$$subs.sed <<_ACEOF 10056XMKMF!$XMKMF$ac_delim 10057CPP!$CPP$ac_delim 10058X_CFLAGS!$X_CFLAGS$ac_delim 10059X_PRE_LIBS!$X_PRE_LIBS$ac_delim 10060X_LIBS!$X_LIBS$ac_delim 10061X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 10062X_EXTENSIONS_LIB!$X_EXTENSIONS_LIB$ac_delim 10063SDL_CONFIG!$SDL_CONFIG$ac_delim 10064SDL_CFLAGS!$SDL_CFLAGS$ac_delim 10065SDL_LIBS!$SDL_LIBS$ac_delim 10066SDL_EXTRA_LIBS!$SDL_EXTRA_LIBS$ac_delim 10067GL_LIBS!$GL_LIBS$ac_delim 10068COND_CLIENT_TRUE!$COND_CLIENT_TRUE$ac_delim 10069COND_CLIENT_FALSE!$COND_CLIENT_FALSE$ac_delim 10070COND_WINDOWS_TRUE!$COND_WINDOWS_TRUE$ac_delim 10071COND_WINDOWS_FALSE!$COND_WINDOWS_FALSE$ac_delim 10072COND_REPLAY_TRUE!$COND_REPLAY_TRUE$ac_delim 10073COND_REPLAY_FALSE!$COND_REPLAY_FALSE$ac_delim 10074COND_XP_MAPEDIT_TRUE!$COND_XP_MAPEDIT_TRUE$ac_delim 10075COND_XP_MAPEDIT_FALSE!$COND_XP_MAPEDIT_FALSE$ac_delim 10076COND_X11_CLIENT_TRUE!$COND_X11_CLIENT_TRUE$ac_delim 10077COND_X11_CLIENT_FALSE!$COND_X11_CLIENT_FALSE$ac_delim 10078COND_SDL_CLIENT_TRUE!$COND_SDL_CLIENT_TRUE$ac_delim 10079COND_SDL_CLIENT_FALSE!$COND_SDL_CLIENT_FALSE$ac_delim 10080COND_SDL_GAMELOOP_TRUE!$COND_SDL_GAMELOOP_TRUE$ac_delim 10081COND_SDL_GAMELOOP_FALSE!$COND_SDL_GAMELOOP_FALSE$ac_delim 10082SOUND_LIBS!$SOUND_LIBS$ac_delim 10083COND_SOUND_TRUE!$COND_SOUND_TRUE$ac_delim 10084COND_SOUND_FALSE!$COND_SOUND_FALSE$ac_delim 10085GREP!$GREP$ac_delim 10086EGREP!$EGREP$ac_delim 10087LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 10088POW_LIB!$POW_LIB$ac_delim 10089LTLIBOBJS!$LTLIBOBJS$ac_delim 10090_ACEOF 10091 10092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then 10093 break 10094 elif $ac_last_try; then 10095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10096echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10097 { (exit 1); exit 1; }; } 10098 else 10099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10100 fi 10101done 10102 10103ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 10104if test -n "$ac_eof"; then 10105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 10106 ac_eof=`expr $ac_eof + 1` 10107fi 10108 10109cat >>$CONFIG_STATUS <<_ACEOF 10110cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 10111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 10112_ACEOF 10113sed ' 10114s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 10115s/^/s,@/; s/!/@,|#_!!_#|/ 10116:n 10117t n 10118s/'"$ac_delim"'$/,g/; t 10119s/$/\\/; p 10120N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 10121' >>$CONFIG_STATUS <conf$$subs.sed 10122rm -f conf$$subs.sed 10123cat >>$CONFIG_STATUS <<_ACEOF 10124:end 10125s/|#_!!_#|//g 10126CEOF$ac_eof 10127_ACEOF 10128 10129 10130# VPATH may cause trouble with some makes, so we remove $(srcdir), 10131# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10132# trailing colons and then remove the whole line if VPATH becomes empty 10133# (actually we leave an empty line to preserve line numbers). 10134if test "x$srcdir" = x.; then 10135 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10136s/:*\$(srcdir):*/:/ 10137s/:*\${srcdir}:*/:/ 10138s/:*@srcdir@:*/:/ 10139s/^\([^=]*=[ ]*\):*/\1/ 10140s/:*$// 10141s/^[^=]*=[ ]*$// 10142}' 10143fi 10144 10145cat >>$CONFIG_STATUS <<\_ACEOF 10146fi # test -n "$CONFIG_FILES" 10147 10148 10149for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 10150do 10151 case $ac_tag in 10152 :[FHLC]) ac_mode=$ac_tag; continue;; 10153 esac 10154 case $ac_mode$ac_tag in 10155 :[FHL]*:*);; 10156 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 10157echo "$as_me: error: Invalid tag $ac_tag." >&2;} 10158 { (exit 1); exit 1; }; };; 10159 :[FH]-) ac_tag=-:-;; 10160 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10161 esac 10162 ac_save_IFS=$IFS 10163 IFS=: 10164 set x $ac_tag 10165 IFS=$ac_save_IFS 10166 shift 10167 ac_file=$1 10168 shift 10169 10170 case $ac_mode in 10171 :L) ac_source=$1;; 10172 :[FH]) 10173 ac_file_inputs= 10174 for ac_f 10175 do 10176 case $ac_f in 10177 -) ac_f="$tmp/stdin";; 10178 *) # Look for the file first in the build tree, then in the source tree 10179 # (if the path is not absolute). The absolute path cannot be DOS-style, 10180 # because $ac_f cannot contain `:'. 10181 test -f "$ac_f" || 10182 case $ac_f in 10183 [\\/$]*) false;; 10184 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10185 esac || 10186 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 10187echo "$as_me: error: cannot find input file: $ac_f" >&2;} 10188 { (exit 1); exit 1; }; };; 10189 esac 10190 ac_file_inputs="$ac_file_inputs $ac_f" 10191 done 10192 10193 # Let's still pretend it is `configure' which instantiates (i.e., don't 10194 # use $as_me), people would be surprised to read: 10195 # /* config.h. Generated by config.status. */ 10196 configure_input="Generated from "`IFS=: 10197 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 10198 if test x"$ac_file" != x-; then 10199 configure_input="$ac_file. $configure_input" 10200 { echo "$as_me:$LINENO: creating $ac_file" >&5 10201echo "$as_me: creating $ac_file" >&6;} 10202 fi 10203 10204 case $ac_tag in 10205 *:-:* | *:-) cat >"$tmp/stdin";; 10206 esac 10207 ;; 10208 esac 10209 10210 ac_dir=`$as_dirname -- "$ac_file" || 10211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10212 X"$ac_file" : 'X\(//\)[^/]' \| \ 10213 X"$ac_file" : 'X\(//\)$' \| \ 10214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10215echo X"$ac_file" | 10216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10217 s//\1/ 10218 q 10219 } 10220 /^X\(\/\/\)[^/].*/{ 10221 s//\1/ 10222 q 10223 } 10224 /^X\(\/\/\)$/{ 10225 s//\1/ 10226 q 10227 } 10228 /^X\(\/\).*/{ 10229 s//\1/ 10230 q 10231 } 10232 s/.*/./; q'` 10233 { as_dir="$ac_dir" 10234 case $as_dir in #( 10235 -*) as_dir=./$as_dir;; 10236 esac 10237 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 10238 as_dirs= 10239 while :; do 10240 case $as_dir in #( 10241 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 10242 *) as_qdir=$as_dir;; 10243 esac 10244 as_dirs="'$as_qdir' $as_dirs" 10245 as_dir=`$as_dirname -- "$as_dir" || 10246$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10247 X"$as_dir" : 'X\(//\)[^/]' \| \ 10248 X"$as_dir" : 'X\(//\)$' \| \ 10249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10250echo X"$as_dir" | 10251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10252 s//\1/ 10253 q 10254 } 10255 /^X\(\/\/\)[^/].*/{ 10256 s//\1/ 10257 q 10258 } 10259 /^X\(\/\/\)$/{ 10260 s//\1/ 10261 q 10262 } 10263 /^X\(\/\).*/{ 10264 s//\1/ 10265 q 10266 } 10267 s/.*/./; q'` 10268 test -d "$as_dir" && break 10269 done 10270 test -z "$as_dirs" || eval "mkdir $as_dirs" 10271 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 10272echo "$as_me: error: cannot create directory $as_dir" >&2;} 10273 { (exit 1); exit 1; }; }; } 10274 ac_builddir=. 10275 10276case "$ac_dir" in 10277.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10278*) 10279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10280 # A ".." for each directory in $ac_dir_suffix. 10281 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 10282 case $ac_top_builddir_sub in 10283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10285 esac ;; 10286esac 10287ac_abs_top_builddir=$ac_pwd 10288ac_abs_builddir=$ac_pwd$ac_dir_suffix 10289# for backward compatibility: 10290ac_top_builddir=$ac_top_build_prefix 10291 10292case $srcdir in 10293 .) # We are building in place. 10294 ac_srcdir=. 10295 ac_top_srcdir=$ac_top_builddir_sub 10296 ac_abs_top_srcdir=$ac_pwd ;; 10297 [\\/]* | ?:[\\/]* ) # Absolute name. 10298 ac_srcdir=$srcdir$ac_dir_suffix; 10299 ac_top_srcdir=$srcdir 10300 ac_abs_top_srcdir=$srcdir ;; 10301 *) # Relative name. 10302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10303 ac_top_srcdir=$ac_top_build_prefix$srcdir 10304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10305esac 10306ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10307 10308 10309 case $ac_mode in 10310 :F) 10311 # 10312 # CONFIG_FILE 10313 # 10314 10315 case $INSTALL in 10316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10317 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10318 esac 10319 ac_MKDIR_P=$MKDIR_P 10320 case $MKDIR_P in 10321 [\\/$]* | ?:[\\/]* ) ;; 10322 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 10323 esac 10324_ACEOF 10325 10326cat >>$CONFIG_STATUS <<\_ACEOF 10327# If the template does not know about datarootdir, expand it. 10328# FIXME: This hack should be removed a few years after 2.60. 10329ac_datarootdir_hack=; ac_datarootdir_seen= 10330 10331case `sed -n '/datarootdir/ { 10332 p 10333 q 10334} 10335/@datadir@/p 10336/@docdir@/p 10337/@infodir@/p 10338/@localedir@/p 10339/@mandir@/p 10340' $ac_file_inputs` in 10341*datarootdir*) ac_datarootdir_seen=yes;; 10342*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10343 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10344echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10345_ACEOF 10346cat >>$CONFIG_STATUS <<_ACEOF 10347 ac_datarootdir_hack=' 10348 s&@datadir@&$datadir&g 10349 s&@docdir@&$docdir&g 10350 s&@infodir@&$infodir&g 10351 s&@localedir@&$localedir&g 10352 s&@mandir@&$mandir&g 10353 s&\\\${datarootdir}&$datarootdir&g' ;; 10354esac 10355_ACEOF 10356 10357# Neutralize VPATH when `$srcdir' = `.'. 10358# Shell code in configure.ac might set extrasub. 10359# FIXME: do we really want to maintain this feature? 10360cat >>$CONFIG_STATUS <<_ACEOF 10361 sed "$ac_vpsub 10362$extrasub 10363_ACEOF 10364cat >>$CONFIG_STATUS <<\_ACEOF 10365:t 10366/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10367s&@configure_input@&$configure_input&;t t 10368s&@top_builddir@&$ac_top_builddir_sub&;t t 10369s&@srcdir@&$ac_srcdir&;t t 10370s&@abs_srcdir@&$ac_abs_srcdir&;t t 10371s&@top_srcdir@&$ac_top_srcdir&;t t 10372s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10373s&@builddir@&$ac_builddir&;t t 10374s&@abs_builddir@&$ac_abs_builddir&;t t 10375s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10376s&@INSTALL@&$ac_INSTALL&;t t 10377s&@MKDIR_P@&$ac_MKDIR_P&;t t 10378$ac_datarootdir_hack 10379" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 10380 10381test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10382 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 10383 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 10384 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10385which seems to be undefined. Please make sure it is defined." >&5 10386echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10387which seems to be undefined. Please make sure it is defined." >&2;} 10388 10389 rm -f "$tmp/stdin" 10390 case $ac_file in 10391 -) cat "$tmp/out"; rm -f "$tmp/out";; 10392 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 10393 esac 10394 ;; 10395 :H) 10396 # 10397 # CONFIG_HEADER 10398 # 10399_ACEOF 10400 10401# Transform confdefs.h into a sed script `conftest.defines', that 10402# substitutes the proper values into config.h.in to produce config.h. 10403rm -f conftest.defines conftest.tail 10404# First, append a space to every undef/define line, to ease matching. 10405echo 's/$/ /' >conftest.defines 10406# Then, protect against being on the right side of a sed subst, or in 10407# an unquoted here document, in config.status. If some macros were 10408# called several times there might be several #defines for the same 10409# symbol, which is useless. But do not sort them, since the last 10410# AC_DEFINE must be honored. 10411ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10412# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 10413# NAME is the cpp macro being defined, VALUE is the value it is being given. 10414# PARAMS is the parameter list in the macro definition--in most cases, it's 10415# just an empty string. 10416ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 10417ac_dB='\\)[ (].*,\\1define\\2' 10418ac_dC=' ' 10419ac_dD=' ,' 10420 10421uniq confdefs.h | 10422 sed -n ' 10423 t rset 10424 :rset 10425 s/^[ ]*#[ ]*define[ ][ ]*// 10426 t ok 10427 d 10428 :ok 10429 s/[\\&,]/\\&/g 10430 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 10431 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 10432 ' >>conftest.defines 10433 10434# Remove the space that was appended to ease matching. 10435# Then replace #undef with comments. This is necessary, for 10436# example, in the case of _POSIX_SOURCE, which is predefined and required 10437# on some systems where configure will not decide to define it. 10438# (The regexp can be short, since the line contains either #define or #undef.) 10439echo 's/ $// 10440s,^[ #]*u.*,/* & */,' >>conftest.defines 10441 10442# Break up conftest.defines: 10443ac_max_sed_lines=50 10444 10445# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 10446# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 10447# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 10448# et cetera. 10449ac_in='$ac_file_inputs' 10450ac_out='"$tmp/out1"' 10451ac_nxt='"$tmp/out2"' 10452 10453while : 10454do 10455 # Write a here document: 10456 cat >>$CONFIG_STATUS <<_ACEOF 10457 # First, check the format of the line: 10458 cat >"\$tmp/defines.sed" <<\\CEOF 10459/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 10460/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 10461b 10462:def 10463_ACEOF 10464 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 10465 echo 'CEOF 10466 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 10467 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 10468 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 10469 grep . conftest.tail >/dev/null || break 10470 rm -f conftest.defines 10471 mv conftest.tail conftest.defines 10472done 10473rm -f conftest.defines conftest.tail 10474 10475echo "ac_result=$ac_in" >>$CONFIG_STATUS 10476cat >>$CONFIG_STATUS <<\_ACEOF 10477 if test x"$ac_file" != x-; then 10478 echo "/* $configure_input */" >"$tmp/config.h" 10479 cat "$ac_result" >>"$tmp/config.h" 10480 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 10481 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10482echo "$as_me: $ac_file is unchanged" >&6;} 10483 else 10484 rm -f $ac_file 10485 mv "$tmp/config.h" $ac_file 10486 fi 10487 else 10488 echo "/* $configure_input */" 10489 cat "$ac_result" 10490 fi 10491 rm -f "$tmp/out12" 10492# Compute $ac_file's index in $config_headers. 10493_am_arg=$ac_file 10494_am_stamp_count=1 10495for _am_header in $config_headers :; do 10496 case $_am_header in 10497 $_am_arg | $_am_arg:* ) 10498 break ;; 10499 * ) 10500 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10501 esac 10502done 10503echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 10504$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10505 X"$_am_arg" : 'X\(//\)[^/]' \| \ 10506 X"$_am_arg" : 'X\(//\)$' \| \ 10507 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 10508echo X"$_am_arg" | 10509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10510 s//\1/ 10511 q 10512 } 10513 /^X\(\/\/\)[^/].*/{ 10514 s//\1/ 10515 q 10516 } 10517 /^X\(\/\/\)$/{ 10518 s//\1/ 10519 q 10520 } 10521 /^X\(\/\).*/{ 10522 s//\1/ 10523 q 10524 } 10525 s/.*/./; q'`/stamp-h$_am_stamp_count 10526 ;; 10527 10528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 10529echo "$as_me: executing $ac_file commands" >&6;} 10530 ;; 10531 esac 10532 10533 10534 case $ac_file$ac_mode in 10535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 10536 # Strip MF so we end up with the name of the file. 10537 mf=`echo "$mf" | sed -e 's/:.*$//'` 10538 # Check whether this is an Automake generated Makefile or not. 10539 # We used to match only the files named `Makefile.in', but 10540 # some people rename them; so instead we look at the file content. 10541 # Grep'ing the first line is not enough: some people post-process 10542 # each Makefile.in and add a new line on top of each file to say so. 10543 # Grep'ing the whole file is not good either: AIX grep has a line 10544 # limit of 2048, but all sed's we know have understand at least 4000. 10545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10546 dirpart=`$as_dirname -- "$mf" || 10547$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10548 X"$mf" : 'X\(//\)[^/]' \| \ 10549 X"$mf" : 'X\(//\)$' \| \ 10550 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 10551echo X"$mf" | 10552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10553 s//\1/ 10554 q 10555 } 10556 /^X\(\/\/\)[^/].*/{ 10557 s//\1/ 10558 q 10559 } 10560 /^X\(\/\/\)$/{ 10561 s//\1/ 10562 q 10563 } 10564 /^X\(\/\).*/{ 10565 s//\1/ 10566 q 10567 } 10568 s/.*/./; q'` 10569 else 10570 continue 10571 fi 10572 # Extract the definition of DEPDIR, am__include, and am__quote 10573 # from the Makefile without running `make'. 10574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10575 test -z "$DEPDIR" && continue 10576 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10577 test -z "am__include" && continue 10578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10579 # When using ansi2knr, U may be empty or an underscore; expand it 10580 U=`sed -n 's/^U = //p' < "$mf"` 10581 # Find all dependency output files, they are included files with 10582 # $(DEPDIR) in their names. We invoke sed twice because it is the 10583 # simplest approach to changing $(DEPDIR) to its actual value in the 10584 # expansion. 10585 for file in `sed -n " 10586 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10587 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10588 # Make sure the directory exists. 10589 test -f "$dirpart/$file" && continue 10590 fdir=`$as_dirname -- "$file" || 10591$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10592 X"$file" : 'X\(//\)[^/]' \| \ 10593 X"$file" : 'X\(//\)$' \| \ 10594 X"$file" : 'X\(/\)' \| . 2>/dev/null || 10595echo X"$file" | 10596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10597 s//\1/ 10598 q 10599 } 10600 /^X\(\/\/\)[^/].*/{ 10601 s//\1/ 10602 q 10603 } 10604 /^X\(\/\/\)$/{ 10605 s//\1/ 10606 q 10607 } 10608 /^X\(\/\).*/{ 10609 s//\1/ 10610 q 10611 } 10612 s/.*/./; q'` 10613 { as_dir=$dirpart/$fdir 10614 case $as_dir in #( 10615 -*) as_dir=./$as_dir;; 10616 esac 10617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 10618 as_dirs= 10619 while :; do 10620 case $as_dir in #( 10621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 10622 *) as_qdir=$as_dir;; 10623 esac 10624 as_dirs="'$as_qdir' $as_dirs" 10625 as_dir=`$as_dirname -- "$as_dir" || 10626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10627 X"$as_dir" : 'X\(//\)[^/]' \| \ 10628 X"$as_dir" : 'X\(//\)$' \| \ 10629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10630echo X"$as_dir" | 10631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10632 s//\1/ 10633 q 10634 } 10635 /^X\(\/\/\)[^/].*/{ 10636 s//\1/ 10637 q 10638 } 10639 /^X\(\/\/\)$/{ 10640 s//\1/ 10641 q 10642 } 10643 /^X\(\/\).*/{ 10644 s//\1/ 10645 q 10646 } 10647 s/.*/./; q'` 10648 test -d "$as_dir" && break 10649 done 10650 test -z "$as_dirs" || eval "mkdir $as_dirs" 10651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 10652echo "$as_me: error: cannot create directory $as_dir" >&2;} 10653 { (exit 1); exit 1; }; }; } 10654 # echo "creating $dirpart/$file" 10655 echo '# dummy' > "$dirpart/$file" 10656 done 10657done 10658 ;; 10659 10660 esac 10661done # for ac_tag 10662 10663 10664{ (exit 0); exit 0; } 10665_ACEOF 10666chmod +x $CONFIG_STATUS 10667ac_clean_files=$ac_clean_files_save 10668 10669 10670# configure is writing to config.log, and then calls config.status. 10671# config.status does its own redirection, appending to config.log. 10672# Unfortunately, on DOS this fails, as config.log is still kept open 10673# by configure, so config.status won't be able to write to it; its 10674# output is simply discarded. So we exec the FD to /dev/null, 10675# effectively closing config.log, so it can be properly (re)opened and 10676# appended to by config.status. When coming back to configure, we 10677# need to make the FD available again. 10678if test "$no_create" != yes; then 10679 ac_cs_success=: 10680 ac_config_status_args= 10681 test "$silent" = yes && 10682 ac_config_status_args="$ac_config_status_args --quiet" 10683 exec 5>/dev/null 10684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10685 exec 5>>config.log 10686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10687 # would make configure fail if this is the last instruction. 10688 $ac_cs_success || { (exit 1); exit 1; } 10689fi 10690 10691 10692