1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="src/cpu.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SDL_CONFIG CPP EGREP LIBOBJS NATIVE_GETOPT_LONG_TRUE NATIVE_GETOPT_LONG_FALSE LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838_ACEOF 839fi 840 841if test -n "$ac_init_help"; then 842 843 cat <<\_ACEOF 844 845Optional Features: 846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 848 --enable-gl enable opengl support 849 --enable-big-endian Force Big Endian 850 851Some influential environment variables: 852 CC C compiler command 853 CFLAGS C compiler flags 854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 855 nonstandard directory <lib dir> 856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 857 headers in a nonstandard directory <include dir> 858 CPP C preprocessor 859 860Use these variables to override the choices made by `configure' or to help 861it to find libraries and programs with nonstandard names/locations. 862 863_ACEOF 864fi 865 866if test "$ac_init_help" = "recursive"; then 867 # If there are subdirs, report their specific --help. 868 ac_popdir=`pwd` 869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 870 test -d $ac_dir || continue 871 ac_builddir=. 872 873if test "$ac_dir" != .; then 874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 875 # A "../" for each directory in $ac_dir_suffix. 876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 877else 878 ac_dir_suffix= ac_top_builddir= 879fi 880 881case $srcdir in 882 .) # No --srcdir option. We are building in place. 883 ac_srcdir=. 884 if test -z "$ac_top_builddir"; then 885 ac_top_srcdir=. 886 else 887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 888 fi ;; 889 [\\/]* | ?:[\\/]* ) # Absolute path. 890 ac_srcdir=$srcdir$ac_dir_suffix; 891 ac_top_srcdir=$srcdir ;; 892 *) # Relative path. 893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 894 ac_top_srcdir=$ac_top_builddir$srcdir ;; 895esac 896 897# Do not use `cd foo && pwd` to compute absolute paths, because 898# the directories may not exist. 899case `pwd` in 900.) ac_abs_builddir="$ac_dir";; 901*) 902 case "$ac_dir" in 903 .) ac_abs_builddir=`pwd`;; 904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 905 *) ac_abs_builddir=`pwd`/"$ac_dir";; 906 esac;; 907esac 908case $ac_abs_builddir in 909.) ac_abs_top_builddir=${ac_top_builddir}.;; 910*) 911 case ${ac_top_builddir}. in 912 .) ac_abs_top_builddir=$ac_abs_builddir;; 913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 915 esac;; 916esac 917case $ac_abs_builddir in 918.) ac_abs_srcdir=$ac_srcdir;; 919*) 920 case $ac_srcdir in 921 .) ac_abs_srcdir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 924 esac;; 925esac 926case $ac_abs_builddir in 927.) ac_abs_top_srcdir=$ac_top_srcdir;; 928*) 929 case $ac_top_srcdir in 930 .) ac_abs_top_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 933 esac;; 934esac 935 936 cd $ac_dir 937 # Check for guested configure; otherwise get Cygnus style configure. 938 if test -f $ac_srcdir/configure.gnu; then 939 echo 940 $SHELL $ac_srcdir/configure.gnu --help=recursive 941 elif test -f $ac_srcdir/configure; then 942 echo 943 $SHELL $ac_srcdir/configure --help=recursive 944 elif test -f $ac_srcdir/configure.ac || 945 test -f $ac_srcdir/configure.in; then 946 echo 947 $ac_configure --help 948 else 949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 950 fi 951 cd "$ac_popdir" 952 done 953fi 954 955test -n "$ac_init_help" && exit 0 956if $ac_init_version; then 957 cat <<\_ACEOF 958 959Copyright (C) 2003 Free Software Foundation, Inc. 960This configure script is free software; the Free Software Foundation 961gives unlimited permission to copy, distribute and modify it. 962_ACEOF 963 exit 0 964fi 965exec 5>config.log 966cat >&5 <<_ACEOF 967This file contains any messages produced by compilers while 968running configure, to aid debugging if configure makes a mistake. 969 970It was created by $as_me, which was 971generated by GNU Autoconf 2.59. Invocation command line was 972 973 $ $0 $@ 974 975_ACEOF 976{ 977cat <<_ASUNAME 978## --------- ## 979## Platform. ## 980## --------- ## 981 982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 983uname -m = `(uname -m) 2>/dev/null || echo unknown` 984uname -r = `(uname -r) 2>/dev/null || echo unknown` 985uname -s = `(uname -s) 2>/dev/null || echo unknown` 986uname -v = `(uname -v) 2>/dev/null || echo unknown` 987 988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 989/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 990 991/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 992/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 994hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 995/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 996/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 997/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 998 999_ASUNAME 1000 1001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1002for as_dir in $PATH 1003do 1004 IFS=$as_save_IFS 1005 test -z "$as_dir" && as_dir=. 1006 echo "PATH: $as_dir" 1007done 1008 1009} >&5 1010 1011cat >&5 <<_ACEOF 1012 1013 1014## ----------- ## 1015## Core tests. ## 1016## ----------- ## 1017 1018_ACEOF 1019 1020 1021# Keep a trace of the command line. 1022# Strip out --no-create and --no-recursion so they do not pile up. 1023# Strip out --silent because we don't want to record it for future runs. 1024# Also quote any args containing shell meta-characters. 1025# Make two passes to allow for proper duplicate-argument suppression. 1026ac_configure_args= 1027ac_configure_args0= 1028ac_configure_args1= 1029ac_sep= 1030ac_must_keep_next=false 1031for ac_pass in 1 2 1032do 1033 for ac_arg 1034 do 1035 case $ac_arg in 1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 continue ;; 1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1042 esac 1043 case $ac_pass in 1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1045 2) 1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1047 if test $ac_must_keep_next = true; then 1048 ac_must_keep_next=false # Got value, back to normal. 1049 else 1050 case $ac_arg in 1051 *=* | --config-cache | -C | -disable-* | --disable-* \ 1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1054 | -with-* | --with-* | -without-* | --without-* | --x) 1055 case "$ac_configure_args0 " in 1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1057 esac 1058 ;; 1059 -* ) ac_must_keep_next=true ;; 1060 esac 1061 fi 1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1063 # Get rid of the leading space. 1064 ac_sep=" " 1065 ;; 1066 esac 1067 done 1068done 1069$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1070$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1071 1072# When interrupted or exit'd, cleanup temporary files, and complete 1073# config.log. We remove comments because anyway the quotes in there 1074# would cause problems or look ugly. 1075# WARNING: Be sure not to use single quotes in there, as some shells, 1076# such as our DU 5.0 friend, will then `close' the trap. 1077trap 'exit_status=$? 1078 # Save into config.log some information that might help in debugging. 1079 { 1080 echo 1081 1082 cat <<\_ASBOX 1083## ---------------- ## 1084## Cache variables. ## 1085## ---------------- ## 1086_ASBOX 1087 echo 1088 # The following way of writing the cache mishandles newlines in values, 1089{ 1090 (set) 2>&1 | 1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1092 *ac_space=\ *) 1093 sed -n \ 1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1096 ;; 1097 *) 1098 sed -n \ 1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1100 ;; 1101 esac; 1102} 1103 echo 1104 1105 cat <<\_ASBOX 1106## ----------------- ## 1107## Output variables. ## 1108## ----------------- ## 1109_ASBOX 1110 echo 1111 for ac_var in $ac_subst_vars 1112 do 1113 eval ac_val=$`echo $ac_var` 1114 echo "$ac_var='"'"'$ac_val'"'"'" 1115 done | sort 1116 echo 1117 1118 if test -n "$ac_subst_files"; then 1119 cat <<\_ASBOX 1120## ------------- ## 1121## Output files. ## 1122## ------------- ## 1123_ASBOX 1124 echo 1125 for ac_var in $ac_subst_files 1126 do 1127 eval ac_val=$`echo $ac_var` 1128 echo "$ac_var='"'"'$ac_val'"'"'" 1129 done | sort 1130 echo 1131 fi 1132 1133 if test -s confdefs.h; then 1134 cat <<\_ASBOX 1135## ----------- ## 1136## confdefs.h. ## 1137## ----------- ## 1138_ASBOX 1139 echo 1140 sed "/^$/d" confdefs.h | sort 1141 echo 1142 fi 1143 test "$ac_signal" != 0 && 1144 echo "$as_me: caught signal $ac_signal" 1145 echo "$as_me: exit $exit_status" 1146 } >&5 1147 rm -f core *.core && 1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1149 exit $exit_status 1150 ' 0 1151for ac_signal in 1 2 13 15; do 1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1153done 1154ac_signal=0 1155 1156# confdefs.h avoids OS command line length limits that DEFS can exceed. 1157rm -rf conftest* confdefs.h 1158# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1159echo >confdefs.h 1160 1161# Predefined preprocessor variables. 1162 1163cat >>confdefs.h <<_ACEOF 1164#define PACKAGE_NAME "$PACKAGE_NAME" 1165_ACEOF 1166 1167 1168cat >>confdefs.h <<_ACEOF 1169#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1170_ACEOF 1171 1172 1173cat >>confdefs.h <<_ACEOF 1174#define PACKAGE_VERSION "$PACKAGE_VERSION" 1175_ACEOF 1176 1177 1178cat >>confdefs.h <<_ACEOF 1179#define PACKAGE_STRING "$PACKAGE_STRING" 1180_ACEOF 1181 1182 1183cat >>confdefs.h <<_ACEOF 1184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1185_ACEOF 1186 1187 1188# Let the site file select an alternate cache file if it wants to. 1189# Prefer explicitly selected file to automatically selected ones. 1190if test -z "$CONFIG_SITE"; then 1191 if test "x$prefix" != xNONE; then 1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1193 else 1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1195 fi 1196fi 1197for ac_site_file in $CONFIG_SITE; do 1198 if test -r "$ac_site_file"; then 1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1200echo "$as_me: loading site script $ac_site_file" >&6;} 1201 sed 's/^/| /' "$ac_site_file" >&5 1202 . "$ac_site_file" 1203 fi 1204done 1205 1206if test -r "$cache_file"; then 1207 # Some versions of bash will fail to source /dev/null (special 1208 # files actually), so we avoid doing that. 1209 if test -f "$cache_file"; then 1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1211echo "$as_me: loading cache $cache_file" >&6;} 1212 case $cache_file in 1213 [\\/]* | ?:[\\/]* ) . $cache_file;; 1214 *) . ./$cache_file;; 1215 esac 1216 fi 1217else 1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1219echo "$as_me: creating cache $cache_file" >&6;} 1220 >$cache_file 1221fi 1222 1223# Check that the precious variables saved in the cache have kept the same 1224# value. 1225ac_cache_corrupted=false 1226for ac_var in `(set) 2>&1 | 1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1229 eval ac_new_set=\$ac_env_${ac_var}_set 1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1231 eval ac_new_val="\$ac_env_${ac_var}_value" 1232 case $ac_old_set,$ac_new_set in 1233 set,) 1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1235echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1236 ac_cache_corrupted=: ;; 1237 ,set) 1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1239echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1240 ac_cache_corrupted=: ;; 1241 ,);; 1242 *) 1243 if test "x$ac_old_val" != "x$ac_new_val"; then 1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1245echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1247echo "$as_me: former value: $ac_old_val" >&2;} 1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1249echo "$as_me: current value: $ac_new_val" >&2;} 1250 ac_cache_corrupted=: 1251 fi;; 1252 esac 1253 # Pass precious variables to config.status. 1254 if test "$ac_new_set" = set; then 1255 case $ac_new_val in 1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1258 *) ac_arg=$ac_var=$ac_new_val ;; 1259 esac 1260 case " $ac_configure_args " in 1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1263 esac 1264 fi 1265done 1266if $ac_cache_corrupted; then 1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1268echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1270echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1271 { (exit 1); exit 1; }; } 1272fi 1273 1274ac_ext=c 1275ac_cpp='$CPP $CPPFLAGS' 1276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1278ac_compiler_gnu=$ac_cv_c_compiler_gnu 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 ac_config_headers="$ac_config_headers config.h" 1300 1301 ac_config_commands="$ac_config_commands default-1" 1302 1303am__api_version="1.4" 1304ac_aux_dir= 1305for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1306 if test -f $ac_dir/install-sh; then 1307 ac_aux_dir=$ac_dir 1308 ac_install_sh="$ac_aux_dir/install-sh -c" 1309 break 1310 elif test -f $ac_dir/install.sh; then 1311 ac_aux_dir=$ac_dir 1312 ac_install_sh="$ac_aux_dir/install.sh -c" 1313 break 1314 elif test -f $ac_dir/shtool; then 1315 ac_aux_dir=$ac_dir 1316 ac_install_sh="$ac_aux_dir/shtool install -c" 1317 break 1318 fi 1319done 1320if test -z "$ac_aux_dir"; then 1321 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1322echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1323 { (exit 1); exit 1; }; } 1324fi 1325ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1326ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1327ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1328 1329# Find a good install program. We prefer a C program (faster), 1330# so one script is as good as another. But avoid the broken or 1331# incompatible versions: 1332# SysV /etc/install, /usr/sbin/install 1333# SunOS /usr/etc/install 1334# IRIX /sbin/install 1335# AIX /bin/install 1336# AmigaOS /C/install, which installs bootblocks on floppy discs 1337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1338# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1340# OS/2's system install, which has a completely different semantic 1341# ./install, which can be erroneously created by make from ./install.sh. 1342echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1343echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1344if test -z "$INSTALL"; then 1345if test "${ac_cv_path_install+set}" = set; then 1346 echo $ECHO_N "(cached) $ECHO_C" >&6 1347else 1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1349for as_dir in $PATH 1350do 1351 IFS=$as_save_IFS 1352 test -z "$as_dir" && as_dir=. 1353 # Account for people who put trailing slashes in PATH elements. 1354case $as_dir/ in 1355 ./ | .// | /cC/* | \ 1356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1357 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1358 /usr/ucb/* ) ;; 1359 *) 1360 # OSF1 and SCO ODT 3.0 have their own names for install. 1361 # Don't use installbsd from OSF since it installs stuff as root 1362 # by default. 1363 for ac_prog in ginstall scoinst install; do 1364 for ac_exec_ext in '' $ac_executable_extensions; do 1365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1366 if test $ac_prog = install && 1367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1368 # AIX install. It has an incompatible calling convention. 1369 : 1370 elif test $ac_prog = install && 1371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1372 # program-specific install script used by HP pwplus--don't use. 1373 : 1374 else 1375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1376 break 3 1377 fi 1378 fi 1379 done 1380 done 1381 ;; 1382esac 1383done 1384 1385 1386fi 1387 if test "${ac_cv_path_install+set}" = set; then 1388 INSTALL=$ac_cv_path_install 1389 else 1390 # As a last resort, use the slow shell script. We don't cache a 1391 # path for INSTALL within a source directory, because that will 1392 # break other packages using the cache if that directory is 1393 # removed, or if the path is relative. 1394 INSTALL=$ac_install_sh 1395 fi 1396fi 1397echo "$as_me:$LINENO: result: $INSTALL" >&5 1398echo "${ECHO_T}$INSTALL" >&6 1399 1400# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1401# It thinks the first close brace ends the variable substitution. 1402test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1403 1404test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1405 1406test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1407 1408echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1409echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1410# Just in case 1411sleep 1 1412echo timestamp > conftestfile 1413# Do `set' in a subshell so we don't clobber the current shell's 1414# arguments. Must try -L first in case configure is actually a 1415# symlink; some systems play weird games with the mod time of symlinks 1416# (eg FreeBSD returns the mod time of the symlink's containing 1417# directory). 1418if ( 1419 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1420 if test "$*" = "X"; then 1421 # -L didn't work. 1422 set X `ls -t $srcdir/configure conftestfile` 1423 fi 1424 if test "$*" != "X $srcdir/configure conftestfile" \ 1425 && test "$*" != "X conftestfile $srcdir/configure"; then 1426 1427 # If neither matched, then we have a broken ls. This can happen 1428 # if, for instance, CONFIG_SHELL is bash and it inherits a 1429 # broken ls alias from the environment. This has actually 1430 # happened. Such a system could not be considered "sane". 1431 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1432alias in your environment" >&5 1433echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1434alias in your environment" >&2;} 1435 { (exit 1); exit 1; }; } 1436 fi 1437 1438 test "$2" = conftestfile 1439 ) 1440then 1441 # Ok. 1442 : 1443else 1444 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1445Check your system clock" >&5 1446echo "$as_me: error: newly created file is older than distributed files! 1447Check your system clock" >&2;} 1448 { (exit 1); exit 1; }; } 1449fi 1450rm -f conftest* 1451echo "$as_me:$LINENO: result: yes" >&5 1452echo "${ECHO_T}yes" >&6 1453test "$program_prefix" != NONE && 1454 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1455# Use a double $ so make ignores it. 1456test "$program_suffix" != NONE && 1457 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1458# Double any \ or $. echo might interpret backslashes. 1459# By default was `s,x,x', remove it if useless. 1460cat <<\_ACEOF >conftest.sed 1461s/[\\$]/&&/g;s/;s,x,x,$// 1462_ACEOF 1463program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1464rm conftest.sed 1465 1466echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1467echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1468set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1469if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1470 echo $ECHO_N "(cached) $ECHO_C" >&6 1471else 1472 cat >conftest.make <<\_ACEOF 1473all: 1474 @echo 'ac_maketemp="$(MAKE)"' 1475_ACEOF 1476# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1477eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1478if test -n "$ac_maketemp"; then 1479 eval ac_cv_prog_make_${ac_make}_set=yes 1480else 1481 eval ac_cv_prog_make_${ac_make}_set=no 1482fi 1483rm -f conftest.make 1484fi 1485if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1486 echo "$as_me:$LINENO: result: yes" >&5 1487echo "${ECHO_T}yes" >&6 1488 SET_MAKE= 1489else 1490 echo "$as_me:$LINENO: result: no" >&5 1491echo "${ECHO_T}no" >&6 1492 SET_MAKE="MAKE=${MAKE-make}" 1493fi 1494 1495 1496PACKAGE=gngb 1497 1498VERSION=20060309 1499 1500if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1501 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1502echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1503 { (exit 1); exit 1; }; } 1504fi 1505 1506cat >>confdefs.h <<_ACEOF 1507#define PACKAGE "$PACKAGE" 1508_ACEOF 1509 1510 1511cat >>confdefs.h <<_ACEOF 1512#define VERSION "$VERSION" 1513_ACEOF 1514 1515 1516 1517missing_dir=`cd $ac_aux_dir && pwd` 1518echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1519echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1520# Run test in a subshell; some versions of sh will print an error if 1521# an executable is not found, even if stderr is redirected. 1522# Redirect stdin to placate older versions of autoconf. Sigh. 1523if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1524 ACLOCAL=aclocal-${am__api_version} 1525 echo "$as_me:$LINENO: result: found" >&5 1526echo "${ECHO_T}found" >&6 1527else 1528 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1529 echo "$as_me:$LINENO: result: missing" >&5 1530echo "${ECHO_T}missing" >&6 1531fi 1532 1533echo "$as_me:$LINENO: checking for working autoconf" >&5 1534echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1535# Run test in a subshell; some versions of sh will print an error if 1536# an executable is not found, even if stderr is redirected. 1537# Redirect stdin to placate older versions of autoconf. Sigh. 1538if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1539 AUTOCONF=autoconf 1540 echo "$as_me:$LINENO: result: found" >&5 1541echo "${ECHO_T}found" >&6 1542else 1543 AUTOCONF="$missing_dir/missing autoconf" 1544 echo "$as_me:$LINENO: result: missing" >&5 1545echo "${ECHO_T}missing" >&6 1546fi 1547 1548echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1549echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 1550# Run test in a subshell; some versions of sh will print an error if 1551# an executable is not found, even if stderr is redirected. 1552# Redirect stdin to placate older versions of autoconf. Sigh. 1553if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1554 AUTOMAKE=automake-${am__api_version} 1555 echo "$as_me:$LINENO: result: found" >&5 1556echo "${ECHO_T}found" >&6 1557else 1558 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1559 echo "$as_me:$LINENO: result: missing" >&5 1560echo "${ECHO_T}missing" >&6 1561fi 1562 1563echo "$as_me:$LINENO: checking for working autoheader" >&5 1564echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1565# Run test in a subshell; some versions of sh will print an error if 1566# an executable is not found, even if stderr is redirected. 1567# Redirect stdin to placate older versions of autoconf. Sigh. 1568if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1569 AUTOHEADER=autoheader 1570 echo "$as_me:$LINENO: result: found" >&5 1571echo "${ECHO_T}found" >&6 1572else 1573 AUTOHEADER="$missing_dir/missing autoheader" 1574 echo "$as_me:$LINENO: result: missing" >&5 1575echo "${ECHO_T}missing" >&6 1576fi 1577 1578echo "$as_me:$LINENO: checking for working makeinfo" >&5 1579echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1580# Run test in a subshell; some versions of sh will print an error if 1581# an executable is not found, even if stderr is redirected. 1582# Redirect stdin to placate older versions of autoconf. Sigh. 1583if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1584 MAKEINFO=makeinfo 1585 echo "$as_me:$LINENO: result: found" >&5 1586echo "${ECHO_T}found" >&6 1587else 1588 MAKEINFO="$missing_dir/missing makeinfo" 1589 echo "$as_me:$LINENO: result: missing" >&5 1590echo "${ECHO_T}missing" >&6 1591fi 1592 1593 1594 1595 1596ac_ext=c 1597ac_cpp='$CPP $CPPFLAGS' 1598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1600ac_compiler_gnu=$ac_cv_c_compiler_gnu 1601 1602 1603MY_CFLAGS="$CFLAGS" 1604 1605OUTPUT="Makefile src/Makefile" 1606 1607ac_ext=c 1608ac_cpp='$CPP $CPPFLAGS' 1609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1611ac_compiler_gnu=$ac_cv_c_compiler_gnu 1612if test -n "$ac_tool_prefix"; then 1613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1614set dummy ${ac_tool_prefix}gcc; ac_word=$2 1615echo "$as_me:$LINENO: checking for $ac_word" >&5 1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1617if test "${ac_cv_prog_CC+set}" = set; then 1618 echo $ECHO_N "(cached) $ECHO_C" >&6 1619else 1620 if test -n "$CC"; then 1621 ac_cv_prog_CC="$CC" # Let the user override the test. 1622else 1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1624for as_dir in $PATH 1625do 1626 IFS=$as_save_IFS 1627 test -z "$as_dir" && as_dir=. 1628 for ac_exec_ext in '' $ac_executable_extensions; do 1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1630 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1632 break 2 1633 fi 1634done 1635done 1636 1637fi 1638fi 1639CC=$ac_cv_prog_CC 1640if test -n "$CC"; then 1641 echo "$as_me:$LINENO: result: $CC" >&5 1642echo "${ECHO_T}$CC" >&6 1643else 1644 echo "$as_me:$LINENO: result: no" >&5 1645echo "${ECHO_T}no" >&6 1646fi 1647 1648fi 1649if test -z "$ac_cv_prog_CC"; then 1650 ac_ct_CC=$CC 1651 # Extract the first word of "gcc", so it can be a program name with args. 1652set dummy gcc; ac_word=$2 1653echo "$as_me:$LINENO: checking for $ac_word" >&5 1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657else 1658 if test -n "$ac_ct_CC"; then 1659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1660else 1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1662for as_dir in $PATH 1663do 1664 IFS=$as_save_IFS 1665 test -z "$as_dir" && as_dir=. 1666 for ac_exec_ext in '' $ac_executable_extensions; do 1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1668 ac_cv_prog_ac_ct_CC="gcc" 1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1670 break 2 1671 fi 1672done 1673done 1674 1675fi 1676fi 1677ac_ct_CC=$ac_cv_prog_ac_ct_CC 1678if test -n "$ac_ct_CC"; then 1679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1680echo "${ECHO_T}$ac_ct_CC" >&6 1681else 1682 echo "$as_me:$LINENO: result: no" >&5 1683echo "${ECHO_T}no" >&6 1684fi 1685 1686 CC=$ac_ct_CC 1687else 1688 CC="$ac_cv_prog_CC" 1689fi 1690 1691if test -z "$CC"; then 1692 if test -n "$ac_tool_prefix"; then 1693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1694set dummy ${ac_tool_prefix}cc; ac_word=$2 1695echo "$as_me:$LINENO: checking for $ac_word" >&5 1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1697if test "${ac_cv_prog_CC+set}" = set; then 1698 echo $ECHO_N "(cached) $ECHO_C" >&6 1699else 1700 if test -n "$CC"; then 1701 ac_cv_prog_CC="$CC" # Let the user override the test. 1702else 1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704for as_dir in $PATH 1705do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 for ac_exec_ext in '' $ac_executable_extensions; do 1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1710 ac_cv_prog_CC="${ac_tool_prefix}cc" 1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1712 break 2 1713 fi 1714done 1715done 1716 1717fi 1718fi 1719CC=$ac_cv_prog_CC 1720if test -n "$CC"; then 1721 echo "$as_me:$LINENO: result: $CC" >&5 1722echo "${ECHO_T}$CC" >&6 1723else 1724 echo "$as_me:$LINENO: result: no" >&5 1725echo "${ECHO_T}no" >&6 1726fi 1727 1728fi 1729if test -z "$ac_cv_prog_CC"; then 1730 ac_ct_CC=$CC 1731 # Extract the first word of "cc", so it can be a program name with args. 1732set dummy cc; ac_word=$2 1733echo "$as_me:$LINENO: checking for $ac_word" >&5 1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1736 echo $ECHO_N "(cached) $ECHO_C" >&6 1737else 1738 if test -n "$ac_ct_CC"; then 1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1740else 1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1742for as_dir in $PATH 1743do 1744 IFS=$as_save_IFS 1745 test -z "$as_dir" && as_dir=. 1746 for ac_exec_ext in '' $ac_executable_extensions; do 1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1748 ac_cv_prog_ac_ct_CC="cc" 1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1750 break 2 1751 fi 1752done 1753done 1754 1755fi 1756fi 1757ac_ct_CC=$ac_cv_prog_ac_ct_CC 1758if test -n "$ac_ct_CC"; then 1759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1760echo "${ECHO_T}$ac_ct_CC" >&6 1761else 1762 echo "$as_me:$LINENO: result: no" >&5 1763echo "${ECHO_T}no" >&6 1764fi 1765 1766 CC=$ac_ct_CC 1767else 1768 CC="$ac_cv_prog_CC" 1769fi 1770 1771fi 1772if test -z "$CC"; then 1773 # Extract the first word of "cc", so it can be a program name with args. 1774set dummy cc; ac_word=$2 1775echo "$as_me:$LINENO: checking for $ac_word" >&5 1776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1777if test "${ac_cv_prog_CC+set}" = set; then 1778 echo $ECHO_N "(cached) $ECHO_C" >&6 1779else 1780 if test -n "$CC"; then 1781 ac_cv_prog_CC="$CC" # Let the user override the test. 1782else 1783 ac_prog_rejected=no 1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1785for as_dir in $PATH 1786do 1787 IFS=$as_save_IFS 1788 test -z "$as_dir" && as_dir=. 1789 for ac_exec_ext in '' $ac_executable_extensions; do 1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1792 ac_prog_rejected=yes 1793 continue 1794 fi 1795 ac_cv_prog_CC="cc" 1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1797 break 2 1798 fi 1799done 1800done 1801 1802if test $ac_prog_rejected = yes; then 1803 # We found a bogon in the path, so make sure we never use it. 1804 set dummy $ac_cv_prog_CC 1805 shift 1806 if test $# != 0; then 1807 # We chose a different compiler from the bogus one. 1808 # However, it has the same basename, so the bogon will be chosen 1809 # first if we set CC to just the basename; use the full file name. 1810 shift 1811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1812 fi 1813fi 1814fi 1815fi 1816CC=$ac_cv_prog_CC 1817if test -n "$CC"; then 1818 echo "$as_me:$LINENO: result: $CC" >&5 1819echo "${ECHO_T}$CC" >&6 1820else 1821 echo "$as_me:$LINENO: result: no" >&5 1822echo "${ECHO_T}no" >&6 1823fi 1824 1825fi 1826if test -z "$CC"; then 1827 if test -n "$ac_tool_prefix"; then 1828 for ac_prog in cl 1829 do 1830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1832echo "$as_me:$LINENO: checking for $ac_word" >&5 1833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1834if test "${ac_cv_prog_CC+set}" = set; then 1835 echo $ECHO_N "(cached) $ECHO_C" >&6 1836else 1837 if test -n "$CC"; then 1838 ac_cv_prog_CC="$CC" # Let the user override the test. 1839else 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 test -z "$as_dir" && as_dir=. 1845 for ac_exec_ext in '' $ac_executable_extensions; do 1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1849 break 2 1850 fi 1851done 1852done 1853 1854fi 1855fi 1856CC=$ac_cv_prog_CC 1857if test -n "$CC"; then 1858 echo "$as_me:$LINENO: result: $CC" >&5 1859echo "${ECHO_T}$CC" >&6 1860else 1861 echo "$as_me:$LINENO: result: no" >&5 1862echo "${ECHO_T}no" >&6 1863fi 1864 1865 test -n "$CC" && break 1866 done 1867fi 1868if test -z "$CC"; then 1869 ac_ct_CC=$CC 1870 for ac_prog in cl 1871do 1872 # Extract the first word of "$ac_prog", so it can be a program name with args. 1873set dummy $ac_prog; ac_word=$2 1874echo "$as_me:$LINENO: checking for $ac_word" >&5 1875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1877 echo $ECHO_N "(cached) $ECHO_C" >&6 1878else 1879 if test -n "$ac_ct_CC"; then 1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1881else 1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1883for as_dir in $PATH 1884do 1885 IFS=$as_save_IFS 1886 test -z "$as_dir" && as_dir=. 1887 for ac_exec_ext in '' $ac_executable_extensions; do 1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1889 ac_cv_prog_ac_ct_CC="$ac_prog" 1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1891 break 2 1892 fi 1893done 1894done 1895 1896fi 1897fi 1898ac_ct_CC=$ac_cv_prog_ac_ct_CC 1899if test -n "$ac_ct_CC"; then 1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1901echo "${ECHO_T}$ac_ct_CC" >&6 1902else 1903 echo "$as_me:$LINENO: result: no" >&5 1904echo "${ECHO_T}no" >&6 1905fi 1906 1907 test -n "$ac_ct_CC" && break 1908done 1909 1910 CC=$ac_ct_CC 1911fi 1912 1913fi 1914 1915 1916test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1917See \`config.log' for more details." >&5 1918echo "$as_me: error: no acceptable C compiler found in \$PATH 1919See \`config.log' for more details." >&2;} 1920 { (exit 1); exit 1; }; } 1921 1922# Provide some information about the compiler. 1923echo "$as_me:$LINENO:" \ 1924 "checking for C compiler version" >&5 1925ac_compiler=`set X $ac_compile; echo $2` 1926{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1927 (eval $ac_compiler --version </dev/null >&5) 2>&5 1928 ac_status=$? 1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1930 (exit $ac_status); } 1931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1932 (eval $ac_compiler -v </dev/null >&5) 2>&5 1933 ac_status=$? 1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1935 (exit $ac_status); } 1936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1937 (eval $ac_compiler -V </dev/null >&5) 2>&5 1938 ac_status=$? 1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1940 (exit $ac_status); } 1941 1942cat >conftest.$ac_ext <<_ACEOF 1943/* confdefs.h. */ 1944_ACEOF 1945cat confdefs.h >>conftest.$ac_ext 1946cat >>conftest.$ac_ext <<_ACEOF 1947/* end confdefs.h. */ 1948 1949int 1950main () 1951{ 1952 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957ac_clean_files_save=$ac_clean_files 1958ac_clean_files="$ac_clean_files a.out a.exe b.out" 1959# Try to create an executable without -o first, disregard a.out. 1960# It will help us diagnose broken compilers, and finding out an intuition 1961# of exeext. 1962echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1963echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1964ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1965if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1966 (eval $ac_link_default) 2>&5 1967 ac_status=$? 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1969 (exit $ac_status); }; then 1970 # Find the output, starting from the most likely. This scheme is 1971# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1972# resort. 1973 1974# Be careful to initialize this variable, since it used to be cached. 1975# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1976ac_cv_exeext= 1977# b.out is created by i960 compilers. 1978for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1979do 1980 test -f "$ac_file" || continue 1981 case $ac_file in 1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1983 ;; 1984 conftest.$ac_ext ) 1985 # This is the source file. 1986 ;; 1987 [ab].out ) 1988 # We found the default executable, but exeext='' is most 1989 # certainly right. 1990 break;; 1991 *.* ) 1992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1993 # FIXME: I believe we export ac_cv_exeext for Libtool, 1994 # but it would be cool to find out if it's true. Does anybody 1995 # maintain Libtool? --akim. 1996 export ac_cv_exeext 1997 break;; 1998 * ) 1999 break;; 2000 esac 2001done 2002else 2003 echo "$as_me: failed program was:" >&5 2004sed 's/^/| /' conftest.$ac_ext >&5 2005 2006{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2007See \`config.log' for more details." >&5 2008echo "$as_me: error: C compiler cannot create executables 2009See \`config.log' for more details." >&2;} 2010 { (exit 77); exit 77; }; } 2011fi 2012 2013ac_exeext=$ac_cv_exeext 2014echo "$as_me:$LINENO: result: $ac_file" >&5 2015echo "${ECHO_T}$ac_file" >&6 2016 2017# Check the compiler produces executables we can run. If not, either 2018# the compiler is broken, or we cross compile. 2019echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2020echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2022# If not cross compiling, check that we can run a simple program. 2023if test "$cross_compiling" != yes; then 2024 if { ac_try='./$ac_file' 2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2026 (eval $ac_try) 2>&5 2027 ac_status=$? 2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2029 (exit $ac_status); }; }; then 2030 cross_compiling=no 2031 else 2032 if test "$cross_compiling" = maybe; then 2033 cross_compiling=yes 2034 else 2035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2036If you meant to cross compile, use \`--host'. 2037See \`config.log' for more details." >&5 2038echo "$as_me: error: cannot run C compiled programs. 2039If you meant to cross compile, use \`--host'. 2040See \`config.log' for more details." >&2;} 2041 { (exit 1); exit 1; }; } 2042 fi 2043 fi 2044fi 2045echo "$as_me:$LINENO: result: yes" >&5 2046echo "${ECHO_T}yes" >&6 2047 2048rm -f a.out a.exe conftest$ac_cv_exeext b.out 2049ac_clean_files=$ac_clean_files_save 2050# Check the compiler produces executables we can run. If not, either 2051# the compiler is broken, or we cross compile. 2052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2054echo "$as_me:$LINENO: result: $cross_compiling" >&5 2055echo "${ECHO_T}$cross_compiling" >&6 2056 2057echo "$as_me:$LINENO: checking for suffix of executables" >&5 2058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2060 (eval $ac_link) 2>&5 2061 ac_status=$? 2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2063 (exit $ac_status); }; then 2064 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2066# work properly (i.e., refer to `conftest.exe'), while it won't with 2067# `rm'. 2068for ac_file in conftest.exe conftest conftest.*; do 2069 test -f "$ac_file" || continue 2070 case $ac_file in 2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2073 export ac_cv_exeext 2074 break;; 2075 * ) break;; 2076 esac 2077done 2078else 2079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2080See \`config.log' for more details." >&5 2081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2082See \`config.log' for more details." >&2;} 2083 { (exit 1); exit 1; }; } 2084fi 2085 2086rm -f conftest$ac_cv_exeext 2087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2088echo "${ECHO_T}$ac_cv_exeext" >&6 2089 2090rm -f conftest.$ac_ext 2091EXEEXT=$ac_cv_exeext 2092ac_exeext=$EXEEXT 2093echo "$as_me:$LINENO: checking for suffix of object files" >&5 2094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2095if test "${ac_cv_objext+set}" = set; then 2096 echo $ECHO_N "(cached) $ECHO_C" >&6 2097else 2098 cat >conftest.$ac_ext <<_ACEOF 2099/* confdefs.h. */ 2100_ACEOF 2101cat confdefs.h >>conftest.$ac_ext 2102cat >>conftest.$ac_ext <<_ACEOF 2103/* end confdefs.h. */ 2104 2105int 2106main () 2107{ 2108 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113rm -f conftest.o conftest.obj 2114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2115 (eval $ac_compile) 2>&5 2116 ac_status=$? 2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118 (exit $ac_status); }; then 2119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2120 case $ac_file in 2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2123 break;; 2124 esac 2125done 2126else 2127 echo "$as_me: failed program was:" >&5 2128sed 's/^/| /' conftest.$ac_ext >&5 2129 2130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2131See \`config.log' for more details." >&5 2132echo "$as_me: error: cannot compute suffix of object files: cannot compile 2133See \`config.log' for more details." >&2;} 2134 { (exit 1); exit 1; }; } 2135fi 2136 2137rm -f conftest.$ac_cv_objext conftest.$ac_ext 2138fi 2139echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2140echo "${ECHO_T}$ac_cv_objext" >&6 2141OBJEXT=$ac_cv_objext 2142ac_objext=$OBJEXT 2143echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2145if test "${ac_cv_c_compiler_gnu+set}" = set; then 2146 echo $ECHO_N "(cached) $ECHO_C" >&6 2147else 2148 cat >conftest.$ac_ext <<_ACEOF 2149/* confdefs.h. */ 2150_ACEOF 2151cat confdefs.h >>conftest.$ac_ext 2152cat >>conftest.$ac_ext <<_ACEOF 2153/* end confdefs.h. */ 2154 2155int 2156main () 2157{ 2158#ifndef __GNUC__ 2159 choke me 2160#endif 2161 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166rm -f conftest.$ac_objext 2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2168 (eval $ac_compile) 2>conftest.er1 2169 ac_status=$? 2170 grep -v '^ *+' conftest.er1 >conftest.err 2171 rm -f conftest.er1 2172 cat conftest.err >&5 2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2174 (exit $ac_status); } && 2175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2177 (eval $ac_try) 2>&5 2178 ac_status=$? 2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2180 (exit $ac_status); }; } && 2181 { ac_try='test -s conftest.$ac_objext' 2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2183 (eval $ac_try) 2>&5 2184 ac_status=$? 2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2186 (exit $ac_status); }; }; then 2187 ac_compiler_gnu=yes 2188else 2189 echo "$as_me: failed program was:" >&5 2190sed 's/^/| /' conftest.$ac_ext >&5 2191 2192ac_compiler_gnu=no 2193fi 2194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2195ac_cv_c_compiler_gnu=$ac_compiler_gnu 2196 2197fi 2198echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2199echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2200GCC=`test $ac_compiler_gnu = yes && echo yes` 2201ac_test_CFLAGS=${CFLAGS+set} 2202ac_save_CFLAGS=$CFLAGS 2203CFLAGS="-g" 2204echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2205echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2206if test "${ac_cv_prog_cc_g+set}" = set; then 2207 echo $ECHO_N "(cached) $ECHO_C" >&6 2208else 2209 cat >conftest.$ac_ext <<_ACEOF 2210/* confdefs.h. */ 2211_ACEOF 2212cat confdefs.h >>conftest.$ac_ext 2213cat >>conftest.$ac_ext <<_ACEOF 2214/* end confdefs.h. */ 2215 2216int 2217main () 2218{ 2219 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224rm -f conftest.$ac_objext 2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2226 (eval $ac_compile) 2>conftest.er1 2227 ac_status=$? 2228 grep -v '^ *+' conftest.er1 >conftest.err 2229 rm -f conftest.er1 2230 cat conftest.err >&5 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); } && 2233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2235 (eval $ac_try) 2>&5 2236 ac_status=$? 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); }; } && 2239 { ac_try='test -s conftest.$ac_objext' 2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2241 (eval $ac_try) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; }; then 2245 ac_cv_prog_cc_g=yes 2246else 2247 echo "$as_me: failed program was:" >&5 2248sed 's/^/| /' conftest.$ac_ext >&5 2249 2250ac_cv_prog_cc_g=no 2251fi 2252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2253fi 2254echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2255echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2256if test "$ac_test_CFLAGS" = set; then 2257 CFLAGS=$ac_save_CFLAGS 2258elif test $ac_cv_prog_cc_g = yes; then 2259 if test "$GCC" = yes; then 2260 CFLAGS="-g -O2" 2261 else 2262 CFLAGS="-g" 2263 fi 2264else 2265 if test "$GCC" = yes; then 2266 CFLAGS="-O2" 2267 else 2268 CFLAGS= 2269 fi 2270fi 2271echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2272echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2273if test "${ac_cv_prog_cc_stdc+set}" = set; then 2274 echo $ECHO_N "(cached) $ECHO_C" >&6 2275else 2276 ac_cv_prog_cc_stdc=no 2277ac_save_CC=$CC 2278cat >conftest.$ac_ext <<_ACEOF 2279/* confdefs.h. */ 2280_ACEOF 2281cat confdefs.h >>conftest.$ac_ext 2282cat >>conftest.$ac_ext <<_ACEOF 2283/* end confdefs.h. */ 2284#include <stdarg.h> 2285#include <stdio.h> 2286#include <sys/types.h> 2287#include <sys/stat.h> 2288/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2289struct buf { int x; }; 2290FILE * (*rcsopen) (struct buf *, struct stat *, int); 2291static char *e (p, i) 2292 char **p; 2293 int i; 2294{ 2295 return p[i]; 2296} 2297static char *f (char * (*g) (char **, int), char **p, ...) 2298{ 2299 char *s; 2300 va_list v; 2301 va_start (v,p); 2302 s = g (p, va_arg (v,int)); 2303 va_end (v); 2304 return s; 2305} 2306 2307/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2308 function prototypes and stuff, but not '\xHH' hex character constants. 2309 These don't provoke an error unfortunately, instead are silently treated 2310 as 'x'. The following induces an error, until -std1 is added to get 2311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2312 array size at least. It's necessary to write '\x00'==0 to get something 2313 that's true only with -std1. */ 2314int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2315 2316int test (int i, double x); 2317struct s1 {int (*f) (int a);}; 2318struct s2 {int (*f) (double a);}; 2319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2320int argc; 2321char **argv; 2322int 2323main () 2324{ 2325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2326 ; 2327 return 0; 2328} 2329_ACEOF 2330# Don't try gcc -ansi; that turns off useful extensions and 2331# breaks some systems' header files. 2332# AIX -qlanglvl=ansi 2333# Ultrix and OSF/1 -std1 2334# HP-UX 10.20 and later -Ae 2335# HP-UX older versions -Aa -D_HPUX_SOURCE 2336# SVR4 -Xc -D__EXTENSIONS__ 2337for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2338do 2339 CC="$ac_save_CC $ac_arg" 2340 rm -f conftest.$ac_objext 2341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2342 (eval $ac_compile) 2>conftest.er1 2343 ac_status=$? 2344 grep -v '^ *+' conftest.er1 >conftest.err 2345 rm -f conftest.er1 2346 cat conftest.err >&5 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); } && 2349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2351 (eval $ac_try) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; } && 2355 { ac_try='test -s conftest.$ac_objext' 2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 (eval $ac_try) 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); }; }; then 2361 ac_cv_prog_cc_stdc=$ac_arg 2362break 2363else 2364 echo "$as_me: failed program was:" >&5 2365sed 's/^/| /' conftest.$ac_ext >&5 2366 2367fi 2368rm -f conftest.err conftest.$ac_objext 2369done 2370rm -f conftest.$ac_ext conftest.$ac_objext 2371CC=$ac_save_CC 2372 2373fi 2374 2375case "x$ac_cv_prog_cc_stdc" in 2376 x|xno) 2377 echo "$as_me:$LINENO: result: none needed" >&5 2378echo "${ECHO_T}none needed" >&6 ;; 2379 *) 2380 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2381echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2382 CC="$CC $ac_cv_prog_cc_stdc" ;; 2383esac 2384 2385# Some people use a C++ compiler to compile C. Since we use `exit', 2386# in C++ we need to declare it. In case someone uses the same compiler 2387# for both compiling C and C++ we need to have the C++ compiler decide 2388# the declaration of exit, since it's the most demanding environment. 2389cat >conftest.$ac_ext <<_ACEOF 2390#ifndef __cplusplus 2391 choke me 2392#endif 2393_ACEOF 2394rm -f conftest.$ac_objext 2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2396 (eval $ac_compile) 2>conftest.er1 2397 ac_status=$? 2398 grep -v '^ *+' conftest.er1 >conftest.err 2399 rm -f conftest.er1 2400 cat conftest.err >&5 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } && 2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; } && 2409 { ac_try='test -s conftest.$ac_objext' 2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2411 (eval $ac_try) 2>&5 2412 ac_status=$? 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); }; }; then 2415 for ac_declaration in \ 2416 '' \ 2417 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2418 'extern "C" void std::exit (int); using std::exit;' \ 2419 'extern "C" void exit (int) throw ();' \ 2420 'extern "C" void exit (int);' \ 2421 'void exit (int);' 2422do 2423 cat >conftest.$ac_ext <<_ACEOF 2424/* confdefs.h. */ 2425_ACEOF 2426cat confdefs.h >>conftest.$ac_ext 2427cat >>conftest.$ac_ext <<_ACEOF 2428/* end confdefs.h. */ 2429$ac_declaration 2430#include <stdlib.h> 2431int 2432main () 2433{ 2434exit (42); 2435 ; 2436 return 0; 2437} 2438_ACEOF 2439rm -f conftest.$ac_objext 2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2441 (eval $ac_compile) 2>conftest.er1 2442 ac_status=$? 2443 grep -v '^ *+' conftest.er1 >conftest.err 2444 rm -f conftest.er1 2445 cat conftest.err >&5 2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447 (exit $ac_status); } && 2448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2450 (eval $ac_try) 2>&5 2451 ac_status=$? 2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); }; } && 2454 { ac_try='test -s conftest.$ac_objext' 2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2456 (eval $ac_try) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); }; }; then 2460 : 2461else 2462 echo "$as_me: failed program was:" >&5 2463sed 's/^/| /' conftest.$ac_ext >&5 2464 2465continue 2466fi 2467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2468 cat >conftest.$ac_ext <<_ACEOF 2469/* confdefs.h. */ 2470_ACEOF 2471cat confdefs.h >>conftest.$ac_ext 2472cat >>conftest.$ac_ext <<_ACEOF 2473/* end confdefs.h. */ 2474$ac_declaration 2475int 2476main () 2477{ 2478exit (42); 2479 ; 2480 return 0; 2481} 2482_ACEOF 2483rm -f conftest.$ac_objext 2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2485 (eval $ac_compile) 2>conftest.er1 2486 ac_status=$? 2487 grep -v '^ *+' conftest.er1 >conftest.err 2488 rm -f conftest.er1 2489 cat conftest.err >&5 2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2491 (exit $ac_status); } && 2492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2494 (eval $ac_try) 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); }; } && 2498 { ac_try='test -s conftest.$ac_objext' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; }; then 2504 break 2505else 2506 echo "$as_me: failed program was:" >&5 2507sed 's/^/| /' conftest.$ac_ext >&5 2508 2509fi 2510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2511done 2512rm -f conftest* 2513if test -n "$ac_declaration"; then 2514 echo '#ifdef __cplusplus' >>confdefs.h 2515 echo $ac_declaration >>confdefs.h 2516 echo '#endif' >>confdefs.h 2517fi 2518 2519else 2520 echo "$as_me: failed program was:" >&5 2521sed 's/^/| /' conftest.$ac_ext >&5 2522 2523fi 2524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2525ac_ext=c 2526ac_cpp='$CPP $CPPFLAGS' 2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2529ac_compiler_gnu=$ac_cv_c_compiler_gnu 2530 2531 2532 2533echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 2534echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 2535if test "${ac_cv_c_bigendian+set}" = set; then 2536 echo $ECHO_N "(cached) $ECHO_C" >&6 2537else 2538 # See if sys/param.h defines the BYTE_ORDER macro. 2539cat >conftest.$ac_ext <<_ACEOF 2540/* confdefs.h. */ 2541_ACEOF 2542cat confdefs.h >>conftest.$ac_ext 2543cat >>conftest.$ac_ext <<_ACEOF 2544/* end confdefs.h. */ 2545#include <sys/types.h> 2546#include <sys/param.h> 2547 2548int 2549main () 2550{ 2551#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2552 bogus endian macros 2553#endif 2554 2555 ; 2556 return 0; 2557} 2558_ACEOF 2559rm -f conftest.$ac_objext 2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2561 (eval $ac_compile) 2>conftest.er1 2562 ac_status=$? 2563 grep -v '^ *+' conftest.er1 >conftest.err 2564 rm -f conftest.er1 2565 cat conftest.err >&5 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } && 2568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2570 (eval $ac_try) 2>&5 2571 ac_status=$? 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); }; } && 2574 { ac_try='test -s conftest.$ac_objext' 2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2576 (eval $ac_try) 2>&5 2577 ac_status=$? 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); }; }; then 2580 # It does; now see whether it defined to BIG_ENDIAN or not. 2581cat >conftest.$ac_ext <<_ACEOF 2582/* confdefs.h. */ 2583_ACEOF 2584cat confdefs.h >>conftest.$ac_ext 2585cat >>conftest.$ac_ext <<_ACEOF 2586/* end confdefs.h. */ 2587#include <sys/types.h> 2588#include <sys/param.h> 2589 2590int 2591main () 2592{ 2593#if BYTE_ORDER != BIG_ENDIAN 2594 not big endian 2595#endif 2596 2597 ; 2598 return 0; 2599} 2600_ACEOF 2601rm -f conftest.$ac_objext 2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2603 (eval $ac_compile) 2>conftest.er1 2604 ac_status=$? 2605 grep -v '^ *+' conftest.er1 >conftest.err 2606 rm -f conftest.er1 2607 cat conftest.err >&5 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2609 (exit $ac_status); } && 2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2612 (eval $ac_try) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; } && 2616 { ac_try='test -s conftest.$ac_objext' 2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2618 (eval $ac_try) 2>&5 2619 ac_status=$? 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); }; }; then 2622 ac_cv_c_bigendian=yes 2623else 2624 echo "$as_me: failed program was:" >&5 2625sed 's/^/| /' conftest.$ac_ext >&5 2626 2627ac_cv_c_bigendian=no 2628fi 2629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2630else 2631 echo "$as_me: failed program was:" >&5 2632sed 's/^/| /' conftest.$ac_ext >&5 2633 2634# It does not; compile a test program. 2635if test "$cross_compiling" = yes; then 2636 # try to guess the endianness by grepping values into an object file 2637 ac_cv_c_bigendian=unknown 2638 cat >conftest.$ac_ext <<_ACEOF 2639/* confdefs.h. */ 2640_ACEOF 2641cat confdefs.h >>conftest.$ac_ext 2642cat >>conftest.$ac_ext <<_ACEOF 2643/* end confdefs.h. */ 2644short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 2645short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 2646void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 2647short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 2648short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 2649void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 2650int 2651main () 2652{ 2653 _ascii (); _ebcdic (); 2654 ; 2655 return 0; 2656} 2657_ACEOF 2658rm -f conftest.$ac_objext 2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2660 (eval $ac_compile) 2>conftest.er1 2661 ac_status=$? 2662 grep -v '^ *+' conftest.er1 >conftest.err 2663 rm -f conftest.er1 2664 cat conftest.err >&5 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } && 2667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2669 (eval $ac_try) 2>&5 2670 ac_status=$? 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); }; } && 2673 { ac_try='test -s conftest.$ac_objext' 2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2675 (eval $ac_try) 2>&5 2676 ac_status=$? 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); }; }; then 2679 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 2680 ac_cv_c_bigendian=yes 2681fi 2682if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 2683 if test "$ac_cv_c_bigendian" = unknown; then 2684 ac_cv_c_bigendian=no 2685 else 2686 # finding both strings is unlikely to happen, but who knows? 2687 ac_cv_c_bigendian=unknown 2688 fi 2689fi 2690else 2691 echo "$as_me: failed program was:" >&5 2692sed 's/^/| /' conftest.$ac_ext >&5 2693 2694fi 2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2696else 2697 cat >conftest.$ac_ext <<_ACEOF 2698/* confdefs.h. */ 2699_ACEOF 2700cat confdefs.h >>conftest.$ac_ext 2701cat >>conftest.$ac_ext <<_ACEOF 2702/* end confdefs.h. */ 2703int 2704main () 2705{ 2706 /* Are we little or big endian? From Harbison&Steele. */ 2707 union 2708 { 2709 long l; 2710 char c[sizeof (long)]; 2711 } u; 2712 u.l = 1; 2713 exit (u.c[sizeof (long) - 1] == 1); 2714} 2715_ACEOF 2716rm -f conftest$ac_exeext 2717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2718 (eval $ac_link) 2>&5 2719 ac_status=$? 2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2723 (eval $ac_try) 2>&5 2724 ac_status=$? 2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 (exit $ac_status); }; }; then 2727 ac_cv_c_bigendian=no 2728else 2729 echo "$as_me: program exited with status $ac_status" >&5 2730echo "$as_me: failed program was:" >&5 2731sed 's/^/| /' conftest.$ac_ext >&5 2732 2733( exit $ac_status ) 2734ac_cv_c_bigendian=yes 2735fi 2736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2737fi 2738fi 2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2740fi 2741echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 2742echo "${ECHO_T}$ac_cv_c_bigendian" >&6 2743case $ac_cv_c_bigendian in 2744 yes) 2745 2746cat >>confdefs.h <<\_ACEOF 2747#define WORDS_BIGENDIAN 1 2748_ACEOF 2749 ;; 2750 no) 2751 ;; 2752 *) 2753 { { echo "$as_me:$LINENO: error: unknown endianness 2754presetting ac_cv_c_bigendian=no (or yes) will help" >&5 2755echo "$as_me: error: unknown endianness 2756presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 2757 { (exit 1); exit 1; }; } ;; 2758esac 2759 2760 2761 2762 2763echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 2764echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 2765if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 ac_check_lib_save_LIBS=$LIBS 2769LIBS="-lpthread $LIBS" 2770cat >conftest.$ac_ext <<_ACEOF 2771/* confdefs.h. */ 2772_ACEOF 2773cat confdefs.h >>conftest.$ac_ext 2774cat >>conftest.$ac_ext <<_ACEOF 2775/* end confdefs.h. */ 2776 2777/* Override any gcc2 internal prototype to avoid an error. */ 2778#ifdef __cplusplus 2779extern "C" 2780#endif 2781/* We use char because int might match the return type of a gcc2 2782 builtin and then its argument prototype would still apply. */ 2783char pthread_create (); 2784int 2785main () 2786{ 2787pthread_create (); 2788 ; 2789 return 0; 2790} 2791_ACEOF 2792rm -f conftest.$ac_objext conftest$ac_exeext 2793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2794 (eval $ac_link) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2803 (eval $ac_try) 2>&5 2804 ac_status=$? 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); }; } && 2807 { ac_try='test -s conftest$ac_exeext' 2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2809 (eval $ac_try) 2>&5 2810 ac_status=$? 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); }; }; then 2813 ac_cv_lib_pthread_pthread_create=yes 2814else 2815 echo "$as_me: failed program was:" >&5 2816sed 's/^/| /' conftest.$ac_ext >&5 2817 2818ac_cv_lib_pthread_pthread_create=no 2819fi 2820rm -f conftest.err conftest.$ac_objext \ 2821 conftest$ac_exeext conftest.$ac_ext 2822LIBS=$ac_check_lib_save_LIBS 2823fi 2824echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 2825echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 2826if test $ac_cv_lib_pthread_pthread_create = yes; then 2827 cat >>confdefs.h <<_ACEOF 2828#define HAVE_LIBPTHREAD 1 2829_ACEOF 2830 2831 LIBS="-lpthread $LIBS" 2832 2833else 2834 { { echo "$as_me:$LINENO: error: SDL library needs pthread Library" >&5 2835echo "$as_me: error: SDL library needs pthread Library" >&2;} 2836 { (exit 1); exit 1; }; } 2837fi 2838 2839 2840# Extract the first word of "sdl-config", so it can be a program name with args. 2841set dummy sdl-config; ac_word=$2 2842echo "$as_me:$LINENO: checking for $ac_word" >&5 2843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2844if test "${ac_cv_prog_SDL_CONFIG+set}" = set; then 2845 echo $ECHO_N "(cached) $ECHO_C" >&6 2846else 2847 if test -n "$SDL_CONFIG"; then 2848 ac_cv_prog_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2857 ac_cv_prog_SDL_CONFIG="yes" 2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862done 2863 2864 test -z "$ac_cv_prog_SDL_CONFIG" && ac_cv_prog_SDL_CONFIG="no" 2865fi 2866fi 2867SDL_CONFIG=$ac_cv_prog_SDL_CONFIG 2868if test -n "$SDL_CONFIG"; then 2869 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 2870echo "${ECHO_T}$SDL_CONFIG" >&6 2871else 2872 echo "$as_me:$LINENO: result: no" >&5 2873echo "${ECHO_T}no" >&6 2874fi 2875 2876if test -n "$SDL_CONFIG" ; then 2877 CFLAGS="$CFLAGS -DSDL_YUV `$SDL_CONFIG --cflags`"; 2878 LIBS="$LIBS `$SDL_CONFIG --libs`"; 2879 2880echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5 2881echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6 2882if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then 2883 echo $ECHO_N "(cached) $ECHO_C" >&6 2884else 2885 ac_check_lib_save_LIBS=$LIBS 2886LIBS="-lSDL $LIBS" 2887cat >conftest.$ac_ext <<_ACEOF 2888/* confdefs.h. */ 2889_ACEOF 2890cat confdefs.h >>conftest.$ac_ext 2891cat >>conftest.$ac_ext <<_ACEOF 2892/* end confdefs.h. */ 2893 2894/* Override any gcc2 internal prototype to avoid an error. */ 2895#ifdef __cplusplus 2896extern "C" 2897#endif 2898/* We use char because int might match the return type of a gcc2 2899 builtin and then its argument prototype would still apply. */ 2900char SDL_Init (); 2901int 2902main () 2903{ 2904SDL_Init (); 2905 ; 2906 return 0; 2907} 2908_ACEOF 2909rm -f conftest.$ac_objext conftest$ac_exeext 2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2911 (eval $ac_link) 2>conftest.er1 2912 ac_status=$? 2913 grep -v '^ *+' conftest.er1 >conftest.err 2914 rm -f conftest.er1 2915 cat conftest.err >&5 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } && 2918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2920 (eval $ac_try) 2>&5 2921 ac_status=$? 2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); }; } && 2924 { ac_try='test -s conftest$ac_exeext' 2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2926 (eval $ac_try) 2>&5 2927 ac_status=$? 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); }; }; then 2930 ac_cv_lib_SDL_SDL_Init=yes 2931else 2932 echo "$as_me: failed program was:" >&5 2933sed 's/^/| /' conftest.$ac_ext >&5 2934 2935ac_cv_lib_SDL_SDL_Init=no 2936fi 2937rm -f conftest.err conftest.$ac_objext \ 2938 conftest$ac_exeext conftest.$ac_ext 2939LIBS=$ac_check_lib_save_LIBS 2940fi 2941echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5 2942echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6 2943if test $ac_cv_lib_SDL_SDL_Init = yes; then 2944 cat >>confdefs.h <<_ACEOF 2945#define HAVE_LIBSDL 1 2946_ACEOF 2947 2948 LIBS="-lSDL $LIBS" 2949 2950else 2951 { { echo "$as_me:$LINENO: error: can't find SDL on your system" >&5 2952echo "$as_me: error: can't find SDL on your system" >&2;} 2953 { (exit 1); exit 1; }; } 2954fi 2955 2956else 2957 { { echo "$as_me:$LINENO: error: can't find $SDL_CONFIG on your system" >&5 2958echo "$as_me: error: can't find $SDL_CONFIG on your system" >&2;} 2959 { (exit 1); exit 1; }; }; 2960fi 2961 2962 2963 2964 2965 2966 2967ac_header_dirent=no 2968for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 2969 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 2970echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 2971echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 2972if eval "test \"\${$as_ac_Header+set}\" = set"; then 2973 echo $ECHO_N "(cached) $ECHO_C" >&6 2974else 2975 cat >conftest.$ac_ext <<_ACEOF 2976/* confdefs.h. */ 2977_ACEOF 2978cat confdefs.h >>conftest.$ac_ext 2979cat >>conftest.$ac_ext <<_ACEOF 2980/* end confdefs.h. */ 2981#include <sys/types.h> 2982#include <$ac_hdr> 2983 2984int 2985main () 2986{ 2987if ((DIR *) 0) 2988return 0; 2989 ; 2990 return 0; 2991} 2992_ACEOF 2993rm -f conftest.$ac_objext 2994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2995 (eval $ac_compile) 2>conftest.er1 2996 ac_status=$? 2997 grep -v '^ *+' conftest.er1 >conftest.err 2998 rm -f conftest.er1 2999 cat conftest.err >&5 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); } && 3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3004 (eval $ac_try) 2>&5 3005 ac_status=$? 3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3007 (exit $ac_status); }; } && 3008 { ac_try='test -s conftest.$ac_objext' 3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3010 (eval $ac_try) 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); }; }; then 3014 eval "$as_ac_Header=yes" 3015else 3016 echo "$as_me: failed program was:" >&5 3017sed 's/^/| /' conftest.$ac_ext >&5 3018 3019eval "$as_ac_Header=no" 3020fi 3021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3022fi 3023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3025if test `eval echo '${'$as_ac_Header'}'` = yes; then 3026 cat >>confdefs.h <<_ACEOF 3027#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3028_ACEOF 3029 3030ac_header_dirent=$ac_hdr; break 3031fi 3032 3033done 3034# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3035if test $ac_header_dirent = dirent.h; then 3036 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3037echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3038if test "${ac_cv_search_opendir+set}" = set; then 3039 echo $ECHO_N "(cached) $ECHO_C" >&6 3040else 3041 ac_func_search_save_LIBS=$LIBS 3042ac_cv_search_opendir=no 3043cat >conftest.$ac_ext <<_ACEOF 3044/* confdefs.h. */ 3045_ACEOF 3046cat confdefs.h >>conftest.$ac_ext 3047cat >>conftest.$ac_ext <<_ACEOF 3048/* end confdefs.h. */ 3049 3050/* Override any gcc2 internal prototype to avoid an error. */ 3051#ifdef __cplusplus 3052extern "C" 3053#endif 3054/* We use char because int might match the return type of a gcc2 3055 builtin and then its argument prototype would still apply. */ 3056char opendir (); 3057int 3058main () 3059{ 3060opendir (); 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065rm -f conftest.$ac_objext conftest$ac_exeext 3066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3067 (eval $ac_link) 2>conftest.er1 3068 ac_status=$? 3069 grep -v '^ *+' conftest.er1 >conftest.err 3070 rm -f conftest.er1 3071 cat conftest.err >&5 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3073 (exit $ac_status); } && 3074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3076 (eval $ac_try) 2>&5 3077 ac_status=$? 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; } && 3080 { ac_try='test -s conftest$ac_exeext' 3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3082 (eval $ac_try) 2>&5 3083 ac_status=$? 3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); }; }; then 3086 ac_cv_search_opendir="none required" 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091fi 3092rm -f conftest.err conftest.$ac_objext \ 3093 conftest$ac_exeext conftest.$ac_ext 3094if test "$ac_cv_search_opendir" = no; then 3095 for ac_lib in dir; do 3096 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3097 cat >conftest.$ac_ext <<_ACEOF 3098/* confdefs.h. */ 3099_ACEOF 3100cat confdefs.h >>conftest.$ac_ext 3101cat >>conftest.$ac_ext <<_ACEOF 3102/* end confdefs.h. */ 3103 3104/* Override any gcc2 internal prototype to avoid an error. */ 3105#ifdef __cplusplus 3106extern "C" 3107#endif 3108/* We use char because int might match the return type of a gcc2 3109 builtin and then its argument prototype would still apply. */ 3110char opendir (); 3111int 3112main () 3113{ 3114opendir (); 3115 ; 3116 return 0; 3117} 3118_ACEOF 3119rm -f conftest.$ac_objext conftest$ac_exeext 3120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3121 (eval $ac_link) 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } && 3128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3130 (eval $ac_try) 2>&5 3131 ac_status=$? 3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 (exit $ac_status); }; } && 3134 { ac_try='test -s conftest$ac_exeext' 3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 (eval $ac_try) 2>&5 3137 ac_status=$? 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 (exit $ac_status); }; }; then 3140 ac_cv_search_opendir="-l$ac_lib" 3141break 3142else 3143 echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146fi 3147rm -f conftest.err conftest.$ac_objext \ 3148 conftest$ac_exeext conftest.$ac_ext 3149 done 3150fi 3151LIBS=$ac_func_search_save_LIBS 3152fi 3153echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3154echo "${ECHO_T}$ac_cv_search_opendir" >&6 3155if test "$ac_cv_search_opendir" != no; then 3156 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3157 3158fi 3159 3160else 3161 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3162echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3163if test "${ac_cv_search_opendir+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 ac_func_search_save_LIBS=$LIBS 3167ac_cv_search_opendir=no 3168cat >conftest.$ac_ext <<_ACEOF 3169/* confdefs.h. */ 3170_ACEOF 3171cat confdefs.h >>conftest.$ac_ext 3172cat >>conftest.$ac_ext <<_ACEOF 3173/* end confdefs.h. */ 3174 3175/* Override any gcc2 internal prototype to avoid an error. */ 3176#ifdef __cplusplus 3177extern "C" 3178#endif 3179/* We use char because int might match the return type of a gcc2 3180 builtin and then its argument prototype would still apply. */ 3181char opendir (); 3182int 3183main () 3184{ 3185opendir (); 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190rm -f conftest.$ac_objext conftest$ac_exeext 3191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3192 (eval $ac_link) 2>conftest.er1 3193 ac_status=$? 3194 grep -v '^ *+' conftest.er1 >conftest.err 3195 rm -f conftest.er1 3196 cat conftest.err >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } && 3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3201 (eval $ac_try) 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); }; } && 3205 { ac_try='test -s conftest$ac_exeext' 3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3207 (eval $ac_try) 2>&5 3208 ac_status=$? 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); }; }; then 3211 ac_cv_search_opendir="none required" 3212else 3213 echo "$as_me: failed program was:" >&5 3214sed 's/^/| /' conftest.$ac_ext >&5 3215 3216fi 3217rm -f conftest.err conftest.$ac_objext \ 3218 conftest$ac_exeext conftest.$ac_ext 3219if test "$ac_cv_search_opendir" = no; then 3220 for ac_lib in x; do 3221 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3222 cat >conftest.$ac_ext <<_ACEOF 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228 3229/* Override any gcc2 internal prototype to avoid an error. */ 3230#ifdef __cplusplus 3231extern "C" 3232#endif 3233/* We use char because int might match the return type of a gcc2 3234 builtin and then its argument prototype would still apply. */ 3235char opendir (); 3236int 3237main () 3238{ 3239opendir (); 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244rm -f conftest.$ac_objext conftest$ac_exeext 3245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3246 (eval $ac_link) 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } && 3253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3255 (eval $ac_try) 2>&5 3256 ac_status=$? 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); }; } && 3259 { ac_try='test -s conftest$ac_exeext' 3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3261 (eval $ac_try) 2>&5 3262 ac_status=$? 3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3264 (exit $ac_status); }; }; then 3265 ac_cv_search_opendir="-l$ac_lib" 3266break 3267else 3268 echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271fi 3272rm -f conftest.err conftest.$ac_objext \ 3273 conftest$ac_exeext conftest.$ac_ext 3274 done 3275fi 3276LIBS=$ac_func_search_save_LIBS 3277fi 3278echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3279echo "${ECHO_T}$ac_cv_search_opendir" >&6 3280if test "$ac_cv_search_opendir" != no; then 3281 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3282 3283fi 3284 3285fi 3286 3287ac_ext=c 3288ac_cpp='$CPP $CPPFLAGS' 3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3291ac_compiler_gnu=$ac_cv_c_compiler_gnu 3292echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3293echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3294# On Suns, sometimes $CPP names a directory. 3295if test -n "$CPP" && test -d "$CPP"; then 3296 CPP= 3297fi 3298if test -z "$CPP"; then 3299 if test "${ac_cv_prog_CPP+set}" = set; then 3300 echo $ECHO_N "(cached) $ECHO_C" >&6 3301else 3302 # Double quotes because CPP needs to be expanded 3303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3304 do 3305 ac_preproc_ok=false 3306for ac_c_preproc_warn_flag in '' yes 3307do 3308 # Use a header file that comes with gcc, so configuring glibc 3309 # with a fresh cross-compiler works. 3310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3311 # <limits.h> exists even on freestanding compilers. 3312 # On the NeXT, cc -E runs the code through the compiler's parser, 3313 # not just through cpp. "Syntax error" is here to catch this case. 3314 cat >conftest.$ac_ext <<_ACEOF 3315/* confdefs.h. */ 3316_ACEOF 3317cat confdefs.h >>conftest.$ac_ext 3318cat >>conftest.$ac_ext <<_ACEOF 3319/* end confdefs.h. */ 3320#ifdef __STDC__ 3321# include <limits.h> 3322#else 3323# include <assert.h> 3324#endif 3325 Syntax error 3326_ACEOF 3327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3329 ac_status=$? 3330 grep -v '^ *+' conftest.er1 >conftest.err 3331 rm -f conftest.er1 3332 cat conftest.err >&5 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } >/dev/null; then 3335 if test -s conftest.err; then 3336 ac_cpp_err=$ac_c_preproc_warn_flag 3337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3338 else 3339 ac_cpp_err= 3340 fi 3341else 3342 ac_cpp_err=yes 3343fi 3344if test -z "$ac_cpp_err"; then 3345 : 3346else 3347 echo "$as_me: failed program was:" >&5 3348sed 's/^/| /' conftest.$ac_ext >&5 3349 3350 # Broken: fails on valid input. 3351continue 3352fi 3353rm -f conftest.err conftest.$ac_ext 3354 3355 # OK, works on sane cases. Now check whether non-existent headers 3356 # can be detected and how. 3357 cat >conftest.$ac_ext <<_ACEOF 3358/* confdefs.h. */ 3359_ACEOF 3360cat confdefs.h >>conftest.$ac_ext 3361cat >>conftest.$ac_ext <<_ACEOF 3362/* end confdefs.h. */ 3363#include <ac_nonexistent.h> 3364_ACEOF 3365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3367 ac_status=$? 3368 grep -v '^ *+' conftest.er1 >conftest.err 3369 rm -f conftest.er1 3370 cat conftest.err >&5 3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); } >/dev/null; then 3373 if test -s conftest.err; then 3374 ac_cpp_err=$ac_c_preproc_warn_flag 3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3376 else 3377 ac_cpp_err= 3378 fi 3379else 3380 ac_cpp_err=yes 3381fi 3382if test -z "$ac_cpp_err"; then 3383 # Broken: success on invalid input. 3384continue 3385else 3386 echo "$as_me: failed program was:" >&5 3387sed 's/^/| /' conftest.$ac_ext >&5 3388 3389 # Passes both tests. 3390ac_preproc_ok=: 3391break 3392fi 3393rm -f conftest.err conftest.$ac_ext 3394 3395done 3396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3397rm -f conftest.err conftest.$ac_ext 3398if $ac_preproc_ok; then 3399 break 3400fi 3401 3402 done 3403 ac_cv_prog_CPP=$CPP 3404 3405fi 3406 CPP=$ac_cv_prog_CPP 3407else 3408 ac_cv_prog_CPP=$CPP 3409fi 3410echo "$as_me:$LINENO: result: $CPP" >&5 3411echo "${ECHO_T}$CPP" >&6 3412ac_preproc_ok=false 3413for ac_c_preproc_warn_flag in '' yes 3414do 3415 # Use a header file that comes with gcc, so configuring glibc 3416 # with a fresh cross-compiler works. 3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3418 # <limits.h> exists even on freestanding compilers. 3419 # On the NeXT, cc -E runs the code through the compiler's parser, 3420 # not just through cpp. "Syntax error" is here to catch this case. 3421 cat >conftest.$ac_ext <<_ACEOF 3422/* confdefs.h. */ 3423_ACEOF 3424cat confdefs.h >>conftest.$ac_ext 3425cat >>conftest.$ac_ext <<_ACEOF 3426/* end confdefs.h. */ 3427#ifdef __STDC__ 3428# include <limits.h> 3429#else 3430# include <assert.h> 3431#endif 3432 Syntax error 3433_ACEOF 3434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3436 ac_status=$? 3437 grep -v '^ *+' conftest.er1 >conftest.err 3438 rm -f conftest.er1 3439 cat conftest.err >&5 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); } >/dev/null; then 3442 if test -s conftest.err; then 3443 ac_cpp_err=$ac_c_preproc_warn_flag 3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3445 else 3446 ac_cpp_err= 3447 fi 3448else 3449 ac_cpp_err=yes 3450fi 3451if test -z "$ac_cpp_err"; then 3452 : 3453else 3454 echo "$as_me: failed program was:" >&5 3455sed 's/^/| /' conftest.$ac_ext >&5 3456 3457 # Broken: fails on valid input. 3458continue 3459fi 3460rm -f conftest.err conftest.$ac_ext 3461 3462 # OK, works on sane cases. Now check whether non-existent headers 3463 # can be detected and how. 3464 cat >conftest.$ac_ext <<_ACEOF 3465/* confdefs.h. */ 3466_ACEOF 3467cat confdefs.h >>conftest.$ac_ext 3468cat >>conftest.$ac_ext <<_ACEOF 3469/* end confdefs.h. */ 3470#include <ac_nonexistent.h> 3471_ACEOF 3472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3474 ac_status=$? 3475 grep -v '^ *+' conftest.er1 >conftest.err 3476 rm -f conftest.er1 3477 cat conftest.err >&5 3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3479 (exit $ac_status); } >/dev/null; then 3480 if test -s conftest.err; then 3481 ac_cpp_err=$ac_c_preproc_warn_flag 3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3483 else 3484 ac_cpp_err= 3485 fi 3486else 3487 ac_cpp_err=yes 3488fi 3489if test -z "$ac_cpp_err"; then 3490 # Broken: success on invalid input. 3491continue 3492else 3493 echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496 # Passes both tests. 3497ac_preproc_ok=: 3498break 3499fi 3500rm -f conftest.err conftest.$ac_ext 3501 3502done 3503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3504rm -f conftest.err conftest.$ac_ext 3505if $ac_preproc_ok; then 3506 : 3507else 3508 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3509See \`config.log' for more details." >&5 3510echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3511See \`config.log' for more details." >&2;} 3512 { (exit 1); exit 1; }; } 3513fi 3514 3515ac_ext=c 3516ac_cpp='$CPP $CPPFLAGS' 3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3519ac_compiler_gnu=$ac_cv_c_compiler_gnu 3520 3521 3522echo "$as_me:$LINENO: checking for egrep" >&5 3523echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3524if test "${ac_cv_prog_egrep+set}" = set; then 3525 echo $ECHO_N "(cached) $ECHO_C" >&6 3526else 3527 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3528 then ac_cv_prog_egrep='grep -E' 3529 else ac_cv_prog_egrep='egrep' 3530 fi 3531fi 3532echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3533echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3534 EGREP=$ac_cv_prog_egrep 3535 3536 3537echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3538echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3539if test "${ac_cv_header_stdc+set}" = set; then 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3541else 3542 cat >conftest.$ac_ext <<_ACEOF 3543/* confdefs.h. */ 3544_ACEOF 3545cat confdefs.h >>conftest.$ac_ext 3546cat >>conftest.$ac_ext <<_ACEOF 3547/* end confdefs.h. */ 3548#include <stdlib.h> 3549#include <stdarg.h> 3550#include <string.h> 3551#include <float.h> 3552 3553int 3554main () 3555{ 3556 3557 ; 3558 return 0; 3559} 3560_ACEOF 3561rm -f conftest.$ac_objext 3562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3563 (eval $ac_compile) 2>conftest.er1 3564 ac_status=$? 3565 grep -v '^ *+' conftest.er1 >conftest.err 3566 rm -f conftest.er1 3567 cat conftest.err >&5 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); } && 3570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3572 (eval $ac_try) 2>&5 3573 ac_status=$? 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); }; } && 3576 { ac_try='test -s conftest.$ac_objext' 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_header_stdc=yes 3583else 3584 echo "$as_me: failed program was:" >&5 3585sed 's/^/| /' conftest.$ac_ext >&5 3586 3587ac_cv_header_stdc=no 3588fi 3589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3590 3591if test $ac_cv_header_stdc = yes; then 3592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3593 cat >conftest.$ac_ext <<_ACEOF 3594/* confdefs.h. */ 3595_ACEOF 3596cat confdefs.h >>conftest.$ac_ext 3597cat >>conftest.$ac_ext <<_ACEOF 3598/* end confdefs.h. */ 3599#include <string.h> 3600 3601_ACEOF 3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3603 $EGREP "memchr" >/dev/null 2>&1; then 3604 : 3605else 3606 ac_cv_header_stdc=no 3607fi 3608rm -f conftest* 3609 3610fi 3611 3612if test $ac_cv_header_stdc = yes; then 3613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3614 cat >conftest.$ac_ext <<_ACEOF 3615/* confdefs.h. */ 3616_ACEOF 3617cat confdefs.h >>conftest.$ac_ext 3618cat >>conftest.$ac_ext <<_ACEOF 3619/* end confdefs.h. */ 3620#include <stdlib.h> 3621 3622_ACEOF 3623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3624 $EGREP "free" >/dev/null 2>&1; then 3625 : 3626else 3627 ac_cv_header_stdc=no 3628fi 3629rm -f conftest* 3630 3631fi 3632 3633if test $ac_cv_header_stdc = yes; then 3634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3635 if test "$cross_compiling" = yes; then 3636 : 3637else 3638 cat >conftest.$ac_ext <<_ACEOF 3639/* confdefs.h. */ 3640_ACEOF 3641cat confdefs.h >>conftest.$ac_ext 3642cat >>conftest.$ac_ext <<_ACEOF 3643/* end confdefs.h. */ 3644#include <ctype.h> 3645#if ((' ' & 0x0FF) == 0x020) 3646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3648#else 3649# define ISLOWER(c) \ 3650 (('a' <= (c) && (c) <= 'i') \ 3651 || ('j' <= (c) && (c) <= 'r') \ 3652 || ('s' <= (c) && (c) <= 'z')) 3653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3654#endif 3655 3656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3657int 3658main () 3659{ 3660 int i; 3661 for (i = 0; i < 256; i++) 3662 if (XOR (islower (i), ISLOWER (i)) 3663 || toupper (i) != TOUPPER (i)) 3664 exit(2); 3665 exit (0); 3666} 3667_ACEOF 3668rm -f conftest$ac_exeext 3669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3670 (eval $ac_link) 2>&5 3671 ac_status=$? 3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3675 (eval $ac_try) 2>&5 3676 ac_status=$? 3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3678 (exit $ac_status); }; }; then 3679 : 3680else 3681 echo "$as_me: program exited with status $ac_status" >&5 3682echo "$as_me: failed program was:" >&5 3683sed 's/^/| /' conftest.$ac_ext >&5 3684 3685( exit $ac_status ) 3686ac_cv_header_stdc=no 3687fi 3688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3689fi 3690fi 3691fi 3692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3693echo "${ECHO_T}$ac_cv_header_stdc" >&6 3694if test $ac_cv_header_stdc = yes; then 3695 3696cat >>confdefs.h <<\_ACEOF 3697#define STDC_HEADERS 1 3698_ACEOF 3699 3700fi 3701 3702# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3713 inttypes.h stdint.h unistd.h 3714do 3715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3716echo "$as_me:$LINENO: checking for $ac_header" >&5 3717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3718if eval "test \"\${$as_ac_Header+set}\" = set"; then 3719 echo $ECHO_N "(cached) $ECHO_C" >&6 3720else 3721 cat >conftest.$ac_ext <<_ACEOF 3722/* confdefs.h. */ 3723_ACEOF 3724cat confdefs.h >>conftest.$ac_ext 3725cat >>conftest.$ac_ext <<_ACEOF 3726/* end confdefs.h. */ 3727$ac_includes_default 3728 3729#include <$ac_header> 3730_ACEOF 3731rm -f conftest.$ac_objext 3732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3733 (eval $ac_compile) 2>conftest.er1 3734 ac_status=$? 3735 grep -v '^ *+' conftest.er1 >conftest.err 3736 rm -f conftest.er1 3737 cat conftest.err >&5 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); } && 3740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3742 (eval $ac_try) 2>&5 3743 ac_status=$? 3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); }; } && 3746 { ac_try='test -s conftest.$ac_objext' 3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3748 (eval $ac_try) 2>&5 3749 ac_status=$? 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); }; }; then 3752 eval "$as_ac_Header=yes" 3753else 3754 echo "$as_me: failed program was:" >&5 3755sed 's/^/| /' conftest.$ac_ext >&5 3756 3757eval "$as_ac_Header=no" 3758fi 3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3760fi 3761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3763if test `eval echo '${'$as_ac_Header'}'` = yes; then 3764 cat >>confdefs.h <<_ACEOF 3765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3766_ACEOF 3767 3768fi 3769 3770done 3771 3772 3773 3774 3775 3776for ac_header in fcntl.h sys/time.h unistd.h 3777do 3778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3779if eval "test \"\${$as_ac_Header+set}\" = set"; then 3780 echo "$as_me:$LINENO: checking for $ac_header" >&5 3781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3782if eval "test \"\${$as_ac_Header+set}\" = set"; then 3783 echo $ECHO_N "(cached) $ECHO_C" >&6 3784fi 3785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3787else 3788 # Is the header compilable? 3789echo "$as_me:$LINENO: checking $ac_header usability" >&5 3790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3791cat >conftest.$ac_ext <<_ACEOF 3792/* confdefs.h. */ 3793_ACEOF 3794cat confdefs.h >>conftest.$ac_ext 3795cat >>conftest.$ac_ext <<_ACEOF 3796/* end confdefs.h. */ 3797$ac_includes_default 3798#include <$ac_header> 3799_ACEOF 3800rm -f conftest.$ac_objext 3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3802 (eval $ac_compile) 2>conftest.er1 3803 ac_status=$? 3804 grep -v '^ *+' conftest.er1 >conftest.err 3805 rm -f conftest.er1 3806 cat conftest.err >&5 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); } && 3809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3811 (eval $ac_try) 2>&5 3812 ac_status=$? 3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3814 (exit $ac_status); }; } && 3815 { ac_try='test -s conftest.$ac_objext' 3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3817 (eval $ac_try) 2>&5 3818 ac_status=$? 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); }; }; then 3821 ac_header_compiler=yes 3822else 3823 echo "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826ac_header_compiler=no 3827fi 3828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3830echo "${ECHO_T}$ac_header_compiler" >&6 3831 3832# Is the header present? 3833echo "$as_me:$LINENO: checking $ac_header presence" >&5 3834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3835cat >conftest.$ac_ext <<_ACEOF 3836/* confdefs.h. */ 3837_ACEOF 3838cat confdefs.h >>conftest.$ac_ext 3839cat >>conftest.$ac_ext <<_ACEOF 3840/* end confdefs.h. */ 3841#include <$ac_header> 3842_ACEOF 3843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3845 ac_status=$? 3846 grep -v '^ *+' conftest.er1 >conftest.err 3847 rm -f conftest.er1 3848 cat conftest.err >&5 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); } >/dev/null; then 3851 if test -s conftest.err; then 3852 ac_cpp_err=$ac_c_preproc_warn_flag 3853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3854 else 3855 ac_cpp_err= 3856 fi 3857else 3858 ac_cpp_err=yes 3859fi 3860if test -z "$ac_cpp_err"; then 3861 ac_header_preproc=yes 3862else 3863 echo "$as_me: failed program was:" >&5 3864sed 's/^/| /' conftest.$ac_ext >&5 3865 3866 ac_header_preproc=no 3867fi 3868rm -f conftest.err conftest.$ac_ext 3869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3870echo "${ECHO_T}$ac_header_preproc" >&6 3871 3872# So? What about this header? 3873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3874 yes:no: ) 3875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3879 ac_header_preproc=yes 3880 ;; 3881 no:yes:* ) 3882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3894 ( 3895 cat <<\_ASBOX 3896## ------------------------------------------ ## 3897## Report this to the AC_PACKAGE_NAME lists. ## 3898## ------------------------------------------ ## 3899_ASBOX 3900 ) | 3901 sed "s/^/$as_me: WARNING: /" >&2 3902 ;; 3903esac 3904echo "$as_me:$LINENO: checking for $ac_header" >&5 3905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3906if eval "test \"\${$as_ac_Header+set}\" = set"; then 3907 echo $ECHO_N "(cached) $ECHO_C" >&6 3908else 3909 eval "$as_ac_Header=\$ac_header_preproc" 3910fi 3911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3913 3914fi 3915if test `eval echo '${'$as_ac_Header'}'` = yes; then 3916 cat >>confdefs.h <<_ACEOF 3917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3918_ACEOF 3919 3920fi 3921 3922done 3923 3924 3925echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3926echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3927if test "${ac_cv_c_const+set}" = set; then 3928 echo $ECHO_N "(cached) $ECHO_C" >&6 3929else 3930 cat >conftest.$ac_ext <<_ACEOF 3931/* confdefs.h. */ 3932_ACEOF 3933cat confdefs.h >>conftest.$ac_ext 3934cat >>conftest.$ac_ext <<_ACEOF 3935/* end confdefs.h. */ 3936 3937int 3938main () 3939{ 3940/* FIXME: Include the comments suggested by Paul. */ 3941#ifndef __cplusplus 3942 /* Ultrix mips cc rejects this. */ 3943 typedef int charset[2]; 3944 const charset x; 3945 /* SunOS 4.1.1 cc rejects this. */ 3946 char const *const *ccp; 3947 char **p; 3948 /* NEC SVR4.0.2 mips cc rejects this. */ 3949 struct point {int x, y;}; 3950 static struct point const zero = {0,0}; 3951 /* AIX XL C 1.02.0.0 rejects this. 3952 It does not let you subtract one const X* pointer from another in 3953 an arm of an if-expression whose if-part is not a constant 3954 expression */ 3955 const char *g = "string"; 3956 ccp = &g + (g ? g-g : 0); 3957 /* HPUX 7.0 cc rejects these. */ 3958 ++ccp; 3959 p = (char**) ccp; 3960 ccp = (char const *const *) p; 3961 { /* SCO 3.2v4 cc rejects this. */ 3962 char *t; 3963 char const *s = 0 ? (char *) 0 : (char const *) 0; 3964 3965 *t++ = 0; 3966 } 3967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3968 int x[] = {25, 17}; 3969 const int *foo = &x[0]; 3970 ++foo; 3971 } 3972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3973 typedef const int *iptr; 3974 iptr p = 0; 3975 ++p; 3976 } 3977 { /* AIX XL C 1.02.0.0 rejects this saying 3978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3979 struct s { int j; const int *ap[3]; }; 3980 struct s *b; b->j = 5; 3981 } 3982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3983 const int foo = 10; 3984 } 3985#endif 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991rm -f conftest.$ac_objext 3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3993 (eval $ac_compile) 2>conftest.er1 3994 ac_status=$? 3995 grep -v '^ *+' conftest.er1 >conftest.err 3996 rm -f conftest.er1 3997 cat conftest.err >&5 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); } && 4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4002 (eval $ac_try) 2>&5 4003 ac_status=$? 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); }; } && 4006 { ac_try='test -s conftest.$ac_objext' 4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4008 (eval $ac_try) 2>&5 4009 ac_status=$? 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); }; }; then 4012 ac_cv_c_const=yes 4013else 4014 echo "$as_me: failed program was:" >&5 4015sed 's/^/| /' conftest.$ac_ext >&5 4016 4017ac_cv_c_const=no 4018fi 4019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4020fi 4021echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4022echo "${ECHO_T}$ac_cv_c_const" >&6 4023if test $ac_cv_c_const = no; then 4024 4025cat >>confdefs.h <<\_ACEOF 4026#define const 4027_ACEOF 4028 4029fi 4030 4031echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4032echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4033if test "${ac_cv_header_time+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 4035else 4036 cat >conftest.$ac_ext <<_ACEOF 4037/* confdefs.h. */ 4038_ACEOF 4039cat confdefs.h >>conftest.$ac_ext 4040cat >>conftest.$ac_ext <<_ACEOF 4041/* end confdefs.h. */ 4042#include <sys/types.h> 4043#include <sys/time.h> 4044#include <time.h> 4045 4046int 4047main () 4048{ 4049if ((struct tm *) 0) 4050return 0; 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055rm -f conftest.$ac_objext 4056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4057 (eval $ac_compile) 2>conftest.er1 4058 ac_status=$? 4059 grep -v '^ *+' conftest.er1 >conftest.err 4060 rm -f conftest.er1 4061 cat conftest.err >&5 4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4063 (exit $ac_status); } && 4064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4066 (eval $ac_try) 2>&5 4067 ac_status=$? 4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4069 (exit $ac_status); }; } && 4070 { ac_try='test -s conftest.$ac_objext' 4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4072 (eval $ac_try) 2>&5 4073 ac_status=$? 4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4075 (exit $ac_status); }; }; then 4076 ac_cv_header_time=yes 4077else 4078 echo "$as_me: failed program was:" >&5 4079sed 's/^/| /' conftest.$ac_ext >&5 4080 4081ac_cv_header_time=no 4082fi 4083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4084fi 4085echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4086echo "${ECHO_T}$ac_cv_header_time" >&6 4087if test $ac_cv_header_time = yes; then 4088 4089cat >>confdefs.h <<\_ACEOF 4090#define TIME_WITH_SYS_TIME 1 4091_ACEOF 4092 4093fi 4094 4095 4096 4097for ac_func in vprintf 4098do 4099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4100echo "$as_me:$LINENO: checking for $ac_func" >&5 4101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4102if eval "test \"\${$as_ac_var+set}\" = set"; then 4103 echo $ECHO_N "(cached) $ECHO_C" >&6 4104else 4105 cat >conftest.$ac_ext <<_ACEOF 4106/* confdefs.h. */ 4107_ACEOF 4108cat confdefs.h >>conftest.$ac_ext 4109cat >>conftest.$ac_ext <<_ACEOF 4110/* end confdefs.h. */ 4111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4112 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4113#define $ac_func innocuous_$ac_func 4114 4115/* System header to define __stub macros and hopefully few prototypes, 4116 which can conflict with char $ac_func (); below. 4117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4118 <limits.h> exists even on freestanding compilers. */ 4119 4120#ifdef __STDC__ 4121# include <limits.h> 4122#else 4123# include <assert.h> 4124#endif 4125 4126#undef $ac_func 4127 4128/* Override any gcc2 internal prototype to avoid an error. */ 4129#ifdef __cplusplus 4130extern "C" 4131{ 4132#endif 4133/* We use char because int might match the return type of a gcc2 4134 builtin and then its argument prototype would still apply. */ 4135char $ac_func (); 4136/* The GNU C library defines this for functions which it implements 4137 to always fail with ENOSYS. Some functions are actually named 4138 something starting with __ and the normal name is an alias. */ 4139#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4140choke me 4141#else 4142char (*f) () = $ac_func; 4143#endif 4144#ifdef __cplusplus 4145} 4146#endif 4147 4148int 4149main () 4150{ 4151return f != $ac_func; 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156rm -f conftest.$ac_objext conftest$ac_exeext 4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4158 (eval $ac_link) 2>conftest.er1 4159 ac_status=$? 4160 grep -v '^ *+' conftest.er1 >conftest.err 4161 rm -f conftest.er1 4162 cat conftest.err >&5 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); } && 4165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4167 (eval $ac_try) 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); }; } && 4171 { ac_try='test -s conftest$ac_exeext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 eval "$as_ac_var=yes" 4178else 4179 echo "$as_me: failed program was:" >&5 4180sed 's/^/| /' conftest.$ac_ext >&5 4181 4182eval "$as_ac_var=no" 4183fi 4184rm -f conftest.err conftest.$ac_objext \ 4185 conftest$ac_exeext conftest.$ac_ext 4186fi 4187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4189if test `eval echo '${'$as_ac_var'}'` = yes; then 4190 cat >>confdefs.h <<_ACEOF 4191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4192_ACEOF 4193 4194echo "$as_me:$LINENO: checking for _doprnt" >&5 4195echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4196if test "${ac_cv_func__doprnt+set}" = set; then 4197 echo $ECHO_N "(cached) $ECHO_C" >&6 4198else 4199 cat >conftest.$ac_ext <<_ACEOF 4200/* confdefs.h. */ 4201_ACEOF 4202cat confdefs.h >>conftest.$ac_ext 4203cat >>conftest.$ac_ext <<_ACEOF 4204/* end confdefs.h. */ 4205/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 4206 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4207#define _doprnt innocuous__doprnt 4208 4209/* System header to define __stub macros and hopefully few prototypes, 4210 which can conflict with char _doprnt (); below. 4211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4212 <limits.h> exists even on freestanding compilers. */ 4213 4214#ifdef __STDC__ 4215# include <limits.h> 4216#else 4217# include <assert.h> 4218#endif 4219 4220#undef _doprnt 4221 4222/* Override any gcc2 internal prototype to avoid an error. */ 4223#ifdef __cplusplus 4224extern "C" 4225{ 4226#endif 4227/* We use char because int might match the return type of a gcc2 4228 builtin and then its argument prototype would still apply. */ 4229char _doprnt (); 4230/* The GNU C library defines this for functions which it implements 4231 to always fail with ENOSYS. Some functions are actually named 4232 something starting with __ and the normal name is an alias. */ 4233#if defined (__stub__doprnt) || defined (__stub____doprnt) 4234choke me 4235#else 4236char (*f) () = _doprnt; 4237#endif 4238#ifdef __cplusplus 4239} 4240#endif 4241 4242int 4243main () 4244{ 4245return f != _doprnt; 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250rm -f conftest.$ac_objext conftest$ac_exeext 4251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4252 (eval $ac_link) 2>conftest.er1 4253 ac_status=$? 4254 grep -v '^ *+' conftest.er1 >conftest.err 4255 rm -f conftest.er1 4256 cat conftest.err >&5 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); } && 4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4261 (eval $ac_try) 2>&5 4262 ac_status=$? 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); }; } && 4265 { ac_try='test -s conftest$ac_exeext' 4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4267 (eval $ac_try) 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); }; }; then 4271 ac_cv_func__doprnt=yes 4272else 4273 echo "$as_me: failed program was:" >&5 4274sed 's/^/| /' conftest.$ac_ext >&5 4275 4276ac_cv_func__doprnt=no 4277fi 4278rm -f conftest.err conftest.$ac_objext \ 4279 conftest$ac_exeext conftest.$ac_ext 4280fi 4281echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 4282echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4283if test $ac_cv_func__doprnt = yes; then 4284 4285cat >>confdefs.h <<\_ACEOF 4286#define HAVE_DOPRNT 1 4287_ACEOF 4288 4289fi 4290 4291fi 4292done 4293 4294 4295 4296 4297 4298 4299 4300for ac_func in gettimeofday sleep mkdir socket strtol 4301do 4302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4303echo "$as_me:$LINENO: checking for $ac_func" >&5 4304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4305if eval "test \"\${$as_ac_var+set}\" = set"; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307else 4308 cat >conftest.$ac_ext <<_ACEOF 4309/* confdefs.h. */ 4310_ACEOF 4311cat confdefs.h >>conftest.$ac_ext 4312cat >>conftest.$ac_ext <<_ACEOF 4313/* end confdefs.h. */ 4314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4316#define $ac_func innocuous_$ac_func 4317 4318/* System header to define __stub macros and hopefully few prototypes, 4319 which can conflict with char $ac_func (); below. 4320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4321 <limits.h> exists even on freestanding compilers. */ 4322 4323#ifdef __STDC__ 4324# include <limits.h> 4325#else 4326# include <assert.h> 4327#endif 4328 4329#undef $ac_func 4330 4331/* Override any gcc2 internal prototype to avoid an error. */ 4332#ifdef __cplusplus 4333extern "C" 4334{ 4335#endif 4336/* We use char because int might match the return type of a gcc2 4337 builtin and then its argument prototype would still apply. */ 4338char $ac_func (); 4339/* The GNU C library defines this for functions which it implements 4340 to always fail with ENOSYS. Some functions are actually named 4341 something starting with __ and the normal name is an alias. */ 4342#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4343choke me 4344#else 4345char (*f) () = $ac_func; 4346#endif 4347#ifdef __cplusplus 4348} 4349#endif 4350 4351int 4352main () 4353{ 4354return f != $ac_func; 4355 ; 4356 return 0; 4357} 4358_ACEOF 4359rm -f conftest.$ac_objext conftest$ac_exeext 4360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4361 (eval $ac_link) 2>conftest.er1 4362 ac_status=$? 4363 grep -v '^ *+' conftest.er1 >conftest.err 4364 rm -f conftest.er1 4365 cat conftest.err >&5 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); } && 4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; } && 4374 { ac_try='test -s conftest$ac_exeext' 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 (eval $ac_try) 2>&5 4377 ac_status=$? 4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); }; }; then 4380 eval "$as_ac_var=yes" 4381else 4382 echo "$as_me: failed program was:" >&5 4383sed 's/^/| /' conftest.$ac_ext >&5 4384 4385eval "$as_ac_var=no" 4386fi 4387rm -f conftest.err conftest.$ac_objext \ 4388 conftest$ac_exeext conftest.$ac_ext 4389fi 4390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4392if test `eval echo '${'$as_ac_var'}'` = yes; then 4393 cat >>confdefs.h <<_ACEOF 4394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4395_ACEOF 4396 4397fi 4398done 4399 4400 4401for ac_func in getopt_long 4402do 4403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4404echo "$as_me:$LINENO: checking for $ac_func" >&5 4405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4406if eval "test \"\${$as_ac_var+set}\" = set"; then 4407 echo $ECHO_N "(cached) $ECHO_C" >&6 4408else 4409 cat >conftest.$ac_ext <<_ACEOF 4410/* confdefs.h. */ 4411_ACEOF 4412cat confdefs.h >>conftest.$ac_ext 4413cat >>conftest.$ac_ext <<_ACEOF 4414/* end confdefs.h. */ 4415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4417#define $ac_func innocuous_$ac_func 4418 4419/* System header to define __stub macros and hopefully few prototypes, 4420 which can conflict with char $ac_func (); below. 4421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4422 <limits.h> exists even on freestanding compilers. */ 4423 4424#ifdef __STDC__ 4425# include <limits.h> 4426#else 4427# include <assert.h> 4428#endif 4429 4430#undef $ac_func 4431 4432/* Override any gcc2 internal prototype to avoid an error. */ 4433#ifdef __cplusplus 4434extern "C" 4435{ 4436#endif 4437/* We use char because int might match the return type of a gcc2 4438 builtin and then its argument prototype would still apply. */ 4439char $ac_func (); 4440/* The GNU C library defines this for functions which it implements 4441 to always fail with ENOSYS. Some functions are actually named 4442 something starting with __ and the normal name is an alias. */ 4443#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4444choke me 4445#else 4446char (*f) () = $ac_func; 4447#endif 4448#ifdef __cplusplus 4449} 4450#endif 4451 4452int 4453main () 4454{ 4455return f != $ac_func; 4456 ; 4457 return 0; 4458} 4459_ACEOF 4460rm -f conftest.$ac_objext conftest$ac_exeext 4461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4462 (eval $ac_link) 2>conftest.er1 4463 ac_status=$? 4464 grep -v '^ *+' conftest.er1 >conftest.err 4465 rm -f conftest.er1 4466 cat conftest.err >&5 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); } && 4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4471 (eval $ac_try) 2>&5 4472 ac_status=$? 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); }; } && 4475 { ac_try='test -s conftest$ac_exeext' 4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4477 (eval $ac_try) 2>&5 4478 ac_status=$? 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); }; }; then 4481 eval "$as_ac_var=yes" 4482else 4483 echo "$as_me: failed program was:" >&5 4484sed 's/^/| /' conftest.$ac_ext >&5 4485 4486eval "$as_ac_var=no" 4487fi 4488rm -f conftest.err conftest.$ac_objext \ 4489 conftest$ac_exeext conftest.$ac_ext 4490fi 4491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4493if test `eval echo '${'$as_ac_var'}'` = yes; then 4494 cat >>confdefs.h <<_ACEOF 4495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4496_ACEOF 4497 4498else 4499 case $LIBOBJS in 4500 "getopt.$ac_objext" | \ 4501 *" getopt.$ac_objext" | \ 4502 "getopt.$ac_objext "* | \ 4503 *" getopt.$ac_objext "* ) ;; 4504 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; 4505esac 4506 case $LIBOBJS in 4507 "getopt1.$ac_objext" | \ 4508 *" getopt1.$ac_objext" | \ 4509 "getopt1.$ac_objext "* | \ 4510 *" getopt1.$ac_objext "* ) ;; 4511 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; 4512esac 4513 4514fi 4515done 4516 4517 4518#Compress Roms 4519 4520if test "${ac_cv_header_bzlib_h+set}" = set; then 4521 echo "$as_me:$LINENO: checking for bzlib.h" >&5 4522echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 4523if test "${ac_cv_header_bzlib_h+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525fi 4526echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 4527echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6 4528else 4529 # Is the header compilable? 4530echo "$as_me:$LINENO: checking bzlib.h usability" >&5 4531echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6 4532cat >conftest.$ac_ext <<_ACEOF 4533/* confdefs.h. */ 4534_ACEOF 4535cat confdefs.h >>conftest.$ac_ext 4536cat >>conftest.$ac_ext <<_ACEOF 4537/* end confdefs.h. */ 4538$ac_includes_default 4539#include <bzlib.h> 4540_ACEOF 4541rm -f conftest.$ac_objext 4542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4543 (eval $ac_compile) 2>conftest.er1 4544 ac_status=$? 4545 grep -v '^ *+' conftest.er1 >conftest.err 4546 rm -f conftest.er1 4547 cat conftest.err >&5 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); } && 4550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; } && 4556 { ac_try='test -s conftest.$ac_objext' 4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 (eval $ac_try) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 ac_header_compiler=yes 4563else 4564 echo "$as_me: failed program was:" >&5 4565sed 's/^/| /' conftest.$ac_ext >&5 4566 4567ac_header_compiler=no 4568fi 4569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4571echo "${ECHO_T}$ac_header_compiler" >&6 4572 4573# Is the header present? 4574echo "$as_me:$LINENO: checking bzlib.h presence" >&5 4575echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6 4576cat >conftest.$ac_ext <<_ACEOF 4577/* confdefs.h. */ 4578_ACEOF 4579cat confdefs.h >>conftest.$ac_ext 4580cat >>conftest.$ac_ext <<_ACEOF 4581/* end confdefs.h. */ 4582#include <bzlib.h> 4583_ACEOF 4584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4586 ac_status=$? 4587 grep -v '^ *+' conftest.er1 >conftest.err 4588 rm -f conftest.er1 4589 cat conftest.err >&5 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); } >/dev/null; then 4592 if test -s conftest.err; then 4593 ac_cpp_err=$ac_c_preproc_warn_flag 4594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4595 else 4596 ac_cpp_err= 4597 fi 4598else 4599 ac_cpp_err=yes 4600fi 4601if test -z "$ac_cpp_err"; then 4602 ac_header_preproc=yes 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607 ac_header_preproc=no 4608fi 4609rm -f conftest.err conftest.$ac_ext 4610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4611echo "${ECHO_T}$ac_header_preproc" >&6 4612 4613# So? What about this header? 4614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4615 yes:no: ) 4616 { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 4617echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4618 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5 4619echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} 4620 ac_header_preproc=yes 4621 ;; 4622 no:yes:* ) 4623 { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5 4624echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} 4625 { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5 4626echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} 4627 { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5 4628echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} 4629 { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5 4630echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 4631 { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5 4632echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} 4633 { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5 4634echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} 4635 ( 4636 cat <<\_ASBOX 4637## ------------------------------------------ ## 4638## Report this to the AC_PACKAGE_NAME lists. ## 4639## ------------------------------------------ ## 4640_ASBOX 4641 ) | 4642 sed "s/^/$as_me: WARNING: /" >&2 4643 ;; 4644esac 4645echo "$as_me:$LINENO: checking for bzlib.h" >&5 4646echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6 4647if test "${ac_cv_header_bzlib_h+set}" = set; then 4648 echo $ECHO_N "(cached) $ECHO_C" >&6 4649else 4650 ac_cv_header_bzlib_h=$ac_header_preproc 4651fi 4652echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 4653echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6 4654 4655fi 4656if test $ac_cv_header_bzlib_h = yes; then 4657 4658echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5 4659echo $ECHO_N "checking for BZ2_bzopen in -lbz2... $ECHO_C" >&6 4660if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then 4661 echo $ECHO_N "(cached) $ECHO_C" >&6 4662else 4663 ac_check_lib_save_LIBS=$LIBS 4664LIBS="-lbz2 $LIBS" 4665cat >conftest.$ac_ext <<_ACEOF 4666/* confdefs.h. */ 4667_ACEOF 4668cat confdefs.h >>conftest.$ac_ext 4669cat >>conftest.$ac_ext <<_ACEOF 4670/* end confdefs.h. */ 4671 4672/* Override any gcc2 internal prototype to avoid an error. */ 4673#ifdef __cplusplus 4674extern "C" 4675#endif 4676/* We use char because int might match the return type of a gcc2 4677 builtin and then its argument prototype would still apply. */ 4678char BZ2_bzopen (); 4679int 4680main () 4681{ 4682BZ2_bzopen (); 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687rm -f conftest.$ac_objext conftest$ac_exeext 4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4689 (eval $ac_link) 2>conftest.er1 4690 ac_status=$? 4691 grep -v '^ *+' conftest.er1 >conftest.err 4692 rm -f conftest.er1 4693 cat conftest.err >&5 4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4695 (exit $ac_status); } && 4696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4698 (eval $ac_try) 2>&5 4699 ac_status=$? 4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4701 (exit $ac_status); }; } && 4702 { ac_try='test -s conftest$ac_exeext' 4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); }; }; then 4708 ac_cv_lib_bz2_BZ2_bzopen=yes 4709else 4710 echo "$as_me: failed program was:" >&5 4711sed 's/^/| /' conftest.$ac_ext >&5 4712 4713ac_cv_lib_bz2_BZ2_bzopen=no 4714fi 4715rm -f conftest.err conftest.$ac_objext \ 4716 conftest$ac_exeext conftest.$ac_ext 4717LIBS=$ac_check_lib_save_LIBS 4718fi 4719echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 4720echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzopen" >&6 4721if test $ac_cv_lib_bz2_BZ2_bzopen = yes; then 4722 cat >>confdefs.h <<_ACEOF 4723#define HAVE_LIBBZ2 1 4724_ACEOF 4725 4726 LIBS="-lbz2 $LIBS" 4727 4728else 4729 { { echo "$as_me:$LINENO: error: can't find bzlil on your system" >&5 4730echo "$as_me: error: can't find bzlil on your system" >&2;} 4731 { (exit 1); exit 1; }; } 4732fi 4733 4734fi 4735 4736 4737if test "${ac_cv_header_zlib_h+set}" = set; then 4738 echo "$as_me:$LINENO: checking for zlib.h" >&5 4739echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 4740if test "${ac_cv_header_zlib_h+set}" = set; then 4741 echo $ECHO_N "(cached) $ECHO_C" >&6 4742fi 4743echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 4744echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 4745else 4746 # Is the header compilable? 4747echo "$as_me:$LINENO: checking zlib.h usability" >&5 4748echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 4749cat >conftest.$ac_ext <<_ACEOF 4750/* confdefs.h. */ 4751_ACEOF 4752cat confdefs.h >>conftest.$ac_ext 4753cat >>conftest.$ac_ext <<_ACEOF 4754/* end confdefs.h. */ 4755$ac_includes_default 4756#include <zlib.h> 4757_ACEOF 4758rm -f conftest.$ac_objext 4759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4760 (eval $ac_compile) 2>conftest.er1 4761 ac_status=$? 4762 grep -v '^ *+' conftest.er1 >conftest.err 4763 rm -f conftest.er1 4764 cat conftest.err >&5 4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4766 (exit $ac_status); } && 4767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4769 (eval $ac_try) 2>&5 4770 ac_status=$? 4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4772 (exit $ac_status); }; } && 4773 { ac_try='test -s conftest.$ac_objext' 4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4775 (eval $ac_try) 2>&5 4776 ac_status=$? 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); }; }; then 4779 ac_header_compiler=yes 4780else 4781 echo "$as_me: failed program was:" >&5 4782sed 's/^/| /' conftest.$ac_ext >&5 4783 4784ac_header_compiler=no 4785fi 4786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4788echo "${ECHO_T}$ac_header_compiler" >&6 4789 4790# Is the header present? 4791echo "$as_me:$LINENO: checking zlib.h presence" >&5 4792echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 4793cat >conftest.$ac_ext <<_ACEOF 4794/* confdefs.h. */ 4795_ACEOF 4796cat confdefs.h >>conftest.$ac_ext 4797cat >>conftest.$ac_ext <<_ACEOF 4798/* end confdefs.h. */ 4799#include <zlib.h> 4800_ACEOF 4801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4803 ac_status=$? 4804 grep -v '^ *+' conftest.er1 >conftest.err 4805 rm -f conftest.er1 4806 cat conftest.err >&5 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); } >/dev/null; then 4809 if test -s conftest.err; then 4810 ac_cpp_err=$ac_c_preproc_warn_flag 4811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4812 else 4813 ac_cpp_err= 4814 fi 4815else 4816 ac_cpp_err=yes 4817fi 4818if test -z "$ac_cpp_err"; then 4819 ac_header_preproc=yes 4820else 4821 echo "$as_me: failed program was:" >&5 4822sed 's/^/| /' conftest.$ac_ext >&5 4823 4824 ac_header_preproc=no 4825fi 4826rm -f conftest.err conftest.$ac_ext 4827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4828echo "${ECHO_T}$ac_header_preproc" >&6 4829 4830# So? What about this header? 4831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4832 yes:no: ) 4833 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 4834echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4835 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 4836echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 4837 ac_header_preproc=yes 4838 ;; 4839 no:yes:* ) 4840 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 4841echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 4842 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 4843echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 4844 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 4845echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 4846 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 4847echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 4848 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 4849echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 4850 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 4851echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 4852 ( 4853 cat <<\_ASBOX 4854## ------------------------------------------ ## 4855## Report this to the AC_PACKAGE_NAME lists. ## 4856## ------------------------------------------ ## 4857_ASBOX 4858 ) | 4859 sed "s/^/$as_me: WARNING: /" >&2 4860 ;; 4861esac 4862echo "$as_me:$LINENO: checking for zlib.h" >&5 4863echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 4864if test "${ac_cv_header_zlib_h+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866else 4867 ac_cv_header_zlib_h=$ac_header_preproc 4868fi 4869echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 4870echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 4871 4872fi 4873if test $ac_cv_header_zlib_h = yes; then 4874 4875echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 4876echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 4877if test "${ac_cv_lib_z_gzopen+set}" = set; then 4878 echo $ECHO_N "(cached) $ECHO_C" >&6 4879else 4880 ac_check_lib_save_LIBS=$LIBS 4881LIBS="-lz $LIBS" 4882cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888 4889/* Override any gcc2 internal prototype to avoid an error. */ 4890#ifdef __cplusplus 4891extern "C" 4892#endif 4893/* We use char because int might match the return type of a gcc2 4894 builtin and then its argument prototype would still apply. */ 4895char gzopen (); 4896int 4897main () 4898{ 4899gzopen (); 4900 ; 4901 return 0; 4902} 4903_ACEOF 4904rm -f conftest.$ac_objext conftest$ac_exeext 4905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4906 (eval $ac_link) 2>conftest.er1 4907 ac_status=$? 4908 grep -v '^ *+' conftest.er1 >conftest.err 4909 rm -f conftest.er1 4910 cat conftest.err >&5 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4912 (exit $ac_status); } && 4913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4915 (eval $ac_try) 2>&5 4916 ac_status=$? 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); }; } && 4919 { ac_try='test -s conftest$ac_exeext' 4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4921 (eval $ac_try) 2>&5 4922 ac_status=$? 4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); }; }; then 4925 ac_cv_lib_z_gzopen=yes 4926else 4927 echo "$as_me: failed program was:" >&5 4928sed 's/^/| /' conftest.$ac_ext >&5 4929 4930ac_cv_lib_z_gzopen=no 4931fi 4932rm -f conftest.err conftest.$ac_objext \ 4933 conftest$ac_exeext conftest.$ac_ext 4934LIBS=$ac_check_lib_save_LIBS 4935fi 4936echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 4937echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 4938if test $ac_cv_lib_z_gzopen = yes; then 4939 cat >>confdefs.h <<_ACEOF 4940#define HAVE_LIBZ 1 4941_ACEOF 4942 4943 LIBS="-lz $LIBS" 4944 4945else 4946 { { echo "$as_me:$LINENO: error: can't find zlib on your system" >&5 4947echo "$as_me: error: can't find zlib on your system" >&2;} 4948 { (exit 1); exit 1; }; } 4949fi 4950 4951fi 4952 4953 4954 4955 4956 4957 4958#Opengl Mode 4959 4960# Check whether --enable-gl or --disable-gl was given. 4961if test "${enable_gl+set}" = set; then 4962 enableval="$enable_gl" 4963 enablegl=$enableval 4964else 4965 enablegl=yes 4966fi; 4967 4968if test "$enablegl" = yes ; then 4969 if test "${ac_cv_header_GL_gl_h+set}" = set; then 4970 echo "$as_me:$LINENO: checking for GL/gl.h" >&5 4971echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 4972if test "${ac_cv_header_GL_gl_h+set}" = set; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974fi 4975echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 4976echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 4977else 4978 # Is the header compilable? 4979echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 4980echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 4981cat >conftest.$ac_ext <<_ACEOF 4982/* confdefs.h. */ 4983_ACEOF 4984cat confdefs.h >>conftest.$ac_ext 4985cat >>conftest.$ac_ext <<_ACEOF 4986/* end confdefs.h. */ 4987$ac_includes_default 4988#include <GL/gl.h> 4989_ACEOF 4990rm -f conftest.$ac_objext 4991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4992 (eval $ac_compile) 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && 4999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5001 (eval $ac_try) 2>&5 5002 ac_status=$? 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5004 (exit $ac_status); }; } && 5005 { ac_try='test -s conftest.$ac_objext' 5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5007 (eval $ac_try) 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); }; }; then 5011 ac_header_compiler=yes 5012else 5013 echo "$as_me: failed program was:" >&5 5014sed 's/^/| /' conftest.$ac_ext >&5 5015 5016ac_header_compiler=no 5017fi 5018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5020echo "${ECHO_T}$ac_header_compiler" >&6 5021 5022# Is the header present? 5023echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 5024echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 5025cat >conftest.$ac_ext <<_ACEOF 5026/* confdefs.h. */ 5027_ACEOF 5028cat confdefs.h >>conftest.$ac_ext 5029cat >>conftest.$ac_ext <<_ACEOF 5030/* end confdefs.h. */ 5031#include <GL/gl.h> 5032_ACEOF 5033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5035 ac_status=$? 5036 grep -v '^ *+' conftest.er1 >conftest.err 5037 rm -f conftest.er1 5038 cat conftest.err >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5040 (exit $ac_status); } >/dev/null; then 5041 if test -s conftest.err; then 5042 ac_cpp_err=$ac_c_preproc_warn_flag 5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5044 else 5045 ac_cpp_err= 5046 fi 5047else 5048 ac_cpp_err=yes 5049fi 5050if test -z "$ac_cpp_err"; then 5051 ac_header_preproc=yes 5052else 5053 echo "$as_me: failed program was:" >&5 5054sed 's/^/| /' conftest.$ac_ext >&5 5055 5056 ac_header_preproc=no 5057fi 5058rm -f conftest.err conftest.$ac_ext 5059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5060echo "${ECHO_T}$ac_header_preproc" >&6 5061 5062# So? What about this header? 5063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5064 yes:no: ) 5065 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 5066echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5067 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 5068echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} 5069 ac_header_preproc=yes 5070 ;; 5071 no:yes:* ) 5072 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 5073echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} 5074 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 5075echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} 5076 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 5077echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} 5078 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 5079echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} 5080 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 5081echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} 5082 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 5083echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} 5084 ( 5085 cat <<\_ASBOX 5086## ------------------------------------------ ## 5087## Report this to the AC_PACKAGE_NAME lists. ## 5088## ------------------------------------------ ## 5089_ASBOX 5090 ) | 5091 sed "s/^/$as_me: WARNING: /" >&2 5092 ;; 5093esac 5094echo "$as_me:$LINENO: checking for GL/gl.h" >&5 5095echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 5096if test "${ac_cv_header_GL_gl_h+set}" = set; then 5097 echo $ECHO_N "(cached) $ECHO_C" >&6 5098else 5099 ac_cv_header_GL_gl_h=$ac_header_preproc 5100fi 5101echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 5102echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 5103 5104fi 5105if test $ac_cv_header_GL_gl_h = yes; then 5106 : 5107else 5108 enablegl=no 5109fi 5110 5111 5112 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5 5113echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6 5114if test "${ac_cv_lib_GL_glBegin+set}" = set; then 5115 echo $ECHO_N "(cached) $ECHO_C" >&6 5116else 5117 ac_check_lib_save_LIBS=$LIBS 5118LIBS="-lGL $LIBS" 5119cat >conftest.$ac_ext <<_ACEOF 5120/* confdefs.h. */ 5121_ACEOF 5122cat confdefs.h >>conftest.$ac_ext 5123cat >>conftest.$ac_ext <<_ACEOF 5124/* end confdefs.h. */ 5125 5126/* Override any gcc2 internal prototype to avoid an error. */ 5127#ifdef __cplusplus 5128extern "C" 5129#endif 5130/* We use char because int might match the return type of a gcc2 5131 builtin and then its argument prototype would still apply. */ 5132char glBegin (); 5133int 5134main () 5135{ 5136glBegin (); 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141rm -f conftest.$ac_objext conftest$ac_exeext 5142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5143 (eval $ac_link) 2>conftest.er1 5144 ac_status=$? 5145 grep -v '^ *+' conftest.er1 >conftest.err 5146 rm -f conftest.er1 5147 cat conftest.err >&5 5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5149 (exit $ac_status); } && 5150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5152 (eval $ac_try) 2>&5 5153 ac_status=$? 5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5155 (exit $ac_status); }; } && 5156 { ac_try='test -s conftest$ac_exeext' 5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5158 (eval $ac_try) 2>&5 5159 ac_status=$? 5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5161 (exit $ac_status); }; }; then 5162 ac_cv_lib_GL_glBegin=yes 5163else 5164 echo "$as_me: failed program was:" >&5 5165sed 's/^/| /' conftest.$ac_ext >&5 5166 5167ac_cv_lib_GL_glBegin=no 5168fi 5169rm -f conftest.err conftest.$ac_objext \ 5170 conftest$ac_exeext conftest.$ac_ext 5171LIBS=$ac_check_lib_save_LIBS 5172fi 5173echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5 5174echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6 5175if test $ac_cv_lib_GL_glBegin = yes; then 5176 LIBS="$LIBS -lGL"; 5177 CFLAGS="$CFLAGS -DSDL_GL "; 5178 5179else 5180 enablegl=no 5181fi 5182 5183fi 5184 5185 5186 5187 5188if test "$GETOPT_LONG" = yes; then 5189 NATIVE_GETOPT_LONG_TRUE= 5190 NATIVE_GETOPT_LONG_FALSE='#' 5191else 5192 NATIVE_GETOPT_LONG_TRUE='#' 5193 NATIVE_GETOPT_LONG_FALSE= 5194fi 5195 5196 5197 5198# Check whether --enable-big_endian or --disable-big_endian was given. 5199if test "${enable_big_endian+set}" = set; then 5200 enableval="$enable_big_endian" 5201 enablebig_endian=$enableval 5202else 5203 enablebig_endian=no 5204fi; 5205 5206if test "$enablebig_endian" = yes ; then 5207 CFLAGS="$CFLAGS -DWORDS_BIGENDIAN "; 5208fi 5209 5210 5211case `uname -m` in 5212*686) arch_info=i686 ;; 5213*i586) arch_info=i586 ;; 5214*i486) arch_info=i486 ;; 5215*i386) arch_info=i386 ;; 5216*sun4u) arch_info=sun4u ;; 5217*) arch_info=no ;; 5218esac 5219 5220echo "$as_me:$LINENO: result: Architeture: $arch_info" >&5 5221echo "${ECHO_T}Architeture: $arch_info" >&6 5222 5223 5224sys_info=`uname -s` 5225 5226echo "$as_me:$LINENO: result: System: $sys_info" >&5 5227echo "${ECHO_T}System: $sys_info" >&6 5228 5229case $arch_info in 5230i686|i586|i486|i386) OPT="-O3 -Wno-unused -funroll-loops -fstrength-reduce \ 5231 -ffast-math -falign-functions=2 -falign-jumps=2 \ 5232 -falign-loops=2 -fomit-frame-pointer -Wall " ;; 5233sun4u) OPT="-O3 -Wno-unused -funroll-loops -fstrength-reduce \ 5234 -ffast-math -falign-functions=4 -falign-jumps=4 \ 5235 -falign-loops=4 -fomit-frame-pointer -Wall " ;; 5236no) OPT="-O3 -Wall " ;; 5237esac 5238 5239case $sys_info in 5240SunOS) LDOPT="-lnsl -lsocket -lresolv" ;; 5241esac 5242 5243CFLAGS="$CFLAGS " 5244LIBS="$LIBS $LDOPT" 5245 5246 ac_config_files="$ac_config_files Makefile src/Makefile" 5247cat >confcache <<\_ACEOF 5248# This file is a shell script that caches the results of configure 5249# tests run on this system so they can be shared between configure 5250# scripts and configure runs, see configure's option --config-cache. 5251# It is not useful on other systems. If it contains results you don't 5252# want to keep, you may remove or edit it. 5253# 5254# config.status only pays attention to the cache file if you give it 5255# the --recheck option to rerun configure. 5256# 5257# `ac_cv_env_foo' variables (set or unset) will be overridden when 5258# loading this file, other *unset* `ac_cv_foo' will be assigned the 5259# following values. 5260 5261_ACEOF 5262 5263# The following way of writing the cache mishandles newlines in values, 5264# but we know of no workaround that is simple, portable, and efficient. 5265# So, don't put newlines in cache variables' values. 5266# Ultrix sh set writes to stderr and can't be redirected directly, 5267# and sets the high bit in the cache file unless we assign to the vars. 5268{ 5269 (set) 2>&1 | 5270 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5271 *ac_space=\ *) 5272 # `set' does not quote correctly, so add quotes (double-quote 5273 # substitution turns \\\\ into \\, and sed turns \\ into \). 5274 sed -n \ 5275 "s/'/'\\\\''/g; 5276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5277 ;; 5278 *) 5279 # `set' quotes correctly as required by POSIX, so do not add quotes. 5280 sed -n \ 5281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5282 ;; 5283 esac; 5284} | 5285 sed ' 5286 t clear 5287 : clear 5288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5289 t end 5290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5291 : end' >>confcache 5292if diff $cache_file confcache >/dev/null 2>&1; then :; else 5293 if test -w $cache_file; then 5294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5295 cat confcache >$cache_file 5296 else 5297 echo "not updating unwritable cache $cache_file" 5298 fi 5299fi 5300rm -f confcache 5301 5302test "x$prefix" = xNONE && prefix=$ac_default_prefix 5303# Let make expand exec_prefix. 5304test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5305 5306# VPATH may cause trouble with some makes, so we remove $(srcdir), 5307# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5308# trailing colons and then remove the whole line if VPATH becomes empty 5309# (actually we leave an empty line to preserve line numbers). 5310if test "x$srcdir" = x.; then 5311 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5312s/:*\$(srcdir):*/:/; 5313s/:*\${srcdir}:*/:/; 5314s/:*@srcdir@:*/:/; 5315s/^\([^=]*=[ ]*\):*/\1/; 5316s/:*$//; 5317s/^[^=]*=[ ]*$//; 5318}' 5319fi 5320 5321DEFS=-DHAVE_CONFIG_H 5322 5323ac_libobjs= 5324ac_ltlibobjs= 5325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5326 # 1. Remove the extension, and $U if already installed. 5327 ac_i=`echo "$ac_i" | 5328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5329 # 2. Add them. 5330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5332done 5333LIBOBJS=$ac_libobjs 5334 5335LTLIBOBJS=$ac_ltlibobjs 5336 5337 5338 5339: ${CONFIG_STATUS=./config.status} 5340ac_clean_files_save=$ac_clean_files 5341ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5342{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5343echo "$as_me: creating $CONFIG_STATUS" >&6;} 5344cat >$CONFIG_STATUS <<_ACEOF 5345#! $SHELL 5346# Generated by $as_me. 5347# Run this file to recreate the current configuration. 5348# Compiler output produced by configure, useful for debugging 5349# configure, is in config.log if it exists. 5350 5351debug=false 5352ac_cs_recheck=false 5353ac_cs_silent=false 5354SHELL=\${CONFIG_SHELL-$SHELL} 5355_ACEOF 5356 5357cat >>$CONFIG_STATUS <<\_ACEOF 5358## --------------------- ## 5359## M4sh Initialization. ## 5360## --------------------- ## 5361 5362# Be Bourne compatible 5363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5364 emulate sh 5365 NULLCMD=: 5366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5367 # is contrary to our usage. Disable this feature. 5368 alias -g '${1+"$@"}'='"$@"' 5369elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5370 set -o posix 5371fi 5372DUALCASE=1; export DUALCASE # for MKS sh 5373 5374# Support unset when possible. 5375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5376 as_unset=unset 5377else 5378 as_unset=false 5379fi 5380 5381 5382# Work around bugs in pre-3.0 UWIN ksh. 5383$as_unset ENV MAIL MAILPATH 5384PS1='$ ' 5385PS2='> ' 5386PS4='+ ' 5387 5388# NLS nuisances. 5389for as_var in \ 5390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5392 LC_TELEPHONE LC_TIME 5393do 5394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5395 eval $as_var=C; export $as_var 5396 else 5397 $as_unset $as_var 5398 fi 5399done 5400 5401# Required to use basename. 5402if expr a : '\(a\)' >/dev/null 2>&1; then 5403 as_expr=expr 5404else 5405 as_expr=false 5406fi 5407 5408if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5409 as_basename=basename 5410else 5411 as_basename=false 5412fi 5413 5414 5415# Name of the executable. 5416as_me=`$as_basename "$0" || 5417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5418 X"$0" : 'X\(//\)$' \| \ 5419 X"$0" : 'X\(/\)$' \| \ 5420 . : '\(.\)' 2>/dev/null || 5421echo X/"$0" | 5422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5423 /^X\/\(\/\/\)$/{ s//\1/; q; } 5424 /^X\/\(\/\).*/{ s//\1/; q; } 5425 s/.*/./; q'` 5426 5427 5428# PATH needs CR, and LINENO needs CR and PATH. 5429# Avoid depending upon Character Ranges. 5430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5433as_cr_digits='0123456789' 5434as_cr_alnum=$as_cr_Letters$as_cr_digits 5435 5436# The user is always right. 5437if test "${PATH_SEPARATOR+set}" != set; then 5438 echo "#! /bin/sh" >conf$$.sh 5439 echo "exit 0" >>conf$$.sh 5440 chmod +x conf$$.sh 5441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5442 PATH_SEPARATOR=';' 5443 else 5444 PATH_SEPARATOR=: 5445 fi 5446 rm -f conf$$.sh 5447fi 5448 5449 5450 as_lineno_1=$LINENO 5451 as_lineno_2=$LINENO 5452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5453 test "x$as_lineno_1" != "x$as_lineno_2" && 5454 test "x$as_lineno_3" = "x$as_lineno_2" || { 5455 # Find who we are. Look in the path if we contain no path at all 5456 # relative or not. 5457 case $0 in 5458 *[\\/]* ) as_myself=$0 ;; 5459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5465done 5466 5467 ;; 5468 esac 5469 # We did not find ourselves, most probably we were run as `sh COMMAND' 5470 # in which case we are not to be found in the path. 5471 if test "x$as_myself" = x; then 5472 as_myself=$0 5473 fi 5474 if test ! -f "$as_myself"; then 5475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5476echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5477 { (exit 1); exit 1; }; } 5478 fi 5479 case $CONFIG_SHELL in 5480 '') 5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5482for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5483do 5484 IFS=$as_save_IFS 5485 test -z "$as_dir" && as_dir=. 5486 for as_base in sh bash ksh sh5; do 5487 case $as_dir in 5488 /*) 5489 if ("$as_dir/$as_base" -c ' 5490 as_lineno_1=$LINENO 5491 as_lineno_2=$LINENO 5492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5493 test "x$as_lineno_1" != "x$as_lineno_2" && 5494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5495 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5496 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5497 CONFIG_SHELL=$as_dir/$as_base 5498 export CONFIG_SHELL 5499 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5500 fi;; 5501 esac 5502 done 5503done 5504;; 5505 esac 5506 5507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5508 # uniformly replaced by the line number. The first 'sed' inserts a 5509 # line-number line before each line; the second 'sed' does the real 5510 # work. The second script uses 'N' to pair each line-number line 5511 # with the numbered line, and appends trailing '-' during 5512 # substitution so that $LINENO is not a special case at line end. 5513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5515 sed '=' <$as_myself | 5516 sed ' 5517 N 5518 s,$,-, 5519 : loop 5520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5521 t loop 5522 s,-$,, 5523 s,^['$as_cr_digits']*\n,, 5524 ' >$as_me.lineno && 5525 chmod +x $as_me.lineno || 5526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5527echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5528 { (exit 1); exit 1; }; } 5529 5530 # Don't try to exec as it changes $[0], causing all sort of problems 5531 # (the dirname of $[0] is not the place where we might find the 5532 # original and so on. Autoconf is especially sensible to this). 5533 . ./$as_me.lineno 5534 # Exit status is that of the last command. 5535 exit 5536} 5537 5538 5539case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5540 *c*,-n*) ECHO_N= ECHO_C=' 5541' ECHO_T=' ' ;; 5542 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5543 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5544esac 5545 5546if expr a : '\(a\)' >/dev/null 2>&1; then 5547 as_expr=expr 5548else 5549 as_expr=false 5550fi 5551 5552rm -f conf$$ conf$$.exe conf$$.file 5553echo >conf$$.file 5554if ln -s conf$$.file conf$$ 2>/dev/null; then 5555 # We could just check for DJGPP; but this test a) works b) is more generic 5556 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5557 if test -f conf$$.exe; then 5558 # Don't use ln at all; we don't have any links 5559 as_ln_s='cp -p' 5560 else 5561 as_ln_s='ln -s' 5562 fi 5563elif ln conf$$.file conf$$ 2>/dev/null; then 5564 as_ln_s=ln 5565else 5566 as_ln_s='cp -p' 5567fi 5568rm -f conf$$ conf$$.exe conf$$.file 5569 5570if mkdir -p . 2>/dev/null; then 5571 as_mkdir_p=: 5572else 5573 test -d ./-p && rmdir ./-p 5574 as_mkdir_p=false 5575fi 5576 5577as_executable_p="test -f" 5578 5579# Sed expression to map a string onto a valid CPP name. 5580as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5581 5582# Sed expression to map a string onto a valid variable name. 5583as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5584 5585 5586# IFS 5587# We need space, tab and new line, in precisely that order. 5588as_nl=' 5589' 5590IFS=" $as_nl" 5591 5592# CDPATH. 5593$as_unset CDPATH 5594 5595exec 6>&1 5596 5597# Open the log real soon, to keep \$[0] and so on meaningful, and to 5598# report actual input values of CONFIG_FILES etc. instead of their 5599# values after options handling. Logging --version etc. is OK. 5600exec 5>>config.log 5601{ 5602 echo 5603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5604## Running $as_me. ## 5605_ASBOX 5606} >&5 5607cat >&5 <<_CSEOF 5608 5609This file was extended by $as_me, which was 5610generated by GNU Autoconf 2.59. Invocation command line was 5611 5612 CONFIG_FILES = $CONFIG_FILES 5613 CONFIG_HEADERS = $CONFIG_HEADERS 5614 CONFIG_LINKS = $CONFIG_LINKS 5615 CONFIG_COMMANDS = $CONFIG_COMMANDS 5616 $ $0 $@ 5617 5618_CSEOF 5619echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5620echo >&5 5621_ACEOF 5622 5623# Files that config.status was made for. 5624if test -n "$ac_config_files"; then 5625 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5626fi 5627 5628if test -n "$ac_config_headers"; then 5629 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5630fi 5631 5632if test -n "$ac_config_links"; then 5633 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5634fi 5635 5636if test -n "$ac_config_commands"; then 5637 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5638fi 5639 5640cat >>$CONFIG_STATUS <<\_ACEOF 5641 5642ac_cs_usage="\ 5643\`$as_me' instantiates files from templates according to the 5644current configuration. 5645 5646Usage: $0 [OPTIONS] [FILE]... 5647 5648 -h, --help print this help, then exit 5649 -V, --version print version number, then exit 5650 -q, --quiet do not print progress messages 5651 -d, --debug don't remove temporary files 5652 --recheck update $as_me by reconfiguring in the same conditions 5653 --file=FILE[:TEMPLATE] 5654 instantiate the configuration file FILE 5655 --header=FILE[:TEMPLATE] 5656 instantiate the configuration header FILE 5657 5658Configuration files: 5659$config_files 5660 5661Configuration headers: 5662$config_headers 5663 5664Configuration commands: 5665$config_commands 5666 5667Report bugs to <bug-autoconf@gnu.org>." 5668_ACEOF 5669 5670cat >>$CONFIG_STATUS <<_ACEOF 5671ac_cs_version="\\ 5672config.status 5673configured by $0, generated by GNU Autoconf 2.59, 5674 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5675 5676Copyright (C) 2003 Free Software Foundation, Inc. 5677This config.status script is free software; the Free Software Foundation 5678gives unlimited permission to copy, distribute and modify it." 5679srcdir=$srcdir 5680INSTALL="$INSTALL" 5681_ACEOF 5682 5683cat >>$CONFIG_STATUS <<\_ACEOF 5684# If no file are specified by the user, then we need to provide default 5685# value. By we need to know if files were specified by the user. 5686ac_need_defaults=: 5687while test $# != 0 5688do 5689 case $1 in 5690 --*=*) 5691 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5692 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5693 ac_shift=: 5694 ;; 5695 -*) 5696 ac_option=$1 5697 ac_optarg=$2 5698 ac_shift=shift 5699 ;; 5700 *) # This is not an option, so the user has probably given explicit 5701 # arguments. 5702 ac_option=$1 5703 ac_need_defaults=false;; 5704 esac 5705 5706 case $ac_option in 5707 # Handling of the options. 5708_ACEOF 5709cat >>$CONFIG_STATUS <<\_ACEOF 5710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5711 ac_cs_recheck=: ;; 5712 --version | --vers* | -V ) 5713 echo "$ac_cs_version"; exit 0 ;; 5714 --he | --h) 5715 # Conflict between --help and --header 5716 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5717Try \`$0 --help' for more information." >&5 5718echo "$as_me: error: ambiguous option: $1 5719Try \`$0 --help' for more information." >&2;} 5720 { (exit 1); exit 1; }; };; 5721 --help | --hel | -h ) 5722 echo "$ac_cs_usage"; exit 0 ;; 5723 --debug | --d* | -d ) 5724 debug=: ;; 5725 --file | --fil | --fi | --f ) 5726 $ac_shift 5727 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5728 ac_need_defaults=false;; 5729 --header | --heade | --head | --hea ) 5730 $ac_shift 5731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5732 ac_need_defaults=false;; 5733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5734 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5735 ac_cs_silent=: ;; 5736 5737 # This is an error. 5738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5739Try \`$0 --help' for more information." >&5 5740echo "$as_me: error: unrecognized option: $1 5741Try \`$0 --help' for more information." >&2;} 5742 { (exit 1); exit 1; }; } ;; 5743 5744 *) ac_config_targets="$ac_config_targets $1" ;; 5745 5746 esac 5747 shift 5748done 5749 5750ac_configure_extra_args= 5751 5752if $ac_cs_silent; then 5753 exec 6>/dev/null 5754 ac_configure_extra_args="$ac_configure_extra_args --silent" 5755fi 5756 5757_ACEOF 5758cat >>$CONFIG_STATUS <<_ACEOF 5759if \$ac_cs_recheck; then 5760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5762fi 5763 5764_ACEOF 5765 5766cat >>$CONFIG_STATUS <<_ACEOF 5767# 5768# INIT-COMMANDS section. 5769# 5770 5771 5772 5773_ACEOF 5774 5775 5776 5777cat >>$CONFIG_STATUS <<\_ACEOF 5778for ac_config_target in $ac_config_targets 5779do 5780 case "$ac_config_target" in 5781 # Handling of arguments. 5782 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5783 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 5784 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 5785 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5787echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5788 { (exit 1); exit 1; }; };; 5789 esac 5790done 5791 5792# If the user did not use the arguments to specify the items to instantiate, 5793# then the envvar interface is used. Set only those that are not. 5794# We use the long form for the default assignment because of an extremely 5795# bizarre bug on SunOS 4.1.3. 5796if $ac_need_defaults; then 5797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5800fi 5801 5802# Have a temporary directory for convenience. Make it in the build tree 5803# simply because there is no reason to put it here, and in addition, 5804# creating and moving files from /tmp can sometimes cause problems. 5805# Create a temporary directory, and hook for its removal unless debugging. 5806$debug || 5807{ 5808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5809 trap '{ (exit 1); exit 1; }' 1 2 13 15 5810} 5811 5812# Create a (secure) tmp directory for tmp files. 5813 5814{ 5815 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5816 test -n "$tmp" && test -d "$tmp" 5817} || 5818{ 5819 tmp=./confstat$$-$RANDOM 5820 (umask 077 && mkdir $tmp) 5821} || 5822{ 5823 echo "$me: cannot create a temporary directory in ." >&2 5824 { (exit 1); exit 1; } 5825} 5826 5827_ACEOF 5828 5829cat >>$CONFIG_STATUS <<_ACEOF 5830 5831# 5832# CONFIG_FILES section. 5833# 5834 5835# No need to generate the scripts if there are no CONFIG_FILES. 5836# This happens for instance when ./config.status config.h 5837if test -n "\$CONFIG_FILES"; then 5838 # Protect against being on the right side of a sed subst in config.status. 5839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5841s,@SHELL@,$SHELL,;t t 5842s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5843s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5844s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5845s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5846s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5847s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5848s,@exec_prefix@,$exec_prefix,;t t 5849s,@prefix@,$prefix,;t t 5850s,@program_transform_name@,$program_transform_name,;t t 5851s,@bindir@,$bindir,;t t 5852s,@sbindir@,$sbindir,;t t 5853s,@libexecdir@,$libexecdir,;t t 5854s,@datadir@,$datadir,;t t 5855s,@sysconfdir@,$sysconfdir,;t t 5856s,@sharedstatedir@,$sharedstatedir,;t t 5857s,@localstatedir@,$localstatedir,;t t 5858s,@libdir@,$libdir,;t t 5859s,@includedir@,$includedir,;t t 5860s,@oldincludedir@,$oldincludedir,;t t 5861s,@infodir@,$infodir,;t t 5862s,@mandir@,$mandir,;t t 5863s,@build_alias@,$build_alias,;t t 5864s,@host_alias@,$host_alias,;t t 5865s,@target_alias@,$target_alias,;t t 5866s,@DEFS@,$DEFS,;t t 5867s,@ECHO_C@,$ECHO_C,;t t 5868s,@ECHO_N@,$ECHO_N,;t t 5869s,@ECHO_T@,$ECHO_T,;t t 5870s,@LIBS@,$LIBS,;t t 5871s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5872s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5873s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5874s,@PACKAGE@,$PACKAGE,;t t 5875s,@VERSION@,$VERSION,;t t 5876s,@ACLOCAL@,$ACLOCAL,;t t 5877s,@AUTOCONF@,$AUTOCONF,;t t 5878s,@AUTOMAKE@,$AUTOMAKE,;t t 5879s,@AUTOHEADER@,$AUTOHEADER,;t t 5880s,@MAKEINFO@,$MAKEINFO,;t t 5881s,@SET_MAKE@,$SET_MAKE,;t t 5882s,@CC@,$CC,;t t 5883s,@CFLAGS@,$CFLAGS,;t t 5884s,@LDFLAGS@,$LDFLAGS,;t t 5885s,@CPPFLAGS@,$CPPFLAGS,;t t 5886s,@ac_ct_CC@,$ac_ct_CC,;t t 5887s,@EXEEXT@,$EXEEXT,;t t 5888s,@OBJEXT@,$OBJEXT,;t t 5889s,@SDL_CONFIG@,$SDL_CONFIG,;t t 5890s,@CPP@,$CPP,;t t 5891s,@EGREP@,$EGREP,;t t 5892s,@LIBOBJS@,$LIBOBJS,;t t 5893s,@NATIVE_GETOPT_LONG_TRUE@,$NATIVE_GETOPT_LONG_TRUE,;t t 5894s,@NATIVE_GETOPT_LONG_FALSE@,$NATIVE_GETOPT_LONG_FALSE,;t t 5895s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5896CEOF 5897 5898_ACEOF 5899 5900 cat >>$CONFIG_STATUS <<\_ACEOF 5901 # Split the substitutions into bite-sized pieces for seds with 5902 # small command number limits, like on Digital OSF/1 and HP-UX. 5903 ac_max_sed_lines=48 5904 ac_sed_frag=1 # Number of current file. 5905 ac_beg=1 # First line for current file. 5906 ac_end=$ac_max_sed_lines # Line after last line for current file. 5907 ac_more_lines=: 5908 ac_sed_cmds= 5909 while $ac_more_lines; do 5910 if test $ac_beg -gt 1; then 5911 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5912 else 5913 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5914 fi 5915 if test ! -s $tmp/subs.frag; then 5916 ac_more_lines=false 5917 else 5918 # The purpose of the label and of the branching condition is to 5919 # speed up the sed processing (if there are no `@' at all, there 5920 # is no need to browse any of the substitutions). 5921 # These are the two extra sed commands mentioned above. 5922 (echo ':t 5923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5924 if test -z "$ac_sed_cmds"; then 5925 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5926 else 5927 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5928 fi 5929 ac_sed_frag=`expr $ac_sed_frag + 1` 5930 ac_beg=$ac_end 5931 ac_end=`expr $ac_end + $ac_max_sed_lines` 5932 fi 5933 done 5934 if test -z "$ac_sed_cmds"; then 5935 ac_sed_cmds=cat 5936 fi 5937fi # test -n "$CONFIG_FILES" 5938 5939_ACEOF 5940cat >>$CONFIG_STATUS <<\_ACEOF 5941for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5943 case $ac_file in 5944 - | *:- | *:-:* ) # input from stdin 5945 cat >$tmp/stdin 5946 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5948 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5950 * ) ac_file_in=$ac_file.in ;; 5951 esac 5952 5953 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5954 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5955$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5956 X"$ac_file" : 'X\(//\)[^/]' \| \ 5957 X"$ac_file" : 'X\(//\)$' \| \ 5958 X"$ac_file" : 'X\(/\)' \| \ 5959 . : '\(.\)' 2>/dev/null || 5960echo X"$ac_file" | 5961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5962 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5963 /^X\(\/\/\)$/{ s//\1/; q; } 5964 /^X\(\/\).*/{ s//\1/; q; } 5965 s/.*/./; q'` 5966 { if $as_mkdir_p; then 5967 mkdir -p "$ac_dir" 5968 else 5969 as_dir="$ac_dir" 5970 as_dirs= 5971 while test ! -d "$as_dir"; do 5972 as_dirs="$as_dir $as_dirs" 5973 as_dir=`(dirname "$as_dir") 2>/dev/null || 5974$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5975 X"$as_dir" : 'X\(//\)[^/]' \| \ 5976 X"$as_dir" : 'X\(//\)$' \| \ 5977 X"$as_dir" : 'X\(/\)' \| \ 5978 . : '\(.\)' 2>/dev/null || 5979echo X"$as_dir" | 5980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5981 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5982 /^X\(\/\/\)$/{ s//\1/; q; } 5983 /^X\(\/\).*/{ s//\1/; q; } 5984 s/.*/./; q'` 5985 done 5986 test ! -n "$as_dirs" || mkdir $as_dirs 5987 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5988echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5989 { (exit 1); exit 1; }; }; } 5990 5991 ac_builddir=. 5992 5993if test "$ac_dir" != .; then 5994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5995 # A "../" for each directory in $ac_dir_suffix. 5996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5997else 5998 ac_dir_suffix= ac_top_builddir= 5999fi 6000 6001case $srcdir in 6002 .) # No --srcdir option. We are building in place. 6003 ac_srcdir=. 6004 if test -z "$ac_top_builddir"; then 6005 ac_top_srcdir=. 6006 else 6007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6008 fi ;; 6009 [\\/]* | ?:[\\/]* ) # Absolute path. 6010 ac_srcdir=$srcdir$ac_dir_suffix; 6011 ac_top_srcdir=$srcdir ;; 6012 *) # Relative path. 6013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6014 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6015esac 6016 6017# Do not use `cd foo && pwd` to compute absolute paths, because 6018# the directories may not exist. 6019case `pwd` in 6020.) ac_abs_builddir="$ac_dir";; 6021*) 6022 case "$ac_dir" in 6023 .) ac_abs_builddir=`pwd`;; 6024 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6025 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6026 esac;; 6027esac 6028case $ac_abs_builddir in 6029.) ac_abs_top_builddir=${ac_top_builddir}.;; 6030*) 6031 case ${ac_top_builddir}. in 6032 .) ac_abs_top_builddir=$ac_abs_builddir;; 6033 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6034 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6035 esac;; 6036esac 6037case $ac_abs_builddir in 6038.) ac_abs_srcdir=$ac_srcdir;; 6039*) 6040 case $ac_srcdir in 6041 .) ac_abs_srcdir=$ac_abs_builddir;; 6042 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6043 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6044 esac;; 6045esac 6046case $ac_abs_builddir in 6047.) ac_abs_top_srcdir=$ac_top_srcdir;; 6048*) 6049 case $ac_top_srcdir in 6050 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6051 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6052 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6053 esac;; 6054esac 6055 6056 6057 case $INSTALL in 6058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6059 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 6060 esac 6061 6062 # Let's still pretend it is `configure' which instantiates (i.e., don't 6063 # use $as_me), people would be surprised to read: 6064 # /* config.h. Generated by config.status. */ 6065 if test x"$ac_file" = x-; then 6066 configure_input= 6067 else 6068 configure_input="$ac_file. " 6069 fi 6070 configure_input=$configure_input"Generated from `echo $ac_file_in | 6071 sed 's,.*/,,'` by configure." 6072 6073 # First look for the input files in the build tree, otherwise in the 6074 # src tree. 6075 ac_file_inputs=`IFS=: 6076 for f in $ac_file_in; do 6077 case $f in 6078 -) echo $tmp/stdin ;; 6079 [\\/$]*) 6080 # Absolute (can't be DOS-style, as IFS=:) 6081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6082echo "$as_me: error: cannot find input file: $f" >&2;} 6083 { (exit 1); exit 1; }; } 6084 echo "$f";; 6085 *) # Relative 6086 if test -f "$f"; then 6087 # Build tree 6088 echo "$f" 6089 elif test -f "$srcdir/$f"; then 6090 # Source tree 6091 echo "$srcdir/$f" 6092 else 6093 # /dev/null tree 6094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6095echo "$as_me: error: cannot find input file: $f" >&2;} 6096 { (exit 1); exit 1; }; } 6097 fi;; 6098 esac 6099 done` || { (exit 1); exit 1; } 6100 6101 if test x"$ac_file" != x-; then 6102 { echo "$as_me:$LINENO: creating $ac_file" >&5 6103echo "$as_me: creating $ac_file" >&6;} 6104 rm -f "$ac_file" 6105 fi 6106_ACEOF 6107cat >>$CONFIG_STATUS <<_ACEOF 6108 sed "$ac_vpsub 6109$extrasub 6110_ACEOF 6111cat >>$CONFIG_STATUS <<\_ACEOF 6112:t 6113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6114s,@configure_input@,$configure_input,;t t 6115s,@srcdir@,$ac_srcdir,;t t 6116s,@abs_srcdir@,$ac_abs_srcdir,;t t 6117s,@top_srcdir@,$ac_top_srcdir,;t t 6118s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6119s,@builddir@,$ac_builddir,;t t 6120s,@abs_builddir@,$ac_abs_builddir,;t t 6121s,@top_builddir@,$ac_top_builddir,;t t 6122s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6123s,@INSTALL@,$ac_INSTALL,;t t 6124" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6125 rm -f $tmp/stdin 6126 if test x"$ac_file" != x-; then 6127 mv $tmp/out $ac_file 6128 else 6129 cat $tmp/out 6130 rm -f $tmp/out 6131 fi 6132 6133done 6134_ACEOF 6135cat >>$CONFIG_STATUS <<\_ACEOF 6136 6137# 6138# CONFIG_HEADER section. 6139# 6140 6141# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6142# NAME is the cpp macro being defined and VALUE is the value it is being given. 6143# 6144# ac_d sets the value in "#define NAME VALUE" lines. 6145ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6146ac_dB='[ ].*$,\1#\2' 6147ac_dC=' ' 6148ac_dD=',;t' 6149# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6150ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6151ac_uB='$,\1#\2define\3' 6152ac_uC=' ' 6153ac_uD=',;t' 6154 6155for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6157 case $ac_file in 6158 - | *:- | *:-:* ) # input from stdin 6159 cat >$tmp/stdin 6160 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6162 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6164 * ) ac_file_in=$ac_file.in ;; 6165 esac 6166 6167 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6168echo "$as_me: creating $ac_file" >&6;} 6169 6170 # First look for the input files in the build tree, otherwise in the 6171 # src tree. 6172 ac_file_inputs=`IFS=: 6173 for f in $ac_file_in; do 6174 case $f in 6175 -) echo $tmp/stdin ;; 6176 [\\/$]*) 6177 # Absolute (can't be DOS-style, as IFS=:) 6178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6179echo "$as_me: error: cannot find input file: $f" >&2;} 6180 { (exit 1); exit 1; }; } 6181 # Do quote $f, to prevent DOS paths from being IFS'd. 6182 echo "$f";; 6183 *) # Relative 6184 if test -f "$f"; then 6185 # Build tree 6186 echo "$f" 6187 elif test -f "$srcdir/$f"; then 6188 # Source tree 6189 echo "$srcdir/$f" 6190 else 6191 # /dev/null tree 6192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6193echo "$as_me: error: cannot find input file: $f" >&2;} 6194 { (exit 1); exit 1; }; } 6195 fi;; 6196 esac 6197 done` || { (exit 1); exit 1; } 6198 # Remove the trailing spaces. 6199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6200 6201_ACEOF 6202 6203# Transform confdefs.h into two sed scripts, `conftest.defines' and 6204# `conftest.undefs', that substitutes the proper values into 6205# config.h.in to produce config.h. The first handles `#define' 6206# templates, and the second `#undef' templates. 6207# And first: Protect against being on the right side of a sed subst in 6208# config.status. Protect against being in an unquoted here document 6209# in config.status. 6210rm -f conftest.defines conftest.undefs 6211# Using a here document instead of a string reduces the quoting nightmare. 6212# Putting comments in sed scripts is not portable. 6213# 6214# `end' is used to avoid that the second main sed command (meant for 6215# 0-ary CPP macros) applies to n-ary macro definitions. 6216# See the Autoconf documentation for `clear'. 6217cat >confdef2sed.sed <<\_ACEOF 6218s/[\\&,]/\\&/g 6219s,[\\$`],\\&,g 6220t clear 6221: clear 6222s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6223t end 6224s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6225: end 6226_ACEOF 6227# If some macros were called several times there might be several times 6228# the same #defines, which is useless. Nevertheless, we may not want to 6229# sort them, since we want the *last* AC-DEFINE to be honored. 6230uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6231sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6232rm -f confdef2sed.sed 6233 6234# This sed command replaces #undef with comments. This is necessary, for 6235# example, in the case of _POSIX_SOURCE, which is predefined and required 6236# on some systems where configure will not decide to define it. 6237cat >>conftest.undefs <<\_ACEOF 6238s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6239_ACEOF 6240 6241# Break up conftest.defines because some shells have a limit on the size 6242# of here documents, and old seds have small limits too (100 cmds). 6243echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6244echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6245echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6246echo ' :' >>$CONFIG_STATUS 6247rm -f conftest.tail 6248while grep . conftest.defines >/dev/null 6249do 6250 # Write a limited-size here document to $tmp/defines.sed. 6251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6252 # Speed up: don't consider the non `#define' lines. 6253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6254 # Work around the forget-to-reset-the-flag bug. 6255 echo 't clr' >>$CONFIG_STATUS 6256 echo ': clr' >>$CONFIG_STATUS 6257 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6258 echo 'CEOF 6259 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6260 rm -f $tmp/in 6261 mv $tmp/out $tmp/in 6262' >>$CONFIG_STATUS 6263 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6264 rm -f conftest.defines 6265 mv conftest.tail conftest.defines 6266done 6267rm -f conftest.defines 6268echo ' fi # grep' >>$CONFIG_STATUS 6269echo >>$CONFIG_STATUS 6270 6271# Break up conftest.undefs because some shells have a limit on the size 6272# of here documents, and old seds have small limits too (100 cmds). 6273echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6274rm -f conftest.tail 6275while grep . conftest.undefs >/dev/null 6276do 6277 # Write a limited-size here document to $tmp/undefs.sed. 6278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6279 # Speed up: don't consider the non `#undef' 6280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6281 # Work around the forget-to-reset-the-flag bug. 6282 echo 't clr' >>$CONFIG_STATUS 6283 echo ': clr' >>$CONFIG_STATUS 6284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6285 echo 'CEOF 6286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6287 rm -f $tmp/in 6288 mv $tmp/out $tmp/in 6289' >>$CONFIG_STATUS 6290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6291 rm -f conftest.undefs 6292 mv conftest.tail conftest.undefs 6293done 6294rm -f conftest.undefs 6295 6296cat >>$CONFIG_STATUS <<\_ACEOF 6297 # Let's still pretend it is `configure' which instantiates (i.e., don't 6298 # use $as_me), people would be surprised to read: 6299 # /* config.h. Generated by config.status. */ 6300 if test x"$ac_file" = x-; then 6301 echo "/* Generated by configure. */" >$tmp/config.h 6302 else 6303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6304 fi 6305 cat $tmp/in >>$tmp/config.h 6306 rm -f $tmp/in 6307 if test x"$ac_file" != x-; then 6308 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6310echo "$as_me: $ac_file is unchanged" >&6;} 6311 else 6312 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6314 X"$ac_file" : 'X\(//\)[^/]' \| \ 6315 X"$ac_file" : 'X\(//\)$' \| \ 6316 X"$ac_file" : 'X\(/\)' \| \ 6317 . : '\(.\)' 2>/dev/null || 6318echo X"$ac_file" | 6319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6320 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6321 /^X\(\/\/\)$/{ s//\1/; q; } 6322 /^X\(\/\).*/{ s//\1/; q; } 6323 s/.*/./; q'` 6324 { if $as_mkdir_p; then 6325 mkdir -p "$ac_dir" 6326 else 6327 as_dir="$ac_dir" 6328 as_dirs= 6329 while test ! -d "$as_dir"; do 6330 as_dirs="$as_dir $as_dirs" 6331 as_dir=`(dirname "$as_dir") 2>/dev/null || 6332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6333 X"$as_dir" : 'X\(//\)[^/]' \| \ 6334 X"$as_dir" : 'X\(//\)$' \| \ 6335 X"$as_dir" : 'X\(/\)' \| \ 6336 . : '\(.\)' 2>/dev/null || 6337echo X"$as_dir" | 6338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6339 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6340 /^X\(\/\/\)$/{ s//\1/; q; } 6341 /^X\(\/\).*/{ s//\1/; q; } 6342 s/.*/./; q'` 6343 done 6344 test ! -n "$as_dirs" || mkdir $as_dirs 6345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6346echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6347 { (exit 1); exit 1; }; }; } 6348 6349 rm -f $ac_file 6350 mv $tmp/config.h $ac_file 6351 fi 6352 else 6353 cat $tmp/config.h 6354 rm -f $tmp/config.h 6355 fi 6356done 6357_ACEOF 6358cat >>$CONFIG_STATUS <<\_ACEOF 6359 6360# 6361# CONFIG_COMMANDS section. 6362# 6363for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 6364 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 6365 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 6366 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 6367$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6368 X"$ac_dest" : 'X\(//\)[^/]' \| \ 6369 X"$ac_dest" : 'X\(//\)$' \| \ 6370 X"$ac_dest" : 'X\(/\)' \| \ 6371 . : '\(.\)' 2>/dev/null || 6372echo X"$ac_dest" | 6373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6374 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6375 /^X\(\/\/\)$/{ s//\1/; q; } 6376 /^X\(\/\).*/{ s//\1/; q; } 6377 s/.*/./; q'` 6378 { if $as_mkdir_p; then 6379 mkdir -p "$ac_dir" 6380 else 6381 as_dir="$ac_dir" 6382 as_dirs= 6383 while test ! -d "$as_dir"; do 6384 as_dirs="$as_dir $as_dirs" 6385 as_dir=`(dirname "$as_dir") 2>/dev/null || 6386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6387 X"$as_dir" : 'X\(//\)[^/]' \| \ 6388 X"$as_dir" : 'X\(//\)$' \| \ 6389 X"$as_dir" : 'X\(/\)' \| \ 6390 . : '\(.\)' 2>/dev/null || 6391echo X"$as_dir" | 6392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6393 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6394 /^X\(\/\/\)$/{ s//\1/; q; } 6395 /^X\(\/\).*/{ s//\1/; q; } 6396 s/.*/./; q'` 6397 done 6398 test ! -n "$as_dirs" || mkdir $as_dirs 6399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6400echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6401 { (exit 1); exit 1; }; }; } 6402 6403 ac_builddir=. 6404 6405if test "$ac_dir" != .; then 6406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6407 # A "../" for each directory in $ac_dir_suffix. 6408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6409else 6410 ac_dir_suffix= ac_top_builddir= 6411fi 6412 6413case $srcdir in 6414 .) # No --srcdir option. We are building in place. 6415 ac_srcdir=. 6416 if test -z "$ac_top_builddir"; then 6417 ac_top_srcdir=. 6418 else 6419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6420 fi ;; 6421 [\\/]* | ?:[\\/]* ) # Absolute path. 6422 ac_srcdir=$srcdir$ac_dir_suffix; 6423 ac_top_srcdir=$srcdir ;; 6424 *) # Relative path. 6425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6426 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6427esac 6428 6429# Do not use `cd foo && pwd` to compute absolute paths, because 6430# the directories may not exist. 6431case `pwd` in 6432.) ac_abs_builddir="$ac_dir";; 6433*) 6434 case "$ac_dir" in 6435 .) ac_abs_builddir=`pwd`;; 6436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6437 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6438 esac;; 6439esac 6440case $ac_abs_builddir in 6441.) ac_abs_top_builddir=${ac_top_builddir}.;; 6442*) 6443 case ${ac_top_builddir}. in 6444 .) ac_abs_top_builddir=$ac_abs_builddir;; 6445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6447 esac;; 6448esac 6449case $ac_abs_builddir in 6450.) ac_abs_srcdir=$ac_srcdir;; 6451*) 6452 case $ac_srcdir in 6453 .) ac_abs_srcdir=$ac_abs_builddir;; 6454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6456 esac;; 6457esac 6458case $ac_abs_builddir in 6459.) ac_abs_top_srcdir=$ac_top_srcdir;; 6460*) 6461 case $ac_top_srcdir in 6462 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6465 esac;; 6466esac 6467 6468 6469 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 6470echo "$as_me: executing $ac_dest commands" >&6;} 6471 case $ac_dest in 6472 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 6473 esac 6474done 6475_ACEOF 6476 6477cat >>$CONFIG_STATUS <<\_ACEOF 6478 6479{ (exit 0); exit 0; } 6480_ACEOF 6481chmod +x $CONFIG_STATUS 6482ac_clean_files=$ac_clean_files_save 6483 6484 6485# configure is writing to config.log, and then calls config.status. 6486# config.status does its own redirection, appending to config.log. 6487# Unfortunately, on DOS this fails, as config.log is still kept open 6488# by configure, so config.status won't be able to write to it; its 6489# output is simply discarded. So we exec the FD to /dev/null, 6490# effectively closing config.log, so it can be properly (re)opened and 6491# appended to by config.status. When coming back to configure, we 6492# need to make the FD available again. 6493if test "$no_create" != yes; then 6494 ac_cs_success=: 6495 ac_config_status_args= 6496 test "$silent" = yes && 6497 ac_config_status_args="$ac_config_status_args --quiet" 6498 exec 5>/dev/null 6499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6500 exec 5>>config.log 6501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6502 # would make configure fail if this is the last instruction. 6503 $ac_cs_success || { (exit 1); exit 1; } 6504fi 6505 6506 6507 6508 6509 6510