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