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