1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.52. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Avoid depending upon Character Ranges. 11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14as_cr_digits='0123456789' 15as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17# Sed expression to map a string onto a valid variable name. 18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20# Sed expression to map a string onto a valid CPP name. 21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23# Be Bourne compatible 24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29fi 30 31# Name of the executable. 32as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36else 37 as_expr=false 38fi 39 40rm -f conf$$ conf$$.exe conf$$.file 41echo >conf$$.file 42if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53else 54 as_ln_s='cp -p' 55fi 56rm -f conf$$ conf$$.exe conf$$.file 57 58as_executable_p="test -f" 59 60# Support unset when possible. 61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63else 64 as_unset=false 65fi 66 67# NLS nuisances. 68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77# IFS 78# We need space, tab and new line, in precisely that order. 79as_nl=' 80' 81IFS=" $as_nl" 82 83# CDPATH. 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86# Name of the host. 87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88# so uname gets run too. 89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91exec 6>&1 92 93# 94# Initializations. 95# 96ac_default_prefix=/usr/local 97cross_compiling=no 98subdirs= 99MFLAGS= MAKEFLAGS= 100SHELL=${CONFIG_SHELL-/bin/sh} 101 102# Maximum number of lines to put in a shell here document. 103# This variable seems obsolete. It should probably be removed, and 104# only ac_max_sed_lines should be used. 105: ${ac_max_here_lines=38} 106 107ac_unique_file="src/gltron.c" 108ac_default_prefix="/usr/local" 109 110# Initialize some variables set by options. 111ac_init_help= 112ac_init_version=false 113# The variables have the same names as the options, with 114# dashes changed to underlines. 115cache_file=/dev/null 116exec_prefix=NONE 117no_create= 118no_recursion= 119prefix=NONE 120program_prefix=NONE 121program_suffix=NONE 122program_transform_name=s,x,x, 123silent= 124site= 125srcdir= 126verbose= 127x_includes=NONE 128x_libraries=NONE 129 130# Installation directory options. 131# These are left unexpanded so users can "make install exec_prefix=/foo" 132# and all the variables that are supposed to be based on exec_prefix 133# by default will actually change. 134# Use braces instead of parens because sh, perl, etc. also accept them. 135bindir='${exec_prefix}/bin' 136sbindir='${exec_prefix}/sbin' 137libexecdir='${exec_prefix}/libexec' 138datadir='${prefix}/share' 139sysconfdir='${prefix}/etc' 140sharedstatedir='${prefix}/com' 141localstatedir='${prefix}/var' 142libdir='${exec_prefix}/lib' 143includedir='${prefix}/include' 144oldincludedir='/usr/include' 145infodir='${prefix}/info' 146mandir='${prefix}/man' 147 148# Identity of this package. 149PACKAGE_NAME= 150PACKAGE_TARNAME= 151PACKAGE_VERSION= 152PACKAGE_STRING= 153PACKAGE_BUGREPORT= 154 155ac_prev= 156for ac_option 157do 158 # If the previous option needs an argument, assign it. 159 if test -n "$ac_prev"; then 160 eval "$ac_prev=\$ac_option" 161 ac_prev= 162 continue 163 fi 164 165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 166 167 # Accept the important Cygnus configure options, so we can diagnose typos. 168 169 case $ac_option in 170 171 -bindir | --bindir | --bindi | --bind | --bin | --bi) 172 ac_prev=bindir ;; 173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 174 bindir=$ac_optarg ;; 175 176 -build | --build | --buil | --bui | --bu) 177 ac_prev=build_alias ;; 178 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 179 build_alias=$ac_optarg ;; 180 181 -cache-file | --cache-file | --cache-fil | --cache-fi \ 182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 183 ac_prev=cache_file ;; 184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 186 cache_file=$ac_optarg ;; 187 188 --config-cache | -C) 189 cache_file=config.cache ;; 190 191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 192 ac_prev=datadir ;; 193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 194 | --da=*) 195 datadir=$ac_optarg ;; 196 197 -disable-* | --disable-*) 198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 199 # Reject names that are not valid shell variable names. 200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 202 { (exit 1); exit 1; }; } 203 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 204 eval "enable_$ac_feature=no" ;; 205 206 -enable-* | --enable-*) 207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 208 # Reject names that are not valid shell variable names. 209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 211 { (exit 1); exit 1; }; } 212 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 213 case $ac_option in 214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 215 *) ac_optarg=yes ;; 216 esac 217 eval "enable_$ac_feature='$ac_optarg'" ;; 218 219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 221 | --exec | --exe | --ex) 222 ac_prev=exec_prefix ;; 223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 225 | --exec=* | --exe=* | --ex=*) 226 exec_prefix=$ac_optarg ;; 227 228 -gas | --gas | --ga | --g) 229 # Obsolete; use --with-gas. 230 with_gas=yes ;; 231 232 -help | --help | --hel | --he | -h) 233 ac_init_help=long ;; 234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 235 ac_init_help=recursive ;; 236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 237 ac_init_help=short ;; 238 239 -host | --host | --hos | --ho) 240 ac_prev=host_alias ;; 241 -host=* | --host=* | --hos=* | --ho=*) 242 host_alias=$ac_optarg ;; 243 244 -includedir | --includedir | --includedi | --included | --include \ 245 | --includ | --inclu | --incl | --inc) 246 ac_prev=includedir ;; 247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 248 | --includ=* | --inclu=* | --incl=* | --inc=*) 249 includedir=$ac_optarg ;; 250 251 -infodir | --infodir | --infodi | --infod | --info | --inf) 252 ac_prev=infodir ;; 253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 254 infodir=$ac_optarg ;; 255 256 -libdir | --libdir | --libdi | --libd) 257 ac_prev=libdir ;; 258 -libdir=* | --libdir=* | --libdi=* | --libd=*) 259 libdir=$ac_optarg ;; 260 261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 262 | --libexe | --libex | --libe) 263 ac_prev=libexecdir ;; 264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 265 | --libexe=* | --libex=* | --libe=*) 266 libexecdir=$ac_optarg ;; 267 268 -localstatedir | --localstatedir | --localstatedi | --localstated \ 269 | --localstate | --localstat | --localsta | --localst \ 270 | --locals | --local | --loca | --loc | --lo) 271 ac_prev=localstatedir ;; 272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 275 localstatedir=$ac_optarg ;; 276 277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 278 ac_prev=mandir ;; 279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 280 mandir=$ac_optarg ;; 281 282 -nfp | --nfp | --nf) 283 # Obsolete; use --without-fp. 284 with_fp=no ;; 285 286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 287 | --no-cr | --no-c) 288 no_create=yes ;; 289 290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 292 no_recursion=yes ;; 293 294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 296 | --oldin | --oldi | --old | --ol | --o) 297 ac_prev=oldincludedir ;; 298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 301 oldincludedir=$ac_optarg ;; 302 303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 304 ac_prev=prefix ;; 305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 306 prefix=$ac_optarg ;; 307 308 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 309 | --program-pre | --program-pr | --program-p) 310 ac_prev=program_prefix ;; 311 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 313 program_prefix=$ac_optarg ;; 314 315 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 316 | --program-suf | --program-su | --program-s) 317 ac_prev=program_suffix ;; 318 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 320 program_suffix=$ac_optarg ;; 321 322 -program-transform-name | --program-transform-name \ 323 | --program-transform-nam | --program-transform-na \ 324 | --program-transform-n | --program-transform- \ 325 | --program-transform | --program-transfor \ 326 | --program-transfo | --program-transf \ 327 | --program-trans | --program-tran \ 328 | --progr-tra | --program-tr | --program-t) 329 ac_prev=program_transform_name ;; 330 -program-transform-name=* | --program-transform-name=* \ 331 | --program-transform-nam=* | --program-transform-na=* \ 332 | --program-transform-n=* | --program-transform-=* \ 333 | --program-transform=* | --program-transfor=* \ 334 | --program-transfo=* | --program-transf=* \ 335 | --program-trans=* | --program-tran=* \ 336 | --progr-tra=* | --program-tr=* | --program-t=*) 337 program_transform_name=$ac_optarg ;; 338 339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 340 | -silent | --silent | --silen | --sile | --sil) 341 silent=yes ;; 342 343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 344 ac_prev=sbindir ;; 345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 346 | --sbi=* | --sb=*) 347 sbindir=$ac_optarg ;; 348 349 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 351 | --sharedst | --shareds | --shared | --share | --shar \ 352 | --sha | --sh) 353 ac_prev=sharedstatedir ;; 354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 357 | --sha=* | --sh=*) 358 sharedstatedir=$ac_optarg ;; 359 360 -site | --site | --sit) 361 ac_prev=site ;; 362 -site=* | --site=* | --sit=*) 363 site=$ac_optarg ;; 364 365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 366 ac_prev=srcdir ;; 367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 368 srcdir=$ac_optarg ;; 369 370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 371 | --syscon | --sysco | --sysc | --sys | --sy) 372 ac_prev=sysconfdir ;; 373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 375 sysconfdir=$ac_optarg ;; 376 377 -target | --target | --targe | --targ | --tar | --ta | --t) 378 ac_prev=target_alias ;; 379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 380 target_alias=$ac_optarg ;; 381 382 -v | -verbose | --verbose | --verbos | --verbo | --verb) 383 verbose=yes ;; 384 385 -version | --version | --versio | --versi | --vers | -V) 386 ac_init_version=: ;; 387 388 -with-* | --with-*) 389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 390 # Reject names that are not valid shell variable names. 391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 392 { echo "$as_me: error: invalid package name: $ac_package" >&2 393 { (exit 1); exit 1; }; } 394 ac_package=`echo $ac_package| sed 's/-/_/g'` 395 case $ac_option in 396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 397 *) ac_optarg=yes ;; 398 esac 399 eval "with_$ac_package='$ac_optarg'" ;; 400 401 -without-* | --without-*) 402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 403 # Reject names that are not valid shell variable names. 404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 405 { echo "$as_me: error: invalid package name: $ac_package" >&2 406 { (exit 1); exit 1; }; } 407 ac_package=`echo $ac_package | sed 's/-/_/g'` 408 eval "with_$ac_package=no" ;; 409 410 --x) 411 # Obsolete; use --with-x. 412 with_x=yes ;; 413 414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 415 | --x-incl | --x-inc | --x-in | --x-i) 416 ac_prev=x_includes ;; 417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 419 x_includes=$ac_optarg ;; 420 421 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 423 ac_prev=x_libraries ;; 424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 426 x_libraries=$ac_optarg ;; 427 428 -*) { echo "$as_me: error: unrecognized option: $ac_option 429Try \`$0 --help' for more information." >&2 430 { (exit 1); exit 1; }; } 431 ;; 432 433 *=*) 434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 435 # Reject names that are not valid shell variable names. 436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 438 { (exit 1); exit 1; }; } 439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 440 eval "$ac_envvar='$ac_optarg'" 441 export $ac_envvar ;; 442 443 *) 444 # FIXME: should be removed in autoconf 3.0. 445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 449 ;; 450 451 esac 452done 453 454if test -n "$ac_prev"; then 455 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 456 { echo "$as_me: error: missing argument to $ac_option" >&2 457 { (exit 1); exit 1; }; } 458fi 459 460# Be sure to have absolute paths. 461for ac_var in exec_prefix prefix 462do 463 eval ac_val=$`echo $ac_var` 464 case $ac_val in 465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 467 { (exit 1); exit 1; }; };; 468 esac 469done 470 471# Be sure to have absolute paths. 472for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 473 localstatedir libdir includedir oldincludedir infodir mandir 474do 475 eval ac_val=$`echo $ac_var` 476 case $ac_val in 477 [\\/$]* | ?:[\\/]* ) ;; 478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 479 { (exit 1); exit 1; }; };; 480 esac 481done 482 483# There might be people who depend on the old broken behavior: `$host' 484# used to hold the argument of --host etc. 485build=$build_alias 486host=$host_alias 487target=$target_alias 488 489# FIXME: should be removed in autoconf 3.0. 490if test "x$host_alias" != x; then 491 if test "x$build_alias" = x; then 492 cross_compiling=maybe 493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 494 If a cross compiler is detected then cross compile mode will be used." >&2 495 elif test "x$build_alias" != "x$host_alias"; then 496 cross_compiling=yes 497 fi 498fi 499 500ac_tool_prefix= 501test -n "$host_alias" && ac_tool_prefix=$host_alias- 502 503test "$silent" = yes && exec 6>/dev/null 504 505# Find the source files, if location was not specified. 506if test -z "$srcdir"; then 507 ac_srcdir_defaulted=yes 508 # Try the directory containing this script, then its parent. 509 ac_prog=$0 510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 512 srcdir=$ac_confdir 513 if test ! -r $srcdir/$ac_unique_file; then 514 srcdir=.. 515 fi 516else 517 ac_srcdir_defaulted=no 518fi 519if test ! -r $srcdir/$ac_unique_file; then 520 if test "$ac_srcdir_defaulted" = yes; then 521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 522 { (exit 1); exit 1; }; } 523 else 524 { echo "$as_me: error: cannot find sources in $srcdir" >&2 525 { (exit 1); exit 1; }; } 526 fi 527fi 528srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 529ac_env_build_alias_set=${build_alias+set} 530ac_env_build_alias_value=$build_alias 531ac_cv_env_build_alias_set=${build_alias+set} 532ac_cv_env_build_alias_value=$build_alias 533ac_env_host_alias_set=${host_alias+set} 534ac_env_host_alias_value=$host_alias 535ac_cv_env_host_alias_set=${host_alias+set} 536ac_cv_env_host_alias_value=$host_alias 537ac_env_target_alias_set=${target_alias+set} 538ac_env_target_alias_value=$target_alias 539ac_cv_env_target_alias_set=${target_alias+set} 540ac_cv_env_target_alias_value=$target_alias 541ac_env_CC_set=${CC+set} 542ac_env_CC_value=$CC 543ac_cv_env_CC_set=${CC+set} 544ac_cv_env_CC_value=$CC 545ac_env_CFLAGS_set=${CFLAGS+set} 546ac_env_CFLAGS_value=$CFLAGS 547ac_cv_env_CFLAGS_set=${CFLAGS+set} 548ac_cv_env_CFLAGS_value=$CFLAGS 549ac_env_LDFLAGS_set=${LDFLAGS+set} 550ac_env_LDFLAGS_value=$LDFLAGS 551ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 552ac_cv_env_LDFLAGS_value=$LDFLAGS 553ac_env_CPPFLAGS_set=${CPPFLAGS+set} 554ac_env_CPPFLAGS_value=$CPPFLAGS 555ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 556ac_cv_env_CPPFLAGS_value=$CPPFLAGS 557ac_env_CXX_set=${CXX+set} 558ac_env_CXX_value=$CXX 559ac_cv_env_CXX_set=${CXX+set} 560ac_cv_env_CXX_value=$CXX 561ac_env_CXXFLAGS_set=${CXXFLAGS+set} 562ac_env_CXXFLAGS_value=$CXXFLAGS 563ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 564ac_cv_env_CXXFLAGS_value=$CXXFLAGS 565ac_env_CPP_set=${CPP+set} 566ac_env_CPP_value=$CPP 567ac_cv_env_CPP_set=${CPP+set} 568ac_cv_env_CPP_value=$CPP 569 570# 571# Report the --help message. 572# 573if test "$ac_init_help" = "long"; then 574 # Omit some internal or obsolete options to make the list less imposing. 575 # This message is too long to be a string in the A/UX 3.1 sh. 576 cat <<EOF 577\`configure' configures this package to adapt to many kinds of systems. 578 579Usage: $0 [OPTION]... [VAR=VALUE]... 580 581To assign environment variables (e.g., CC, CFLAGS...), specify them as 582VAR=VALUE. See below for descriptions of some of the useful variables. 583 584Defaults for the options are specified in brackets. 585 586Configuration: 587 -h, --help display this help and exit 588 --help=short display options specific to this package 589 --help=recursive display the short help of all the included packages 590 -V, --version display version information and exit 591 -q, --quiet, --silent do not print \`checking...' messages 592 --cache-file=FILE cache test results in FILE [disabled] 593 -C, --config-cache alias for \`--cache-file=config.cache' 594 -n, --no-create do not create output files 595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 596 597EOF 598 599 cat <<EOF 600Installation directories: 601 --prefix=PREFIX install architecture-independent files in PREFIX 602 [$ac_default_prefix] 603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 604 [PREFIX] 605 606By default, \`make install' will install all the files in 607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 608an installation prefix other than \`$ac_default_prefix' using \`--prefix', 609for instance \`--prefix=\$HOME'. 610 611For better control, use the options below. 612 613Fine tuning of the installation directories: 614 --bindir=DIR user executables [EPREFIX/bin] 615 --sbindir=DIR system admin executables [EPREFIX/sbin] 616 --libexecdir=DIR program executables [EPREFIX/libexec] 617 --datadir=DIR read-only architecture-independent data [PREFIX/share] 618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 620 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 621 --libdir=DIR object code libraries [EPREFIX/lib] 622 --includedir=DIR C header files [PREFIX/include] 623 --oldincludedir=DIR C header files for non-gcc [/usr/include] 624 --infodir=DIR info documentation [PREFIX/info] 625 --mandir=DIR man documentation [PREFIX/man] 626EOF 627 628 cat <<\EOF 629 630Program names: 631 --program-prefix=PREFIX prepend PREFIX to installed program names 632 --program-suffix=SUFFIX append SUFFIX to installed program names 633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 634 635System types: 636 --build=BUILD configure for building on BUILD [guessed] 637 --host=HOST build programs to run on HOST [BUILD] 638 --target=TARGET configure for building compilers for TARGET [HOST] 639EOF 640fi 641 642if test -n "$ac_init_help"; then 643 644 cat <<\EOF 645 646Optional Features: 647 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 648 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 649 --disable-dependency-tracking Speeds up one-time builds 650 --enable-dependency-tracking Do not reject slow dependency extractors 651 --enable-warn Enable compiler warnings [default=on] 652 --enable-debug Enable debugging [default=off] 653 --enable-profile Enable profiling [default=off] 654 --enable-optimize=[level] 655 Enable optimization [default=s] 656 --disable-sdltest Do not try to compile and run a test SDL program 657 --enable-localdata Use local data directory [default=no] 658 --disable-sound Don't compile in sound [default=off] 659 --enable-network Experimental network mode [default=off] 660 661Optional Packages: 662 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 663 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 664 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 665 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 666 --with-snapshot-dir=[path] 667 Snapshot directory [default=~] 668 --with-preferences-dir=[path] 669 Preferences directory [default=~] 670 671Some influential environment variables: 672 CC C compiler command 673 CFLAGS C compiler flags 674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 675 nonstandard directory <lib dir> 676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 677 headers in a nonstandard directory <include dir> 678 CXX C++ compiler command 679 CXXFLAGS C++ compiler flags 680 CPP C preprocessor 681 682Use these variables to override the choices made by `configure' or to help 683it to find libraries and programs with nonstandard names/locations. 684 685EOF 686fi 687 688if test "$ac_init_help" = "recursive"; then 689 # If there are subdirs, report their specific --help. 690 ac_popdir=`pwd` 691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 692 cd $ac_subdir 693 # A "../" for each directory in /$ac_subdir. 694 ac_dots=`echo $ac_subdir | 695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 696 697 case $srcdir in 698 .) # No --srcdir option. We are building in place. 699 ac_sub_srcdir=$srcdir ;; 700 [\\/]* | ?:[\\/]* ) # Absolute path. 701 ac_sub_srcdir=$srcdir/$ac_subdir ;; 702 *) # Relative path. 703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 704 esac 705 706 # Check for guested configure; otherwise get Cygnus style configure. 707 if test -f $ac_sub_srcdir/configure.gnu; then 708 echo 709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 710 elif test -f $ac_sub_srcdir/configure; then 711 echo 712 $SHELL $ac_sub_srcdir/configure --help=recursive 713 elif test -f $ac_sub_srcdir/configure.ac || 714 test -f $ac_sub_srcdir/configure.in; then 715 echo 716 $ac_configure --help 717 else 718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 719 fi 720 cd $ac_popdir 721 done 722fi 723 724test -n "$ac_init_help" && exit 0 725if $ac_init_version; then 726 cat <<\EOF 727 728Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 729Free Software Foundation, Inc. 730This configure script is free software; the Free Software Foundation 731gives unlimited permission to copy, distribute and modify it. 732EOF 733 exit 0 734fi 735exec 5>config.log 736cat >&5 <<EOF 737This file contains any messages produced by compilers while 738running configure, to aid debugging if configure makes a mistake. 739 740It was created by $as_me, which was 741generated by GNU Autoconf 2.52. Invocation command line was 742 743 $ $0 $@ 744 745EOF 746{ 747cat <<_ASUNAME 748## ---------- ## 749## Platform. ## 750## ---------- ## 751 752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 753uname -m = `(uname -m) 2>/dev/null || echo unknown` 754uname -r = `(uname -r) 2>/dev/null || echo unknown` 755uname -s = `(uname -s) 2>/dev/null || echo unknown` 756uname -v = `(uname -v) 2>/dev/null || echo unknown` 757 758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 759/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 760 761/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 762/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 764hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 765/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 766/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 767/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 768 769PATH = $PATH 770 771_ASUNAME 772} >&5 773 774cat >&5 <<EOF 775## ------------ ## 776## Core tests. ## 777## ------------ ## 778 779EOF 780 781# Keep a trace of the command line. 782# Strip out --no-create and --no-recursion so they do not pile up. 783# Also quote any args containing shell meta-characters. 784ac_configure_args= 785ac_sep= 786for ac_arg 787do 788 case $ac_arg in 789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 790 | --no-cr | --no-c) ;; 791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 796 ac_sep=" " ;; 797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 798 ac_sep=" " ;; 799 esac 800 # Get rid of the leading space. 801done 802 803# When interrupted or exit'd, cleanup temporary files, and complete 804# config.log. We remove comments because anyway the quotes in there 805# would cause problems or look ugly. 806trap 'exit_status=$? 807 # Save into config.log some information that might help in debugging. 808 echo >&5 809 echo "## ----------------- ##" >&5 810 echo "## Cache variables. ##" >&5 811 echo "## ----------------- ##" >&5 812 echo >&5 813 # The following way of writing the cache mishandles newlines in values, 814{ 815 (set) 2>&1 | 816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 817 *ac_space=\ *) 818 sed -n \ 819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 821 ;; 822 *) 823 sed -n \ 824 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 825 ;; 826 esac; 827} >&5 828 sed "/^$/d" confdefs.h >conftest.log 829 if test -s conftest.log; then 830 echo >&5 831 echo "## ------------ ##" >&5 832 echo "## confdefs.h. ##" >&5 833 echo "## ------------ ##" >&5 834 echo >&5 835 cat conftest.log >&5 836 fi 837 (echo; echo) >&5 838 test "$ac_signal" != 0 && 839 echo "$as_me: caught signal $ac_signal" >&5 840 echo "$as_me: exit $exit_status" >&5 841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 842 exit $exit_status 843 ' 0 844for ac_signal in 1 2 13 15; do 845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 846done 847ac_signal=0 848 849# confdefs.h avoids OS command line length limits that DEFS can exceed. 850rm -rf conftest* confdefs.h 851# AIX cpp loses on an empty file, so make sure it contains at least a newline. 852echo >confdefs.h 853 854# Let the site file select an alternate cache file if it wants to. 855# Prefer explicitly selected file to automatically selected ones. 856if test -z "$CONFIG_SITE"; then 857 if test "x$prefix" != xNONE; then 858 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 859 else 860 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 861 fi 862fi 863for ac_site_file in $CONFIG_SITE; do 864 if test -r "$ac_site_file"; then 865 { echo "$as_me:865: loading site script $ac_site_file" >&5 866echo "$as_me: loading site script $ac_site_file" >&6;} 867 cat "$ac_site_file" >&5 868 . "$ac_site_file" 869 fi 870done 871 872if test -r "$cache_file"; then 873 # Some versions of bash will fail to source /dev/null (special 874 # files actually), so we avoid doing that. 875 if test -f "$cache_file"; then 876 { echo "$as_me:876: loading cache $cache_file" >&5 877echo "$as_me: loading cache $cache_file" >&6;} 878 case $cache_file in 879 [\\/]* | ?:[\\/]* ) . $cache_file;; 880 *) . ./$cache_file;; 881 esac 882 fi 883else 884 { echo "$as_me:884: creating cache $cache_file" >&5 885echo "$as_me: creating cache $cache_file" >&6;} 886 >$cache_file 887fi 888 889# Check that the precious variables saved in the cache have kept the same 890# value. 891ac_cache_corrupted=false 892for ac_var in `(set) 2>&1 | 893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 895 eval ac_new_set=\$ac_env_${ac_var}_set 896 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 897 eval ac_new_val="\$ac_env_${ac_var}_value" 898 case $ac_old_set,$ac_new_set in 899 set,) 900 { echo "$as_me:900: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 901echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 902 ac_cache_corrupted=: ;; 903 ,set) 904 { echo "$as_me:904: error: \`$ac_var' was not set in the previous run" >&5 905echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 906 ac_cache_corrupted=: ;; 907 ,);; 908 *) 909 if test "x$ac_old_val" != "x$ac_new_val"; then 910 { echo "$as_me:910: error: \`$ac_var' has changed since the previous run:" >&5 911echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 912 { echo "$as_me:912: former value: $ac_old_val" >&5 913echo "$as_me: former value: $ac_old_val" >&2;} 914 { echo "$as_me:914: current value: $ac_new_val" >&5 915echo "$as_me: current value: $ac_new_val" >&2;} 916 ac_cache_corrupted=: 917 fi;; 918 esac 919 # Pass precious variables to config.status. It doesn't matter if 920 # we pass some twice (in addition to the command line arguments). 921 if test "$ac_new_set" = set; then 922 case $ac_new_val in 923 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 924 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 925 ac_configure_args="$ac_configure_args '$ac_arg'" 926 ;; 927 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 928 ;; 929 esac 930 fi 931done 932if $ac_cache_corrupted; then 933 { echo "$as_me:933: error: changes in the environment can compromise the build" >&5 934echo "$as_me: error: changes in the environment can compromise the build" >&2;} 935 { { echo "$as_me:935: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 936echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 937 { (exit 1); exit 1; }; } 938fi 939 940ac_ext=c 941ac_cpp='$CPP $CPPFLAGS' 942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 944ac_compiler_gnu=$ac_cv_c_compiler_gnu 945 946case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 947 *c*,-n*) ECHO_N= ECHO_C=' 948' ECHO_T=' ' ;; 949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 951esac 952echo "#! $SHELL" >conftest.sh 953echo "exit 0" >>conftest.sh 954chmod +x conftest.sh 955if { (echo "$as_me:955: PATH=\".;.\"; conftest.sh") >&5 956 (PATH=".;."; conftest.sh) 2>&5 957 ac_status=$? 958 echo "$as_me:958: \$? = $ac_status" >&5 959 (exit $ac_status); }; then 960 ac_path_separator=';' 961else 962 ac_path_separator=: 963fi 964PATH_SEPARATOR="$ac_path_separator" 965rm -f conftest.sh 966 967ac_aux_dir= 968for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 969 if test -f $ac_dir/install-sh; then 970 ac_aux_dir=$ac_dir 971 ac_install_sh="$ac_aux_dir/install-sh -c" 972 break 973 elif test -f $ac_dir/install.sh; then 974 ac_aux_dir=$ac_dir 975 ac_install_sh="$ac_aux_dir/install.sh -c" 976 break 977 elif test -f $ac_dir/shtool; then 978 ac_aux_dir=$ac_dir 979 ac_install_sh="$ac_aux_dir/shtool install -c" 980 break 981 fi 982done 983if test -z "$ac_aux_dir"; then 984 { { echo "$as_me:984: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 985echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 986 { (exit 1); exit 1; }; } 987fi 988ac_config_guess="$SHELL $ac_aux_dir/config.guess" 989ac_config_sub="$SHELL $ac_aux_dir/config.sub" 990ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 991 992# Make sure we can run config.sub. 993$ac_config_sub sun4 >/dev/null 2>&1 || 994 { { echo "$as_me:994: error: cannot run $ac_config_sub" >&5 995echo "$as_me: error: cannot run $ac_config_sub" >&2;} 996 { (exit 1); exit 1; }; } 997 998echo "$as_me:998: checking build system type" >&5 999echo $ECHO_N "checking build system type... $ECHO_C" >&6 1000if test "${ac_cv_build+set}" = set; then 1001 echo $ECHO_N "(cached) $ECHO_C" >&6 1002else 1003 ac_cv_build_alias=$build_alias 1004test -z "$ac_cv_build_alias" && 1005 ac_cv_build_alias=`$ac_config_guess` 1006test -z "$ac_cv_build_alias" && 1007 { { echo "$as_me:1007: error: cannot guess build type; you must specify one" >&5 1008echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1009 { (exit 1); exit 1; }; } 1010ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1011 { { echo "$as_me:1011: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1012echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1013 { (exit 1); exit 1; }; } 1014 1015fi 1016echo "$as_me:1016: result: $ac_cv_build" >&5 1017echo "${ECHO_T}$ac_cv_build" >&6 1018build=$ac_cv_build 1019build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1020build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1021build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1022 1023test -z "$build_alias" && 1024 build_alias=$ac_cv_build 1025 1026echo "$as_me:1026: checking host system type" >&5 1027echo $ECHO_N "checking host system type... $ECHO_C" >&6 1028if test "${ac_cv_host+set}" = set; then 1029 echo $ECHO_N "(cached) $ECHO_C" >&6 1030else 1031 ac_cv_host_alias=$host_alias 1032test -z "$ac_cv_host_alias" && 1033 ac_cv_host_alias=$ac_cv_build_alias 1034ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1036echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1037 { (exit 1); exit 1; }; } 1038 1039fi 1040echo "$as_me:1040: result: $ac_cv_host" >&5 1041echo "${ECHO_T}$ac_cv_host" >&6 1042host=$ac_cv_host 1043host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1044host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1045host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1046 1047test -z "$host_alias" && 1048 host_alias=$ac_cv_host 1049 1050echo "$as_me:1050: checking target system type" >&5 1051echo $ECHO_N "checking target system type... $ECHO_C" >&6 1052if test "${ac_cv_target+set}" = set; then 1053 echo $ECHO_N "(cached) $ECHO_C" >&6 1054else 1055 ac_cv_target_alias=$target_alias 1056test "x$ac_cv_target_alias" = "x" && 1057 ac_cv_target_alias=$ac_cv_host_alias 1058ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1059 { { echo "$as_me:1059: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1060echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1061 { (exit 1); exit 1; }; } 1062 1063fi 1064echo "$as_me:1064: result: $ac_cv_target" >&5 1065echo "${ECHO_T}$ac_cv_target" >&6 1066target=$ac_cv_target 1067target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1068target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1069target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1070 1071# The aliases save the names the user supplied, while $host etc. 1072# will get canonicalized. 1073test -n "$target_alias" && 1074 test "$program_prefix$program_suffix$program_transform_name" = \ 1075 NONENONEs,x,x, && 1076 program_prefix=${target_alias}- 1077test -z "$target_alias" && 1078 target_alias=$ac_cv_target 1079 1080# Find a good install program. We prefer a C program (faster), 1081# so one script is as good as another. But avoid the broken or 1082# incompatible versions: 1083# SysV /etc/install, /usr/sbin/install 1084# SunOS /usr/etc/install 1085# IRIX /sbin/install 1086# AIX /bin/install 1087# AmigaOS /C/install, which installs bootblocks on floppy discs 1088# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1089# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1090# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1091# ./install, which can be erroneously created by make from ./install.sh. 1092echo "$as_me:1092: checking for a BSD compatible install" >&5 1093echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1094if test -z "$INSTALL"; then 1095if test "${ac_cv_path_install+set}" = set; then 1096 echo $ECHO_N "(cached) $ECHO_C" >&6 1097else 1098 ac_save_IFS=$IFS; IFS=$ac_path_separator 1099 for ac_dir in $PATH; do 1100 IFS=$ac_save_IFS 1101 # Account for people who put trailing slashes in PATH elements. 1102 case $ac_dir/ in 1103 / | ./ | .// | /cC/* \ 1104 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 1105 | /usr/ucb/* ) ;; 1106 *) 1107 # OSF1 and SCO ODT 3.0 have their own names for install. 1108 # Don't use installbsd from OSF since it installs stuff as root 1109 # by default. 1110 for ac_prog in ginstall scoinst install; do 1111 if $as_executable_p "$ac_dir/$ac_prog"; then 1112 if test $ac_prog = install && 1113 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1114 # AIX install. It has an incompatible calling convention. 1115 : 1116 elif test $ac_prog = install && 1117 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1118 # program-specific install script used by HP pwplus--don't use. 1119 : 1120 else 1121 ac_cv_path_install="$ac_dir/$ac_prog -c" 1122 break 2 1123 fi 1124 fi 1125 done 1126 ;; 1127 esac 1128 done 1129 1130fi 1131 if test "${ac_cv_path_install+set}" = set; then 1132 INSTALL=$ac_cv_path_install 1133 else 1134 # As a last resort, use the slow shell script. We don't cache a 1135 # path for INSTALL within a source directory, because that will 1136 # break other packages using the cache if that directory is 1137 # removed, or if the path is relative. 1138 INSTALL=$ac_install_sh 1139 fi 1140fi 1141echo "$as_me:1141: result: $INSTALL" >&5 1142echo "${ECHO_T}$INSTALL" >&6 1143 1144# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1145# It thinks the first close brace ends the variable substitution. 1146test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1147 1148test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1149 1150test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1151 1152echo "$as_me:1152: checking whether build environment is sane" >&5 1153echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1154# Just in case 1155sleep 1 1156echo timestamp > conftest.file 1157# Do `set' in a subshell so we don't clobber the current shell's 1158# arguments. Must try -L first in case configure is actually a 1159# symlink; some systems play weird games with the mod time of symlinks 1160# (eg FreeBSD returns the mod time of the symlink's containing 1161# directory). 1162if ( 1163 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1164 if test "$*" = "X"; then 1165 # -L didn't work. 1166 set X `ls -t $srcdir/configure conftest.file` 1167 fi 1168 rm -f conftest.file 1169 if test "$*" != "X $srcdir/configure conftest.file" \ 1170 && test "$*" != "X conftest.file $srcdir/configure"; then 1171 1172 # If neither matched, then we have a broken ls. This can happen 1173 # if, for instance, CONFIG_SHELL is bash and it inherits a 1174 # broken ls alias from the environment. This has actually 1175 # happened. Such a system could not be considered "sane". 1176 { { echo "$as_me:1176: error: ls -t appears to fail. Make sure there is not a broken 1177alias in your environment" >&5 1178echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1179alias in your environment" >&2;} 1180 { (exit 1); exit 1; }; } 1181 fi 1182 1183 test "$2" = conftest.file 1184 ) 1185then 1186 # Ok. 1187 : 1188else 1189 { { echo "$as_me:1189: error: newly created file is older than distributed files! 1190Check your system clock" >&5 1191echo "$as_me: error: newly created file is older than distributed files! 1192Check your system clock" >&2;} 1193 { (exit 1); exit 1; }; } 1194fi 1195echo "$as_me:1195: result: yes" >&5 1196echo "${ECHO_T}yes" >&6 1197test "$program_prefix" != NONE && 1198 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1199# Use a double $ so make ignores it. 1200test "$program_suffix" != NONE && 1201 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1202# Double any \ or $. echo might interpret backslashes. 1203# By default was `s,x,x', remove it if useless. 1204cat <<\_ACEOF >conftest.sed 1205s/[\\$]/&&/g;s/;s,x,x,$// 1206_ACEOF 1207program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1208rm conftest.sed 1209 1210# expand $ac_aux_dir to an absolute path 1211am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 1212 1213test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1214# Use eval to expand $SHELL 1215if eval "$MISSING --run true"; then 1216 am_missing_run="$MISSING --run " 1217else 1218 am_missing_run= 1219 am_backtick='`' 1220 { echo "$as_me:1220: WARNING: ${am_backtick}missing' script is too old or missing" >&5 1221echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 1222fi 1223 1224for ac_prog in mawk gawk nawk awk 1225do 1226 # Extract the first word of "$ac_prog", so it can be a program name with args. 1227set dummy $ac_prog; ac_word=$2 1228echo "$as_me:1228: checking for $ac_word" >&5 1229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1230if test "${ac_cv_prog_AWK+set}" = set; then 1231 echo $ECHO_N "(cached) $ECHO_C" >&6 1232else 1233 if test -n "$AWK"; then 1234 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1235else 1236 ac_save_IFS=$IFS; IFS=$ac_path_separator 1237ac_dummy="$PATH" 1238for ac_dir in $ac_dummy; do 1239 IFS=$ac_save_IFS 1240 test -z "$ac_dir" && ac_dir=. 1241 $as_executable_p "$ac_dir/$ac_word" || continue 1242ac_cv_prog_AWK="$ac_prog" 1243echo "$as_me:1243: found $ac_dir/$ac_word" >&5 1244break 1245done 1246 1247fi 1248fi 1249AWK=$ac_cv_prog_AWK 1250if test -n "$AWK"; then 1251 echo "$as_me:1251: result: $AWK" >&5 1252echo "${ECHO_T}$AWK" >&6 1253else 1254 echo "$as_me:1254: result: no" >&5 1255echo "${ECHO_T}no" >&6 1256fi 1257 1258 test -n "$AWK" && break 1259done 1260 1261echo "$as_me:1261: checking whether ${MAKE-make} sets \${MAKE}" >&5 1262echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1263set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1264if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1265 echo $ECHO_N "(cached) $ECHO_C" >&6 1266else 1267 cat >conftest.make <<\EOF 1268all: 1269 @echo 'ac_maketemp="${MAKE}"' 1270EOF 1271# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1272eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1273if test -n "$ac_maketemp"; then 1274 eval ac_cv_prog_make_${ac_make}_set=yes 1275else 1276 eval ac_cv_prog_make_${ac_make}_set=no 1277fi 1278rm -f conftest.make 1279fi 1280if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1281 echo "$as_me:1281: result: yes" >&5 1282echo "${ECHO_T}yes" >&6 1283 SET_MAKE= 1284else 1285 echo "$as_me:1285: result: no" >&5 1286echo "${ECHO_T}no" >&6 1287 SET_MAKE="MAKE=${MAKE-make}" 1288fi 1289 1290# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1291if test "${enable_dependency_tracking+set}" = set; then 1292 enableval="$enable_dependency_tracking" 1293 1294fi; 1295if test "x$enable_dependency_tracking" != xno; then 1296 am_depcomp="$ac_aux_dir/depcomp" 1297 AMDEPBACKSLASH='\' 1298fi 1299 1300if test "x$enable_dependency_tracking" != xno; then 1301 AMDEP_TRUE= 1302 AMDEP_FALSE='#' 1303else 1304 AMDEP_TRUE='#' 1305 AMDEP_FALSE= 1306fi 1307 1308rm -f .deps 2>/dev/null 1309mkdir .deps 2>/dev/null 1310if test -d .deps; then 1311 DEPDIR=.deps 1312else 1313 # MS-DOS does not allow filenames that begin with a dot. 1314 DEPDIR=_deps 1315fi 1316rmdir .deps 2>/dev/null 1317 1318# test to see if srcdir already configured 1319if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1320 test -f $srcdir/config.status; then 1321 { { echo "$as_me:1321: error: source directory already configured; run \"make distclean\" there first" >&5 1322echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1323 { (exit 1); exit 1; }; } 1324fi 1325 1326# Define the identity of the package. 1327PACKAGE=gltron 1328VERSION=0.70 1329 1330cat >>confdefs.h <<EOF 1331#define PACKAGE "$PACKAGE" 1332EOF 1333 1334cat >>confdefs.h <<EOF 1335#define VERSION "$VERSION" 1336EOF 1337 1338# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 1339# the ones we care about. 1340 1341# Autoconf 2.50 always computes EXEEXT. However we need to be 1342# compatible with 2.13, for now. So we always define EXEEXT, but we 1343# don't compute it. 1344 1345# Similar for OBJEXT -- only we only use OBJEXT if the user actually 1346# requests that it be used. This is a bit dumb. 1347: ${OBJEXT=o} 1348 1349# Some tools Automake needs. 1350 1351ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1352 1353AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1354 1355AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1356 1357AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1358 1359MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1360 1361AMTAR=${AMTAR-"${am_missing_run}tar"} 1362 1363install_sh=${install_sh-"$am_aux_dir/install-sh"} 1364 1365INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1366 1367# We need awk for the "check" target. The system "awk" is bad on 1368# some platforms. 1369 1370ac_ext=c 1371ac_cpp='$CPP $CPPFLAGS' 1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1374ac_compiler_gnu=$ac_cv_c_compiler_gnu 1375if test -n "$ac_tool_prefix"; then 1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1377set dummy ${ac_tool_prefix}gcc; ac_word=$2 1378echo "$as_me:1378: checking for $ac_word" >&5 1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1380if test "${ac_cv_prog_CC+set}" = set; then 1381 echo $ECHO_N "(cached) $ECHO_C" >&6 1382else 1383 if test -n "$CC"; then 1384 ac_cv_prog_CC="$CC" # Let the user override the test. 1385else 1386 ac_save_IFS=$IFS; IFS=$ac_path_separator 1387ac_dummy="$PATH" 1388for ac_dir in $ac_dummy; do 1389 IFS=$ac_save_IFS 1390 test -z "$ac_dir" && ac_dir=. 1391 $as_executable_p "$ac_dir/$ac_word" || continue 1392ac_cv_prog_CC="${ac_tool_prefix}gcc" 1393echo "$as_me:1393: found $ac_dir/$ac_word" >&5 1394break 1395done 1396 1397fi 1398fi 1399CC=$ac_cv_prog_CC 1400if test -n "$CC"; then 1401 echo "$as_me:1401: result: $CC" >&5 1402echo "${ECHO_T}$CC" >&6 1403else 1404 echo "$as_me:1404: result: no" >&5 1405echo "${ECHO_T}no" >&6 1406fi 1407 1408fi 1409if test -z "$ac_cv_prog_CC"; then 1410 ac_ct_CC=$CC 1411 # Extract the first word of "gcc", so it can be a program name with args. 1412set dummy gcc; ac_word=$2 1413echo "$as_me:1413: checking for $ac_word" >&5 1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1416 echo $ECHO_N "(cached) $ECHO_C" >&6 1417else 1418 if test -n "$ac_ct_CC"; then 1419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1420else 1421 ac_save_IFS=$IFS; IFS=$ac_path_separator 1422ac_dummy="$PATH" 1423for ac_dir in $ac_dummy; do 1424 IFS=$ac_save_IFS 1425 test -z "$ac_dir" && ac_dir=. 1426 $as_executable_p "$ac_dir/$ac_word" || continue 1427ac_cv_prog_ac_ct_CC="gcc" 1428echo "$as_me:1428: found $ac_dir/$ac_word" >&5 1429break 1430done 1431 1432fi 1433fi 1434ac_ct_CC=$ac_cv_prog_ac_ct_CC 1435if test -n "$ac_ct_CC"; then 1436 echo "$as_me:1436: result: $ac_ct_CC" >&5 1437echo "${ECHO_T}$ac_ct_CC" >&6 1438else 1439 echo "$as_me:1439: result: no" >&5 1440echo "${ECHO_T}no" >&6 1441fi 1442 1443 CC=$ac_ct_CC 1444else 1445 CC="$ac_cv_prog_CC" 1446fi 1447 1448if test -z "$CC"; then 1449 if test -n "$ac_tool_prefix"; then 1450 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1451set dummy ${ac_tool_prefix}cc; ac_word=$2 1452echo "$as_me:1452: checking for $ac_word" >&5 1453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1454if test "${ac_cv_prog_CC+set}" = set; then 1455 echo $ECHO_N "(cached) $ECHO_C" >&6 1456else 1457 if test -n "$CC"; then 1458 ac_cv_prog_CC="$CC" # Let the user override the test. 1459else 1460 ac_save_IFS=$IFS; IFS=$ac_path_separator 1461ac_dummy="$PATH" 1462for ac_dir in $ac_dummy; do 1463 IFS=$ac_save_IFS 1464 test -z "$ac_dir" && ac_dir=. 1465 $as_executable_p "$ac_dir/$ac_word" || continue 1466ac_cv_prog_CC="${ac_tool_prefix}cc" 1467echo "$as_me:1467: found $ac_dir/$ac_word" >&5 1468break 1469done 1470 1471fi 1472fi 1473CC=$ac_cv_prog_CC 1474if test -n "$CC"; then 1475 echo "$as_me:1475: result: $CC" >&5 1476echo "${ECHO_T}$CC" >&6 1477else 1478 echo "$as_me:1478: result: no" >&5 1479echo "${ECHO_T}no" >&6 1480fi 1481 1482fi 1483if test -z "$ac_cv_prog_CC"; then 1484 ac_ct_CC=$CC 1485 # Extract the first word of "cc", so it can be a program name with args. 1486set dummy cc; ac_word=$2 1487echo "$as_me:1487: checking for $ac_word" >&5 1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1489if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1490 echo $ECHO_N "(cached) $ECHO_C" >&6 1491else 1492 if test -n "$ac_ct_CC"; then 1493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1494else 1495 ac_save_IFS=$IFS; IFS=$ac_path_separator 1496ac_dummy="$PATH" 1497for ac_dir in $ac_dummy; do 1498 IFS=$ac_save_IFS 1499 test -z "$ac_dir" && ac_dir=. 1500 $as_executable_p "$ac_dir/$ac_word" || continue 1501ac_cv_prog_ac_ct_CC="cc" 1502echo "$as_me:1502: found $ac_dir/$ac_word" >&5 1503break 1504done 1505 1506fi 1507fi 1508ac_ct_CC=$ac_cv_prog_ac_ct_CC 1509if test -n "$ac_ct_CC"; then 1510 echo "$as_me:1510: result: $ac_ct_CC" >&5 1511echo "${ECHO_T}$ac_ct_CC" >&6 1512else 1513 echo "$as_me:1513: result: no" >&5 1514echo "${ECHO_T}no" >&6 1515fi 1516 1517 CC=$ac_ct_CC 1518else 1519 CC="$ac_cv_prog_CC" 1520fi 1521 1522fi 1523if test -z "$CC"; then 1524 # Extract the first word of "cc", so it can be a program name with args. 1525set dummy cc; ac_word=$2 1526echo "$as_me:1526: checking for $ac_word" >&5 1527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1528if test "${ac_cv_prog_CC+set}" = set; then 1529 echo $ECHO_N "(cached) $ECHO_C" >&6 1530else 1531 if test -n "$CC"; then 1532 ac_cv_prog_CC="$CC" # Let the user override the test. 1533else 1534 ac_prog_rejected=no 1535 ac_save_IFS=$IFS; IFS=$ac_path_separator 1536ac_dummy="$PATH" 1537for ac_dir in $ac_dummy; do 1538 IFS=$ac_save_IFS 1539 test -z "$ac_dir" && ac_dir=. 1540 $as_executable_p "$ac_dir/$ac_word" || continue 1541if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1542 ac_prog_rejected=yes 1543 continue 1544fi 1545ac_cv_prog_CC="cc" 1546echo "$as_me:1546: found $ac_dir/$ac_word" >&5 1547break 1548done 1549 1550if test $ac_prog_rejected = yes; then 1551 # We found a bogon in the path, so make sure we never use it. 1552 set dummy $ac_cv_prog_CC 1553 shift 1554 if test $# != 0; then 1555 # We chose a different compiler from the bogus one. 1556 # However, it has the same basename, so the bogon will be chosen 1557 # first if we set CC to just the basename; use the full file name. 1558 shift 1559 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1560 shift 1561 ac_cv_prog_CC="$@" 1562 fi 1563fi 1564fi 1565fi 1566CC=$ac_cv_prog_CC 1567if test -n "$CC"; then 1568 echo "$as_me:1568: result: $CC" >&5 1569echo "${ECHO_T}$CC" >&6 1570else 1571 echo "$as_me:1571: result: no" >&5 1572echo "${ECHO_T}no" >&6 1573fi 1574 1575fi 1576if test -z "$CC"; then 1577 if test -n "$ac_tool_prefix"; then 1578 for ac_prog in cl 1579 do 1580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1581set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1582echo "$as_me:1582: checking for $ac_word" >&5 1583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1584if test "${ac_cv_prog_CC+set}" = set; then 1585 echo $ECHO_N "(cached) $ECHO_C" >&6 1586else 1587 if test -n "$CC"; then 1588 ac_cv_prog_CC="$CC" # Let the user override the test. 1589else 1590 ac_save_IFS=$IFS; IFS=$ac_path_separator 1591ac_dummy="$PATH" 1592for ac_dir in $ac_dummy; do 1593 IFS=$ac_save_IFS 1594 test -z "$ac_dir" && ac_dir=. 1595 $as_executable_p "$ac_dir/$ac_word" || continue 1596ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1597echo "$as_me:1597: found $ac_dir/$ac_word" >&5 1598break 1599done 1600 1601fi 1602fi 1603CC=$ac_cv_prog_CC 1604if test -n "$CC"; then 1605 echo "$as_me:1605: result: $CC" >&5 1606echo "${ECHO_T}$CC" >&6 1607else 1608 echo "$as_me:1608: result: no" >&5 1609echo "${ECHO_T}no" >&6 1610fi 1611 1612 test -n "$CC" && break 1613 done 1614fi 1615if test -z "$CC"; then 1616 ac_ct_CC=$CC 1617 for ac_prog in cl 1618do 1619 # Extract the first word of "$ac_prog", so it can be a program name with args. 1620set dummy $ac_prog; ac_word=$2 1621echo "$as_me:1621: checking for $ac_word" >&5 1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1624 echo $ECHO_N "(cached) $ECHO_C" >&6 1625else 1626 if test -n "$ac_ct_CC"; then 1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1628else 1629 ac_save_IFS=$IFS; IFS=$ac_path_separator 1630ac_dummy="$PATH" 1631for ac_dir in $ac_dummy; do 1632 IFS=$ac_save_IFS 1633 test -z "$ac_dir" && ac_dir=. 1634 $as_executable_p "$ac_dir/$ac_word" || continue 1635ac_cv_prog_ac_ct_CC="$ac_prog" 1636echo "$as_me:1636: found $ac_dir/$ac_word" >&5 1637break 1638done 1639 1640fi 1641fi 1642ac_ct_CC=$ac_cv_prog_ac_ct_CC 1643if test -n "$ac_ct_CC"; then 1644 echo "$as_me:1644: result: $ac_ct_CC" >&5 1645echo "${ECHO_T}$ac_ct_CC" >&6 1646else 1647 echo "$as_me:1647: result: no" >&5 1648echo "${ECHO_T}no" >&6 1649fi 1650 1651 test -n "$ac_ct_CC" && break 1652done 1653 1654 CC=$ac_ct_CC 1655fi 1656 1657fi 1658 1659test -z "$CC" && { { echo "$as_me:1659: error: no acceptable cc found in \$PATH" >&5 1660echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1661 { (exit 1); exit 1; }; } 1662 1663# Provide some information about the compiler. 1664echo "$as_me:1664:" \ 1665 "checking for C compiler version" >&5 1666ac_compiler=`set X $ac_compile; echo $2` 1667{ (eval echo "$as_me:1667: \"$ac_compiler --version </dev/null >&5\"") >&5 1668 (eval $ac_compiler --version </dev/null >&5) 2>&5 1669 ac_status=$? 1670 echo "$as_me:1670: \$? = $ac_status" >&5 1671 (exit $ac_status); } 1672{ (eval echo "$as_me:1672: \"$ac_compiler -v </dev/null >&5\"") >&5 1673 (eval $ac_compiler -v </dev/null >&5) 2>&5 1674 ac_status=$? 1675 echo "$as_me:1675: \$? = $ac_status" >&5 1676 (exit $ac_status); } 1677{ (eval echo "$as_me:1677: \"$ac_compiler -V </dev/null >&5\"") >&5 1678 (eval $ac_compiler -V </dev/null >&5) 2>&5 1679 ac_status=$? 1680 echo "$as_me:1680: \$? = $ac_status" >&5 1681 (exit $ac_status); } 1682 1683cat >conftest.$ac_ext <<_ACEOF 1684#line 1684 "configure" 1685#include "confdefs.h" 1686 1687int 1688main () 1689{ 1690 1691 ; 1692 return 0; 1693} 1694_ACEOF 1695ac_clean_files_save=$ac_clean_files 1696ac_clean_files="$ac_clean_files a.out a.exe" 1697# Try to create an executable without -o first, disregard a.out. 1698# It will help us diagnose broken compilers, and finding out an intuition 1699# of exeext. 1700echo "$as_me:1700: checking for C compiler default output" >&5 1701echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1702ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1703if { (eval echo "$as_me:1703: \"$ac_link_default\"") >&5 1704 (eval $ac_link_default) 2>&5 1705 ac_status=$? 1706 echo "$as_me:1706: \$? = $ac_status" >&5 1707 (exit $ac_status); }; then 1708 # Find the output, starting from the most likely. This scheme is 1709# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1710# resort. 1711for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1712 ls a.out conftest 2>/dev/null; 1713 ls a.* conftest.* 2>/dev/null`; do 1714 case $ac_file in 1715 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1716 a.out ) # We found the default executable, but exeext='' is most 1717 # certainly right. 1718 break;; 1719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1720 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1721 export ac_cv_exeext 1722 break;; 1723 * ) break;; 1724 esac 1725done 1726else 1727 echo "$as_me: failed program was:" >&5 1728cat conftest.$ac_ext >&5 1729{ { echo "$as_me:1729: error: C compiler cannot create executables" >&5 1730echo "$as_me: error: C compiler cannot create executables" >&2;} 1731 { (exit 77); exit 77; }; } 1732fi 1733 1734ac_exeext=$ac_cv_exeext 1735echo "$as_me:1735: result: $ac_file" >&5 1736echo "${ECHO_T}$ac_file" >&6 1737 1738# Check the compiler produces executables we can run. If not, either 1739# the compiler is broken, or we cross compile. 1740echo "$as_me:1740: checking whether the C compiler works" >&5 1741echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1742# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1743# If not cross compiling, check that we can run a simple program. 1744if test "$cross_compiling" != yes; then 1745 if { ac_try='./$ac_file' 1746 { (eval echo "$as_me:1746: \"$ac_try\"") >&5 1747 (eval $ac_try) 2>&5 1748 ac_status=$? 1749 echo "$as_me:1749: \$? = $ac_status" >&5 1750 (exit $ac_status); }; }; then 1751 cross_compiling=no 1752 else 1753 if test "$cross_compiling" = maybe; then 1754 cross_compiling=yes 1755 else 1756 { { echo "$as_me:1756: error: cannot run C compiled programs. 1757If you meant to cross compile, use \`--host'." >&5 1758echo "$as_me: error: cannot run C compiled programs. 1759If you meant to cross compile, use \`--host'." >&2;} 1760 { (exit 1); exit 1; }; } 1761 fi 1762 fi 1763fi 1764echo "$as_me:1764: result: yes" >&5 1765echo "${ECHO_T}yes" >&6 1766 1767rm -f a.out a.exe conftest$ac_cv_exeext 1768ac_clean_files=$ac_clean_files_save 1769# Check the compiler produces executables we can run. If not, either 1770# the compiler is broken, or we cross compile. 1771echo "$as_me:1771: checking whether we are cross compiling" >&5 1772echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1773echo "$as_me:1773: result: $cross_compiling" >&5 1774echo "${ECHO_T}$cross_compiling" >&6 1775 1776echo "$as_me:1776: checking for executable suffix" >&5 1777echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1778if { (eval echo "$as_me:1778: \"$ac_link\"") >&5 1779 (eval $ac_link) 2>&5 1780 ac_status=$? 1781 echo "$as_me:1781: \$? = $ac_status" >&5 1782 (exit $ac_status); }; then 1783 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1784# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1785# work properly (i.e., refer to `conftest.exe'), while it won't with 1786# `rm'. 1787for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1788 case $ac_file in 1789 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1790 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1791 export ac_cv_exeext 1792 break;; 1793 * ) break;; 1794 esac 1795done 1796else 1797 { { echo "$as_me:1797: error: cannot compute EXEEXT: cannot compile and link" >&5 1798echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1799 { (exit 1); exit 1; }; } 1800fi 1801 1802rm -f conftest$ac_cv_exeext 1803echo "$as_me:1803: result: $ac_cv_exeext" >&5 1804echo "${ECHO_T}$ac_cv_exeext" >&6 1805 1806rm -f conftest.$ac_ext 1807EXEEXT=$ac_cv_exeext 1808ac_exeext=$EXEEXT 1809echo "$as_me:1809: checking for object suffix" >&5 1810echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1811if test "${ac_cv_objext+set}" = set; then 1812 echo $ECHO_N "(cached) $ECHO_C" >&6 1813else 1814 cat >conftest.$ac_ext <<_ACEOF 1815#line 1815 "configure" 1816#include "confdefs.h" 1817 1818int 1819main () 1820{ 1821 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826rm -f conftest.o conftest.obj 1827if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5 1828 (eval $ac_compile) 2>&5 1829 ac_status=$? 1830 echo "$as_me:1830: \$? = $ac_status" >&5 1831 (exit $ac_status); }; then 1832 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1833 case $ac_file in 1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1836 break;; 1837 esac 1838done 1839else 1840 echo "$as_me: failed program was:" >&5 1841cat conftest.$ac_ext >&5 1842{ { echo "$as_me:1842: error: cannot compute OBJEXT: cannot compile" >&5 1843echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1844 { (exit 1); exit 1; }; } 1845fi 1846 1847rm -f conftest.$ac_cv_objext conftest.$ac_ext 1848fi 1849echo "$as_me:1849: result: $ac_cv_objext" >&5 1850echo "${ECHO_T}$ac_cv_objext" >&6 1851OBJEXT=$ac_cv_objext 1852ac_objext=$OBJEXT 1853echo "$as_me:1853: checking whether we are using the GNU C compiler" >&5 1854echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1855if test "${ac_cv_c_compiler_gnu+set}" = set; then 1856 echo $ECHO_N "(cached) $ECHO_C" >&6 1857else 1858 cat >conftest.$ac_ext <<_ACEOF 1859#line 1859 "configure" 1860#include "confdefs.h" 1861 1862int 1863main () 1864{ 1865#ifndef __GNUC__ 1866 choke me 1867#endif 1868 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873rm -f conftest.$ac_objext 1874if { (eval echo "$as_me:1874: \"$ac_compile\"") >&5 1875 (eval $ac_compile) 2>&5 1876 ac_status=$? 1877 echo "$as_me:1877: \$? = $ac_status" >&5 1878 (exit $ac_status); } && 1879 { ac_try='test -s conftest.$ac_objext' 1880 { (eval echo "$as_me:1880: \"$ac_try\"") >&5 1881 (eval $ac_try) 2>&5 1882 ac_status=$? 1883 echo "$as_me:1883: \$? = $ac_status" >&5 1884 (exit $ac_status); }; }; then 1885 ac_compiler_gnu=yes 1886else 1887 echo "$as_me: failed program was:" >&5 1888cat conftest.$ac_ext >&5 1889ac_compiler_gnu=no 1890fi 1891rm -f conftest.$ac_objext conftest.$ac_ext 1892ac_cv_c_compiler_gnu=$ac_compiler_gnu 1893 1894fi 1895echo "$as_me:1895: result: $ac_cv_c_compiler_gnu" >&5 1896echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1897GCC=`test $ac_compiler_gnu = yes && echo yes` 1898ac_test_CFLAGS=${CFLAGS+set} 1899ac_save_CFLAGS=$CFLAGS 1900CFLAGS="-g" 1901echo "$as_me:1901: checking whether $CC accepts -g" >&5 1902echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1903if test "${ac_cv_prog_cc_g+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 cat >conftest.$ac_ext <<_ACEOF 1907#line 1907 "configure" 1908#include "confdefs.h" 1909 1910int 1911main () 1912{ 1913 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918rm -f conftest.$ac_objext 1919if { (eval echo "$as_me:1919: \"$ac_compile\"") >&5 1920 (eval $ac_compile) 2>&5 1921 ac_status=$? 1922 echo "$as_me:1922: \$? = $ac_status" >&5 1923 (exit $ac_status); } && 1924 { ac_try='test -s conftest.$ac_objext' 1925 { (eval echo "$as_me:1925: \"$ac_try\"") >&5 1926 (eval $ac_try) 2>&5 1927 ac_status=$? 1928 echo "$as_me:1928: \$? = $ac_status" >&5 1929 (exit $ac_status); }; }; then 1930 ac_cv_prog_cc_g=yes 1931else 1932 echo "$as_me: failed program was:" >&5 1933cat conftest.$ac_ext >&5 1934ac_cv_prog_cc_g=no 1935fi 1936rm -f conftest.$ac_objext conftest.$ac_ext 1937fi 1938echo "$as_me:1938: result: $ac_cv_prog_cc_g" >&5 1939echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1940if test "$ac_test_CFLAGS" = set; then 1941 CFLAGS=$ac_save_CFLAGS 1942elif test $ac_cv_prog_cc_g = yes; then 1943 if test "$GCC" = yes; then 1944 CFLAGS="-g -O2" 1945 else 1946 CFLAGS="-g" 1947 fi 1948else 1949 if test "$GCC" = yes; then 1950 CFLAGS="-O2" 1951 else 1952 CFLAGS= 1953 fi 1954fi 1955# Some people use a C++ compiler to compile C. Since we use `exit', 1956# in C++ we need to declare it. In case someone uses the same compiler 1957# for both compiling C and C++ we need to have the C++ compiler decide 1958# the declaration of exit, since it's the most demanding environment. 1959cat >conftest.$ac_ext <<_ACEOF 1960#ifndef __cplusplus 1961 choke me 1962#endif 1963_ACEOF 1964rm -f conftest.$ac_objext 1965if { (eval echo "$as_me:1965: \"$ac_compile\"") >&5 1966 (eval $ac_compile) 2>&5 1967 ac_status=$? 1968 echo "$as_me:1968: \$? = $ac_status" >&5 1969 (exit $ac_status); } && 1970 { ac_try='test -s conftest.$ac_objext' 1971 { (eval echo "$as_me:1971: \"$ac_try\"") >&5 1972 (eval $ac_try) 2>&5 1973 ac_status=$? 1974 echo "$as_me:1974: \$? = $ac_status" >&5 1975 (exit $ac_status); }; }; then 1976 for ac_declaration in \ 1977 ''\ 1978 '#include <stdlib.h>' \ 1979 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1980 'extern "C" void std::exit (int); using std::exit;' \ 1981 'extern "C" void exit (int) throw ();' \ 1982 'extern "C" void exit (int);' \ 1983 'void exit (int);' 1984do 1985 cat >conftest.$ac_ext <<_ACEOF 1986#line 1986 "configure" 1987#include "confdefs.h" 1988#include <stdlib.h> 1989$ac_declaration 1990int 1991main () 1992{ 1993exit (42); 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998rm -f conftest.$ac_objext 1999if { (eval echo "$as_me:1999: \"$ac_compile\"") >&5 2000 (eval $ac_compile) 2>&5 2001 ac_status=$? 2002 echo "$as_me:2002: \$? = $ac_status" >&5 2003 (exit $ac_status); } && 2004 { ac_try='test -s conftest.$ac_objext' 2005 { (eval echo "$as_me:2005: \"$ac_try\"") >&5 2006 (eval $ac_try) 2>&5 2007 ac_status=$? 2008 echo "$as_me:2008: \$? = $ac_status" >&5 2009 (exit $ac_status); }; }; then 2010 : 2011else 2012 echo "$as_me: failed program was:" >&5 2013cat conftest.$ac_ext >&5 2014continue 2015fi 2016rm -f conftest.$ac_objext conftest.$ac_ext 2017 cat >conftest.$ac_ext <<_ACEOF 2018#line 2018 "configure" 2019#include "confdefs.h" 2020$ac_declaration 2021int 2022main () 2023{ 2024exit (42); 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029rm -f conftest.$ac_objext 2030if { (eval echo "$as_me:2030: \"$ac_compile\"") >&5 2031 (eval $ac_compile) 2>&5 2032 ac_status=$? 2033 echo "$as_me:2033: \$? = $ac_status" >&5 2034 (exit $ac_status); } && 2035 { ac_try='test -s conftest.$ac_objext' 2036 { (eval echo "$as_me:2036: \"$ac_try\"") >&5 2037 (eval $ac_try) 2>&5 2038 ac_status=$? 2039 echo "$as_me:2039: \$? = $ac_status" >&5 2040 (exit $ac_status); }; }; then 2041 break 2042else 2043 echo "$as_me: failed program was:" >&5 2044cat conftest.$ac_ext >&5 2045fi 2046rm -f conftest.$ac_objext conftest.$ac_ext 2047done 2048rm -f conftest* 2049if test -n "$ac_declaration"; then 2050 echo '#ifdef __cplusplus' >>confdefs.h 2051 echo $ac_declaration >>confdefs.h 2052 echo '#endif' >>confdefs.h 2053fi 2054 2055else 2056 echo "$as_me: failed program was:" >&5 2057cat conftest.$ac_ext >&5 2058fi 2059rm -f conftest.$ac_objext conftest.$ac_ext 2060ac_ext=c 2061ac_cpp='$CPP $CPPFLAGS' 2062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2064ac_compiler_gnu=$ac_cv_c_compiler_gnu 2065 2066ac_config_commands="$ac_config_commands default-1" 2067 2068am_make=${MAKE-make} 2069cat > confinc << 'END' 2070doit: 2071 @echo done 2072END 2073# If we don't find an include directive, just comment out the code. 2074echo "$as_me:2074: checking for style of include used by $am_make" >&5 2075echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2076am__include='#' 2077am__quote= 2078_am_result=none 2079# First try GNU make style include. 2080echo "include confinc" > confmf 2081# We grep out `Entering directory' and `Leaving directory' 2082# messages which can occur if `w' ends up in MAKEFLAGS. 2083# In particular we don't look at `^make:' because GNU make might 2084# be invoked under some other name (usually "gmake"), in which 2085# case it prints its new name instead of `make'. 2086if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2087 am__include=include 2088 am__quote= 2089 _am_result=GNU 2090fi 2091# Now try BSD make style include. 2092if test "$am__include" = "#"; then 2093 echo '.include "confinc"' > confmf 2094 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2095 am__include=.include 2096 am__quote='"' 2097 _am_result=BSD 2098 fi 2099fi 2100 2101echo "$as_me:2101: result: $_am_result" >&5 2102echo "${ECHO_T}$_am_result" >&6 2103rm -f confinc confmf 2104 2105depcc="$CC" am_compiler_list= 2106 2107echo "$as_me:2107: checking dependency style of $depcc" >&5 2108echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2109if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2110 echo $ECHO_N "(cached) $ECHO_C" >&6 2111else 2112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2113 # We make a subdir and do the tests there. Otherwise we can end up 2114 # making bogus files that we don't know about and never remove. For 2115 # instance it was reported that on HP-UX the gcc test will end up 2116 # making a dummy file named `D' -- because `-MD' means `put the output 2117 # in D'. 2118 mkdir conftest.dir 2119 # Copy depcomp to subdir because otherwise we won't find it if we're 2120 # using a relative directory. 2121 cp "$am_depcomp" conftest.dir 2122 cd conftest.dir 2123 2124 am_cv_CC_dependencies_compiler_type=none 2125 if test "$am_compiler_list" = ""; then 2126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2127 fi 2128 for depmode in $am_compiler_list; do 2129 # We need to recreate these files for each test, as the compiler may 2130 # overwrite some of them when testing with obscure command lines. 2131 # This happens at least with the AIX C compiler. 2132 echo '#include "conftest.h"' > conftest.c 2133 echo 'int i;' > conftest.h 2134 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2135 2136 case $depmode in 2137 nosideeffect) 2138 # after this tag, mechanisms are not by side-effect, so they'll 2139 # only be used when explicitly requested 2140 if test "x$enable_dependency_tracking" = xyes; then 2141 continue 2142 else 2143 break 2144 fi 2145 ;; 2146 none) break ;; 2147 esac 2148 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2149 # mode. It turns out that the SunPro C++ compiler does not properly 2150 # handle `-M -o', and we need to detect this. 2151 if depmode=$depmode \ 2152 source=conftest.c object=conftest.o \ 2153 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2154 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2155 grep conftest.h conftest.Po > /dev/null 2>&1 && 2156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2157 am_cv_CC_dependencies_compiler_type=$depmode 2158 break 2159 fi 2160 done 2161 2162 cd .. 2163 rm -rf conftest.dir 2164else 2165 am_cv_CC_dependencies_compiler_type=none 2166fi 2167 2168fi 2169echo "$as_me:2169: result: $am_cv_CC_dependencies_compiler_type" >&5 2170echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2171CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2172 2173ac_ext=cc 2174ac_cpp='$CXXCPP $CPPFLAGS' 2175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2178if test -n "$ac_tool_prefix"; then 2179 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2180 do 2181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2182set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2183echo "$as_me:2183: checking for $ac_word" >&5 2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2185if test "${ac_cv_prog_CXX+set}" = set; then 2186 echo $ECHO_N "(cached) $ECHO_C" >&6 2187else 2188 if test -n "$CXX"; then 2189 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2190else 2191 ac_save_IFS=$IFS; IFS=$ac_path_separator 2192ac_dummy="$PATH" 2193for ac_dir in $ac_dummy; do 2194 IFS=$ac_save_IFS 2195 test -z "$ac_dir" && ac_dir=. 2196 $as_executable_p "$ac_dir/$ac_word" || continue 2197ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2198echo "$as_me:2198: found $ac_dir/$ac_word" >&5 2199break 2200done 2201 2202fi 2203fi 2204CXX=$ac_cv_prog_CXX 2205if test -n "$CXX"; then 2206 echo "$as_me:2206: result: $CXX" >&5 2207echo "${ECHO_T}$CXX" >&6 2208else 2209 echo "$as_me:2209: result: no" >&5 2210echo "${ECHO_T}no" >&6 2211fi 2212 2213 test -n "$CXX" && break 2214 done 2215fi 2216if test -z "$CXX"; then 2217 ac_ct_CXX=$CXX 2218 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2219do 2220 # Extract the first word of "$ac_prog", so it can be a program name with args. 2221set dummy $ac_prog; ac_word=$2 2222echo "$as_me:2222: checking for $ac_word" >&5 2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2224if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 if test -n "$ac_ct_CXX"; then 2228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2229else 2230 ac_save_IFS=$IFS; IFS=$ac_path_separator 2231ac_dummy="$PATH" 2232for ac_dir in $ac_dummy; do 2233 IFS=$ac_save_IFS 2234 test -z "$ac_dir" && ac_dir=. 2235 $as_executable_p "$ac_dir/$ac_word" || continue 2236ac_cv_prog_ac_ct_CXX="$ac_prog" 2237echo "$as_me:2237: found $ac_dir/$ac_word" >&5 2238break 2239done 2240 2241fi 2242fi 2243ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2244if test -n "$ac_ct_CXX"; then 2245 echo "$as_me:2245: result: $ac_ct_CXX" >&5 2246echo "${ECHO_T}$ac_ct_CXX" >&6 2247else 2248 echo "$as_me:2248: result: no" >&5 2249echo "${ECHO_T}no" >&6 2250fi 2251 2252 test -n "$ac_ct_CXX" && break 2253done 2254test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2255 2256 CXX=$ac_ct_CXX 2257fi 2258 2259# Provide some information about the compiler. 2260echo "$as_me:2260:" \ 2261 "checking for C++ compiler version" >&5 2262ac_compiler=`set X $ac_compile; echo $2` 2263{ (eval echo "$as_me:2263: \"$ac_compiler --version </dev/null >&5\"") >&5 2264 (eval $ac_compiler --version </dev/null >&5) 2>&5 2265 ac_status=$? 2266 echo "$as_me:2266: \$? = $ac_status" >&5 2267 (exit $ac_status); } 2268{ (eval echo "$as_me:2268: \"$ac_compiler -v </dev/null >&5\"") >&5 2269 (eval $ac_compiler -v </dev/null >&5) 2>&5 2270 ac_status=$? 2271 echo "$as_me:2271: \$? = $ac_status" >&5 2272 (exit $ac_status); } 2273{ (eval echo "$as_me:2273: \"$ac_compiler -V </dev/null >&5\"") >&5 2274 (eval $ac_compiler -V </dev/null >&5) 2>&5 2275 ac_status=$? 2276 echo "$as_me:2276: \$? = $ac_status" >&5 2277 (exit $ac_status); } 2278 2279echo "$as_me:2279: checking whether we are using the GNU C++ compiler" >&5 2280echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2281if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2282 echo $ECHO_N "(cached) $ECHO_C" >&6 2283else 2284 cat >conftest.$ac_ext <<_ACEOF 2285#line 2285 "configure" 2286#include "confdefs.h" 2287 2288int 2289main () 2290{ 2291#ifndef __GNUC__ 2292 choke me 2293#endif 2294 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299rm -f conftest.$ac_objext 2300if { (eval echo "$as_me:2300: \"$ac_compile\"") >&5 2301 (eval $ac_compile) 2>&5 2302 ac_status=$? 2303 echo "$as_me:2303: \$? = $ac_status" >&5 2304 (exit $ac_status); } && 2305 { ac_try='test -s conftest.$ac_objext' 2306 { (eval echo "$as_me:2306: \"$ac_try\"") >&5 2307 (eval $ac_try) 2>&5 2308 ac_status=$? 2309 echo "$as_me:2309: \$? = $ac_status" >&5 2310 (exit $ac_status); }; }; then 2311 ac_compiler_gnu=yes 2312else 2313 echo "$as_me: failed program was:" >&5 2314cat conftest.$ac_ext >&5 2315ac_compiler_gnu=no 2316fi 2317rm -f conftest.$ac_objext conftest.$ac_ext 2318ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2319 2320fi 2321echo "$as_me:2321: result: $ac_cv_cxx_compiler_gnu" >&5 2322echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2323GXX=`test $ac_compiler_gnu = yes && echo yes` 2324ac_test_CXXFLAGS=${CXXFLAGS+set} 2325ac_save_CXXFLAGS=$CXXFLAGS 2326CXXFLAGS="-g" 2327echo "$as_me:2327: checking whether $CXX accepts -g" >&5 2328echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2329if test "${ac_cv_prog_cxx_g+set}" = set; then 2330 echo $ECHO_N "(cached) $ECHO_C" >&6 2331else 2332 cat >conftest.$ac_ext <<_ACEOF 2333#line 2333 "configure" 2334#include "confdefs.h" 2335 2336int 2337main () 2338{ 2339 2340 ; 2341 return 0; 2342} 2343_ACEOF 2344rm -f conftest.$ac_objext 2345if { (eval echo "$as_me:2345: \"$ac_compile\"") >&5 2346 (eval $ac_compile) 2>&5 2347 ac_status=$? 2348 echo "$as_me:2348: \$? = $ac_status" >&5 2349 (exit $ac_status); } && 2350 { ac_try='test -s conftest.$ac_objext' 2351 { (eval echo "$as_me:2351: \"$ac_try\"") >&5 2352 (eval $ac_try) 2>&5 2353 ac_status=$? 2354 echo "$as_me:2354: \$? = $ac_status" >&5 2355 (exit $ac_status); }; }; then 2356 ac_cv_prog_cxx_g=yes 2357else 2358 echo "$as_me: failed program was:" >&5 2359cat conftest.$ac_ext >&5 2360ac_cv_prog_cxx_g=no 2361fi 2362rm -f conftest.$ac_objext conftest.$ac_ext 2363fi 2364echo "$as_me:2364: result: $ac_cv_prog_cxx_g" >&5 2365echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2366if test "$ac_test_CXXFLAGS" = set; then 2367 CXXFLAGS=$ac_save_CXXFLAGS 2368elif test $ac_cv_prog_cxx_g = yes; then 2369 if test "$GXX" = yes; then 2370 CXXFLAGS="-g -O2" 2371 else 2372 CXXFLAGS="-g" 2373 fi 2374else 2375 if test "$GXX" = yes; then 2376 CXXFLAGS="-O2" 2377 else 2378 CXXFLAGS= 2379 fi 2380fi 2381for ac_declaration in \ 2382 ''\ 2383 '#include <stdlib.h>' \ 2384 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2385 'extern "C" void std::exit (int); using std::exit;' \ 2386 'extern "C" void exit (int) throw ();' \ 2387 'extern "C" void exit (int);' \ 2388 'void exit (int);' 2389do 2390 cat >conftest.$ac_ext <<_ACEOF 2391#line 2391 "configure" 2392#include "confdefs.h" 2393#include <stdlib.h> 2394$ac_declaration 2395int 2396main () 2397{ 2398exit (42); 2399 ; 2400 return 0; 2401} 2402_ACEOF 2403rm -f conftest.$ac_objext 2404if { (eval echo "$as_me:2404: \"$ac_compile\"") >&5 2405 (eval $ac_compile) 2>&5 2406 ac_status=$? 2407 echo "$as_me:2407: \$? = $ac_status" >&5 2408 (exit $ac_status); } && 2409 { ac_try='test -s conftest.$ac_objext' 2410 { (eval echo "$as_me:2410: \"$ac_try\"") >&5 2411 (eval $ac_try) 2>&5 2412 ac_status=$? 2413 echo "$as_me:2413: \$? = $ac_status" >&5 2414 (exit $ac_status); }; }; then 2415 : 2416else 2417 echo "$as_me: failed program was:" >&5 2418cat conftest.$ac_ext >&5 2419continue 2420fi 2421rm -f conftest.$ac_objext conftest.$ac_ext 2422 cat >conftest.$ac_ext <<_ACEOF 2423#line 2423 "configure" 2424#include "confdefs.h" 2425$ac_declaration 2426int 2427main () 2428{ 2429exit (42); 2430 ; 2431 return 0; 2432} 2433_ACEOF 2434rm -f conftest.$ac_objext 2435if { (eval echo "$as_me:2435: \"$ac_compile\"") >&5 2436 (eval $ac_compile) 2>&5 2437 ac_status=$? 2438 echo "$as_me:2438: \$? = $ac_status" >&5 2439 (exit $ac_status); } && 2440 { ac_try='test -s conftest.$ac_objext' 2441 { (eval echo "$as_me:2441: \"$ac_try\"") >&5 2442 (eval $ac_try) 2>&5 2443 ac_status=$? 2444 echo "$as_me:2444: \$? = $ac_status" >&5 2445 (exit $ac_status); }; }; then 2446 break 2447else 2448 echo "$as_me: failed program was:" >&5 2449cat conftest.$ac_ext >&5 2450fi 2451rm -f conftest.$ac_objext conftest.$ac_ext 2452done 2453rm -f conftest* 2454if test -n "$ac_declaration"; then 2455 echo '#ifdef __cplusplus' >>confdefs.h 2456 echo $ac_declaration >>confdefs.h 2457 echo '#endif' >>confdefs.h 2458fi 2459 2460ac_ext=c 2461ac_cpp='$CPP $CPPFLAGS' 2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2464ac_compiler_gnu=$ac_cv_c_compiler_gnu 2465 2466depcc="$CXX" am_compiler_list= 2467 2468echo "$as_me:2468: checking dependency style of $depcc" >&5 2469echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2470if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2471 echo $ECHO_N "(cached) $ECHO_C" >&6 2472else 2473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2474 # We make a subdir and do the tests there. Otherwise we can end up 2475 # making bogus files that we don't know about and never remove. For 2476 # instance it was reported that on HP-UX the gcc test will end up 2477 # making a dummy file named `D' -- because `-MD' means `put the output 2478 # in D'. 2479 mkdir conftest.dir 2480 # Copy depcomp to subdir because otherwise we won't find it if we're 2481 # using a relative directory. 2482 cp "$am_depcomp" conftest.dir 2483 cd conftest.dir 2484 2485 am_cv_CXX_dependencies_compiler_type=none 2486 if test "$am_compiler_list" = ""; then 2487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2488 fi 2489 for depmode in $am_compiler_list; do 2490 # We need to recreate these files for each test, as the compiler may 2491 # overwrite some of them when testing with obscure command lines. 2492 # This happens at least with the AIX C compiler. 2493 echo '#include "conftest.h"' > conftest.c 2494 echo 'int i;' > conftest.h 2495 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2496 2497 case $depmode in 2498 nosideeffect) 2499 # after this tag, mechanisms are not by side-effect, so they'll 2500 # only be used when explicitly requested 2501 if test "x$enable_dependency_tracking" = xyes; then 2502 continue 2503 else 2504 break 2505 fi 2506 ;; 2507 none) break ;; 2508 esac 2509 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2510 # mode. It turns out that the SunPro C++ compiler does not properly 2511 # handle `-M -o', and we need to detect this. 2512 if depmode=$depmode \ 2513 source=conftest.c object=conftest.o \ 2514 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2515 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2516 grep conftest.h conftest.Po > /dev/null 2>&1 && 2517 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2518 am_cv_CXX_dependencies_compiler_type=$depmode 2519 break 2520 fi 2521 done 2522 2523 cd .. 2524 rm -rf conftest.dir 2525else 2526 am_cv_CXX_dependencies_compiler_type=none 2527fi 2528 2529fi 2530echo "$as_me:2530: result: $am_cv_CXX_dependencies_compiler_type" >&5 2531echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2532CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type" 2533 2534ac_ext=c 2535ac_cpp='$CPP $CPPFLAGS' 2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2538ac_compiler_gnu=$ac_cv_c_compiler_gnu 2539echo "$as_me:2539: checking how to run the C preprocessor" >&5 2540echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2541# On Suns, sometimes $CPP names a directory. 2542if test -n "$CPP" && test -d "$CPP"; then 2543 CPP= 2544fi 2545if test -z "$CPP"; then 2546 if test "${ac_cv_prog_CPP+set}" = set; then 2547 echo $ECHO_N "(cached) $ECHO_C" >&6 2548else 2549 # Double quotes because CPP needs to be expanded 2550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2551 do 2552 ac_preproc_ok=false 2553for ac_c_preproc_warn_flag in '' yes 2554do 2555 # Use a header file that comes with gcc, so configuring glibc 2556 # with a fresh cross-compiler works. 2557 # On the NeXT, cc -E runs the code through the compiler's parser, 2558 # not just through cpp. "Syntax error" is here to catch this case. 2559 cat >conftest.$ac_ext <<_ACEOF 2560#line 2560 "configure" 2561#include "confdefs.h" 2562#include <assert.h> 2563 Syntax error 2564_ACEOF 2565if { (eval echo "$as_me:2565: \"$ac_cpp conftest.$ac_ext\"") >&5 2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2567 ac_status=$? 2568 egrep -v '^ *\+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:2571: \$? = $ac_status" >&5 2572 (exit $ac_status); } >/dev/null; then 2573 if test -s conftest.err; then 2574 ac_cpp_err=$ac_c_preproc_warn_flag 2575 else 2576 ac_cpp_err= 2577 fi 2578else 2579 ac_cpp_err=yes 2580fi 2581if test -z "$ac_cpp_err"; then 2582 : 2583else 2584 echo "$as_me: failed program was:" >&5 2585 cat conftest.$ac_ext >&5 2586 # Broken: fails on valid input. 2587continue 2588fi 2589rm -f conftest.err conftest.$ac_ext 2590 2591 # OK, works on sane cases. Now check whether non-existent headers 2592 # can be detected and how. 2593 cat >conftest.$ac_ext <<_ACEOF 2594#line 2594 "configure" 2595#include "confdefs.h" 2596#include <ac_nonexistent.h> 2597_ACEOF 2598if { (eval echo "$as_me:2598: \"$ac_cpp conftest.$ac_ext\"") >&5 2599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2600 ac_status=$? 2601 egrep -v '^ *\+' conftest.er1 >conftest.err 2602 rm -f conftest.er1 2603 cat conftest.err >&5 2604 echo "$as_me:2604: \$? = $ac_status" >&5 2605 (exit $ac_status); } >/dev/null; then 2606 if test -s conftest.err; then 2607 ac_cpp_err=$ac_c_preproc_warn_flag 2608 else 2609 ac_cpp_err= 2610 fi 2611else 2612 ac_cpp_err=yes 2613fi 2614if test -z "$ac_cpp_err"; then 2615 # Broken: success on invalid input. 2616continue 2617else 2618 echo "$as_me: failed program was:" >&5 2619 cat conftest.$ac_ext >&5 2620 # Passes both tests. 2621ac_preproc_ok=: 2622break 2623fi 2624rm -f conftest.err conftest.$ac_ext 2625 2626done 2627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2628rm -f conftest.err conftest.$ac_ext 2629if $ac_preproc_ok; then 2630 break 2631fi 2632 2633 done 2634 ac_cv_prog_CPP=$CPP 2635 2636fi 2637 CPP=$ac_cv_prog_CPP 2638else 2639 ac_cv_prog_CPP=$CPP 2640fi 2641echo "$as_me:2641: result: $CPP" >&5 2642echo "${ECHO_T}$CPP" >&6 2643ac_preproc_ok=false 2644for ac_c_preproc_warn_flag in '' yes 2645do 2646 # Use a header file that comes with gcc, so configuring glibc 2647 # with a fresh cross-compiler works. 2648 # On the NeXT, cc -E runs the code through the compiler's parser, 2649 # not just through cpp. "Syntax error" is here to catch this case. 2650 cat >conftest.$ac_ext <<_ACEOF 2651#line 2651 "configure" 2652#include "confdefs.h" 2653#include <assert.h> 2654 Syntax error 2655_ACEOF 2656if { (eval echo "$as_me:2656: \"$ac_cpp conftest.$ac_ext\"") >&5 2657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2658 ac_status=$? 2659 egrep -v '^ *\+' conftest.er1 >conftest.err 2660 rm -f conftest.er1 2661 cat conftest.err >&5 2662 echo "$as_me:2662: \$? = $ac_status" >&5 2663 (exit $ac_status); } >/dev/null; then 2664 if test -s conftest.err; then 2665 ac_cpp_err=$ac_c_preproc_warn_flag 2666 else 2667 ac_cpp_err= 2668 fi 2669else 2670 ac_cpp_err=yes 2671fi 2672if test -z "$ac_cpp_err"; then 2673 : 2674else 2675 echo "$as_me: failed program was:" >&5 2676 cat conftest.$ac_ext >&5 2677 # Broken: fails on valid input. 2678continue 2679fi 2680rm -f conftest.err conftest.$ac_ext 2681 2682 # OK, works on sane cases. Now check whether non-existent headers 2683 # can be detected and how. 2684 cat >conftest.$ac_ext <<_ACEOF 2685#line 2685 "configure" 2686#include "confdefs.h" 2687#include <ac_nonexistent.h> 2688_ACEOF 2689if { (eval echo "$as_me:2689: \"$ac_cpp conftest.$ac_ext\"") >&5 2690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2691 ac_status=$? 2692 egrep -v '^ *\+' conftest.er1 >conftest.err 2693 rm -f conftest.er1 2694 cat conftest.err >&5 2695 echo "$as_me:2695: \$? = $ac_status" >&5 2696 (exit $ac_status); } >/dev/null; then 2697 if test -s conftest.err; then 2698 ac_cpp_err=$ac_c_preproc_warn_flag 2699 else 2700 ac_cpp_err= 2701 fi 2702else 2703 ac_cpp_err=yes 2704fi 2705if test -z "$ac_cpp_err"; then 2706 # Broken: success on invalid input. 2707continue 2708else 2709 echo "$as_me: failed program was:" >&5 2710 cat conftest.$ac_ext >&5 2711 # Passes both tests. 2712ac_preproc_ok=: 2713break 2714fi 2715rm -f conftest.err conftest.$ac_ext 2716 2717done 2718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2719rm -f conftest.err conftest.$ac_ext 2720if $ac_preproc_ok; then 2721 : 2722else 2723 { { echo "$as_me:2723: error: C preprocessor \"$CPP\" fails sanity check" >&5 2724echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2725 { (exit 1); exit 1; }; } 2726fi 2727 2728ac_ext=c 2729ac_cpp='$CPP $CPPFLAGS' 2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2732ac_compiler_gnu=$ac_cv_c_compiler_gnu 2733 2734if test -n "$ac_tool_prefix"; then 2735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2736set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2737echo "$as_me:2737: checking for $ac_word" >&5 2738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2739if test "${ac_cv_prog_RANLIB+set}" = set; then 2740 echo $ECHO_N "(cached) $ECHO_C" >&6 2741else 2742 if test -n "$RANLIB"; then 2743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2744else 2745 ac_save_IFS=$IFS; IFS=$ac_path_separator 2746ac_dummy="$PATH" 2747for ac_dir in $ac_dummy; do 2748 IFS=$ac_save_IFS 2749 test -z "$ac_dir" && ac_dir=. 2750 $as_executable_p "$ac_dir/$ac_word" || continue 2751ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2752echo "$as_me:2752: found $ac_dir/$ac_word" >&5 2753break 2754done 2755 2756fi 2757fi 2758RANLIB=$ac_cv_prog_RANLIB 2759if test -n "$RANLIB"; then 2760 echo "$as_me:2760: result: $RANLIB" >&5 2761echo "${ECHO_T}$RANLIB" >&6 2762else 2763 echo "$as_me:2763: result: no" >&5 2764echo "${ECHO_T}no" >&6 2765fi 2766 2767fi 2768if test -z "$ac_cv_prog_RANLIB"; then 2769 ac_ct_RANLIB=$RANLIB 2770 # Extract the first word of "ranlib", so it can be a program name with args. 2771set dummy ranlib; ac_word=$2 2772echo "$as_me:2772: checking for $ac_word" >&5 2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 if test -n "$ac_ct_RANLIB"; then 2778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2779else 2780 ac_save_IFS=$IFS; IFS=$ac_path_separator 2781ac_dummy="$PATH" 2782for ac_dir in $ac_dummy; do 2783 IFS=$ac_save_IFS 2784 test -z "$ac_dir" && ac_dir=. 2785 $as_executable_p "$ac_dir/$ac_word" || continue 2786ac_cv_prog_ac_ct_RANLIB="ranlib" 2787echo "$as_me:2787: found $ac_dir/$ac_word" >&5 2788break 2789done 2790 2791 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2792fi 2793fi 2794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2795if test -n "$ac_ct_RANLIB"; then 2796 echo "$as_me:2796: result: $ac_ct_RANLIB" >&5 2797echo "${ECHO_T}$ac_ct_RANLIB" >&6 2798else 2799 echo "$as_me:2799: result: no" >&5 2800echo "${ECHO_T}no" >&6 2801fi 2802 2803 RANLIB=$ac_ct_RANLIB 2804else 2805 RANLIB="$ac_cv_prog_RANLIB" 2806fi 2807 2808CFLAGS="$CFLAGS -DSEPARATOR=\"'/'\"" 2809 2810# Check whether --enable-warn or --disable-warn was given. 2811if test "${enable_warn+set}" = set; then 2812 enableval="$enable_warn" 2813 enable_warn=$enableval 2814else 2815 enable_warn=yes 2816fi; 2817if test "x$enable_warn" = xyes; then 2818 CFLAGS="$CFLAGS -Wall -Werror" 2819fi 2820 2821# Check whether --enable-debug or --disable-debug was given. 2822if test "${enable_debug+set}" = set; then 2823 enableval="$enable_debug" 2824 enable_debug=$enableval 2825else 2826 enable_debug=off 2827fi; 2828if test "x$enable_debug" = xyes; then 2829 CFLAGS="$CFLAGS -g3" 2830 CXXFLAGS="$CXXFLAGS -g3" 2831fi 2832 2833# Check whether --enable-profile or --disable-profile was given. 2834if test "${enable_profile+set}" = set; then 2835 enableval="$enable_profile" 2836 enable_profile=$enableval 2837else 2838 enable_profile=off 2839fi; 2840if test "x$enable_profile" = xyes; then 2841 if test "x$GCC" = xyes; then 2842 CFLAGS="$CFLAGS -pg" 2843 else 2844 CFLAGS="$CFLAGS -p" 2845 fi 2846fi 2847 2848# Check whether --enable-optimize or --disable-optimize was given. 2849if test "${enable_optimize+set}" = set; then 2850 enableval="$enable_optimize" 2851 enable_optmize=$enableval 2852else 2853 enable_optimize=s 2854fi; 2855if test "x$enable_optimize" ; then 2856 CFLAGS="$CFLAGS " 2857 CXXFLAGS="$CXXFLAGS " 2858fi 2859 2860# Check whether --with-sdl-prefix or --without-sdl-prefix was given. 2861if test "${with_sdl_prefix+set}" = set; then 2862 withval="$with_sdl_prefix" 2863 sdl_prefix="$withval" 2864else 2865 sdl_prefix="" 2866fi; 2867 2868# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 2869if test "${with_sdl_exec_prefix+set}" = set; then 2870 withval="$with_sdl_exec_prefix" 2871 sdl_exec_prefix="$withval" 2872else 2873 sdl_exec_prefix="" 2874fi; 2875# Check whether --enable-sdltest or --disable-sdltest was given. 2876if test "${enable_sdltest+set}" = set; then 2877 enableval="$enable_sdltest" 2878 2879else 2880 enable_sdltest=yes 2881fi; 2882 2883 if test x$sdl_exec_prefix != x ; then 2884 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 2885 if test x${SDL_CONFIG+set} != xset ; then 2886 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 2887 fi 2888 fi 2889 if test x$sdl_prefix != x ; then 2890 sdl_args="$sdl_args --prefix=$sdl_prefix" 2891 if test x${SDL_CONFIG+set} != xset ; then 2892 SDL_CONFIG=$sdl_prefix/bin/sdl-config 2893 fi 2894 fi 2895 2896 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 2897 # Extract the first word of "sdl-config", so it can be a program name with args. 2898set dummy sdl-config; ac_word=$2 2899echo "$as_me:2899: checking for $ac_word" >&5 2900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2901if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 2902 echo $ECHO_N "(cached) $ECHO_C" >&6 2903else 2904 case $SDL_CONFIG in 2905 [\\/]* | ?:[\\/]*) 2906 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 2907 ;; 2908 *) 2909 ac_save_IFS=$IFS; IFS=$ac_path_separator 2910ac_dummy="$PATH" 2911for ac_dir in $ac_dummy; do 2912 IFS=$ac_save_IFS 2913 test -z "$ac_dir" && ac_dir=. 2914 if $as_executable_p "$ac_dir/$ac_word"; then 2915 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" 2916 echo "$as_me:2916: found $ac_dir/$ac_word" >&5 2917 break 2918fi 2919done 2920 2921 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 2922 ;; 2923esac 2924fi 2925SDL_CONFIG=$ac_cv_path_SDL_CONFIG 2926 2927if test -n "$SDL_CONFIG"; then 2928 echo "$as_me:2928: result: $SDL_CONFIG" >&5 2929echo "${ECHO_T}$SDL_CONFIG" >&6 2930else 2931 echo "$as_me:2931: result: no" >&5 2932echo "${ECHO_T}no" >&6 2933fi 2934 2935 min_sdl_version=1.1.0 2936 echo "$as_me:2936: checking for SDL - version >= $min_sdl_version" >&5 2937echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 2938 no_sdl="" 2939 if test "$SDL_CONFIG" = "no" ; then 2940 no_sdl=yes 2941 else 2942 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 2943 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 2944 2945 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 2946 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 2947 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 2948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 2949 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 2950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 2951 if test "x$enable_sdltest" = "xyes" ; then 2952 ac_save_CFLAGS="$CFLAGS" 2953 ac_save_LIBS="$LIBS" 2954 CFLAGS="$CFLAGS $SDL_CFLAGS" 2955 LIBS="$LIBS $SDL_LIBS" 2956 rm -f conf.sdltest 2957 if test "$cross_compiling" = yes; then 2958 echo $ac_n "cross compiling; assumed OK... $ac_c" 2959else 2960 cat >conftest.$ac_ext <<_ACEOF 2961#line 2961 "configure" 2962#include "confdefs.h" 2963 2964#include <stdio.h> 2965#include <stdlib.h> 2966#include <string.h> 2967#include "SDL.h" 2968 2969char* 2970my_strdup (char *str) 2971{ 2972 char *new_str; 2973 2974 if (str) 2975 { 2976 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 2977 strcpy (new_str, str); 2978 } 2979 else 2980 new_str = NULL; 2981 2982 return new_str; 2983} 2984 2985int main (int argc, char *argv[]) 2986{ 2987 int major, minor, micro; 2988 char *tmp_version; 2989 2990 /* This hangs on some systems (?) 2991 system ("touch conf.sdltest"); 2992 */ 2993 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 2994 2995 /* HP/UX 9 (%@#!) writes to sscanf strings */ 2996 tmp_version = my_strdup("$min_sdl_version"); 2997 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 2998 printf("%s, bad version string\n", "$min_sdl_version"); 2999 exit(1); 3000 } 3001 3002 if (($sdl_major_version > major) || 3003 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 3004 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 3005 { 3006 return 0; 3007 } 3008 else 3009 { 3010 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 3011 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 3012 printf("*** best to upgrade to the required version.\n"); 3013 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 3014 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 3015 printf("*** config.cache before re-running configure\n"); 3016 return 1; 3017 } 3018} 3019 3020_ACEOF 3021rm -f conftest$ac_exeext 3022if { (eval echo "$as_me:3022: \"$ac_link\"") >&5 3023 (eval $ac_link) 2>&5 3024 ac_status=$? 3025 echo "$as_me:3025: \$? = $ac_status" >&5 3026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3027 { (eval echo "$as_me:3027: \"$ac_try\"") >&5 3028 (eval $ac_try) 2>&5 3029 ac_status=$? 3030 echo "$as_me:3030: \$? = $ac_status" >&5 3031 (exit $ac_status); }; }; then 3032 : 3033else 3034 echo "$as_me: program exited with status $ac_status" >&5 3035echo "$as_me: failed program was:" >&5 3036cat conftest.$ac_ext >&5 3037no_sdl=yes 3038fi 3039rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3040fi 3041 CFLAGS="$ac_save_CFLAGS" 3042 LIBS="$ac_save_LIBS" 3043 fi 3044 fi 3045 if test "x$no_sdl" = x ; then 3046 echo "$as_me:3046: result: yes" >&5 3047echo "${ECHO_T}yes" >&6 3048 CFLAGS="$CFLAGS $SDL_CFLAGS"; CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"; LIBS="$LIBS $SDL_LIBS" 3049 else 3050 echo "$as_me:3050: result: no" >&5 3051echo "${ECHO_T}no" >&6 3052 if test "$SDL_CONFIG" = "no" ; then 3053 echo "*** The sdl-config script installed by SDL could not be found" 3054 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 3055 echo "*** your path, or set the SDL_CONFIG environment variable to the" 3056 echo "*** full path to sdl-config." 3057 else 3058 if test -f conf.sdltest ; then 3059 : 3060 else 3061 echo "*** Could not run SDL test program, checking why..." 3062 CFLAGS="$CFLAGS $SDL_CFLAGS" 3063 LIBS="$LIBS $SDL_LIBS" 3064 cat >conftest.$ac_ext <<_ACEOF 3065#line 3065 "configure" 3066#include "confdefs.h" 3067 3068#include <stdio.h> 3069#include "SDL.h" 3070 3071int main(int argc, char *argv[]) 3072{ return 0; } 3073#undef main 3074#define main K_and_R_C_main 3075 3076int 3077main () 3078{ 3079 return 0; 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.$ac_objext conftest$ac_exeext 3085if { (eval echo "$as_me:3085: \"$ac_link\"") >&5 3086 (eval $ac_link) 2>&5 3087 ac_status=$? 3088 echo "$as_me:3088: \$? = $ac_status" >&5 3089 (exit $ac_status); } && 3090 { ac_try='test -s conftest$ac_exeext' 3091 { (eval echo "$as_me:3091: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:3094: \$? = $ac_status" >&5 3095 (exit $ac_status); }; }; then 3096 echo "*** The test program compiled, but did not run. This usually means" 3097 echo "*** that the run-time linker is not finding SDL or finding the wrong" 3098 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 3099 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 3100 echo "*** to the installed location Also, make sure you have run ldconfig if that" 3101 echo "*** is required on your system" 3102 echo "***" 3103 echo "*** If you have an old version installed, it is best to remove it, although" 3104 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 3105else 3106 echo "$as_me: failed program was:" >&5 3107cat conftest.$ac_ext >&5 3108 echo "*** The test program failed to compile or link. See the file config.log for the" 3109 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 3110 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 3111 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 3112fi 3113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3114 CFLAGS="$ac_save_CFLAGS" 3115 LIBS="$ac_save_LIBS" 3116 fi 3117 fi 3118 SDL_CFLAGS="" 3119 SDL_LIBS="" 3120 { { echo "$as_me:3120: error: SDL is not installed" >&5 3121echo "$as_me: error: SDL is not installed" >&2;} 3122 { (exit 1); exit 1; }; } 3123 fi 3124 3125 rm -f conf.sdltest 3126 3127echo "$as_me:3127: checking for main in -lGL" >&5 3128echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 3129if test "${ac_cv_lib_GL_main+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 ac_check_lib_save_LIBS=$LIBS 3133LIBS="-lGL $LIBS" 3134cat >conftest.$ac_ext <<_ACEOF 3135#line 3135 "configure" 3136#include "confdefs.h" 3137 3138int 3139main () 3140{ 3141main (); 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146rm -f conftest.$ac_objext conftest$ac_exeext 3147if { (eval echo "$as_me:3147: \"$ac_link\"") >&5 3148 (eval $ac_link) 2>&5 3149 ac_status=$? 3150 echo "$as_me:3150: \$? = $ac_status" >&5 3151 (exit $ac_status); } && 3152 { ac_try='test -s conftest$ac_exeext' 3153 { (eval echo "$as_me:3153: \"$ac_try\"") >&5 3154 (eval $ac_try) 2>&5 3155 ac_status=$? 3156 echo "$as_me:3156: \$? = $ac_status" >&5 3157 (exit $ac_status); }; }; then 3158 ac_cv_lib_GL_main=yes 3159else 3160 echo "$as_me: failed program was:" >&5 3161cat conftest.$ac_ext >&5 3162ac_cv_lib_GL_main=no 3163fi 3164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3165LIBS=$ac_check_lib_save_LIBS 3166fi 3167echo "$as_me:3167: result: $ac_cv_lib_GL_main" >&5 3168echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 3169if test $ac_cv_lib_GL_main = yes; then 3170 cat >>confdefs.h <<EOF 3171#define HAVE_LIBGL 1 3172EOF 3173 3174 LIBS="-lGL $LIBS" 3175 3176else 3177 { { echo "$as_me:3177: error: OpenGL is not installed" >&5 3178echo "$as_me: error: OpenGL is not installed" >&2;} 3179 { (exit 1); exit 1; }; } 3180fi 3181 3182echo "$as_me:3182: checking for gzopen in -lz" >&5 3183echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 3184if test "${ac_cv_lib_z_gzopen+set}" = set; then 3185 echo $ECHO_N "(cached) $ECHO_C" >&6 3186else 3187 ac_check_lib_save_LIBS=$LIBS 3188LIBS="-lz $LIBS" 3189cat >conftest.$ac_ext <<_ACEOF 3190#line 3190 "configure" 3191#include "confdefs.h" 3192 3193/* Override any gcc2 internal prototype to avoid an error. */ 3194#ifdef __cplusplus 3195extern "C" 3196#endif 3197/* We use char because int might match the return type of a gcc2 3198 builtin and then its argument prototype would still apply. */ 3199char gzopen (); 3200int 3201main () 3202{ 3203gzopen (); 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208rm -f conftest.$ac_objext conftest$ac_exeext 3209if { (eval echo "$as_me:3209: \"$ac_link\"") >&5 3210 (eval $ac_link) 2>&5 3211 ac_status=$? 3212 echo "$as_me:3212: \$? = $ac_status" >&5 3213 (exit $ac_status); } && 3214 { ac_try='test -s conftest$ac_exeext' 3215 { (eval echo "$as_me:3215: \"$ac_try\"") >&5 3216 (eval $ac_try) 2>&5 3217 ac_status=$? 3218 echo "$as_me:3218: \$? = $ac_status" >&5 3219 (exit $ac_status); }; }; then 3220 ac_cv_lib_z_gzopen=yes 3221else 3222 echo "$as_me: failed program was:" >&5 3223cat conftest.$ac_ext >&5 3224ac_cv_lib_z_gzopen=no 3225fi 3226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3227LIBS=$ac_check_lib_save_LIBS 3228fi 3229echo "$as_me:3229: result: $ac_cv_lib_z_gzopen" >&5 3230echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 3231if test $ac_cv_lib_z_gzopen = yes; then 3232 cat >>confdefs.h <<EOF 3233#define HAVE_LIBZ 1 3234EOF 3235 3236 LIBS="-lz $LIBS" 3237 3238else 3239 { { echo "$as_me:3239: error: libz is not installed" >&5 3240echo "$as_me: error: libz is not installed" >&2;} 3241 { (exit 1); exit 1; }; } 3242fi 3243 3244echo "$as_me:3244: checking for png_read_info in -lpng" >&5 3245echo $ECHO_N "checking for png_read_info in -lpng... $ECHO_C" >&6 3246if test "${ac_cv_lib_png_png_read_info+set}" = set; then 3247 echo $ECHO_N "(cached) $ECHO_C" >&6 3248else 3249 ac_check_lib_save_LIBS=$LIBS 3250LIBS="-lpng $LIBS" 3251cat >conftest.$ac_ext <<_ACEOF 3252#line 3252 "configure" 3253#include "confdefs.h" 3254 3255/* Override any gcc2 internal prototype to avoid an error. */ 3256#ifdef __cplusplus 3257extern "C" 3258#endif 3259/* We use char because int might match the return type of a gcc2 3260 builtin and then its argument prototype would still apply. */ 3261char png_read_info (); 3262int 3263main () 3264{ 3265png_read_info (); 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270rm -f conftest.$ac_objext conftest$ac_exeext 3271if { (eval echo "$as_me:3271: \"$ac_link\"") >&5 3272 (eval $ac_link) 2>&5 3273 ac_status=$? 3274 echo "$as_me:3274: \$? = $ac_status" >&5 3275 (exit $ac_status); } && 3276 { ac_try='test -s conftest$ac_exeext' 3277 { (eval echo "$as_me:3277: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 3281 (exit $ac_status); }; }; then 3282 ac_cv_lib_png_png_read_info=yes 3283else 3284 echo "$as_me: failed program was:" >&5 3285cat conftest.$ac_ext >&5 3286ac_cv_lib_png_png_read_info=no 3287fi 3288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3289LIBS=$ac_check_lib_save_LIBS 3290fi 3291echo "$as_me:3291: result: $ac_cv_lib_png_png_read_info" >&5 3292echo "${ECHO_T}$ac_cv_lib_png_png_read_info" >&6 3293if test $ac_cv_lib_png_png_read_info = yes; then 3294 cat >>confdefs.h <<EOF 3295#define HAVE_LIBPNG 1 3296EOF 3297 3298 LIBS="-lpng $LIBS" 3299 3300else 3301 { { echo "$as_me:3301: error: libpng is not installed" >&5 3302echo "$as_me: error: libpng is not installed" >&2;} 3303 { (exit 1); exit 1; }; } 3304fi 3305 3306# Check whether --enable-localdata or --disable-localdata was given. 3307if test "${enable_localdata+set}" = set; then 3308 enableval="$enable_localdata" 3309 CPPFLAGSA="$CPPFLAGSA -DLOCAL_DATA" 3310else 3311 CPPFLAGSA="$CPPFLAGSA -DDATA_DIR=\\\"\$(datadir)/\$(PACKAGE)\\\"" 3312fi; 3313 3314# Check whether --with-snapshot-dir or --without-snapshot-dir was given. 3315if test "${with_snapshot_dir+set}" = set; then 3316 withval="$with_snapshot_dir" 3317 CPPFLAGSA="$CPPFLAGSA -DSNAP_DIR=\\\"$withval\\\"" 3318else 3319 CPPFLAGSA="$CPPFLAGSA -DSNAP_DIR=\\\"~\\\"" 3320fi; 3321 3322# Check whether --with-preferences-dir or --without-preferences-dir was given. 3323if test "${with_preferences_dir+set}" = set; then 3324 withval="$with_preferences_dir" 3325 CPPFLAGSA="$CPPFLAGSA -DPREF_DIR=\\\"$withval\\\"" 3326else 3327 CPPFLAGSA="$CPPFLAGSA -DPREF_DIR=\\\"~\\\"" 3328fi; 3329 3330# Check whether --enable-sound or --disable-sound was given. 3331if test "${enable_sound+set}" = set; then 3332 enableval="$enable_sound" 3333 use_sound=no 3334else 3335 use_sound=yes 3336fi; 3337if test "x$use_sound" = xyes; then 3338 3339echo "$as_me:3339: checking for main in -lsmpeg" >&5 3340echo $ECHO_N "checking for main in -lsmpeg... $ECHO_C" >&6 3341if test "${ac_cv_lib_smpeg_main+set}" = set; then 3342 echo $ECHO_N "(cached) $ECHO_C" >&6 3343else 3344 ac_check_lib_save_LIBS=$LIBS 3345LIBS="-lsmpeg $LIBS" 3346cat >conftest.$ac_ext <<_ACEOF 3347#line 3347 "configure" 3348#include "confdefs.h" 3349 3350int 3351main () 3352{ 3353main (); 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext conftest$ac_exeext 3359if { (eval echo "$as_me:3359: \"$ac_link\"") >&5 3360 (eval $ac_link) 2>&5 3361 ac_status=$? 3362 echo "$as_me:3362: \$? = $ac_status" >&5 3363 (exit $ac_status); } && 3364 { ac_try='test -s conftest$ac_exeext' 3365 { (eval echo "$as_me:3365: \"$ac_try\"") >&5 3366 (eval $ac_try) 2>&5 3367 ac_status=$? 3368 echo "$as_me:3368: \$? = $ac_status" >&5 3369 (exit $ac_status); }; }; then 3370 ac_cv_lib_smpeg_main=yes 3371else 3372 echo "$as_me: failed program was:" >&5 3373cat conftest.$ac_ext >&5 3374ac_cv_lib_smpeg_main=no 3375fi 3376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3377LIBS=$ac_check_lib_save_LIBS 3378fi 3379echo "$as_me:3379: result: $ac_cv_lib_smpeg_main" >&5 3380echo "${ECHO_T}$ac_cv_lib_smpeg_main" >&6 3381if test $ac_cv_lib_smpeg_main = yes; then 3382 cat >>confdefs.h <<EOF 3383#define HAVE_LIBSMPEG 1 3384EOF 3385 3386 LIBS="-lsmpeg $LIBS" 3387 3388else 3389 { echo "$as_me:3389: WARNING: smpeg not found - music playback may not work correctly" >&5 3390echo "$as_me: WARNING: smpeg not found - music playback may not work correctly" >&2;} 3391fi 3392 3393echo "$as_me:3393: checking for main in -logg" >&5 3394echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 3395if test "${ac_cv_lib_ogg_main+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 ac_check_lib_save_LIBS=$LIBS 3399LIBS="-logg $LIBS" 3400cat >conftest.$ac_ext <<_ACEOF 3401#line 3401 "configure" 3402#include "confdefs.h" 3403 3404int 3405main () 3406{ 3407main (); 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412rm -f conftest.$ac_objext conftest$ac_exeext 3413if { (eval echo "$as_me:3413: \"$ac_link\"") >&5 3414 (eval $ac_link) 2>&5 3415 ac_status=$? 3416 echo "$as_me:3416: \$? = $ac_status" >&5 3417 (exit $ac_status); } && 3418 { ac_try='test -s conftest$ac_exeext' 3419 { (eval echo "$as_me:3419: \"$ac_try\"") >&5 3420 (eval $ac_try) 2>&5 3421 ac_status=$? 3422 echo "$as_me:3422: \$? = $ac_status" >&5 3423 (exit $ac_status); }; }; then 3424 ac_cv_lib_ogg_main=yes 3425else 3426 echo "$as_me: failed program was:" >&5 3427cat conftest.$ac_ext >&5 3428ac_cv_lib_ogg_main=no 3429fi 3430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3431LIBS=$ac_check_lib_save_LIBS 3432fi 3433echo "$as_me:3433: result: $ac_cv_lib_ogg_main" >&5 3434echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 3435if test $ac_cv_lib_ogg_main = yes; then 3436 cat >>confdefs.h <<EOF 3437#define HAVE_LIBOGG 1 3438EOF 3439 3440 LIBS="-logg $LIBS" 3441 3442else 3443 { echo "$as_me:3443: WARNING: ogg not found - music playback may not work correctly" >&5 3444echo "$as_me: WARNING: ogg not found - music playback may not work correctly" >&2;} 3445fi 3446 3447echo "$as_me:3447: checking for main in -lvorbis" >&5 3448echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 3449if test "${ac_cv_lib_vorbis_main+set}" = set; then 3450 echo $ECHO_N "(cached) $ECHO_C" >&6 3451else 3452 ac_check_lib_save_LIBS=$LIBS 3453LIBS="-lvorbis $LIBS" 3454cat >conftest.$ac_ext <<_ACEOF 3455#line 3455 "configure" 3456#include "confdefs.h" 3457 3458int 3459main () 3460{ 3461main (); 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466rm -f conftest.$ac_objext conftest$ac_exeext 3467if { (eval echo "$as_me:3467: \"$ac_link\"") >&5 3468 (eval $ac_link) 2>&5 3469 ac_status=$? 3470 echo "$as_me:3470: \$? = $ac_status" >&5 3471 (exit $ac_status); } && 3472 { ac_try='test -s conftest$ac_exeext' 3473 { (eval echo "$as_me:3473: \"$ac_try\"") >&5 3474 (eval $ac_try) 2>&5 3475 ac_status=$? 3476 echo "$as_me:3476: \$? = $ac_status" >&5 3477 (exit $ac_status); }; }; then 3478 ac_cv_lib_vorbis_main=yes 3479else 3480 echo "$as_me: failed program was:" >&5 3481cat conftest.$ac_ext >&5 3482ac_cv_lib_vorbis_main=no 3483fi 3484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3485LIBS=$ac_check_lib_save_LIBS 3486fi 3487echo "$as_me:3487: result: $ac_cv_lib_vorbis_main" >&5 3488echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 3489if test $ac_cv_lib_vorbis_main = yes; then 3490 cat >>confdefs.h <<EOF 3491#define HAVE_LIBVORBIS 1 3492EOF 3493 3494 LIBS="-lvorbis $LIBS" 3495 3496else 3497 { echo "$as_me:3497: WARNING: vorbis not found - music playback may not work correctly" >&5 3498echo "$as_me: WARNING: vorbis not found - music playback may not work correctly" >&2;} 3499fi 3500 3501echo "$as_me:3501: checking for main in -lvorbisfile" >&5 3502echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 3503if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505else 3506 ac_check_lib_save_LIBS=$LIBS 3507LIBS="-lvorbisfile $LIBS" 3508cat >conftest.$ac_ext <<_ACEOF 3509#line 3509 "configure" 3510#include "confdefs.h" 3511 3512int 3513main () 3514{ 3515main (); 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520rm -f conftest.$ac_objext conftest$ac_exeext 3521if { (eval echo "$as_me:3521: \"$ac_link\"") >&5 3522 (eval $ac_link) 2>&5 3523 ac_status=$? 3524 echo "$as_me:3524: \$? = $ac_status" >&5 3525 (exit $ac_status); } && 3526 { ac_try='test -s conftest$ac_exeext' 3527 { (eval echo "$as_me:3527: \"$ac_try\"") >&5 3528 (eval $ac_try) 2>&5 3529 ac_status=$? 3530 echo "$as_me:3530: \$? = $ac_status" >&5 3531 (exit $ac_status); }; }; then 3532 ac_cv_lib_vorbisfile_main=yes 3533else 3534 echo "$as_me: failed program was:" >&5 3535cat conftest.$ac_ext >&5 3536ac_cv_lib_vorbisfile_main=no 3537fi 3538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3539LIBS=$ac_check_lib_save_LIBS 3540fi 3541echo "$as_me:3541: result: $ac_cv_lib_vorbisfile_main" >&5 3542echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 3543if test $ac_cv_lib_vorbisfile_main = yes; then 3544 cat >>confdefs.h <<EOF 3545#define HAVE_LIBVORBISFILE 1 3546EOF 3547 3548 LIBS="-lvorbisfile $LIBS" 3549 3550else 3551 { echo "$as_me:3551: WARNING: vorbisfile not found - music playback may not work correctly" >&5 3552echo "$as_me: WARNING: vorbisfile not found - music playback may not work correctly" >&2;} 3553fi 3554 3555echo "$as_me:3555: checking for main in -lsmpeg" >&5 3556echo $ECHO_N "checking for main in -lsmpeg... $ECHO_C" >&6 3557if test "${ac_cv_lib_smpeg_main+set}" = set; then 3558 echo $ECHO_N "(cached) $ECHO_C" >&6 3559else 3560 ac_check_lib_save_LIBS=$LIBS 3561LIBS="-lsmpeg $LIBS" 3562cat >conftest.$ac_ext <<_ACEOF 3563#line 3563 "configure" 3564#include "confdefs.h" 3565 3566int 3567main () 3568{ 3569main (); 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574rm -f conftest.$ac_objext conftest$ac_exeext 3575if { (eval echo "$as_me:3575: \"$ac_link\"") >&5 3576 (eval $ac_link) 2>&5 3577 ac_status=$? 3578 echo "$as_me:3578: \$? = $ac_status" >&5 3579 (exit $ac_status); } && 3580 { ac_try='test -s conftest$ac_exeext' 3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5 3582 (eval $ac_try) 2>&5 3583 ac_status=$? 3584 echo "$as_me:3584: \$? = $ac_status" >&5 3585 (exit $ac_status); }; }; then 3586 ac_cv_lib_smpeg_main=yes 3587else 3588 echo "$as_me: failed program was:" >&5 3589cat conftest.$ac_ext >&5 3590ac_cv_lib_smpeg_main=no 3591fi 3592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3593LIBS=$ac_check_lib_save_LIBS 3594fi 3595echo "$as_me:3595: result: $ac_cv_lib_smpeg_main" >&5 3596echo "${ECHO_T}$ac_cv_lib_smpeg_main" >&6 3597if test $ac_cv_lib_smpeg_main = yes; then 3598 cat >>confdefs.h <<EOF 3599#define HAVE_LIBSMPEG 1 3600EOF 3601 3602 LIBS="-lsmpeg $LIBS" 3603 3604else 3605 { echo "$as_me:3605: WARNING: smpeg not found - music playback may not work correctly" >&5 3606echo "$as_me: WARNING: smpeg not found - music playback may not work correctly" >&2;} 3607fi 3608 3609echo "$as_me:3609: checking for main in -lmikmod" >&5 3610echo $ECHO_N "checking for main in -lmikmod... $ECHO_C" >&6 3611if test "${ac_cv_lib_mikmod_main+set}" = set; then 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 3613else 3614 ac_check_lib_save_LIBS=$LIBS 3615LIBS="-lmikmod $LIBS" 3616cat >conftest.$ac_ext <<_ACEOF 3617#line 3617 "configure" 3618#include "confdefs.h" 3619 3620int 3621main () 3622{ 3623main (); 3624 ; 3625 return 0; 3626} 3627_ACEOF 3628rm -f conftest.$ac_objext conftest$ac_exeext 3629if { (eval echo "$as_me:3629: \"$ac_link\"") >&5 3630 (eval $ac_link) 2>&5 3631 ac_status=$? 3632 echo "$as_me:3632: \$? = $ac_status" >&5 3633 (exit $ac_status); } && 3634 { ac_try='test -s conftest$ac_exeext' 3635 { (eval echo "$as_me:3635: \"$ac_try\"") >&5 3636 (eval $ac_try) 2>&5 3637 ac_status=$? 3638 echo "$as_me:3638: \$? = $ac_status" >&5 3639 (exit $ac_status); }; }; then 3640 ac_cv_lib_mikmod_main=yes 3641else 3642 echo "$as_me: failed program was:" >&5 3643cat conftest.$ac_ext >&5 3644ac_cv_lib_mikmod_main=no 3645fi 3646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3647LIBS=$ac_check_lib_save_LIBS 3648fi 3649echo "$as_me:3649: result: $ac_cv_lib_mikmod_main" >&5 3650echo "${ECHO_T}$ac_cv_lib_mikmod_main" >&6 3651if test $ac_cv_lib_mikmod_main = yes; then 3652 cat >>confdefs.h <<EOF 3653#define HAVE_LIBMIKMOD 1 3654EOF 3655 3656 LIBS="-lmikmod $LIBS" 3657 3658else 3659 { echo "$as_me:3659: WARNING: mikmod not found - music playback may not work correctly" >&5 3660echo "$as_me: WARNING: mikmod not found - music playback may not work correctly" >&2;} 3661fi 3662 3663 echo "$as_me:3663: checking for Sound_Init in -lSDL_sound" >&5 3664echo $ECHO_N "checking for Sound_Init in -lSDL_sound... $ECHO_C" >&6 3665if test "${ac_cv_lib_SDL_sound_Sound_Init+set}" = set; then 3666 echo $ECHO_N "(cached) $ECHO_C" >&6 3667else 3668 ac_check_lib_save_LIBS=$LIBS 3669LIBS="-lSDL_sound $LIBS" 3670cat >conftest.$ac_ext <<_ACEOF 3671#line 3671 "configure" 3672#include "confdefs.h" 3673 3674/* Override any gcc2 internal prototype to avoid an error. */ 3675#ifdef __cplusplus 3676extern "C" 3677#endif 3678/* We use char because int might match the return type of a gcc2 3679 builtin and then its argument prototype would still apply. */ 3680char Sound_Init (); 3681int 3682main () 3683{ 3684Sound_Init (); 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689rm -f conftest.$ac_objext conftest$ac_exeext 3690if { (eval echo "$as_me:3690: \"$ac_link\"") >&5 3691 (eval $ac_link) 2>&5 3692 ac_status=$? 3693 echo "$as_me:3693: \$? = $ac_status" >&5 3694 (exit $ac_status); } && 3695 { ac_try='test -s conftest$ac_exeext' 3696 { (eval echo "$as_me:3696: \"$ac_try\"") >&5 3697 (eval $ac_try) 2>&5 3698 ac_status=$? 3699 echo "$as_me:3699: \$? = $ac_status" >&5 3700 (exit $ac_status); }; }; then 3701 ac_cv_lib_SDL_sound_Sound_Init=yes 3702else 3703 echo "$as_me: failed program was:" >&5 3704cat conftest.$ac_ext >&5 3705ac_cv_lib_SDL_sound_Sound_Init=no 3706fi 3707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3708LIBS=$ac_check_lib_save_LIBS 3709fi 3710echo "$as_me:3710: result: $ac_cv_lib_SDL_sound_Sound_Init" >&5 3711echo "${ECHO_T}$ac_cv_lib_SDL_sound_Sound_Init" >&6 3712if test $ac_cv_lib_SDL_sound_Sound_Init = yes; then 3713 LIBS="-lSDL_sound $LIBS"; 3714 SOUND_OBJS="sound.o sound_glue.o Source.o Source3D.o SourceMusic.o SourceSample.o SoundSystem.o SourceCopy.o SourceEngine.o" 3715else 3716 { echo "$as_me:3716: WARNING: SDL_sound not found - disabling sound" >&5 3717echo "$as_me: WARNING: SDL_sound not found - disabling sound" >&2;}; 3718 SOUND_OBJS="sound_stubs.o sound_glue_stubs.o" 3719fi 3720 3721else 3722 SOUND_OBJS="sound_stubs.o sound_glue_stubs.o" 3723 3724fi 3725 3726# Check whether --enable-network or --disable-network was given. 3727if test "${enable_network+set}" = set; then 3728 enableval="$enable_network" 3729 enable_network=$enableval 3730else 3731 enable_network=off 3732fi; 3733if test "x$enable_network" = xyes; then 3734 echo "$as_me:3734: checking for SDLNet_Init in -lSDL_net" >&5 3735echo $ECHO_N "checking for SDLNet_Init in -lSDL_net... $ECHO_C" >&6 3736if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 ac_check_lib_save_LIBS=$LIBS 3740LIBS="-lSDL_net $LIBS" 3741cat >conftest.$ac_ext <<_ACEOF 3742#line 3742 "configure" 3743#include "confdefs.h" 3744 3745/* Override any gcc2 internal prototype to avoid an error. */ 3746#ifdef __cplusplus 3747extern "C" 3748#endif 3749/* We use char because int might match the return type of a gcc2 3750 builtin and then its argument prototype would still apply. */ 3751char SDLNet_Init (); 3752int 3753main () 3754{ 3755SDLNet_Init (); 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760rm -f conftest.$ac_objext conftest$ac_exeext 3761if { (eval echo "$as_me:3761: \"$ac_link\"") >&5 3762 (eval $ac_link) 2>&5 3763 ac_status=$? 3764 echo "$as_me:3764: \$? = $ac_status" >&5 3765 (exit $ac_status); } && 3766 { ac_try='test -s conftest$ac_exeext' 3767 { (eval echo "$as_me:3767: \"$ac_try\"") >&5 3768 (eval $ac_try) 2>&5 3769 ac_status=$? 3770 echo "$as_me:3770: \$? = $ac_status" >&5 3771 (exit $ac_status); }; }; then 3772 ac_cv_lib_SDL_net_SDLNet_Init=yes 3773else 3774 echo "$as_me: failed program was:" >&5 3775cat conftest.$ac_ext >&5 3776ac_cv_lib_SDL_net_SDLNet_Init=no 3777fi 3778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3779LIBS=$ac_check_lib_save_LIBS 3780fi 3781echo "$as_me:3781: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5 3782echo "${ECHO_T}$ac_cv_lib_SDL_net_SDLNet_Init" >&6 3783if test $ac_cv_lib_SDL_net_SDLNet_Init = yes; then 3784 CFLAGS="$CFLAGS -DNETWORK"; 3785 LIBS="$LIBS -lSDL_net"; 3786 NETWORK_OBJS="network.o system_net.o" 3787else 3788 { echo "$as_me:3788: WARNING: SDL_net not found - disabling network" >&5 3789echo "$as_me: WARNING: SDL_net not found - disabling network" >&2;} 3790fi 3791 3792fi 3793 3794echo "$as_me:3794: checking for ANSI C header files" >&5 3795echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3796if test "${ac_cv_header_stdc+set}" = set; then 3797 echo $ECHO_N "(cached) $ECHO_C" >&6 3798else 3799 cat >conftest.$ac_ext <<_ACEOF 3800#line 3800 "configure" 3801#include "confdefs.h" 3802#include <stdlib.h> 3803#include <stdarg.h> 3804#include <string.h> 3805#include <float.h> 3806 3807_ACEOF 3808if { (eval echo "$as_me:3808: \"$ac_cpp conftest.$ac_ext\"") >&5 3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3810 ac_status=$? 3811 egrep -v '^ *\+' conftest.er1 >conftest.err 3812 rm -f conftest.er1 3813 cat conftest.err >&5 3814 echo "$as_me:3814: \$? = $ac_status" >&5 3815 (exit $ac_status); } >/dev/null; then 3816 if test -s conftest.err; then 3817 ac_cpp_err=$ac_c_preproc_warn_flag 3818 else 3819 ac_cpp_err= 3820 fi 3821else 3822 ac_cpp_err=yes 3823fi 3824if test -z "$ac_cpp_err"; then 3825 ac_cv_header_stdc=yes 3826else 3827 echo "$as_me: failed program was:" >&5 3828 cat conftest.$ac_ext >&5 3829 ac_cv_header_stdc=no 3830fi 3831rm -f conftest.err conftest.$ac_ext 3832 3833if test $ac_cv_header_stdc = yes; then 3834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3835 cat >conftest.$ac_ext <<_ACEOF 3836#line 3836 "configure" 3837#include "confdefs.h" 3838#include <string.h> 3839 3840_ACEOF 3841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3842 egrep "memchr" >/dev/null 2>&1; then 3843 : 3844else 3845 ac_cv_header_stdc=no 3846fi 3847rm -f conftest* 3848 3849fi 3850 3851if test $ac_cv_header_stdc = yes; then 3852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3853 cat >conftest.$ac_ext <<_ACEOF 3854#line 3854 "configure" 3855#include "confdefs.h" 3856#include <stdlib.h> 3857 3858_ACEOF 3859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3860 egrep "free" >/dev/null 2>&1; then 3861 : 3862else 3863 ac_cv_header_stdc=no 3864fi 3865rm -f conftest* 3866 3867fi 3868 3869if test $ac_cv_header_stdc = yes; then 3870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3871 if test "$cross_compiling" = yes; then 3872 : 3873else 3874 cat >conftest.$ac_ext <<_ACEOF 3875#line 3875 "configure" 3876#include "confdefs.h" 3877#include <ctype.h> 3878#if ((' ' & 0x0FF) == 0x020) 3879# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3880# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3881#else 3882# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3883 || ('j' <= (c) && (c) <= 'r') \ 3884 || ('s' <= (c) && (c) <= 'z')) 3885# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3886#endif 3887 3888#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3889int 3890main () 3891{ 3892 int i; 3893 for (i = 0; i < 256; i++) 3894 if (XOR (islower (i), ISLOWER (i)) 3895 || toupper (i) != TOUPPER (i)) 3896 exit(2); 3897 exit (0); 3898} 3899_ACEOF 3900rm -f conftest$ac_exeext 3901if { (eval echo "$as_me:3901: \"$ac_link\"") >&5 3902 (eval $ac_link) 2>&5 3903 ac_status=$? 3904 echo "$as_me:3904: \$? = $ac_status" >&5 3905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (eval echo "$as_me:3906: \"$ac_try\"") >&5 3907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me:3909: \$? = $ac_status" >&5 3910 (exit $ac_status); }; }; then 3911 : 3912else 3913 echo "$as_me: program exited with status $ac_status" >&5 3914echo "$as_me: failed program was:" >&5 3915cat conftest.$ac_ext >&5 3916ac_cv_header_stdc=no 3917fi 3918rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3919fi 3920fi 3921fi 3922echo "$as_me:3922: result: $ac_cv_header_stdc" >&5 3923echo "${ECHO_T}$ac_cv_header_stdc" >&6 3924if test $ac_cv_header_stdc = yes; then 3925 3926cat >>confdefs.h <<\EOF 3927#define STDC_HEADERS 1 3928EOF 3929 3930fi 3931 3932for ac_header in unistd.h 3933do 3934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3935echo "$as_me:3935: checking for $ac_header" >&5 3936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3937if eval "test \"\${$as_ac_Header+set}\" = set"; then 3938 echo $ECHO_N "(cached) $ECHO_C" >&6 3939else 3940 cat >conftest.$ac_ext <<_ACEOF 3941#line 3941 "configure" 3942#include "confdefs.h" 3943#include <$ac_header> 3944_ACEOF 3945if { (eval echo "$as_me:3945: \"$ac_cpp conftest.$ac_ext\"") >&5 3946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3947 ac_status=$? 3948 egrep -v '^ *\+' conftest.er1 >conftest.err 3949 rm -f conftest.er1 3950 cat conftest.err >&5 3951 echo "$as_me:3951: \$? = $ac_status" >&5 3952 (exit $ac_status); } >/dev/null; then 3953 if test -s conftest.err; then 3954 ac_cpp_err=$ac_c_preproc_warn_flag 3955 else 3956 ac_cpp_err= 3957 fi 3958else 3959 ac_cpp_err=yes 3960fi 3961if test -z "$ac_cpp_err"; then 3962 eval "$as_ac_Header=yes" 3963else 3964 echo "$as_me: failed program was:" >&5 3965 cat conftest.$ac_ext >&5 3966 eval "$as_ac_Header=no" 3967fi 3968rm -f conftest.err conftest.$ac_ext 3969fi 3970echo "$as_me:3970: result: `eval echo '${'$as_ac_Header'}'`" >&5 3971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3972if test `eval echo '${'$as_ac_Header'}'` = yes; then 3973 cat >>confdefs.h <<EOF 3974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3975EOF 3976 3977fi 3978done 3979 3980for ac_header in GL/gl.h 3981do 3982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3983echo "$as_me:3983: checking for $ac_header" >&5 3984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3985if eval "test \"\${$as_ac_Header+set}\" = set"; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 cat >conftest.$ac_ext <<_ACEOF 3989#line 3989 "configure" 3990#include "confdefs.h" 3991#include <$ac_header> 3992_ACEOF 3993if { (eval echo "$as_me:3993: \"$ac_cpp conftest.$ac_ext\"") >&5 3994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3995 ac_status=$? 3996 egrep -v '^ *\+' conftest.er1 >conftest.err 3997 rm -f conftest.er1 3998 cat conftest.err >&5 3999 echo "$as_me:3999: \$? = $ac_status" >&5 4000 (exit $ac_status); } >/dev/null; then 4001 if test -s conftest.err; then 4002 ac_cpp_err=$ac_c_preproc_warn_flag 4003 else 4004 ac_cpp_err= 4005 fi 4006else 4007 ac_cpp_err=yes 4008fi 4009if test -z "$ac_cpp_err"; then 4010 eval "$as_ac_Header=yes" 4011else 4012 echo "$as_me: failed program was:" >&5 4013 cat conftest.$ac_ext >&5 4014 eval "$as_ac_Header=no" 4015fi 4016rm -f conftest.err conftest.$ac_ext 4017fi 4018echo "$as_me:4018: result: `eval echo '${'$as_ac_Header'}'`" >&5 4019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4020if test `eval echo '${'$as_ac_Header'}'` = yes; then 4021 cat >>confdefs.h <<EOF 4022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4023EOF 4024 have_gl_h=true 4025else 4026 have_gl_h=false 4027fi 4028done 4029 4030$have_gl_h || { 4031 4032for ac_header in /usr/X11R6/include/GL/gl.h 4033do 4034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4035echo "$as_me:4035: checking for $ac_header" >&5 4036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4037if eval "test \"\${$as_ac_Header+set}\" = set"; then 4038 echo $ECHO_N "(cached) $ECHO_C" >&6 4039else 4040 cat >conftest.$ac_ext <<_ACEOF 4041#line 4041 "configure" 4042#include "confdefs.h" 4043#include <$ac_header> 4044_ACEOF 4045if { (eval echo "$as_me:4045: \"$ac_cpp conftest.$ac_ext\"") >&5 4046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4047 ac_status=$? 4048 egrep -v '^ *\+' conftest.er1 >conftest.err 4049 rm -f conftest.er1 4050 cat conftest.err >&5 4051 echo "$as_me:4051: \$? = $ac_status" >&5 4052 (exit $ac_status); } >/dev/null; then 4053 if test -s conftest.err; then 4054 ac_cpp_err=$ac_c_preproc_warn_flag 4055 else 4056 ac_cpp_err= 4057 fi 4058else 4059 ac_cpp_err=yes 4060fi 4061if test -z "$ac_cpp_err"; then 4062 eval "$as_ac_Header=yes" 4063else 4064 echo "$as_me: failed program was:" >&5 4065 cat conftest.$ac_ext >&5 4066 eval "$as_ac_Header=no" 4067fi 4068rm -f conftest.err conftest.$ac_ext 4069fi 4070echo "$as_me:4070: result: `eval echo '${'$as_ac_Header'}'`" >&5 4071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4072if test `eval echo '${'$as_ac_Header'}'` = yes; then 4073 cat >>confdefs.h <<EOF 4074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4075EOF 4076 includes_in_x=1 have_gl_h=true 4077else 4078 have_gl_h=false 4079fi 4080done 4081 4082} 4083$have_gl_h || { 4084 4085for ac_header in /usr/local/include/GL/gl.h 4086do 4087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4088echo "$as_me:4088: checking for $ac_header" >&5 4089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4090if eval "test \"\${$as_ac_Header+set}\" = set"; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 cat >conftest.$ac_ext <<_ACEOF 4094#line 4094 "configure" 4095#include "confdefs.h" 4096#include <$ac_header> 4097_ACEOF 4098if { (eval echo "$as_me:4098: \"$ac_cpp conftest.$ac_ext\"") >&5 4099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4100 ac_status=$? 4101 egrep -v '^ *\+' conftest.er1 >conftest.err 4102 rm -f conftest.er1 4103 cat conftest.err >&5 4104 echo "$as_me:4104: \$? = $ac_status" >&5 4105 (exit $ac_status); } >/dev/null; then 4106 if test -s conftest.err; then 4107 ac_cpp_err=$ac_c_preproc_warn_flag 4108 else 4109 ac_cpp_err= 4110 fi 4111else 4112 ac_cpp_err=yes 4113fi 4114if test -z "$ac_cpp_err"; then 4115 eval "$as_ac_Header=yes" 4116else 4117 echo "$as_me: failed program was:" >&5 4118 cat conftest.$ac_ext >&5 4119 eval "$as_ac_Header=no" 4120fi 4121rm -f conftest.err conftest.$ac_ext 4122fi 4123echo "$as_me:4123: result: `eval echo '${'$as_ac_Header'}'`" >&5 4124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4125if test `eval echo '${'$as_ac_Header'}'` = yes; then 4126 cat >>confdefs.h <<EOF 4127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4128EOF 4129 includes_in_local=1 have_gl_h=true 4130else 4131 have_gl_h=false 4132fi 4133done 4134 4135} 4136$have_gl_h || { 4137 { { echo "$as_me:4137: error: cant find GL headers" >&5 4138echo "$as_me: error: cant find GL headers" >&2;} 4139 { (exit 1); exit 1; }; } 4140} 4141 4142echo "$as_me:4142: checking for $CC option to accept ANSI C" >&5 4143echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4144if test "${ac_cv_prog_cc_stdc+set}" = set; then 4145 echo $ECHO_N "(cached) $ECHO_C" >&6 4146else 4147 ac_cv_prog_cc_stdc=no 4148ac_save_CC=$CC 4149cat >conftest.$ac_ext <<_ACEOF 4150#line 4150 "configure" 4151#include "confdefs.h" 4152#include <stdarg.h> 4153#include <stdio.h> 4154#include <sys/types.h> 4155#include <sys/stat.h> 4156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4157struct buf { int x; }; 4158FILE * (*rcsopen) (struct buf *, struct stat *, int); 4159static char *e (p, i) 4160 char **p; 4161 int i; 4162{ 4163 return p[i]; 4164} 4165static char *f (char * (*g) (char **, int), char **p, ...) 4166{ 4167 char *s; 4168 va_list v; 4169 va_start (v,p); 4170 s = g (p, va_arg (v,int)); 4171 va_end (v); 4172 return s; 4173} 4174int test (int i, double x); 4175struct s1 {int (*f) (int a);}; 4176struct s2 {int (*f) (double a);}; 4177int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4178int argc; 4179char **argv; 4180int 4181main () 4182{ 4183return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188# Don't try gcc -ansi; that turns off useful extensions and 4189# breaks some systems' header files. 4190# AIX -qlanglvl=ansi 4191# Ultrix and OSF/1 -std1 4192# HP-UX 10.20 and later -Ae 4193# HP-UX older versions -Aa -D_HPUX_SOURCE 4194# SVR4 -Xc -D__EXTENSIONS__ 4195for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4196do 4197 CC="$ac_save_CC $ac_arg" 4198 rm -f conftest.$ac_objext 4199if { (eval echo "$as_me:4199: \"$ac_compile\"") >&5 4200 (eval $ac_compile) 2>&5 4201 ac_status=$? 4202 echo "$as_me:4202: \$? = $ac_status" >&5 4203 (exit $ac_status); } && 4204 { ac_try='test -s conftest.$ac_objext' 4205 { (eval echo "$as_me:4205: \"$ac_try\"") >&5 4206 (eval $ac_try) 2>&5 4207 ac_status=$? 4208 echo "$as_me:4208: \$? = $ac_status" >&5 4209 (exit $ac_status); }; }; then 4210 ac_cv_prog_cc_stdc=$ac_arg 4211break 4212else 4213 echo "$as_me: failed program was:" >&5 4214cat conftest.$ac_ext >&5 4215fi 4216rm -f conftest.$ac_objext 4217done 4218rm -f conftest.$ac_ext conftest.$ac_objext 4219CC=$ac_save_CC 4220 4221fi 4222 4223case "x$ac_cv_prog_cc_stdc" in 4224 x|xno) 4225 echo "$as_me:4225: result: none needed" >&5 4226echo "${ECHO_T}none needed" >&6 ;; 4227 *) 4228 echo "$as_me:4228: result: $ac_cv_prog_cc_stdc" >&5 4229echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4230 CC="$CC $ac_cv_prog_cc_stdc" ;; 4231esac 4232 4233echo "$as_me:4233: checking for an ANSI C-conforming const" >&5 4234echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4235if test "${ac_cv_c_const+set}" = set; then 4236 echo $ECHO_N "(cached) $ECHO_C" >&6 4237else 4238 cat >conftest.$ac_ext <<_ACEOF 4239#line 4239 "configure" 4240#include "confdefs.h" 4241 4242int 4243main () 4244{ 4245/* FIXME: Include the comments suggested by Paul. */ 4246#ifndef __cplusplus 4247 /* Ultrix mips cc rejects this. */ 4248 typedef int charset[2]; 4249 const charset x; 4250 /* SunOS 4.1.1 cc rejects this. */ 4251 char const *const *ccp; 4252 char **p; 4253 /* NEC SVR4.0.2 mips cc rejects this. */ 4254 struct point {int x, y;}; 4255 static struct point const zero = {0,0}; 4256 /* AIX XL C 1.02.0.0 rejects this. 4257 It does not let you subtract one const X* pointer from another in 4258 an arm of an if-expression whose if-part is not a constant 4259 expression */ 4260 const char *g = "string"; 4261 ccp = &g + (g ? g-g : 0); 4262 /* HPUX 7.0 cc rejects these. */ 4263 ++ccp; 4264 p = (char**) ccp; 4265 ccp = (char const *const *) p; 4266 { /* SCO 3.2v4 cc rejects this. */ 4267 char *t; 4268 char const *s = 0 ? (char *) 0 : (char const *) 0; 4269 4270 *t++ = 0; 4271 } 4272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4273 int x[] = {25, 17}; 4274 const int *foo = &x[0]; 4275 ++foo; 4276 } 4277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4278 typedef const int *iptr; 4279 iptr p = 0; 4280 ++p; 4281 } 4282 { /* AIX XL C 1.02.0.0 rejects this saying 4283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4284 struct s { int j; const int *ap[3]; }; 4285 struct s *b; b->j = 5; 4286 } 4287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4288 const int foo = 10; 4289 } 4290#endif 4291 4292 ; 4293 return 0; 4294} 4295_ACEOF 4296rm -f conftest.$ac_objext 4297if { (eval echo "$as_me:4297: \"$ac_compile\"") >&5 4298 (eval $ac_compile) 2>&5 4299 ac_status=$? 4300 echo "$as_me:4300: \$? = $ac_status" >&5 4301 (exit $ac_status); } && 4302 { ac_try='test -s conftest.$ac_objext' 4303 { (eval echo "$as_me:4303: \"$ac_try\"") >&5 4304 (eval $ac_try) 2>&5 4305 ac_status=$? 4306 echo "$as_me:4306: \$? = $ac_status" >&5 4307 (exit $ac_status); }; }; then 4308 ac_cv_c_const=yes 4309else 4310 echo "$as_me: failed program was:" >&5 4311cat conftest.$ac_ext >&5 4312ac_cv_c_const=no 4313fi 4314rm -f conftest.$ac_objext conftest.$ac_ext 4315fi 4316echo "$as_me:4316: result: $ac_cv_c_const" >&5 4317echo "${ECHO_T}$ac_cv_c_const" >&6 4318if test $ac_cv_c_const = no; then 4319 4320cat >>confdefs.h <<\EOF 4321#define const 4322EOF 4323 4324fi 4325 4326for ac_func in strstr mkstemp 4327do 4328as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4329echo "$as_me:4329: checking for $ac_func" >&5 4330echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4331if eval "test \"\${$as_ac_var+set}\" = set"; then 4332 echo $ECHO_N "(cached) $ECHO_C" >&6 4333else 4334 cat >conftest.$ac_ext <<_ACEOF 4335#line 4335 "configure" 4336#include "confdefs.h" 4337/* System header to define __stub macros and hopefully few prototypes, 4338 which can conflict with char $ac_func (); below. */ 4339#include <assert.h> 4340/* Override any gcc2 internal prototype to avoid an error. */ 4341#ifdef __cplusplus 4342extern "C" 4343#endif 4344/* We use char because int might match the return type of a gcc2 4345 builtin and then its argument prototype would still apply. */ 4346char $ac_func (); 4347char (*f) (); 4348 4349int 4350main () 4351{ 4352/* The GNU C library defines this for functions which it implements 4353 to always fail with ENOSYS. Some functions are actually named 4354 something starting with __ and the normal name is an alias. */ 4355#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4356choke me 4357#else 4358f = $ac_func; 4359#endif 4360 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365rm -f conftest.$ac_objext conftest$ac_exeext 4366if { (eval echo "$as_me:4366: \"$ac_link\"") >&5 4367 (eval $ac_link) 2>&5 4368 ac_status=$? 4369 echo "$as_me:4369: \$? = $ac_status" >&5 4370 (exit $ac_status); } && 4371 { ac_try='test -s conftest$ac_exeext' 4372 { (eval echo "$as_me:4372: \"$ac_try\"") >&5 4373 (eval $ac_try) 2>&5 4374 ac_status=$? 4375 echo "$as_me:4375: \$? = $ac_status" >&5 4376 (exit $ac_status); }; }; then 4377 eval "$as_ac_var=yes" 4378else 4379 echo "$as_me: failed program was:" >&5 4380cat conftest.$ac_ext >&5 4381eval "$as_ac_var=no" 4382fi 4383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4384fi 4385echo "$as_me:4385: result: `eval echo '${'$as_ac_var'}'`" >&5 4386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4387if test `eval echo '${'$as_ac_var'}'` = yes; then 4388 cat >>confdefs.h <<EOF 4389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4390EOF 4391 4392fi 4393done 4394 4395CPPFLAGS="$CPPFLAGS $CPPFLAGSA" 4396 4397ac_config_files="$ac_config_files Makefile lua/Makefile lua/include/Makefile lua/src/Makefile lua/src/lib/Makefile nebu/Makefile nebu/include/Makefile nebu/include/audio/Makefile nebu/include/base/Makefile nebu/include/filesystem/Makefile nebu/include/input/Makefile nebu/include/scripting/Makefile nebu/include/video/Makefile nebu/base/Makefile nebu/filesystem/Makefile nebu/scripting/Makefile nebu/input/Makefile nebu/video/Makefile nebu/audio/Makefile src/Makefile src/include/Makefile src/include/audio/Makefile src/include/base/Makefile src/include/configuration/Makefile src/include/filesystem/Makefile src/include/game/Makefile src/include/input/Makefile src/include/scripting/Makefile src/include/video/Makefile src/base/Makefile src/filesystem/Makefile src/configuration/Makefile src/audio/Makefile src/video/Makefile src/input/Makefile src/game/Makefile art/Makefile art/default/Makefile data/Makefile music/Makefile scripts/Makefile" 4398cat >confcache <<\_ACEOF 4399# This file is a shell script that caches the results of configure 4400# tests run on this system so they can be shared between configure 4401# scripts and configure runs, see configure's option --config-cache. 4402# It is not useful on other systems. If it contains results you don't 4403# want to keep, you may remove or edit it. 4404# 4405# config.status only pays attention to the cache file if you give it 4406# the --recheck option to rerun configure. 4407# 4408# `ac_cv_env_foo' variables (set or unset) will be overriden when 4409# loading this file, other *unset* `ac_cv_foo' will be assigned the 4410# following values. 4411 4412_ACEOF 4413 4414# The following way of writing the cache mishandles newlines in values, 4415# but we know of no workaround that is simple, portable, and efficient. 4416# So, don't put newlines in cache variables' values. 4417# Ultrix sh set writes to stderr and can't be redirected directly, 4418# and sets the high bit in the cache file unless we assign to the vars. 4419{ 4420 (set) 2>&1 | 4421 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4422 *ac_space=\ *) 4423 # `set' does not quote correctly, so add quotes (double-quote 4424 # substitution turns \\\\ into \\, and sed turns \\ into \). 4425 sed -n \ 4426 "s/'/'\\\\''/g; 4427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4428 ;; 4429 *) 4430 # `set' quotes correctly as required by POSIX, so do not add quotes. 4431 sed -n \ 4432 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4433 ;; 4434 esac; 4435} | 4436 sed ' 4437 t clear 4438 : clear 4439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4440 t end 4441 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4442 : end' >>confcache 4443if cmp -s $cache_file confcache; then :; else 4444 if test -w $cache_file; then 4445 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4446 cat confcache >$cache_file 4447 else 4448 echo "not updating unwritable cache $cache_file" 4449 fi 4450fi 4451rm -f confcache 4452 4453test "x$prefix" = xNONE && prefix=$ac_default_prefix 4454# Let make expand exec_prefix. 4455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4456 4457# VPATH may cause trouble with some makes, so we remove $(srcdir), 4458# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4459# trailing colons and then remove the whole line if VPATH becomes empty 4460# (actually we leave an empty line to preserve line numbers). 4461if test "x$srcdir" = x.; then 4462 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4463s/:*\$(srcdir):*/:/; 4464s/:*\${srcdir}:*/:/; 4465s/:*@srcdir@:*/:/; 4466s/^\([^=]*=[ ]*\):*/\1/; 4467s/:*$//; 4468s/^[^=]*=[ ]*$//; 4469}' 4470fi 4471 4472# Transform confdefs.h into DEFS. 4473# Protect against shell expansion while executing Makefile rules. 4474# Protect against Makefile macro expansion. 4475# 4476# If the first sed substitution is executed (which looks for macros that 4477# take arguments), then we branch to the quote section. Otherwise, 4478# look for a macro that doesn't take arguments. 4479cat >confdef2opt.sed <<\EOF 4480t clear 4481: clear 4482s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 4483t quote 4484s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 4485t quote 4486d 4487: quote 4488s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 4489s,\[,\\&,g 4490s,\],\\&,g 4491s,\$,$$,g 4492p 4493EOF 4494# We use echo to avoid assuming a particular line-breaking character. 4495# The extra dot is to prevent the shell from consuming trailing 4496# line-breaks from the sub-command output. A line-break within 4497# single-quotes doesn't work because, if this script is created in a 4498# platform that uses two characters for line-breaks (e.g., DOS), tr 4499# would break. 4500ac_LF_and_DOT=`echo; echo .` 4501DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 4502rm -f confdef2opt.sed 4503 4504: ${CONFIG_STATUS=./config.status} 4505ac_clean_files_save=$ac_clean_files 4506ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4507{ echo "$as_me:4507: creating $CONFIG_STATUS" >&5 4508echo "$as_me: creating $CONFIG_STATUS" >&6;} 4509cat >$CONFIG_STATUS <<_ACEOF 4510#! $SHELL 4511# Generated automatically by configure. 4512# Run this file to recreate the current configuration. 4513# Compiler output produced by configure, useful for debugging 4514# configure, is in config.log if it exists. 4515 4516debug=false 4517SHELL=\${CONFIG_SHELL-$SHELL} 4518ac_cs_invocation="\$0 \$@" 4519 4520_ACEOF 4521 4522cat >>$CONFIG_STATUS <<\_ACEOF 4523# Be Bourne compatible 4524if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4525 emulate sh 4526 NULLCMD=: 4527elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4528 set -o posix 4529fi 4530 4531# Name of the executable. 4532as_me=`echo "$0" |sed 's,.*[\\/],,'` 4533 4534if expr a : '\(a\)' >/dev/null 2>&1; then 4535 as_expr=expr 4536else 4537 as_expr=false 4538fi 4539 4540rm -f conf$$ conf$$.exe conf$$.file 4541echo >conf$$.file 4542if ln -s conf$$.file conf$$ 2>/dev/null; then 4543 # We could just check for DJGPP; but this test a) works b) is more generic 4544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4545 if test -f conf$$.exe; then 4546 # Don't use ln at all; we don't have any links 4547 as_ln_s='cp -p' 4548 else 4549 as_ln_s='ln -s' 4550 fi 4551elif ln conf$$.file conf$$ 2>/dev/null; then 4552 as_ln_s=ln 4553else 4554 as_ln_s='cp -p' 4555fi 4556rm -f conf$$ conf$$.exe conf$$.file 4557 4558as_executable_p="test -f" 4559 4560# Support unset when possible. 4561if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4562 as_unset=unset 4563else 4564 as_unset=false 4565fi 4566 4567# NLS nuisances. 4568$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4569$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4570$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4571$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4572$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4573$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4574$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4575$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 4576 4577# IFS 4578# We need space, tab and new line, in precisely that order. 4579as_nl=' 4580' 4581IFS=" $as_nl" 4582 4583# CDPATH. 4584$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 4585 4586exec 6>&1 4587 4588_ACEOF 4589 4590# Files that config.status was made for. 4591if test -n "$ac_config_files"; then 4592 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4593fi 4594 4595if test -n "$ac_config_headers"; then 4596 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4597fi 4598 4599if test -n "$ac_config_links"; then 4600 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4601fi 4602 4603if test -n "$ac_config_commands"; then 4604 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4605fi 4606 4607cat >>$CONFIG_STATUS <<\EOF 4608 4609ac_cs_usage="\ 4610\`$as_me' instantiates files from templates according to the 4611current configuration. 4612 4613Usage: $0 [OPTIONS] [FILE]... 4614 4615 -h, --help print this help, then exit 4616 -V, --version print version number, then exit 4617 -d, --debug don't remove temporary files 4618 --recheck update $as_me by reconfiguring in the same conditions 4619 --file=FILE[:TEMPLATE] 4620 instantiate the configuration file FILE 4621 4622Configuration files: 4623$config_files 4624 4625Configuration commands: 4626$config_commands 4627 4628Report bugs to <bug-autoconf@gnu.org>." 4629EOF 4630 4631cat >>$CONFIG_STATUS <<EOF 4632ac_cs_version="\\ 4633config.status 4634configured by $0, generated by GNU Autoconf 2.52, 4635 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4636 4637Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4638Free Software Foundation, Inc. 4639This config.status script is free software; the Free Software Foundation 4640gives unlimited permission to copy, distribute and modify it." 4641srcdir=$srcdir 4642INSTALL="$INSTALL" 4643EOF 4644 4645cat >>$CONFIG_STATUS <<\EOF 4646# If no file are specified by the user, then we need to provide default 4647# value. By we need to know if files were specified by the user. 4648ac_need_defaults=: 4649while test $# != 0 4650do 4651 case $1 in 4652 --*=*) 4653 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4654 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4655 shift 4656 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 4657 shift 4658 ;; 4659 -*);; 4660 *) # This is not an option, so the user has probably given explicit 4661 # arguments. 4662 ac_need_defaults=false;; 4663 esac 4664 4665 case $1 in 4666 # Handling of the options. 4667EOF 4668cat >>$CONFIG_STATUS <<EOF 4669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4670 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 4671 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 4672EOF 4673cat >>$CONFIG_STATUS <<\EOF 4674 --version | --vers* | -V ) 4675 echo "$ac_cs_version"; exit 0 ;; 4676 --he | --h) 4677 # Conflict between --help and --header 4678 { { echo "$as_me:4678: error: ambiguous option: $1 4679Try \`$0 --help' for more information." >&5 4680echo "$as_me: error: ambiguous option: $1 4681Try \`$0 --help' for more information." >&2;} 4682 { (exit 1); exit 1; }; };; 4683 --help | --hel | -h ) 4684 echo "$ac_cs_usage"; exit 0 ;; 4685 --debug | --d* | -d ) 4686 debug=: ;; 4687 --file | --fil | --fi | --f ) 4688 shift 4689 CONFIG_FILES="$CONFIG_FILES $1" 4690 ac_need_defaults=false;; 4691 --header | --heade | --head | --hea ) 4692 shift 4693 CONFIG_HEADERS="$CONFIG_HEADERS $1" 4694 ac_need_defaults=false;; 4695 4696 # This is an error. 4697 -*) { { echo "$as_me:4697: error: unrecognized option: $1 4698Try \`$0 --help' for more information." >&5 4699echo "$as_me: error: unrecognized option: $1 4700Try \`$0 --help' for more information." >&2;} 4701 { (exit 1); exit 1; }; } ;; 4702 4703 *) ac_config_targets="$ac_config_targets $1" ;; 4704 4705 esac 4706 shift 4707done 4708 4709exec 5>>config.log 4710cat >&5 << _ACEOF 4711 4712## ----------------------- ## 4713## Running config.status. ## 4714## ----------------------- ## 4715 4716This file was extended by $as_me 2.52, executed with 4717 CONFIG_FILES = $CONFIG_FILES 4718 CONFIG_HEADERS = $CONFIG_HEADERS 4719 CONFIG_LINKS = $CONFIG_LINKS 4720 CONFIG_COMMANDS = $CONFIG_COMMANDS 4721 > $ac_cs_invocation 4722on `(hostname || uname -n) 2>/dev/null | sed 1q` 4723 4724_ACEOF 4725EOF 4726 4727cat >>$CONFIG_STATUS <<EOF 4728# 4729# INIT-COMMANDS section. 4730# 4731 4732AMDEP_TRUE="$AMDEP_TRUE" 4733ac_aux_dir="$ac_aux_dir" 4734 4735EOF 4736 4737cat >>$CONFIG_STATUS <<\EOF 4738for ac_config_target in $ac_config_targets 4739do 4740 case "$ac_config_target" in 4741 # Handling of arguments. 4742 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4743 "lua/Makefile" ) CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;; 4744 "lua/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES lua/include/Makefile" ;; 4745 "lua/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES lua/src/Makefile" ;; 4746 "lua/src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lua/src/lib/Makefile" ;; 4747 "nebu/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/Makefile" ;; 4748 "nebu/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/Makefile" ;; 4749 "nebu/include/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/audio/Makefile" ;; 4750 "nebu/include/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/base/Makefile" ;; 4751 "nebu/include/filesystem/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/filesystem/Makefile" ;; 4752 "nebu/include/input/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/input/Makefile" ;; 4753 "nebu/include/scripting/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/scripting/Makefile" ;; 4754 "nebu/include/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/include/video/Makefile" ;; 4755 "nebu/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/base/Makefile" ;; 4756 "nebu/filesystem/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/filesystem/Makefile" ;; 4757 "nebu/scripting/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/scripting/Makefile" ;; 4758 "nebu/input/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/input/Makefile" ;; 4759 "nebu/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/video/Makefile" ;; 4760 "nebu/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES nebu/audio/Makefile" ;; 4761 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 4762 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 4763 "src/include/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/audio/Makefile" ;; 4764 "src/include/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/base/Makefile" ;; 4765 "src/include/configuration/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/configuration/Makefile" ;; 4766 "src/include/filesystem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/filesystem/Makefile" ;; 4767 "src/include/game/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/game/Makefile" ;; 4768 "src/include/input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/input/Makefile" ;; 4769 "src/include/scripting/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/scripting/Makefile" ;; 4770 "src/include/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/video/Makefile" ;; 4771 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;; 4772 "src/filesystem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filesystem/Makefile" ;; 4773 "src/configuration/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/configuration/Makefile" ;; 4774 "src/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;; 4775 "src/video/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/video/Makefile" ;; 4776 "src/input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/input/Makefile" ;; 4777 "src/game/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/game/Makefile" ;; 4778 "art/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/Makefile" ;; 4779 "art/default/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/default/Makefile" ;; 4780 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 4781 "music/Makefile" ) CONFIG_FILES="$CONFIG_FILES music/Makefile" ;; 4782 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 4783 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 4784 *) { { echo "$as_me:4784: error: invalid argument: $ac_config_target" >&5 4785echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4786 { (exit 1); exit 1; }; };; 4787 esac 4788done 4789 4790# If the user did not use the arguments to specify the items to instantiate, 4791# then the envvar interface is used. Set only those that are not. 4792# We use the long form for the default assignment because of an extremely 4793# bizarre bug on SunOS 4.1.3. 4794if $ac_need_defaults; then 4795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 4797fi 4798 4799# Create a temporary directory, and hook for its removal unless debugging. 4800$debug || 4801{ 4802 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4803 trap '{ (exit 1); exit 1; }' 1 2 13 15 4804} 4805 4806# Create a (secure) tmp directory for tmp files. 4807: ${TMPDIR=/tmp} 4808{ 4809 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 4810 test -n "$tmp" && test -d "$tmp" 4811} || 4812{ 4813 tmp=$TMPDIR/cs$$-$RANDOM 4814 (umask 077 && mkdir $tmp) 4815} || 4816{ 4817 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 4818 { (exit 1); exit 1; } 4819} 4820 4821EOF 4822 4823cat >>$CONFIG_STATUS <<EOF 4824 4825# 4826# CONFIG_FILES section. 4827# 4828 4829# No need to generate the scripts if there are no CONFIG_FILES. 4830# This happens for instance when ./config.status config.h 4831if test -n "\$CONFIG_FILES"; then 4832 # Protect against being on the right side of a sed subst in config.status. 4833 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4834 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4835s,@SHELL@,$SHELL,;t t 4836s,@exec_prefix@,$exec_prefix,;t t 4837s,@prefix@,$prefix,;t t 4838s,@program_transform_name@,$program_transform_name,;t t 4839s,@bindir@,$bindir,;t t 4840s,@sbindir@,$sbindir,;t t 4841s,@libexecdir@,$libexecdir,;t t 4842s,@datadir@,$datadir,;t t 4843s,@sysconfdir@,$sysconfdir,;t t 4844s,@sharedstatedir@,$sharedstatedir,;t t 4845s,@localstatedir@,$localstatedir,;t t 4846s,@libdir@,$libdir,;t t 4847s,@includedir@,$includedir,;t t 4848s,@oldincludedir@,$oldincludedir,;t t 4849s,@infodir@,$infodir,;t t 4850s,@mandir@,$mandir,;t t 4851s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4852s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4853s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4854s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4855s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4856s,@build_alias@,$build_alias,;t t 4857s,@host_alias@,$host_alias,;t t 4858s,@target_alias@,$target_alias,;t t 4859s,@ECHO_C@,$ECHO_C,;t t 4860s,@ECHO_N@,$ECHO_N,;t t 4861s,@ECHO_T@,$ECHO_T,;t t 4862s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4863s,@DEFS@,$DEFS,;t t 4864s,@LIBS@,$LIBS,;t t 4865s,@build@,$build,;t t 4866s,@build_cpu@,$build_cpu,;t t 4867s,@build_vendor@,$build_vendor,;t t 4868s,@build_os@,$build_os,;t t 4869s,@host@,$host,;t t 4870s,@host_cpu@,$host_cpu,;t t 4871s,@host_vendor@,$host_vendor,;t t 4872s,@host_os@,$host_os,;t t 4873s,@target@,$target,;t t 4874s,@target_cpu@,$target_cpu,;t t 4875s,@target_vendor@,$target_vendor,;t t 4876s,@target_os@,$target_os,;t t 4877s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 4878s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 4879s,@INSTALL_DATA@,$INSTALL_DATA,;t t 4880s,@PACKAGE@,$PACKAGE,;t t 4881s,@VERSION@,$VERSION,;t t 4882s,@EXEEXT@,$EXEEXT,;t t 4883s,@OBJEXT@,$OBJEXT,;t t 4884s,@ACLOCAL@,$ACLOCAL,;t t 4885s,@AUTOCONF@,$AUTOCONF,;t t 4886s,@AUTOMAKE@,$AUTOMAKE,;t t 4887s,@AUTOHEADER@,$AUTOHEADER,;t t 4888s,@MAKEINFO@,$MAKEINFO,;t t 4889s,@AMTAR@,$AMTAR,;t t 4890s,@install_sh@,$install_sh,;t t 4891s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 4892s,@AWK@,$AWK,;t t 4893s,@SET_MAKE@,$SET_MAKE,;t t 4894s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 4895s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 4896s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 4897s,@DEPDIR@,$DEPDIR,;t t 4898s,@CC@,$CC,;t t 4899s,@CFLAGS@,$CFLAGS,;t t 4900s,@LDFLAGS@,$LDFLAGS,;t t 4901s,@CPPFLAGS@,$CPPFLAGS,;t t 4902s,@ac_ct_CC@,$ac_ct_CC,;t t 4903s,@am__include@,$am__include,;t t 4904s,@am__quote@,$am__quote,;t t 4905s,@CCDEPMODE@,$CCDEPMODE,;t t 4906s,@CXX@,$CXX,;t t 4907s,@CXXFLAGS@,$CXXFLAGS,;t t 4908s,@ac_ct_CXX@,$ac_ct_CXX,;t t 4909s,@CXXDEPMODE@,$CXXDEPMODE,;t t 4910s,@CPP@,$CPP,;t t 4911s,@RANLIB@,$RANLIB,;t t 4912s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 4913s,@SDL_CONFIG@,$SDL_CONFIG,;t t 4914s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 4915s,@SDL_LIBS@,$SDL_LIBS,;t t 4916s,@SOUND_OBJS@,$SOUND_OBJS,;t t 4917s,@NETWORK_OBJS@,$NETWORK_OBJS,;t t 4918CEOF 4919 4920EOF 4921 4922 cat >>$CONFIG_STATUS <<\EOF 4923 # Split the substitutions into bite-sized pieces for seds with 4924 # small command number limits, like on Digital OSF/1 and HP-UX. 4925 ac_max_sed_lines=48 4926 ac_sed_frag=1 # Number of current file. 4927 ac_beg=1 # First line for current file. 4928 ac_end=$ac_max_sed_lines # Line after last line for current file. 4929 ac_more_lines=: 4930 ac_sed_cmds= 4931 while $ac_more_lines; do 4932 if test $ac_beg -gt 1; then 4933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4934 else 4935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4936 fi 4937 if test ! -s $tmp/subs.frag; then 4938 ac_more_lines=false 4939 else 4940 # The purpose of the label and of the branching condition is to 4941 # speed up the sed processing (if there are no `@' at all, there 4942 # is no need to browse any of the substitutions). 4943 # These are the two extra sed commands mentioned above. 4944 (echo ':t 4945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4946 if test -z "$ac_sed_cmds"; then 4947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4948 else 4949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4950 fi 4951 ac_sed_frag=`expr $ac_sed_frag + 1` 4952 ac_beg=$ac_end 4953 ac_end=`expr $ac_end + $ac_max_sed_lines` 4954 fi 4955 done 4956 if test -z "$ac_sed_cmds"; then 4957 ac_sed_cmds=cat 4958 fi 4959fi # test -n "$CONFIG_FILES" 4960 4961EOF 4962cat >>$CONFIG_STATUS <<\EOF 4963for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4965 case $ac_file in 4966 - | *:- | *:-:* ) # input from stdin 4967 cat >$tmp/stdin 4968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4972 * ) ac_file_in=$ac_file.in ;; 4973 esac 4974 4975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4976 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4977 X"$ac_file" : 'X\(//\)[^/]' \| \ 4978 X"$ac_file" : 'X\(//\)$' \| \ 4979 X"$ac_file" : 'X\(/\)' \| \ 4980 . : '\(.\)' 2>/dev/null || 4981echo X"$ac_file" | 4982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4983 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4984 /^X\(\/\/\)$/{ s//\1/; q; } 4985 /^X\(\/\).*/{ s//\1/; q; } 4986 s/.*/./; q'` 4987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4988 { case "$ac_dir" in 4989 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 4990 *) as_incr_dir=.;; 4991esac 4992as_dummy="$ac_dir" 4993for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 4994 case $as_mkdir_dir in 4995 # Skip DOS drivespec 4996 ?:) as_incr_dir=$as_mkdir_dir ;; 4997 *) 4998 as_incr_dir=$as_incr_dir/$as_mkdir_dir 4999 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5000 ;; 5001 esac 5002done; } 5003 5004 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5005 # A "../" for each directory in $ac_dir_suffix. 5006 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5007 else 5008 ac_dir_suffix= ac_dots= 5009 fi 5010 5011 case $srcdir in 5012 .) ac_srcdir=. 5013 if test -z "$ac_dots"; then 5014 ac_top_srcdir=. 5015 else 5016 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5017 fi ;; 5018 [\\/]* | ?:[\\/]* ) 5019 ac_srcdir=$srcdir$ac_dir_suffix; 5020 ac_top_srcdir=$srcdir ;; 5021 *) # Relative path. 5022 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5023 ac_top_srcdir=$ac_dots$srcdir ;; 5024 esac 5025 5026 case $INSTALL in 5027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5028 *) ac_INSTALL=$ac_dots$INSTALL ;; 5029 esac 5030 5031 if test x"$ac_file" != x-; then 5032 { echo "$as_me:5032: creating $ac_file" >&5 5033echo "$as_me: creating $ac_file" >&6;} 5034 rm -f "$ac_file" 5035 fi 5036 # Let's still pretend it is `configure' which instantiates (i.e., don't 5037 # use $as_me), people would be surprised to read: 5038 # /* config.h. Generated automatically by config.status. */ 5039 configure_input="Generated automatically from `echo $ac_file_in | 5040 sed 's,.*/,,'` by configure." 5041 5042 # First look for the input files in the build tree, otherwise in the 5043 # src tree. 5044 ac_file_inputs=`IFS=: 5045 for f in $ac_file_in; do 5046 case $f in 5047 -) echo $tmp/stdin ;; 5048 [\\/$]*) 5049 # Absolute (can't be DOS-style, as IFS=:) 5050 test -f "$f" || { { echo "$as_me:5050: error: cannot find input file: $f" >&5 5051echo "$as_me: error: cannot find input file: $f" >&2;} 5052 { (exit 1); exit 1; }; } 5053 echo $f;; 5054 *) # Relative 5055 if test -f "$f"; then 5056 # Build tree 5057 echo $f 5058 elif test -f "$srcdir/$f"; then 5059 # Source tree 5060 echo $srcdir/$f 5061 else 5062 # /dev/null tree 5063 { { echo "$as_me:5063: error: cannot find input file: $f" >&5 5064echo "$as_me: error: cannot find input file: $f" >&2;} 5065 { (exit 1); exit 1; }; } 5066 fi;; 5067 esac 5068 done` || { (exit 1); exit 1; } 5069EOF 5070cat >>$CONFIG_STATUS <<EOF 5071 sed "$ac_vpsub 5072$extrasub 5073EOF 5074cat >>$CONFIG_STATUS <<\EOF 5075:t 5076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5077s,@configure_input@,$configure_input,;t t 5078s,@srcdir@,$ac_srcdir,;t t 5079s,@top_srcdir@,$ac_top_srcdir,;t t 5080s,@INSTALL@,$ac_INSTALL,;t t 5081" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5082 rm -f $tmp/stdin 5083 if test x"$ac_file" != x-; then 5084 mv $tmp/out $ac_file 5085 else 5086 cat $tmp/out 5087 rm -f $tmp/out 5088 fi 5089 5090done 5091EOF 5092cat >>$CONFIG_STATUS <<\EOF 5093 5094# 5095# CONFIG_COMMANDS section. 5096# 5097for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5098 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5099 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5100 5101 case $ac_dest in 5102 default-1 ) 5103test x"$AMDEP_TRUE" != x"" || 5104for mf in $CONFIG_FILES; do 5105 case "$mf" in 5106 Makefile) dirpart=.;; 5107 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 5108 *) continue;; 5109 esac 5110 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 5111 # Extract the definition of DEP_FILES from the Makefile without 5112 # running `make'. 5113 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 5114 test -z "$DEPDIR" && continue 5115 # When using ansi2knr, U may be empty or an underscore; expand it 5116 U=`sed -n -e '/^U = / s///p' < "$mf"` 5117 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 5118 # We invoke sed twice because it is the simplest approach to 5119 # changing $(DEPDIR) to its actual value in the expansion. 5120 for file in `sed -n -e ' 5121 /^DEP_FILES = .*\\\\$/ { 5122 s/^DEP_FILES = // 5123 :loop 5124 s/\\\\$// 5125 p 5126 n 5127 /\\\\$/ b loop 5128 p 5129 } 5130 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 5131 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 5132 # Make sure the directory exists. 5133 test -f "$dirpart/$file" && continue 5134 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 5135 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 5136 # echo "creating $dirpart/$file" 5137 echo '# dummy' > "$dirpart/$file" 5138 done 5139done 5140 ;; 5141 esac 5142done 5143EOF 5144 5145cat >>$CONFIG_STATUS <<\EOF 5146 5147{ (exit 0); exit 0; } 5148EOF 5149chmod +x $CONFIG_STATUS 5150ac_clean_files=$ac_clean_files_save 5151 5152# configure is writing to config.log, and then calls config.status. 5153# config.status does its own redirection, appending to config.log. 5154# Unfortunately, on DOS this fails, as config.log is still kept open 5155# by configure, so config.status won't be able to write to it; its 5156# output is simply discarded. So we exec the FD to /dev/null, 5157# effectively closing config.log, so it can be properly (re)opened and 5158# appended to by config.status. When coming back to configure, we 5159# need to make the FD available again. 5160if test "$no_create" != yes; then 5161 ac_cs_success=: 5162 exec 5>/dev/null 5163 $SHELL $CONFIG_STATUS || ac_cs_success=false 5164 exec 5>>config.log 5165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5166 # would make configure fail if this is the last instruction. 5167 $ac_cs_success || { (exit 1); exit 1; } 5168fi 5169 5170