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