1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.14.1 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)" 16ac_help="$ac_help 17 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)" 18ac_help="$ac_help 19 --disable-sdltest Do not try to compile and run a test SDL program" 20 21# Initialize some variables set by options. 22# The variables have the same names as the options, with 23# dashes changed to underlines. 24build=NONE 25cache_file=./config.cache 26exec_prefix=NONE 27host=NONE 28no_create= 29nonopt=NONE 30no_recursion= 31prefix=NONE 32program_prefix=NONE 33program_suffix=NONE 34program_transform_name=s,x,x, 35silent= 36site= 37srcdir= 38target=NONE 39verbose= 40x_includes=NONE 41x_libraries=NONE 42bindir='${exec_prefix}/bin' 43sbindir='${exec_prefix}/sbin' 44libexecdir='${exec_prefix}/libexec' 45datadir='${prefix}/share' 46sysconfdir='${prefix}/etc' 47sharedstatedir='${prefix}/com' 48localstatedir='${prefix}/var' 49libdir='${exec_prefix}/lib' 50includedir='${prefix}/include' 51oldincludedir='/usr/include' 52infodir='${prefix}/info' 53mandir='${prefix}/man' 54 55# Initialize some other variables. 56subdirs= 57MFLAGS= MAKEFLAGS= 58SHELL=${CONFIG_SHELL-/bin/sh} 59# Maximum number of lines to put in a shell here document. 60ac_max_here_lines=12 61 62ac_prev= 63for ac_option 64do 65 66 # If the previous option needs an argument, assign it. 67 if test -n "$ac_prev"; then 68 eval "$ac_prev=\$ac_option" 69 ac_prev= 70 continue 71 fi 72 73 case "$ac_option" in 74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 75 *) ac_optarg= ;; 76 esac 77 78 # Accept the important Cygnus configure options, so we can diagnose typos. 79 80 case "$ac_option" in 81 82 -bindir | --bindir | --bindi | --bind | --bin | --bi) 83 ac_prev=bindir ;; 84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 85 bindir="$ac_optarg" ;; 86 87 -build | --build | --buil | --bui | --bu) 88 ac_prev=build ;; 89 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 90 build="$ac_optarg" ;; 91 92 -cache-file | --cache-file | --cache-fil | --cache-fi \ 93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 94 ac_prev=cache_file ;; 95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 97 cache_file="$ac_optarg" ;; 98 99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 100 ac_prev=datadir ;; 101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 102 | --da=*) 103 datadir="$ac_optarg" ;; 104 105 -disable-* | --disable-*) 106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 107 # Reject names that are not valid shell variable names. 108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 110 fi 111 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 112 eval "enable_${ac_feature}=no" ;; 113 114 -enable-* | --enable-*) 115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 116 # Reject names that are not valid shell variable names. 117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 119 fi 120 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 121 case "$ac_option" in 122 *=*) ;; 123 *) ac_optarg=yes ;; 124 esac 125 eval "enable_${ac_feature}='$ac_optarg'" ;; 126 127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 129 | --exec | --exe | --ex) 130 ac_prev=exec_prefix ;; 131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 133 | --exec=* | --exe=* | --ex=*) 134 exec_prefix="$ac_optarg" ;; 135 136 -gas | --gas | --ga | --g) 137 # Obsolete; use --with-gas. 138 with_gas=yes ;; 139 140 -help | --help | --hel | --he) 141 # Omit some internal or obsolete options to make the list less imposing. 142 # This message is too long to be a string in the A/UX 3.1 sh. 143 cat << EOF 144Usage: configure [options] [host] 145Options: [defaults in brackets after descriptions] 146Configuration: 147 --cache-file=FILE cache test results in FILE 148 --help print this message 149 --no-create do not create output files 150 --quiet, --silent do not print \`checking...' messages 151 --version print the version of autoconf that created configure 152Directory and file names: 153 --prefix=PREFIX install architecture-independent files in PREFIX 154 [$ac_default_prefix] 155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 156 [same as prefix] 157 --bindir=DIR user executables in DIR [EPREFIX/bin] 158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 160 --datadir=DIR read-only architecture-independent data in DIR 161 [PREFIX/share] 162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 163 --sharedstatedir=DIR modifiable architecture-independent data in DIR 164 [PREFIX/com] 165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 166 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 167 --includedir=DIR C header files in DIR [PREFIX/include] 168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 169 --infodir=DIR info documentation in DIR [PREFIX/info] 170 --mandir=DIR man documentation in DIR [PREFIX/man] 171 --srcdir=DIR find the sources in DIR [configure dir or ..] 172 --program-prefix=PREFIX prepend PREFIX to installed program names 173 --program-suffix=SUFFIX append SUFFIX to installed program names 174 --program-transform-name=PROGRAM 175 run sed PROGRAM on installed program names 176EOF 177 cat << EOF 178Host type: 179 --build=BUILD configure for building on BUILD [BUILD=HOST] 180 --host=HOST configure for HOST [guessed] 181 --target=TARGET configure for TARGET [TARGET=HOST] 182Features and packages: 183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 187 --x-includes=DIR X include files are in DIR 188 --x-libraries=DIR X library files are in DIR 189EOF 190 if test -n "$ac_help"; then 191 echo "--enable and --with options recognized:$ac_help" 192 fi 193 exit 0 ;; 194 195 -host | --host | --hos | --ho) 196 ac_prev=host ;; 197 -host=* | --host=* | --hos=* | --ho=*) 198 host="$ac_optarg" ;; 199 200 -includedir | --includedir | --includedi | --included | --include \ 201 | --includ | --inclu | --incl | --inc) 202 ac_prev=includedir ;; 203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 204 | --includ=* | --inclu=* | --incl=* | --inc=*) 205 includedir="$ac_optarg" ;; 206 207 -infodir | --infodir | --infodi | --infod | --info | --inf) 208 ac_prev=infodir ;; 209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 210 infodir="$ac_optarg" ;; 211 212 -libdir | --libdir | --libdi | --libd) 213 ac_prev=libdir ;; 214 -libdir=* | --libdir=* | --libdi=* | --libd=*) 215 libdir="$ac_optarg" ;; 216 217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 218 | --libexe | --libex | --libe) 219 ac_prev=libexecdir ;; 220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 221 | --libexe=* | --libex=* | --libe=*) 222 libexecdir="$ac_optarg" ;; 223 224 -localstatedir | --localstatedir | --localstatedi | --localstated \ 225 | --localstate | --localstat | --localsta | --localst \ 226 | --locals | --local | --loca | --loc | --lo) 227 ac_prev=localstatedir ;; 228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 231 localstatedir="$ac_optarg" ;; 232 233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 234 ac_prev=mandir ;; 235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 236 mandir="$ac_optarg" ;; 237 238 -nfp | --nfp | --nf) 239 # Obsolete; use --without-fp. 240 with_fp=no ;; 241 242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 243 | --no-cr | --no-c) 244 no_create=yes ;; 245 246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 248 no_recursion=yes ;; 249 250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 252 | --oldin | --oldi | --old | --ol | --o) 253 ac_prev=oldincludedir ;; 254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 257 oldincludedir="$ac_optarg" ;; 258 259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 260 ac_prev=prefix ;; 261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 262 prefix="$ac_optarg" ;; 263 264 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 265 | --program-pre | --program-pr | --program-p) 266 ac_prev=program_prefix ;; 267 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 269 program_prefix="$ac_optarg" ;; 270 271 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 272 | --program-suf | --program-su | --program-s) 273 ac_prev=program_suffix ;; 274 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 276 program_suffix="$ac_optarg" ;; 277 278 -program-transform-name | --program-transform-name \ 279 | --program-transform-nam | --program-transform-na \ 280 | --program-transform-n | --program-transform- \ 281 | --program-transform | --program-transfor \ 282 | --program-transfo | --program-transf \ 283 | --program-trans | --program-tran \ 284 | --progr-tra | --program-tr | --program-t) 285 ac_prev=program_transform_name ;; 286 -program-transform-name=* | --program-transform-name=* \ 287 | --program-transform-nam=* | --program-transform-na=* \ 288 | --program-transform-n=* | --program-transform-=* \ 289 | --program-transform=* | --program-transfor=* \ 290 | --program-transfo=* | --program-transf=* \ 291 | --program-trans=* | --program-tran=* \ 292 | --progr-tra=* | --program-tr=* | --program-t=*) 293 program_transform_name="$ac_optarg" ;; 294 295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 296 | -silent | --silent | --silen | --sile | --sil) 297 silent=yes ;; 298 299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 300 ac_prev=sbindir ;; 301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 302 | --sbi=* | --sb=*) 303 sbindir="$ac_optarg" ;; 304 305 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 307 | --sharedst | --shareds | --shared | --share | --shar \ 308 | --sha | --sh) 309 ac_prev=sharedstatedir ;; 310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 313 | --sha=* | --sh=*) 314 sharedstatedir="$ac_optarg" ;; 315 316 -site | --site | --sit) 317 ac_prev=site ;; 318 -site=* | --site=* | --sit=*) 319 site="$ac_optarg" ;; 320 321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 322 ac_prev=srcdir ;; 323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 324 srcdir="$ac_optarg" ;; 325 326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 327 | --syscon | --sysco | --sysc | --sys | --sy) 328 ac_prev=sysconfdir ;; 329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 331 sysconfdir="$ac_optarg" ;; 332 333 -target | --target | --targe | --targ | --tar | --ta | --t) 334 ac_prev=target ;; 335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 336 target="$ac_optarg" ;; 337 338 -v | -verbose | --verbose | --verbos | --verbo | --verb) 339 verbose=yes ;; 340 341 -version | --version | --versio | --versi | --vers) 342 echo "configure generated by autoconf version 2.14.1" 343 exit 0 ;; 344 345 -with-* | --with-*) 346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 347 # Reject names that are not valid shell variable names. 348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 350 fi 351 ac_package=`echo $ac_package| sed 's/-/_/g'` 352 case "$ac_option" in 353 *=*) ;; 354 *) ac_optarg=yes ;; 355 esac 356 eval "with_${ac_package}='$ac_optarg'" ;; 357 358 -without-* | --without-*) 359 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 360 # Reject names that are not valid shell variable names. 361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 363 fi 364 ac_package=`echo $ac_package| sed 's/-/_/g'` 365 eval "with_${ac_package}=no" ;; 366 367 --x) 368 # Obsolete; use --with-x. 369 with_x=yes ;; 370 371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 372 | --x-incl | --x-inc | --x-in | --x-i) 373 ac_prev=x_includes ;; 374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 376 x_includes="$ac_optarg" ;; 377 378 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 380 ac_prev=x_libraries ;; 381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 383 x_libraries="$ac_optarg" ;; 384 385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 386 ;; 387 388 *) 389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 390 echo "configure: warning: $ac_option: invalid host type" 1>&2 391 fi 392 if test "x$nonopt" != xNONE; then 393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 394 fi 395 nonopt="$ac_option" 396 ;; 397 398 esac 399done 400 401if test -n "$ac_prev"; then 402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 403fi 404 405trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 406 407# File descriptor usage: 408# 0 standard input 409# 1 file creation 410# 2 errors and warnings 411# 3 some systems may open it to /dev/tty 412# 4 used on the Kubota Titan 413# 6 checking for... messages and results 414# 5 compiler messages saved in config.log 415if test "$silent" = yes; then 416 exec 6>/dev/null 417else 418 exec 6>&1 419fi 420exec 5>./config.log 421 422echo "\ 423This file contains any messages produced by compilers while 424running configure, to aid debugging if configure makes a mistake. 425" 1>&5 426 427# Strip out --no-create and --no-recursion so they do not pile up. 428# Also quote any args containing shell metacharacters. 429ac_configure_args= 430for ac_arg 431do 432 case "$ac_arg" in 433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 434 | --no-cr | --no-c) ;; 435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 438 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 439 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 440 esac 441done 442 443# NLS nuisances. 444# Only set these to C if already set. These must not be set unconditionally 445# because not all systems understand e.g. LANG=C (notably SCO). 446# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 447# Non-C LC_CTYPE values break the ctype check. 448if test "${LANG+set}" = set; then LANG=C; export LANG; fi 449if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 450if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 451if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 452 453# confdefs.h avoids OS command line length limits that DEFS can exceed. 454rm -rf conftest* confdefs.h 455# AIX cpp loses on an empty file, so make sure it contains at least a newline. 456echo > confdefs.h 457 458# A filename unique to this package, relative to the directory that 459# configure is in, which we can look for to find out if srcdir is correct. 460ac_unique_file=hyperoid.h 461 462# Find the source files, if location was not specified. 463if test -z "$srcdir"; then 464 ac_srcdir_defaulted=yes 465 # Try the directory containing this script, then its parent. 466 ac_prog=$0 467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 469 srcdir=$ac_confdir 470 if test ! -r $srcdir/$ac_unique_file; then 471 srcdir=.. 472 fi 473else 474 ac_srcdir_defaulted=no 475fi 476if test ! -r $srcdir/$ac_unique_file; then 477 if test "$ac_srcdir_defaulted" = yes; then 478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 479 else 480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 481 fi 482fi 483srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 484 485# Prefer explicitly selected file to automatically selected ones. 486if test -z "$CONFIG_SITE"; then 487 if test "x$prefix" != xNONE; then 488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 489 else 490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 491 fi 492fi 493for ac_site_file in $CONFIG_SITE; do 494 if test -r "$ac_site_file"; then 495 echo "loading site script $ac_site_file" 496 . "$ac_site_file" 497 fi 498done 499 500if test -r "$cache_file"; then 501 echo "loading cache $cache_file" 502 test -f "$cache_file" && . $cache_file 503else 504 echo "creating cache $cache_file" 505 > $cache_file 506fi 507 508ac_ext=c 509# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 510ac_cpp='$CPP $CPPFLAGS' 511ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 512ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 513cross_compiling=$ac_cv_prog_cc_cross 514 515ac_exeext= 516ac_objext=o 517if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 520 ac_n= ac_c=' 521' ac_t=' ' 522 else 523 ac_n=-n ac_c= ac_t= 524 fi 525else 526 ac_n= ac_c='\c' ac_t= 527fi 528 529 530 531MAJOR_VERSION=1 532MINOR_VERSION=3 533MICRO_VERSION=4 534VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION 535 536 537 538 539 540ac_aux_dir= 541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 542 if test -f $ac_dir/install-sh; then 543 ac_aux_dir=$ac_dir 544 ac_install_sh="$ac_aux_dir/install-sh -c" 545 break 546 elif test -f $ac_dir/install.sh; then 547 ac_aux_dir=$ac_dir 548 ac_install_sh="$ac_aux_dir/install.sh -c" 549 break 550 fi 551done 552if test -z "$ac_aux_dir"; then 553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 554fi 555ac_config_guess="$SHELL $ac_aux_dir/config.guess" 556ac_config_sub="$SHELL $ac_aux_dir/config.sub" 557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 558 559# Find a good install program. We prefer a C program (faster), 560# so one script is as good as another. But avoid the broken or 561# incompatible versions: 562# SysV /etc/install, /usr/sbin/install 563# SunOS /usr/etc/install 564# IRIX /sbin/install 565# AIX /bin/install 566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 569# ./install, which can be erroneously created by make from ./install.sh. 570echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 571echo "configure:572: checking for a BSD compatible install" >&5 572if test -z "$INSTALL"; then 573if eval "test \"\${ac_cv_path_install+set}\" = set"; then 574 echo $ac_n "(cached) $ac_c" 1>&6 575else 576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 577 for ac_dir in $PATH; do 578 # Account for people who put trailing slashes in PATH elements. 579 case "$ac_dir/" in 580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 581 *) 582 # OSF1 and SCO ODT 3.0 have their own names for install. 583 # Don't use installbsd from OSF since it installs stuff as root 584 # by default. 585 for ac_prog in ginstall scoinst install; do 586 if test -f $ac_dir/$ac_prog; then 587 if test $ac_prog = install && 588 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 589 # AIX install. It has an incompatible calling convention. 590 : 591 elif test $ac_prog = install && 592 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then 593 # program-specific install script used by HP pwplus--don't use. 594 : 595 else 596 ac_cv_path_install="$ac_dir/$ac_prog -c" 597 break 2 598 fi 599 fi 600 done 601 ;; 602 esac 603 done 604 IFS="$ac_save_IFS" 605 606fi 607 if test "${ac_cv_path_install+set}" = set; then 608 INSTALL="$ac_cv_path_install" 609 else 610 # As a last resort, use the slow shell script. We don't cache a 611 # path for INSTALL within a source directory, because that will 612 # break other packages using the cache if that directory is 613 # removed, or if the path is relative. 614 INSTALL="$ac_install_sh" 615 fi 616fi 617echo "$ac_t""$INSTALL" 1>&6 618 619# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 620# It thinks the first close brace ends the variable substitution. 621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 622 623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 624 625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 626 627echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 628echo "configure:629: checking whether build environment is sane" >&5 629# Just in case 630sleep 1 631echo timestamp > conftestfile 632# Do `set' in a subshell so we don't clobber the current shell's 633# arguments. Must try -L first in case configure is actually a 634# symlink; some systems play weird games with the mod time of symlinks 635# (eg FreeBSD returns the mod time of the symlink's containing 636# directory). 637if ( 638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 639 if test "$*" = "X"; then 640 # -L didn't work. 641 set X `ls -t $srcdir/configure conftestfile` 642 fi 643 if test "$*" != "X $srcdir/configure conftestfile" \ 644 && test "$*" != "X conftestfile $srcdir/configure"; then 645 646 # If neither matched, then we have a broken ls. This can happen 647 # if, for instance, CONFIG_SHELL is bash and it inherits a 648 # broken ls alias from the environment. This has actually 649 # happened. Such a system could not be considered "sane". 650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 651alias in your environment" 1>&2; exit 1; } 652 fi 653 654 test "$2" = conftestfile 655 ) 656then 657 # Ok. 658 : 659else 660 { echo "configure: error: newly created file is older than distributed files! 661Check your system clock" 1>&2; exit 1; } 662fi 663rm -f conftest* 664echo "$ac_t""yes" 1>&6 665if test "$program_transform_name" = s,x,x,; then 666 program_transform_name= 667else 668 # Double any \ or $. echo might interpret backslashes. 669 cat <<\EOF_SED > conftestsed 670s,\\,\\\\,g; s,\$,$$,g 671EOF_SED 672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 673 rm -f conftestsed 674fi 675test "$program_prefix" != NONE && 676 program_transform_name="s,^,${program_prefix},;$program_transform_name" 677# Use a double $ so make ignores it. 678test "$program_suffix" != NONE && 679 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 680 681# sed with no file args requires a program. 682test "$program_transform_name" = "" && program_transform_name="s,x,x," 683 684echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 685echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 687if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 688 echo $ac_n "(cached) $ac_c" 1>&6 689else 690 cat > conftestmake <<\EOF 691all: 692 @echo 'ac_maketemp="${MAKE}"' 693EOF 694# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 695eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 696if test -n "$ac_maketemp"; then 697 eval ac_cv_prog_make_${ac_make}_set=yes 698else 699 eval ac_cv_prog_make_${ac_make}_set=no 700fi 701rm -f conftestmake 702fi 703if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 704 echo "$ac_t""yes" 1>&6 705 SET_MAKE= 706else 707 echo "$ac_t""no" 1>&6 708 SET_MAKE="MAKE=${MAKE-make}" 709fi 710 711 712 713PACKAGE=sdlroids 714 715VERSION=$VERSION 716 717if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 718 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 719fi 720cat >> confdefs.h <<EOF 721#define PACKAGE "$PACKAGE" 722EOF 723 724cat >> confdefs.h <<EOF 725#define VERSION "$VERSION" 726EOF 727 728 729 730missing_dir=`cd $ac_aux_dir && pwd` 731echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 732echo "configure:733: checking for working aclocal" >&5 733# Run test in a subshell; some versions of sh will print an error if 734# an executable is not found, even if stderr is redirected. 735# Redirect stdin to placate older versions of autoconf. Sigh. 736if (aclocal --version) < /dev/null > /dev/null 2>&1; then 737 ACLOCAL=aclocal 738 echo "$ac_t""found" 1>&6 739else 740 ACLOCAL="$missing_dir/missing aclocal" 741 echo "$ac_t""missing" 1>&6 742fi 743 744echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 745echo "configure:746: checking for working autoconf" >&5 746# Run test in a subshell; some versions of sh will print an error if 747# an executable is not found, even if stderr is redirected. 748# Redirect stdin to placate older versions of autoconf. Sigh. 749if (autoconf --version) < /dev/null > /dev/null 2>&1; then 750 AUTOCONF=autoconf 751 echo "$ac_t""found" 1>&6 752else 753 AUTOCONF="$missing_dir/missing autoconf" 754 echo "$ac_t""missing" 1>&6 755fi 756 757echo $ac_n "checking for working automake""... $ac_c" 1>&6 758echo "configure:759: checking for working automake" >&5 759# Run test in a subshell; some versions of sh will print an error if 760# an executable is not found, even if stderr is redirected. 761# Redirect stdin to placate older versions of autoconf. Sigh. 762if (automake --version) < /dev/null > /dev/null 2>&1; then 763 AUTOMAKE=automake 764 echo "$ac_t""found" 1>&6 765else 766 AUTOMAKE="$missing_dir/missing automake" 767 echo "$ac_t""missing" 1>&6 768fi 769 770echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 771echo "configure:772: checking for working autoheader" >&5 772# Run test in a subshell; some versions of sh will print an error if 773# an executable is not found, even if stderr is redirected. 774# Redirect stdin to placate older versions of autoconf. Sigh. 775if (autoheader --version) < /dev/null > /dev/null 2>&1; then 776 AUTOHEADER=autoheader 777 echo "$ac_t""found" 1>&6 778else 779 AUTOHEADER="$missing_dir/missing autoheader" 780 echo "$ac_t""missing" 1>&6 781fi 782 783echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 784echo "configure:785: checking for working makeinfo" >&5 785# Run test in a subshell; some versions of sh will print an error if 786# an executable is not found, even if stderr is redirected. 787# Redirect stdin to placate older versions of autoconf. Sigh. 788if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 789 MAKEINFO=makeinfo 790 echo "$ac_t""found" 1>&6 791else 792 MAKEINFO="$missing_dir/missing makeinfo" 793 echo "$ac_t""missing" 1>&6 794fi 795 796for ac_prog in gnutar gtar tar 797do 798# Extract the first word of "$ac_prog", so it can be a program name with args. 799set dummy $ac_prog; ac_word=$2 800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 801echo "configure:802: checking for $ac_word" >&5 802if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then 803 echo $ac_n "(cached) $ac_c" 1>&6 804else 805 if test -n "$AMTAR"; then 806 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test. 807else 808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 809 ac_dummy="$PATH" 810 for ac_dir in $ac_dummy; do 811 test -z "$ac_dir" && ac_dir=. 812 if test -f $ac_dir/$ac_word; then 813 ac_cv_prog_AMTAR="$ac_prog" 814 break 815 fi 816 done 817 IFS="$ac_save_ifs" 818fi 819fi 820AMTAR="$ac_cv_prog_AMTAR" 821if test -n "$AMTAR"; then 822 echo "$ac_t""$AMTAR" 1>&6 823else 824 echo "$ac_t""no" 1>&6 825fi 826 827test -n "$AMTAR" && break 828done 829 830AMTARFLAGS= 831if test -n "$AMTAR"; then 832 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then 833 AMTARFLAGS=o 834 fi 835fi 836 837 838 839 840 841 842# Extract the first word of "gcc", so it can be a program name with args. 843set dummy gcc; ac_word=$2 844echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 845echo "configure:846: checking for $ac_word" >&5 846if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 847 echo $ac_n "(cached) $ac_c" 1>&6 848else 849 if test -n "$CC"; then 850 ac_cv_prog_CC="$CC" # Let the user override the test. 851else 852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 853 ac_dummy="$PATH" 854 for ac_dir in $ac_dummy; do 855 test -z "$ac_dir" && ac_dir=. 856 if test -f $ac_dir/$ac_word; then 857 ac_cv_prog_CC="gcc" 858 break 859 fi 860 done 861 IFS="$ac_save_ifs" 862fi 863fi 864CC="$ac_cv_prog_CC" 865if test -n "$CC"; then 866 echo "$ac_t""$CC" 1>&6 867else 868 echo "$ac_t""no" 1>&6 869fi 870 871if test -z "$CC"; then 872 # Extract the first word of "cc", so it can be a program name with args. 873set dummy cc; ac_word=$2 874echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 875echo "configure:876: checking for $ac_word" >&5 876if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 877 echo $ac_n "(cached) $ac_c" 1>&6 878else 879 if test -n "$CC"; then 880 ac_cv_prog_CC="$CC" # Let the user override the test. 881else 882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 883 ac_prog_rejected=no 884 ac_dummy="$PATH" 885 for ac_dir in $ac_dummy; do 886 test -z "$ac_dir" && ac_dir=. 887 if test -f $ac_dir/$ac_word; then 888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 889 ac_prog_rejected=yes 890 continue 891 fi 892 ac_cv_prog_CC="cc" 893 break 894 fi 895 done 896 IFS="$ac_save_ifs" 897if test $ac_prog_rejected = yes; then 898 # We found a bogon in the path, so make sure we never use it. 899 set dummy $ac_cv_prog_CC 900 shift 901 if test $# -gt 0; then 902 # We chose a different compiler from the bogus one. 903 # However, it has the same basename, so the bogon will be chosen 904 # first if we set CC to just the basename; use the full file name. 905 shift 906 set dummy "$ac_dir/$ac_word" "$@" 907 shift 908 ac_cv_prog_CC="$@" 909 fi 910fi 911fi 912fi 913CC="$ac_cv_prog_CC" 914if test -n "$CC"; then 915 echo "$ac_t""$CC" 1>&6 916else 917 echo "$ac_t""no" 1>&6 918fi 919 920 if test -z "$CC"; then 921 case "`uname -s`" in 922 *win32* | *WIN32* | *CYGWIN*) 923 # Extract the first word of "cl", so it can be a program name with args. 924set dummy cl; ac_word=$2 925echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 926echo "configure:927: checking for $ac_word" >&5 927if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 928 echo $ac_n "(cached) $ac_c" 1>&6 929else 930 if test -n "$CC"; then 931 ac_cv_prog_CC="$CC" # Let the user override the test. 932else 933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 934 ac_dummy="$PATH" 935 for ac_dir in $ac_dummy; do 936 test -z "$ac_dir" && ac_dir=. 937 if test -f $ac_dir/$ac_word; then 938 ac_cv_prog_CC="cl" 939 break 940 fi 941 done 942 IFS="$ac_save_ifs" 943fi 944fi 945CC="$ac_cv_prog_CC" 946if test -n "$CC"; then 947 echo "$ac_t""$CC" 1>&6 948else 949 echo "$ac_t""no" 1>&6 950fi 951 ;; 952 esac 953 fi 954 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 955fi 956 957echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 958echo "configure:959: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5 959 960ac_ext=c 961# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 962ac_cpp='$CPP $CPPFLAGS' 963ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 964ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 965cross_compiling=$ac_cv_prog_cc_cross 966 967cat > conftest.$ac_ext << EOF 968 969#line 970 "configure" 970#include "confdefs.h" 971 972main(){return(0);} 973EOF 974if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 975 ac_cv_prog_cc_works=yes 976 # If we can't run a trivial program, we are probably using a cross compiler. 977 if (./conftest; exit) 2>/dev/null; then 978 ac_cv_prog_cc_cross=no 979 else 980 ac_cv_prog_cc_cross=yes 981 fi 982else 983 echo "configure: failed program was:" >&5 984 cat conftest.$ac_ext >&5 985 ac_cv_prog_cc_works=no 986fi 987rm -fr conftest* 988ac_ext=c 989# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 990ac_cpp='$CPP $CPPFLAGS' 991ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 992ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 993cross_compiling=$ac_cv_prog_cc_cross 994 995echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 996if test $ac_cv_prog_cc_works = no; then 997 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 998fi 999echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1000echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5 1001echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1002cross_compiling=$ac_cv_prog_cc_cross 1003 1004echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1005echo "configure:1006: checking whether we are using GNU C" >&5 1006if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then 1007 echo $ac_n "(cached) $ac_c" 1>&6 1008else 1009 cat > conftest.c <<EOF 1010#ifdef __GNUC__ 1011 yes; 1012#endif 1013EOF 1014if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1015 ac_cv_prog_gcc=yes 1016else 1017 ac_cv_prog_gcc=no 1018fi 1019fi 1020 1021echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1022 1023if test $ac_cv_prog_gcc = yes; then 1024 GCC=yes 1025else 1026 GCC= 1027fi 1028 1029ac_test_CFLAGS="${CFLAGS+set}" 1030ac_save_CFLAGS="$CFLAGS" 1031CFLAGS= 1032echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1033echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5 1034if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then 1035 echo $ac_n "(cached) $ac_c" 1>&6 1036else 1037 echo 'void f(){}' > conftest.c 1038if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1039 ac_cv_prog_cc_g=yes 1040else 1041 ac_cv_prog_cc_g=no 1042fi 1043rm -f conftest* 1044 1045fi 1046 1047echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1048if test "$ac_test_CFLAGS" = set; then 1049 CFLAGS="$ac_save_CFLAGS" 1050elif test $ac_cv_prog_cc_g = yes; then 1051 if test "$GCC" = yes; then 1052 CFLAGS="-g -O2" 1053 else 1054 CFLAGS="-g" 1055 fi 1056else 1057 if test "$GCC" = yes; then 1058 CFLAGS="-O2" 1059 else 1060 CFLAGS= 1061 fi 1062fi 1063 1064echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1065echo "configure:1066: checking how to run the C preprocessor" >&5 1066# On Suns, sometimes $CPP names a directory. 1067if test -n "$CPP" && test -d "$CPP"; then 1068 CPP= 1069fi 1070if test -z "$CPP"; then 1071if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then 1072 echo $ac_n "(cached) $ac_c" 1>&6 1073else 1074 # This must be in double quotes, not single quotes, because CPP may get 1075 # substituted into the Makefile and "${CC-cc}" will confuse make. 1076 CPP="${CC-cc} -E" 1077 # On the NeXT, cc -E runs the code through the compiler's parser, 1078 # not just through cpp. 1079 cat > conftest.$ac_ext <<EOF 1080#line 1081 "configure" 1081#include "confdefs.h" 1082#include <assert.h> 1083Syntax Error 1084EOF 1085ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1086{ (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1087ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1088if test -z "$ac_err"; then 1089 : 1090else 1091 echo "$ac_err" >&5 1092 echo "configure: failed program was:" >&5 1093 cat conftest.$ac_ext >&5 1094 rm -rf conftest* 1095 CPP="${CC-cc} -E -traditional-cpp" 1096 cat > conftest.$ac_ext <<EOF 1097#line 1098 "configure" 1098#include "confdefs.h" 1099#include <assert.h> 1100Syntax Error 1101EOF 1102ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1103{ (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1104ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1105if test -z "$ac_err"; then 1106 : 1107else 1108 echo "$ac_err" >&5 1109 echo "configure: failed program was:" >&5 1110 cat conftest.$ac_ext >&5 1111 rm -rf conftest* 1112 CPP="${CC-cc} -nologo -E" 1113 cat > conftest.$ac_ext <<EOF 1114#line 1115 "configure" 1115#include "confdefs.h" 1116#include <assert.h> 1117Syntax Error 1118EOF 1119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1120{ (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1122if test -z "$ac_err"; then 1123 : 1124else 1125 echo "$ac_err" >&5 1126 echo "configure: failed program was:" >&5 1127 cat conftest.$ac_ext >&5 1128 rm -rf conftest* 1129 CPP=/lib/cpp 1130fi 1131rm -f conftest* 1132fi 1133rm -f conftest* 1134fi 1135rm -f conftest* 1136 ac_cv_prog_CPP="$CPP" 1137fi 1138 CPP="$ac_cv_prog_CPP" 1139else 1140 ac_cv_prog_CPP="$CPP" 1141fi 1142echo "$ac_t""$CPP" 1>&6 1143 1144# Find a good install program. We prefer a C program (faster), 1145# so one script is as good as another. But avoid the broken or 1146# incompatible versions: 1147# SysV /etc/install, /usr/sbin/install 1148# SunOS /usr/etc/install 1149# IRIX /sbin/install 1150# AIX /bin/install 1151# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1152# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1153# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1154# ./install, which can be erroneously created by make from ./install.sh. 1155echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1156echo "configure:1157: checking for a BSD compatible install" >&5 1157if test -z "$INSTALL"; then 1158if eval "test \"\${ac_cv_path_install+set}\" = set"; then 1159 echo $ac_n "(cached) $ac_c" 1>&6 1160else 1161 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1162 for ac_dir in $PATH; do 1163 # Account for people who put trailing slashes in PATH elements. 1164 case "$ac_dir/" in 1165 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1166 *) 1167 # OSF1 and SCO ODT 3.0 have their own names for install. 1168 # Don't use installbsd from OSF since it installs stuff as root 1169 # by default. 1170 for ac_prog in ginstall scoinst install; do 1171 if test -f $ac_dir/$ac_prog; then 1172 if test $ac_prog = install && 1173 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1174 # AIX install. It has an incompatible calling convention. 1175 : 1176 elif test $ac_prog = install && 1177 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then 1178 # program-specific install script used by HP pwplus--don't use. 1179 : 1180 else 1181 ac_cv_path_install="$ac_dir/$ac_prog -c" 1182 break 2 1183 fi 1184 fi 1185 done 1186 ;; 1187 esac 1188 done 1189 IFS="$ac_save_IFS" 1190 1191fi 1192 if test "${ac_cv_path_install+set}" = set; then 1193 INSTALL="$ac_cv_path_install" 1194 else 1195 # As a last resort, use the slow shell script. We don't cache a 1196 # path for INSTALL within a source directory, because that will 1197 # break other packages using the cache if that directory is 1198 # removed, or if the path is relative. 1199 INSTALL="$ac_install_sh" 1200 fi 1201fi 1202echo "$ac_t""$INSTALL" 1>&6 1203 1204# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1205# It thinks the first close brace ends the variable substitution. 1206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1207 1208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1209 1210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1211 1212echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1213echo "configure:1214: checking whether ln -s works" >&5 1214if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then 1215 echo $ac_n "(cached) $ac_c" 1>&6 1216else 1217 rm -f conftestdata 1218if ln -s X conftestdata 2>/dev/null 1219then 1220 rm -f conftestdata 1221 ac_cv_prog_LN_S="ln -s" 1222else 1223 ac_cv_prog_LN_S=ln 1224fi 1225fi 1226LN_S="$ac_cv_prog_LN_S" 1227if test "$ac_cv_prog_LN_S" = "ln -s"; then 1228 echo "$ac_t""yes" 1>&6 1229else 1230 echo "$ac_t""no" 1>&6 1231fi 1232 1233echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1234echo "configure:1235: checking whether ${MAKE-make} sets \${MAKE}" >&5 1235set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1236if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1237 echo $ac_n "(cached) $ac_c" 1>&6 1238else 1239 cat > conftestmake <<\EOF 1240all: 1241 @echo 'ac_maketemp="${MAKE}"' 1242EOF 1243# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1244eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1245if test -n "$ac_maketemp"; then 1246 eval ac_cv_prog_make_${ac_make}_set=yes 1247else 1248 eval ac_cv_prog_make_${ac_make}_set=no 1249fi 1250rm -f conftestmake 1251fi 1252if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1253 echo "$ac_t""yes" 1>&6 1254 SET_MAKE= 1255else 1256 echo "$ac_t""no" 1>&6 1257 SET_MAKE="MAKE=${MAKE-make}" 1258fi 1259 1260 1261 1262SDL_VERSION=1.1.0 1263# Check whether --with-sdl-prefix or --without-sdl-prefix was given. 1264if test "${with_sdl_prefix+set}" = set; then 1265 withval="$with_sdl_prefix" 1266 sdl_prefix="$withval" 1267else 1268 sdl_prefix="" 1269fi 1270 1271# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 1272if test "${with_sdl_exec_prefix+set}" = set; then 1273 withval="$with_sdl_exec_prefix" 1274 sdl_exec_prefix="$withval" 1275else 1276 sdl_exec_prefix="" 1277fi 1278 1279# Check whether --enable-sdltest or --disable-sdltest was given. 1280if test "${enable_sdltest+set}" = set; then 1281 enableval="$enable_sdltest" 1282 : 1283else 1284 enable_sdltest=yes 1285fi 1286 1287 1288 if test x$sdl_exec_prefix != x ; then 1289 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 1290 if test x${SDL_CONFIG+set} != xset ; then 1291 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 1292 fi 1293 fi 1294 if test x$sdl_prefix != x ; then 1295 sdl_args="$sdl_args --prefix=$sdl_prefix" 1296 if test x${SDL_CONFIG+set} != xset ; then 1297 SDL_CONFIG=$sdl_prefix/bin/sdl-config 1298 fi 1299 fi 1300 1301 # Extract the first word of "sdl-config", so it can be a program name with args. 1302set dummy sdl-config; ac_word=$2 1303echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1304echo "configure:1305: checking for $ac_word" >&5 1305if eval "test \"\${ac_cv_path_SDL_CONFIG+set}\" = set"; then 1306 echo $ac_n "(cached) $ac_c" 1>&6 1307else 1308 case "$SDL_CONFIG" in 1309 /*) 1310 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 1311 ;; 1312 ?:/*) 1313 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. 1314 ;; 1315 *) 1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1317 ac_dummy="$PATH" 1318 for ac_dir in $ac_dummy; do 1319 test -z "$ac_dir" && ac_dir=. 1320 if test -f $ac_dir/$ac_word; then 1321 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" 1322 break 1323 fi 1324 done 1325 IFS="$ac_save_ifs" 1326 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 1327 ;; 1328esac 1329fi 1330SDL_CONFIG="$ac_cv_path_SDL_CONFIG" 1331if test -n "$SDL_CONFIG"; then 1332 echo "$ac_t""$SDL_CONFIG" 1>&6 1333else 1334 echo "$ac_t""no" 1>&6 1335fi 1336 1337 min_sdl_version=$SDL_VERSION 1338 echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6 1339echo "configure:1340: checking for SDL - version >= $min_sdl_version" >&5 1340 no_sdl="" 1341 if test "$SDL_CONFIG" = "no" ; then 1342 no_sdl=yes 1343 else 1344 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 1345 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 1346 1347 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 1348 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 1349 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 1350 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 1351 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 1352 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 1353 if test "x$enable_sdltest" = "xyes" ; then 1354 ac_save_CFLAGS="$CFLAGS" 1355 ac_save_LIBS="$LIBS" 1356 CFLAGS="$CFLAGS $SDL_CFLAGS" 1357 LIBS="$LIBS $SDL_LIBS" 1358 rm -f conf.sdltest 1359 if test "$cross_compiling" = yes; then 1360 echo $ac_n "cross compiling; assumed OK... $ac_c" 1361else 1362 cat > conftest.$ac_ext <<EOF 1363#line 1364 "configure" 1364#include "confdefs.h" 1365 1366#include <stdio.h> 1367#include <stdlib.h> 1368#include <string.h> 1369#include "SDL.h" 1370 1371char* 1372my_strdup (char *str) 1373{ 1374 char *new_str; 1375 1376 if (str) 1377 { 1378 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 1379 strcpy (new_str, str); 1380 } 1381 else 1382 new_str = NULL; 1383 1384 return new_str; 1385} 1386 1387int main () 1388{ 1389 int major, minor, micro; 1390 char *tmp_version; 1391 1392 system ("touch conf.sdltest"); 1393 1394 /* HP/UX 9 (%@#!) writes to sscanf strings */ 1395 tmp_version = my_strdup("$min_sdl_version"); 1396 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 1397 printf("%s, bad version string\n", "$min_sdl_version"); 1398 exit(1); 1399 } 1400 1401 if (($sdl_major_version > major) || 1402 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 1403 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 1404 { 1405 return 0; 1406 } 1407 else 1408 { 1409 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 1410 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 1411 printf("*** best to upgrade to the required version.\n"); 1412 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 1413 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 1414 printf("*** config.cache before re-running configure\n"); 1415 return 1; 1416 } 1417} 1418 1419 1420EOF 1421if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1422then 1423 : 1424else 1425 echo "configure: failed program was:" >&5 1426 cat conftest.$ac_ext >&5 1427 rm -fr conftest* 1428 no_sdl=yes 1429fi 1430rm -fr conftest* 1431fi 1432 1433 CFLAGS="$ac_save_CFLAGS" 1434 LIBS="$ac_save_LIBS" 1435 fi 1436 fi 1437 if test "x$no_sdl" = x ; then 1438 echo "$ac_t""yes" 1>&6 1439 : 1440 else 1441 echo "$ac_t""no" 1>&6 1442 if test "$SDL_CONFIG" = "no" ; then 1443 echo "*** The sdl-config script installed by SDL could not be found" 1444 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 1445 echo "*** your path, or set the SDL_CONFIG environment variable to the" 1446 echo "*** full path to sdl-config." 1447 else 1448 if test -f conf.sdltest ; then 1449 : 1450 else 1451 echo "*** Could not run SDL test program, checking why..." 1452 CFLAGS="$CFLAGS $SDL_CFLAGS" 1453 LIBS="$LIBS $SDL_LIBS" 1454 cat > conftest.$ac_ext <<EOF 1455#line 1456 "configure" 1456#include "confdefs.h" 1457 1458#include <stdio.h> 1459#include "SDL.h" 1460 1461int main() { 1462 return 0; 1463; return 0; } 1464EOF 1465if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1466 rm -rf conftest* 1467 echo "*** The test program compiled, but did not run. This usually means" 1468 echo "*** that the run-time linker is not finding SDL or finding the wrong" 1469 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 1470 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 1471 echo "*** to the installed location Also, make sure you have run ldconfig if that" 1472 echo "*** is required on your system" 1473 echo "***" 1474 echo "*** If you have an old version installed, it is best to remove it, although" 1475 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 1476else 1477 echo "configure: failed program was:" >&5 1478 cat conftest.$ac_ext >&5 1479 rm -rf conftest* 1480 echo "*** The test program failed to compile or link. See the file config.log for the" 1481 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 1482 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 1483 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 1484fi 1485rm -f conftest* 1486 CFLAGS="$ac_save_CFLAGS" 1487 LIBS="$ac_save_LIBS" 1488 fi 1489 fi 1490 SDL_CFLAGS="" 1491 SDL_LIBS="" 1492 { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; } 1493 1494 fi 1495 1496 1497 rm -f conf.sdltest 1498 1499CFLAGS="$CFLAGS $SDL_CFLAGS" 1500LIBS="$LIBS $SDL_LIBS" 1501export CFLAGS LIBS 1502echo $ac_n "checking for Mix_OpenAudio in -lSDL_mixer""... $ac_c" 1>&6 1503echo "configure:1504: checking for Mix_OpenAudio in -lSDL_mixer" >&5 1504ac_lib_var=`echo SDL_mixer'_'Mix_OpenAudio | sed 'y%./+-%__p_%'` 1505if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 1506 echo $ac_n "(cached) $ac_c" 1>&6 1507else 1508 ac_save_LIBS="$LIBS" 1509LIBS="-lSDL_mixer $LIBS" 1510cat > conftest.$ac_ext <<EOF 1511#line 1512 "configure" 1512#include "confdefs.h" 1513/* Override any gcc2 internal prototype to avoid an error. */ 1514/* We use char because int might match the return type of a gcc2 1515 builtin and then its argument prototype would still apply. */ 1516char Mix_OpenAudio(); 1517 1518int main() { 1519Mix_OpenAudio() 1520; return 0; } 1521EOF 1522if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1523 rm -rf conftest* 1524 eval "ac_cv_lib_$ac_lib_var=yes" 1525else 1526 echo "configure: failed program was:" >&5 1527 cat conftest.$ac_ext >&5 1528 rm -rf conftest* 1529 eval "ac_cv_lib_$ac_lib_var=no" 1530fi 1531rm -f conftest* 1532LIBS="$ac_save_LIBS" 1533 1534fi 1535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1536 echo "$ac_t""yes" 1>&6 1537 ac_tr_lib=HAVE_LIB`echo SDL_mixer | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1539 cat >> confdefs.h <<EOF 1540#define $ac_tr_lib 1 1541EOF 1542 1543 LIBS="-lSDL_mixer $LIBS" 1544 1545else 1546 echo "$ac_t""no" 1>&6 1547fi 1548 1549echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 1550echo "configure:1551: checking for sin in -lm" >&5 1551ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 1552if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 1553 echo $ac_n "(cached) $ac_c" 1>&6 1554else 1555 ac_save_LIBS="$LIBS" 1556LIBS="-lm $LIBS" 1557cat > conftest.$ac_ext <<EOF 1558#line 1559 "configure" 1559#include "confdefs.h" 1560/* Override any gcc2 internal prototype to avoid an error. */ 1561/* We use char because int might match the return type of a gcc2 1562 builtin and then its argument prototype would still apply. */ 1563char sin(); 1564 1565int main() { 1566sin() 1567; return 0; } 1568EOF 1569if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1570 rm -rf conftest* 1571 eval "ac_cv_lib_$ac_lib_var=yes" 1572else 1573 echo "configure: failed program was:" >&5 1574 cat conftest.$ac_ext >&5 1575 rm -rf conftest* 1576 eval "ac_cv_lib_$ac_lib_var=no" 1577fi 1578rm -f conftest* 1579LIBS="$ac_save_LIBS" 1580 1581fi 1582if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1583 echo "$ac_t""yes" 1>&6 1584 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1586 cat >> confdefs.h <<EOF 1587#define $ac_tr_lib 1 1588EOF 1589 1590 LIBS="-lm $LIBS" 1591 1592else 1593 echo "$ac_t""no" 1>&6 1594fi 1595 1596 1597echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1598echo "configure:1599: checking for ANSI C header files" >&5 1599if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then 1600 echo $ac_n "(cached) $ac_c" 1>&6 1601else 1602 cat > conftest.$ac_ext <<EOF 1603#line 1604 "configure" 1604#include "confdefs.h" 1605#include <stdlib.h> 1606#include <stdarg.h> 1607#include <string.h> 1608#include <float.h> 1609EOF 1610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1611{ (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1613if test -z "$ac_err"; then 1614 rm -rf conftest* 1615 ac_cv_header_stdc=yes 1616else 1617 echo "$ac_err" >&5 1618 echo "configure: failed program was:" >&5 1619 cat conftest.$ac_ext >&5 1620 rm -rf conftest* 1621 ac_cv_header_stdc=no 1622fi 1623rm -f conftest* 1624 1625if test $ac_cv_header_stdc = yes; then 1626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1627cat > conftest.$ac_ext <<EOF 1628#line 1629 "configure" 1629#include "confdefs.h" 1630#include <string.h> 1631EOF 1632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1633 egrep "memchr" >/dev/null 2>&1; then 1634 : 1635else 1636 rm -rf conftest* 1637 ac_cv_header_stdc=no 1638fi 1639rm -f conftest* 1640 1641fi 1642 1643if test $ac_cv_header_stdc = yes; then 1644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1645cat > conftest.$ac_ext <<EOF 1646#line 1647 "configure" 1647#include "confdefs.h" 1648#include <stdlib.h> 1649EOF 1650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1651 egrep "free" >/dev/null 2>&1; then 1652 : 1653else 1654 rm -rf conftest* 1655 ac_cv_header_stdc=no 1656fi 1657rm -f conftest* 1658 1659fi 1660 1661if test $ac_cv_header_stdc = yes; then 1662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1663if test "$cross_compiling" = yes; then 1664 : 1665else 1666 cat > conftest.$ac_ext <<EOF 1667#line 1668 "configure" 1668#include "confdefs.h" 1669#include <ctype.h> 1670#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1671#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1673int main () { int i; for (i = 0; i < 256; i++) 1674if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1675exit (0); } 1676 1677EOF 1678if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1679then 1680 : 1681else 1682 echo "configure: failed program was:" >&5 1683 cat conftest.$ac_ext >&5 1684 rm -fr conftest* 1685 ac_cv_header_stdc=no 1686fi 1687rm -fr conftest* 1688fi 1689 1690fi 1691fi 1692 1693echo "$ac_t""$ac_cv_header_stdc" 1>&6 1694if test $ac_cv_header_stdc = yes; then 1695 cat >> confdefs.h <<\EOF 1696#define STDC_HEADERS 1 1697EOF 1698 1699fi 1700 1701echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1702echo "configure:1703: checking for sys/wait.h that is POSIX.1 compatible" >&5 1703if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then 1704 echo $ac_n "(cached) $ac_c" 1>&6 1705else 1706 cat > conftest.$ac_ext <<EOF 1707#line 1708 "configure" 1708#include "confdefs.h" 1709#include <sys/types.h> 1710#include <sys/wait.h> 1711#ifndef WEXITSTATUS 1712#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1713#endif 1714#ifndef WIFEXITED 1715#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1716#endif 1717int main() { 1718int s; 1719wait (&s); 1720s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1721; return 0; } 1722EOF 1723if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1724 rm -rf conftest* 1725 ac_cv_header_sys_wait_h=yes 1726else 1727 echo "configure: failed program was:" >&5 1728 cat conftest.$ac_ext >&5 1729 rm -rf conftest* 1730 ac_cv_header_sys_wait_h=no 1731fi 1732rm -f conftest* 1733fi 1734 1735echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1736if test $ac_cv_header_sys_wait_h = yes; then 1737 cat >> confdefs.h <<\EOF 1738#define HAVE_SYS_WAIT_H 1 1739EOF 1740 1741fi 1742 1743oldcpp=CPP 1744CPP="$CPP $SDL_CFLAGS" 1745for ac_hdr in SDL_mixer.h SDL/SDL_mixer.h fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h syslog.h windows.h 1746do 1747ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1748echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1749echo "configure:1750: checking for $ac_hdr" >&5 1750if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 1751 echo $ac_n "(cached) $ac_c" 1>&6 1752else 1753 cat > conftest.$ac_ext <<EOF 1754#line 1755 "configure" 1755#include "confdefs.h" 1756#include <$ac_hdr> 1757EOF 1758ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1759{ (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1760ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1761if test -z "$ac_err"; then 1762 rm -rf conftest* 1763 eval "ac_cv_header_$ac_safe=yes" 1764else 1765 echo "$ac_err" >&5 1766 echo "configure: failed program was:" >&5 1767 cat conftest.$ac_ext >&5 1768 rm -rf conftest* 1769 eval "ac_cv_header_$ac_safe=no" 1770fi 1771rm -f conftest* 1772fi 1773if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1774 echo "$ac_t""yes" 1>&6 1775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1776 cat >> confdefs.h <<EOF 1777#define $ac_tr_hdr 1 1778EOF 1779 1780else 1781 echo "$ac_t""no" 1>&6 1782fi 1783done 1784 1785CPP=$oldcpp 1786 1787 1788if test "$ac_cv_header_windows_h" = yes; then 1789 SRRES=sdlroids.coff 1790fi 1791 1792echo $ac_n "checking for working const""... $ac_c" 1>&6 1793echo "configure:1794: checking for working const" >&5 1794if eval "test \"\${ac_cv_c_const+set}\" = set"; then 1795 echo $ac_n "(cached) $ac_c" 1>&6 1796else 1797 cat > conftest.$ac_ext <<EOF 1798#line 1799 "configure" 1799#include "confdefs.h" 1800 1801int main() { 1802 1803/* Ultrix mips cc rejects this. */ 1804typedef int charset[2]; const charset x; 1805/* SunOS 4.1.1 cc rejects this. */ 1806char const *const *ccp; 1807char **p; 1808/* NEC SVR4.0.2 mips cc rejects this. */ 1809struct point {int x, y;}; 1810static struct point const zero = {0,0}; 1811/* AIX XL C 1.02.0.0 rejects this. 1812 It does not let you subtract one const X* pointer from another in an arm 1813 of an if-expression whose if-part is not a constant expression */ 1814const char *g = "string"; 1815ccp = &g + (g ? g-g : 0); 1816/* HPUX 7.0 cc rejects these. */ 1817++ccp; 1818p = (char**) ccp; 1819ccp = (char const *const *) p; 1820{ /* SCO 3.2v4 cc rejects this. */ 1821 char *t; 1822 char const *s = 0 ? (char *) 0 : (char const *) 0; 1823 1824 *t++ = 0; 1825} 1826{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1827 int x[] = {25, 17}; 1828 const int *foo = &x[0]; 1829 ++foo; 1830} 1831{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1832 typedef const int *iptr; 1833 iptr p = 0; 1834 ++p; 1835} 1836{ /* AIX XL C 1.02.0.0 rejects this saying 1837 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1838 struct s { int j; const int *ap[3]; }; 1839 struct s *b; b->j = 5; 1840} 1841{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1842 const int foo = 10; 1843} 1844 1845; return 0; } 1846EOF 1847if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1848 rm -rf conftest* 1849 ac_cv_c_const=yes 1850else 1851 echo "configure: failed program was:" >&5 1852 cat conftest.$ac_ext >&5 1853 rm -rf conftest* 1854 ac_cv_c_const=no 1855fi 1856rm -f conftest* 1857fi 1858 1859echo "$ac_t""$ac_cv_c_const" 1>&6 1860if test $ac_cv_c_const = no; then 1861 cat >> confdefs.h <<\EOF 1862#define const 1863EOF 1864 1865fi 1866 1867echo $ac_n "checking for inline""... $ac_c" 1>&6 1868echo "configure:1869: checking for inline" >&5 1869if eval "test \"\${ac_cv_c_inline+set}\" = set"; then 1870 echo $ac_n "(cached) $ac_c" 1>&6 1871else 1872 ac_cv_c_inline=no 1873for ac_kw in inline __inline__ __inline; do 1874 cat > conftest.$ac_ext <<EOF 1875#line 1876 "configure" 1876#include "confdefs.h" 1877 1878int main() { 1879} $ac_kw foo() { 1880; return 0; } 1881EOF 1882if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1883 rm -rf conftest* 1884 ac_cv_c_inline=$ac_kw; break 1885else 1886 echo "configure: failed program was:" >&5 1887 cat conftest.$ac_ext >&5 1888fi 1889rm -f conftest* 1890done 1891 1892fi 1893 1894echo "$ac_t""$ac_cv_c_inline" 1>&6 1895case "$ac_cv_c_inline" in 1896 inline | yes) ;; 1897 no) cat >> confdefs.h <<\EOF 1898#define inline 1899EOF 1900 ;; 1901 *) cat >> confdefs.h <<EOF 1902#define inline $ac_cv_c_inline 1903EOF 1904 ;; 1905esac 1906 1907 1908for ac_func in strtol strdup strerror syslog getenv setenv 1909do 1910echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1911echo "configure:1912: checking for $ac_func" >&5 1912if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 1913 echo $ac_n "(cached) $ac_c" 1>&6 1914else 1915 cat > conftest.$ac_ext <<EOF 1916#line 1917 "configure" 1917#include "confdefs.h" 1918/* System header to define __stub macros and hopefully few prototypes, 1919 which can conflict with char $ac_func(); below. */ 1920#include <assert.h> 1921/* Override any gcc2 internal prototype to avoid an error. */ 1922/* We use char because int might match the return type of a gcc2 1923 builtin and then its argument prototype would still apply. */ 1924char $ac_func(); 1925char (*f)(); 1926 1927int main() { 1928 1929/* The GNU C library defines this for functions which it implements 1930 to always fail with ENOSYS. Some functions are actually named 1931 something starting with __ and the normal name is an alias. */ 1932#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1933choke me 1934#else 1935f = $ac_func; 1936#endif 1937 1938; return 0; } 1939EOF 1940if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1941 rm -rf conftest* 1942 eval "ac_cv_func_$ac_func=yes" 1943else 1944 echo "configure: failed program was:" >&5 1945 cat conftest.$ac_ext >&5 1946 rm -rf conftest* 1947 eval "ac_cv_func_$ac_func=no" 1948fi 1949rm -f conftest* 1950fi 1951 1952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1953 echo "$ac_t""yes" 1>&6 1954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1955 cat >> confdefs.h <<EOF 1956#define $ac_tr_func 1 1957EOF 1958 1959else 1960 echo "$ac_t""no" 1>&6 1961fi 1962done 1963 1964 1965trap '' 1 2 15 1966cat > confcache <<\EOF 1967# This file is a shell script that caches the results of configure 1968# tests run on this system so they can be shared between configure 1969# scripts and configure runs. It is not useful on other systems. 1970# If it contains results you don't want to keep, you may remove or edit it. 1971# 1972# By default, configure uses ./config.cache as the cache file, 1973# creating it if it does not exist already. You can give configure 1974# the --cache-file=FILE option to use a different cache file; that is 1975# what configure does when it calls configure scripts in 1976# subdirectories, so they share the cache. 1977# Giving --cache-file=/dev/null disables caching, for debugging configure. 1978# config.status only pays attention to the cache file if you give it the 1979# --recheck option to rerun configure. 1980# 1981EOF 1982# The following way of writing the cache mishandles newlines in values, 1983# but we know of no workaround that is simple, portable, and efficient. 1984# So, don't put newlines in cache variables' values. 1985# Ultrix sh set writes to stderr and can't be redirected directly, 1986# and sets the high bit in the cache file unless we assign to the vars. 1987(set) 2>&1 | 1988 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1989 *ac_space=\ *) 1990 # `set' does not quote correctly, so add quotes (double-quote substitution 1991 # turns \\\\ into \\, and sed turns \\ into \). 1992 sed -n \ 1993 -e "s/'/'\\\\''/g" \ 1994 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1995 ;; 1996 *) 1997 # `set' quotes correctly as required by POSIX, so do not add quotes. 1998 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1999 ;; 2000 esac >> confcache 2001if cmp -s $cache_file confcache; then 2002 : 2003else 2004 if test -w $cache_file; then 2005 echo "updating cache $cache_file" 2006 cat confcache > $cache_file 2007 else 2008 echo "not updating unwritable cache $cache_file" 2009 fi 2010fi 2011rm -f confcache 2012 2013trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2014 2015test "x$prefix" = xNONE && prefix=$ac_default_prefix 2016# Let make expand exec_prefix. 2017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2018 2019# Any assignment to VPATH causes Sun make to only execute 2020# the first set of double-colon rules, so remove it if not needed. 2021# If there is a colon in the path, we need to keep it. 2022if test "x$srcdir" = x.; then 2023 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2024fi 2025 2026trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2027 2028DEFS=-DHAVE_CONFIG_H 2029 2030# Without the "./", some shells look in PATH for config.status. 2031: ${CONFIG_STATUS=./config.status} 2032 2033echo creating $CONFIG_STATUS 2034rm -f $CONFIG_STATUS 2035cat > $CONFIG_STATUS <<EOF 2036#! /bin/sh 2037# Generated automatically by configure. 2038# Run this file to recreate the current configuration. 2039# This directory was configured as follows, 2040# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2041# 2042# $0 $ac_configure_args 2043# 2044# Compiler output produced by configure, useful for debugging 2045# configure, is in ./config.log if it exists. 2046 2047ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2048for ac_option 2049do 2050 case "\$ac_option" in 2051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2052 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2053 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2054 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2055 echo "$CONFIG_STATUS generated by autoconf version 2.14.1" 2056 exit 0 ;; 2057 -help | --help | --hel | --he | --h) 2058 echo "\$ac_cs_usage"; exit 0 ;; 2059 *) echo "\$ac_cs_usage"; exit 1 ;; 2060 esac 2061done 2062 2063ac_given_srcdir=$srcdir 2064ac_given_INSTALL="$INSTALL" 2065 2066trap 'rm -fr `echo "Makefile sdlroids.6 sdlroids.spec sdlroids-mdk.spec sdlroids.rc config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2067EOF 2068cat >> $CONFIG_STATUS <<EOF 2069 2070# Protect against being on the right side of a sed subst in config.status. 2071sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2072 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2073$ac_vpsub 2074$extrasub 2075s%@SHELL@%$SHELL%g 2076s%@CFLAGS@%$CFLAGS%g 2077s%@CPPFLAGS@%$CPPFLAGS%g 2078s%@CXXFLAGS@%$CXXFLAGS%g 2079s%@FFLAGS@%$FFLAGS%g 2080s%@DEFS@%$DEFS%g 2081s%@LDFLAGS@%$LDFLAGS%g 2082s%@LIBS@%$LIBS%g 2083s%@exec_prefix@%$exec_prefix%g 2084s%@prefix@%$prefix%g 2085s%@program_transform_name@%$program_transform_name%g 2086s%@bindir@%$bindir%g 2087s%@sbindir@%$sbindir%g 2088s%@libexecdir@%$libexecdir%g 2089s%@datadir@%$datadir%g 2090s%@sysconfdir@%$sysconfdir%g 2091s%@sharedstatedir@%$sharedstatedir%g 2092s%@localstatedir@%$localstatedir%g 2093s%@libdir@%$libdir%g 2094s%@includedir@%$includedir%g 2095s%@oldincludedir@%$oldincludedir%g 2096s%@infodir@%$infodir%g 2097s%@mandir@%$mandir%g 2098s%@VERSION@%$VERSION%g 2099s%@MINOR_VERSION@%$MINOR_VERSION%g 2100s%@MICRO_VERSION@%$MICRO_VERSION%g 2101s%@MAJOR_VERSION@%$MAJOR_VERSION%g 2102s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2103s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2104s%@INSTALL_DATA@%$INSTALL_DATA%g 2105s%@PACKAGE@%$PACKAGE%g 2106s%@ACLOCAL@%$ACLOCAL%g 2107s%@AUTOCONF@%$AUTOCONF%g 2108s%@AUTOMAKE@%$AUTOMAKE%g 2109s%@AUTOHEADER@%$AUTOHEADER%g 2110s%@MAKEINFO@%$MAKEINFO%g 2111s%@AMTAR@%$AMTAR%g 2112s%@AMTARFLAGS@%$AMTARFLAGS%g 2113s%@SET_MAKE@%$SET_MAKE%g 2114s%@CC@%$CC%g 2115s%@CPP@%$CPP%g 2116s%@LN_S@%$LN_S%g 2117s%@SDL_CONFIG@%$SDL_CONFIG%g 2118s%@SDL_CFLAGS@%$SDL_CFLAGS%g 2119s%@SDL_LIBS@%$SDL_LIBS%g 2120s%@SRRES@%$SRRES%g 2121 2122CEOF 2123EOF 2124 2125cat >> $CONFIG_STATUS <<\EOF 2126 2127# Split the substitutions into bite-sized pieces for seds with 2128# small command number limits, like on Digital OSF/1 and HP-UX. 2129ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2130ac_file=1 # Number of current file. 2131ac_beg=1 # First line for current file. 2132ac_end=$ac_max_sed_cmds # Line after last line for current file. 2133ac_more_lines=: 2134ac_sed_cmds="" 2135while $ac_more_lines; do 2136 if test $ac_beg -gt 1; then 2137 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2138 else 2139 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2140 fi 2141 if test ! -s conftest.s$ac_file; then 2142 ac_more_lines=false 2143 rm -f conftest.s$ac_file 2144 else 2145 if test -z "$ac_sed_cmds"; then 2146 ac_sed_cmds="sed -f conftest.s$ac_file" 2147 else 2148 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2149 fi 2150 ac_file=`expr $ac_file + 1` 2151 ac_beg=$ac_end 2152 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2153 fi 2154done 2155if test -z "$ac_sed_cmds"; then 2156 ac_sed_cmds=cat 2157fi 2158EOF 2159 2160cat >> $CONFIG_STATUS <<EOF 2161 2162CONFIG_FILES=\${CONFIG_FILES-"Makefile sdlroids.6 sdlroids.spec sdlroids-mdk.spec sdlroids.rc "} 2163EOF 2164cat >> $CONFIG_STATUS <<\EOF 2165for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2167 case "$ac_file" in 2168 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2169 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2170 *) ac_file_in="${ac_file}.in" ;; 2171 esac 2172 2173 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2174 2175 # Remove last slash and all that follows it. Not all systems have dirname. 2176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2178 # The file is in a subdirectory. 2179 test ! -d "$ac_dir" && mkdir "$ac_dir" 2180 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2181 # A "../" for each directory in $ac_dir_suffix. 2182 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2183 else 2184 ac_dir_suffix= ac_dots= 2185 fi 2186 2187 case "$ac_given_srcdir" in 2188 .) srcdir=. 2189 if test -z "$ac_dots"; then top_srcdir=. 2190 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2191 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2192 *) # Relative path. 2193 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2194 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2195 esac 2196 2197 case "$ac_given_INSTALL" in 2198 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2199 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2200 esac 2201 2202 echo creating "$ac_file" 2203 rm -f "$ac_file" 2204 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2205 case "$ac_file" in 2206 *Makefile*) ac_comsub="1i\\ 2207# $configure_input" ;; 2208 *) ac_comsub= ;; 2209 esac 2210 2211 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2212 sed -e "$ac_comsub 2213s%@configure_input@%$configure_input%g 2214s%@srcdir@%$srcdir%g 2215s%@top_srcdir@%$top_srcdir%g 2216s%@INSTALL@%$INSTALL%g 2217" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2218fi; done 2219rm -f conftest.s* 2220 2221# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2222# NAME is the cpp macro being defined and VALUE is the value it is being given. 2223# 2224# ac_d sets the value in "#define NAME VALUE" lines. 2225ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2226ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2227ac_dC='\3' 2228ac_dD='%g' 2229# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2230ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2231ac_uB='\([ ]\)%\1#\2define\3' 2232ac_uC=' ' 2233ac_uD='\4%g' 2234# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2235ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2236ac_eB='$%\1#\2define\3' 2237ac_eC=' ' 2238ac_eD='%g' 2239 2240if test "${CONFIG_HEADERS+set}" != set; then 2241EOF 2242cat >> $CONFIG_STATUS <<EOF 2243 CONFIG_HEADERS="config.h" 2244EOF 2245cat >> $CONFIG_STATUS <<\EOF 2246fi 2247for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2249 case "$ac_file" in 2250 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2251 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2252 *) ac_file_in="${ac_file}.in" ;; 2253 esac 2254 2255 echo creating $ac_file 2256 2257 rm -f conftest.frag conftest.in conftest.out 2258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2259 cat $ac_file_inputs > conftest.in 2260 2261EOF 2262 2263# Transform confdefs.h into a sed script conftest.vals that substitutes 2264# the proper values into config.h.in to produce config.h. And first: 2265# Protect against being on the right side of a sed subst in config.status. 2266# Protect against being in an unquoted here document in config.status. 2267rm -f conftest.vals 2268cat > conftest.hdr <<\EOF 2269s/[\\&%]/\\&/g 2270s%[\\$`]%\\&%g 2271s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2272s%ac_d%ac_u%gp 2273s%ac_u%ac_e%gp 2274EOF 2275sed -n -f conftest.hdr confdefs.h > conftest.vals 2276rm -f conftest.hdr 2277 2278# This sed command replaces #undef with comments. This is necessary, for 2279# example, in the case of _POSIX_SOURCE, which is predefined and required 2280# on some systems where configure will not decide to define it. 2281cat >> conftest.vals <<\EOF 2282s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2283EOF 2284 2285# Break up conftest.vals because some shells have a limit on 2286# the size of here documents, and old seds have small limits too. 2287 2288rm -f conftest.tail 2289while : 2290do 2291 ac_lines=`grep -c . conftest.vals` 2292 # grep -c gives empty output for an empty file on some AIX systems. 2293 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2294 # Write a limited-size here document to conftest.frag. 2295 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2296 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2297 echo 'CEOF 2298 sed -f conftest.frag conftest.in > conftest.out 2299 rm -f conftest.in 2300 mv conftest.out conftest.in 2301' >> $CONFIG_STATUS 2302 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2303 rm -f conftest.vals 2304 mv conftest.tail conftest.vals 2305done 2306rm -f conftest.vals 2307 2308cat >> $CONFIG_STATUS <<\EOF 2309 rm -f conftest.frag conftest.h 2310 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2311 cat conftest.in >> conftest.h 2312 rm -f conftest.in 2313 if cmp -s $ac_file conftest.h 2>/dev/null; then 2314 echo "$ac_file is unchanged" 2315 rm -f conftest.h 2316 else 2317 # Remove last slash and all that follows it. Not all systems have dirname. 2318 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2320 # The file is in a subdirectory. 2321 test ! -d "$ac_dir" && mkdir "$ac_dir" 2322 fi 2323 rm -f $ac_file 2324 mv conftest.h $ac_file 2325 fi 2326fi; done 2327 2328EOF 2329cat >> $CONFIG_STATUS <<EOF 2330 2331 2332EOF 2333cat >> $CONFIG_STATUS <<\EOF 2334test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2335 2336exit 0 2337EOF 2338chmod +x $CONFIG_STATUS 2339rm -fr confdefs* $ac_clean_files 2340test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 2341 2342