2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59.
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
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
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 \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
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
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
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; }; }
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).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if 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
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
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}
267
# Identity of this package.
274
ac_unique_file="README"
275
ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT OSMESA_CONFIG EXE MATHLIB SDL_CONFIG SDL_CFLAGS SDL_LIBS CPP GLLIB LIB@&t@OBJS LTLIBOBJS'
278
# Initialize some variables set by options.
280
ac_init_version=false
281
# The variables have the same names as the options, with
282
# dashes changed to underlines.
290
program_transform_name=s,x,x,
298
# Installation directory options.
299
# These are left unexpanded so users can "make install exec_prefix=/foo"
300
# and all the variables that are supposed to be based on exec_prefix
301
# by default will actually change.
302
# Use braces instead of parens because sh, perl, etc. also accept them.
303
bindir='${exec_prefix}/bin'
304
sbindir='${exec_prefix}/sbin'
305
libexecdir='${exec_prefix}/libexec'
306
datadir='${prefix}/share'
307
sysconfdir='${prefix}/etc'
308
sharedstatedir='${prefix}/com'
309
localstatedir='${prefix}/var'
310
libdir='${exec_prefix}/lib'
311
includedir='${prefix}/include'
312
oldincludedir='/usr/include'
313
infodir='${prefix}/info'
314
mandir='${prefix}/man'
319
# If the previous option needs an argument, assign it.
320
if test -n "$ac_prev"; then
321
eval "$ac_prev=\$ac_option"
326
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
# Accept the important Cygnus configure options, so we can diagnose typos.
332
-bindir | --bindir | --bindi | --bind | --bin | --bi)
334
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337
-build | --build | --buil | --bui | --bu)
338
ac_prev=build_alias ;;
339
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
340
build_alias=$ac_optarg ;;
342
-cache-file | --cache-file | --cache-fil | --cache-fi \
343
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344
ac_prev=cache_file ;;
345
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347
cache_file=$ac_optarg ;;
350
cache_file=config.cache ;;
352
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356
datadir=$ac_optarg ;;
358
-disable-* | --disable-*)
359
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
# Reject names that are not valid shell variable names.
361
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
{ (exit 1); exit 1; }; }
364
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365
eval "enable_$ac_feature=no" ;;
367
-enable-* | --enable-*)
368
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
# Reject names that are not valid shell variable names.
370
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
{ (exit 1); exit 1; }; }
373
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378
eval "enable_$ac_feature='$ac_optarg'" ;;
380
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382
| --exec | --exe | --ex)
383
ac_prev=exec_prefix ;;
384
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386
| --exec=* | --exe=* | --ex=*)
387
exec_prefix=$ac_optarg ;;
389
-gas | --gas | --ga | --g)
390
# Obsolete; use --with-gas.
393
-help | --help | --hel | --he | -h)
395
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396
ac_init_help=recursive ;;
397
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398
ac_init_help=short ;;
400
-host | --host | --hos | --ho)
401
ac_prev=host_alias ;;
402
-host=* | --host=* | --hos=* | --ho=*)
403
host_alias=$ac_optarg ;;
405
-includedir | --includedir | --includedi | --included | --include \
406
| --includ | --inclu | --incl | --inc)
407
ac_prev=includedir ;;
408
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409
| --includ=* | --inclu=* | --incl=* | --inc=*)
410
includedir=$ac_optarg ;;
412
-infodir | --infodir | --infodi | --infod | --info | --inf)
414
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415
infodir=$ac_optarg ;;
417
-libdir | --libdir | --libdi | --libd)
419
-libdir=* | --libdir=* | --libdi=* | --libd=*)
422
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423
| --libexe | --libex | --libe)
424
ac_prev=libexecdir ;;
425
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426
| --libexe=* | --libex=* | --libe=*)
427
libexecdir=$ac_optarg ;;
429
-localstatedir | --localstatedir | --localstatedi | --localstated \
430
| --localstate | --localstat | --localsta | --localst \
431
| --locals | --local | --loca | --loc | --lo)
432
ac_prev=localstatedir ;;
433
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
435
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436
localstatedir=$ac_optarg ;;
438
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444
# Obsolete; use --without-fp.
447
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
448
| --no-cr | --no-c | -n)
451
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
452
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457
| --oldin | --oldi | --old | --ol | --o)
458
ac_prev=oldincludedir ;;
459
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462
oldincludedir=$ac_optarg ;;
464
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469
-program-prefix | --program-prefix | --program-prefi | --program-pref \
470
| --program-pre | --program-pr | --program-p)
471
ac_prev=program_prefix ;;
472
-program-prefix=* | --program-prefix=* | --program-prefi=* \
473
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474
program_prefix=$ac_optarg ;;
476
-program-suffix | --program-suffix | --program-suffi | --program-suff \
477
| --program-suf | --program-su | --program-s)
478
ac_prev=program_suffix ;;
479
-program-suffix=* | --program-suffix=* | --program-suffi=* \
480
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481
program_suffix=$ac_optarg ;;
483
-program-transform-name | --program-transform-name \
484
| --program-transform-nam | --program-transform-na \
485
| --program-transform-n | --program-transform- \
486
| --program-transform | --program-transfor \
487
| --program-transfo | --program-transf \
488
| --program-trans | --program-tran \
489
| --progr-tra | --program-tr | --program-t)
490
ac_prev=program_transform_name ;;
491
-program-transform-name=* | --program-transform-name=* \
492
| --program-transform-nam=* | --program-transform-na=* \
493
| --program-transform-n=* | --program-transform-=* \
494
| --program-transform=* | --program-transfor=* \
495
| --program-transfo=* | --program-transf=* \
496
| --program-trans=* | --program-tran=* \
497
| --progr-tra=* | --program-tr=* | --program-t=*)
498
program_transform_name=$ac_optarg ;;
500
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
| -silent | --silent | --silen | --sile | --sil)
504
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508
sbindir=$ac_optarg ;;
510
-sharedstatedir | --sharedstatedir | --sharedstatedi \
511
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512
| --sharedst | --shareds | --shared | --share | --shar \
514
ac_prev=sharedstatedir ;;
515
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519
sharedstatedir=$ac_optarg ;;
521
-site | --site | --sit)
523
-site=* | --site=* | --sit=*)
526
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532
| --syscon | --sysco | --sysc | --sys | --sy)
533
ac_prev=sysconfdir ;;
534
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536
sysconfdir=$ac_optarg ;;
538
-target | --target | --targe | --targ | --tar | --ta | --t)
539
ac_prev=target_alias ;;
540
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541
target_alias=$ac_optarg ;;
543
-v | -verbose | --verbose | --verbos | --verbo | --verb)
546
-version | --version | --versio | --versi | --vers | -V)
550
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid package name: $ac_package" >&2
554
{ (exit 1); exit 1; }; }
555
ac_package=`echo $ac_package| sed 's/-/_/g'`
557
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560
eval "with_$ac_package='$ac_optarg'" ;;
562
-without-* | --without-*)
563
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
# Reject names that are not valid shell variable names.
565
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566
{ echo "$as_me: error: invalid package name: $ac_package" >&2
567
{ (exit 1); exit 1; }; }
568
ac_package=`echo $ac_package | sed 's/-/_/g'`
569
eval "with_$ac_package=no" ;;
572
# Obsolete; use --with-x.
575
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576
| --x-incl | --x-inc | --x-in | --x-i)
577
ac_prev=x_includes ;;
578
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580
x_includes=$ac_optarg ;;
582
-x-libraries | --x-libraries | --x-librarie | --x-librari \
583
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584
ac_prev=x_libraries ;;
585
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587
x_libraries=$ac_optarg ;;
589
-*) { echo "$as_me: error: unrecognized option: $ac_option
590
Try \`$0 --help' for more information." >&2
591
{ (exit 1); exit 1; }; }
595
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596
# Reject names that are not valid shell variable names.
597
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
{ (exit 1); exit 1; }; }
600
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
eval "$ac_envvar='$ac_optarg'"
605
# FIXME: should be removed in autoconf 3.0.
606
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615
if test -n "$ac_prev"; then
616
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617
{ echo "$as_me: error: missing argument to $ac_option" >&2
618
{ (exit 1); exit 1; }; }
621
# Be sure to have absolute paths.
622
for ac_var in exec_prefix prefix
624
eval ac_val=$`echo $ac_var`
626
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628
{ (exit 1); exit 1; }; };;
632
# Be sure to have absolute paths.
633
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634
localstatedir libdir includedir oldincludedir infodir mandir
636
eval ac_val=$`echo $ac_var`
638
[\\/$]* | ?:[\\/]* ) ;;
639
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640
{ (exit 1); exit 1; }; };;
644
# There might be people who depend on the old broken behavior: `$host'
645
# used to hold the argument of --host etc.
646
# FIXME: To remove some day.
651
# FIXME: To remove some day.
652
if test "x$host_alias" != x; then
653
if test "x$build_alias" = x; then
654
cross_compiling=maybe
655
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656
If a cross compiler is detected then cross compile mode will be used." >&2
657
elif test "x$build_alias" != "x$host_alias"; then
663
test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
test "$silent" = yes && exec 6>/dev/null
668
# Find the source files, if location was not specified.
669
if test -z "$srcdir"; then
670
ac_srcdir_defaulted=yes
671
# Try the directory containing this script, then its parent.
672
ac_confdir=`(dirname "$0") 2>/dev/null ||
673
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
X"$0" : 'X\(//\)[^/]' \| \
675
X"$0" : 'X\(//\)$' \| \
676
X"$0" : 'X\(/\)' \| \
677
. : '\(.\)' 2>/dev/null ||
679
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
681
/^X\(\/\/\)$/{ s//\1/; q; }
682
/^X\(\/\).*/{ s//\1/; q; }
685
if test ! -r $srcdir/$ac_unique_file; then
689
ac_srcdir_defaulted=no
691
if test ! -r $srcdir/$ac_unique_file; then
692
if test "$ac_srcdir_defaulted" = yes; then
693
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694
{ (exit 1); exit 1; }; }
696
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697
{ (exit 1); exit 1; }; }
700
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702
{ (exit 1); exit 1; }; }
703
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704
ac_env_build_alias_set=${build_alias+set}
705
ac_env_build_alias_value=$build_alias
706
ac_cv_env_build_alias_set=${build_alias+set}
707
ac_cv_env_build_alias_value=$build_alias
708
ac_env_host_alias_set=${host_alias+set}
709
ac_env_host_alias_value=$host_alias
710
ac_cv_env_host_alias_set=${host_alias+set}
711
ac_cv_env_host_alias_value=$host_alias
712
ac_env_target_alias_set=${target_alias+set}
713
ac_env_target_alias_value=$target_alias
714
ac_cv_env_target_alias_set=${target_alias+set}
715
ac_cv_env_target_alias_value=$target_alias
716
ac_env_CC_set=${CC+set}
718
ac_cv_env_CC_set=${CC+set}
719
ac_cv_env_CC_value=$CC
720
ac_env_CFLAGS_set=${CFLAGS+set}
721
ac_env_CFLAGS_value=$CFLAGS
722
ac_cv_env_CFLAGS_set=${CFLAGS+set}
723
ac_cv_env_CFLAGS_value=$CFLAGS
724
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
ac_env_LDFLAGS_value=$LDFLAGS
726
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
ac_env_CPPFLAGS_value=$CPPFLAGS
730
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
ac_env_CPP_set=${CPP+set}
733
ac_env_CPP_value=$CPP
734
ac_cv_env_CPP_set=${CPP+set}
735
ac_cv_env_CPP_value=$CPP
738
# Report the --help message.
740
if test "$ac_init_help" = "long"; then
741
# Omit some internal or obsolete options to make the list less imposing.
742
# This message is too long to be a string in the A/UX 3.1 sh.
744
\`configure' configures this package to adapt to many kinds of systems.
746
Usage: $0 [OPTION]... [VAR=VALUE]...
748
To assign environment variables (e.g., CC, CFLAGS...), specify them as
749
VAR=VALUE. See below for descriptions of some of the useful variables.
751
Defaults for the options are specified in brackets.
754
-h, --help display this help and exit
755
--help=short display options specific to this package
756
--help=recursive display the short help of all the included packages
757
-V, --version display version information and exit
758
-q, --quiet, --silent do not print \`checking...' messages
759
--cache-file=FILE cache test results in FILE [disabled]
760
-C, --config-cache alias for \`--cache-file=config.cache'
761
-n, --no-create do not create output files
762
--srcdir=DIR find the sources in DIR [configure dir or \`..']
767
Installation directories:
768
--prefix=PREFIX install architecture-independent files in PREFIX
770
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
773
By default, \`make install' will install all the files in
774
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
775
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776
for instance \`--prefix=\$HOME'.
778
For better control, use the options below.
780
Fine tuning of the installation directories:
781
--bindir=DIR user executables [EPREFIX/bin]
782
--sbindir=DIR system admin executables [EPREFIX/sbin]
783
--libexecdir=DIR program executables [EPREFIX/libexec]
784
--datadir=DIR read-only architecture-independent data [PREFIX/share]
785
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
786
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
787
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
788
--libdir=DIR object code libraries [EPREFIX/lib]
789
--includedir=DIR C header files [PREFIX/include]
790
--oldincludedir=DIR C header files for non-gcc [/usr/include]
791
--infodir=DIR info documentation [PREFIX/info]
792
--mandir=DIR man documentation [PREFIX/man]
798
--x-includes=DIR X include files are in DIR
799
--x-libraries=DIR X library files are in DIR
802
--build=BUILD configure for building on BUILD [guessed]
803
--host=HOST cross-compile to build programs to run on HOST [BUILD]
807
if test -n "$ac_init_help"; then
812
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
813
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
814
--disable-sdltest Do not try to compile and run a test SDL program
817
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
818
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
819
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)
820
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
821
--with-x use the X Window System
823
Some influential environment variables:
824
CC C compiler command
825
CFLAGS C compiler flags
826
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
827
nonstandard directory <lib dir>
828
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
829
headers in a nonstandard directory <include dir>
832
Use these variables to override the choices made by `configure' or to help
833
it to find libraries and programs with nonstandard names/locations.
838
if test "$ac_init_help" = "recursive"; then
839
# If there are subdirs, report their specific --help.
841
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842
test -d $ac_dir || continue
845
if test "$ac_dir" != .; then
846
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847
# A "../" for each directory in $ac_dir_suffix.
848
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
850
ac_dir_suffix= ac_top_builddir=
854
.) # No --srcdir option. We are building in place.
856
if test -z "$ac_top_builddir"; then
859
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
861
[\\/]* | ?:[\\/]* ) # Absolute path.
862
ac_srcdir=$srcdir$ac_dir_suffix;
863
ac_top_srcdir=$srcdir ;;
865
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866
ac_top_srcdir=$ac_top_builddir$srcdir ;;
869
# Do not use `cd foo && pwd` to compute absolute paths, because
870
# the directories may not exist.
872
.) ac_abs_builddir="$ac_dir";;
875
.) ac_abs_builddir=`pwd`;;
876
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877
*) ac_abs_builddir=`pwd`/"$ac_dir";;
880
case $ac_abs_builddir in
881
.) ac_abs_top_builddir=${ac_top_builddir}.;;
883
case ${ac_top_builddir}. in
884
.) ac_abs_top_builddir=$ac_abs_builddir;;
885
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
889
case $ac_abs_builddir in
890
.) ac_abs_srcdir=$ac_srcdir;;
893
.) ac_abs_srcdir=$ac_abs_builddir;;
894
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
898
case $ac_abs_builddir in
899
.) ac_abs_top_srcdir=$ac_top_srcdir;;
901
case $ac_top_srcdir in
902
.) ac_abs_top_srcdir=$ac_abs_builddir;;
903
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
909
# Check for guested configure; otherwise get Cygnus style configure.
910
if test -f $ac_srcdir/configure.gnu; then
912
$SHELL $ac_srcdir/configure.gnu --help=recursive
913
elif test -f $ac_srcdir/configure; then
915
$SHELL $ac_srcdir/configure --help=recursive
916
elif test -f $ac_srcdir/configure.ac ||
917
test -f $ac_srcdir/configure.in; then
921
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927
test -n "$ac_init_help" && exit 0
928
if $ac_init_version; then
931
Copyright (C) 2003 Free Software Foundation, Inc.
932
This configure script is free software; the Free Software Foundation
933
gives unlimited permission to copy, distribute and modify it.
939
This file contains any messages produced by compilers while
940
running configure, to aid debugging if configure makes a mistake.
942
It was created by $as_me, which was
943
generated by GNU Autoconf 2.59. Invocation command line was
950
@%:@@%:@ --------- @%:@@%:@
951
@%:@@%:@ Platform. @%:@@%:@
952
@%:@@%:@ --------- @%:@@%:@
954
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955
uname -m = `(uname -m) 2>/dev/null || echo unknown`
956
uname -r = `(uname -r) 2>/dev/null || echo unknown`
957
uname -s = `(uname -s) 2>/dev/null || echo unknown`
958
uname -v = `(uname -v) 2>/dev/null || echo unknown`
960
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977
test -z "$as_dir" && as_dir=.
986
@%:@@%:@ ----------- @%:@@%:@
987
@%:@@%:@ Core tests. @%:@@%:@
988
@%:@@%:@ ----------- @%:@@%:@
993
# Keep a trace of the command line.
994
# Strip out --no-create and --no-recursion so they do not pile up.
995
# Strip out --silent because we don't want to record it for future runs.
996
# Also quote any args containing shell meta-characters.
997
# Make two passes to allow for proper duplicate-argument suppression.
1002
ac_must_keep_next=false
1008
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010
| -silent | --silent | --silen | --sile | --sil)
1012
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1018
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019
if test $ac_must_keep_next = true; then
1020
ac_must_keep_next=false # Got value, back to normal.
1023
*=* | --config-cache | -C | -disable-* | --disable-* \
1024
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026
| -with-* | --with-* | -without-* | --without-* | --x)
1027
case "$ac_configure_args0 " in
1028
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031
-* ) ac_must_keep_next=true ;;
1034
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035
# Get rid of the leading space.
1041
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1044
# When interrupted or exit'd, cleanup temporary files, and complete
1045
# config.log. We remove comments because anyway the quotes in there
1046
# would cause problems or look ugly.
1047
# WARNING: Be sure not to use single quotes in there, as some shells,
1048
# such as our DU 5.0 friend, will then `close' the trap.
1049
trap 'exit_status=$?
1050
# Save into config.log some information that might help in debugging.
1055
@%:@@%:@ ---------------- @%:@@%:@
1056
@%:@@%:@ Cache variables. @%:@@%:@
1057
@%:@@%:@ ---------------- @%:@@%:@
1060
# The following way of writing the cache mishandles newlines in values,
1063
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078
@%:@@%:@ ----------------- @%:@@%:@
1079
@%:@@%:@ Output variables. @%:@@%:@
1080
@%:@@%:@ ----------------- @%:@@%:@
1083
for ac_var in $ac_subst_vars
1085
eval ac_val=$`echo $ac_var`
1086
echo "$ac_var='"'"'$ac_val'"'"'"
1090
if test -n "$ac_subst_files"; then
1092
@%:@@%:@ ------------- @%:@@%:@
1093
@%:@@%:@ Output files. @%:@@%:@
1094
@%:@@%:@ ------------- @%:@@%:@
1097
for ac_var in $ac_subst_files
1099
eval ac_val=$`echo $ac_var`
1100
echo "$ac_var='"'"'$ac_val'"'"'"
1105
if test -s confdefs.h; then
1107
@%:@@%:@ ----------- @%:@@%:@
1108
@%:@@%:@ confdefs.h. @%:@@%:@
1109
@%:@@%:@ ----------- @%:@@%:@
1112
sed "/^$/d" confdefs.h | sort
1115
test "$ac_signal" != 0 &&
1116
echo "$as_me: caught signal $ac_signal"
1117
echo "$as_me: exit $exit_status"
1119
rm -f core *.core &&
1120
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123
for ac_signal in 1 2 13 15; do
1124
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1129
rm -rf conftest* confdefs.h
1130
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133
# Predefined preprocessor variables.
1135
cat >>confdefs.h <<_ACEOF
1136
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1140
cat >>confdefs.h <<_ACEOF
1141
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145
cat >>confdefs.h <<_ACEOF
1146
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1150
cat >>confdefs.h <<_ACEOF
1151
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1155
cat >>confdefs.h <<_ACEOF
1156
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160
# Let the site file select an alternate cache file if it wants to.
1161
# Prefer explicitly selected file to automatically selected ones.
1162
if test -z "$CONFIG_SITE"; then
1163
if test "x$prefix" != xNONE; then
1164
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1166
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169
for ac_site_file in $CONFIG_SITE; do
1170
if test -r "$ac_site_file"; then
1171
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172
echo "$as_me: loading site script $ac_site_file" >&6;}
1173
sed 's/^/| /' "$ac_site_file" >&5
1178
if test -r "$cache_file"; then
1179
# Some versions of bash will fail to source /dev/null (special
1180
# files actually), so we avoid doing that.
1181
if test -f "$cache_file"; then
1182
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183
echo "$as_me: loading cache $cache_file" >&6;}
1185
[\\/]* | ?:[\\/]* ) . $cache_file;;
1186
*) . ./$cache_file;;
1190
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191
echo "$as_me: creating cache $cache_file" >&6;}
1195
# Check that the precious variables saved in the cache have kept the same
1197
ac_cache_corrupted=false
1198
for ac_var in `(set) 2>&1 |
1199
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201
eval ac_new_set=\$ac_env_${ac_var}_set
1202
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203
eval ac_new_val="\$ac_env_${ac_var}_value"
1204
case $ac_old_set,$ac_new_set in
1206
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208
ac_cache_corrupted=: ;;
1210
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212
ac_cache_corrupted=: ;;
1215
if test "x$ac_old_val" != "x$ac_new_val"; then
1216
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1219
echo "$as_me: former value: $ac_old_val" >&2;}
1220
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1221
echo "$as_me: current value: $ac_new_val" >&2;}
1222
ac_cache_corrupted=:
1225
# Pass precious variables to config.status.
1226
if test "$ac_new_set" = set; then
1228
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230
*) ac_arg=$ac_var=$ac_new_val ;;
1232
case " $ac_configure_args " in
1233
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1234
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238
if $ac_cache_corrupted; then
1239
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243
{ (exit 1); exit 1; }; }
1247
ac_cpp='$CPP $CPPFLAGS'
1248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272
for ac_dir in $srcdir/../build-scripts; do
1273
if test -f $ac_dir/install-sh; then
1275
ac_install_sh="$ac_aux_dir/install-sh -c"
1277
elif test -f $ac_dir/install.sh; then
1279
ac_install_sh="$ac_aux_dir/install.sh -c"
1281
elif test -f $ac_dir/shtool; then
1283
ac_install_sh="$ac_aux_dir/shtool install -c"
1287
if test -z "$ac_aux_dir"; then
1288
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
1289
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
1290
{ (exit 1); exit 1; }; }
1292
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1293
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1294
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1296
# Make sure we can run config.sub.
1297
$ac_config_sub sun4 >/dev/null 2>&1 ||
1298
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1299
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1300
{ (exit 1); exit 1; }; }
1302
echo "$as_me:$LINENO: checking build system type" >&5
1303
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1304
if test "${ac_cv_build+set}" = set; then
1305
echo $ECHO_N "(cached) $ECHO_C" >&6
1307
ac_cv_build_alias=$build_alias
1308
test -z "$ac_cv_build_alias" &&
1309
ac_cv_build_alias=`$ac_config_guess`
1310
test -z "$ac_cv_build_alias" &&
1311
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1312
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1313
{ (exit 1); exit 1; }; }
1314
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1315
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1316
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1317
{ (exit 1); exit 1; }; }
1320
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1321
echo "${ECHO_T}$ac_cv_build" >&6
1323
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1324
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1325
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1328
echo "$as_me:$LINENO: checking host system type" >&5
1329
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1330
if test "${ac_cv_host+set}" = set; then
1331
echo $ECHO_N "(cached) $ECHO_C" >&6
1333
ac_cv_host_alias=$host_alias
1334
test -z "$ac_cv_host_alias" &&
1335
ac_cv_host_alias=$ac_cv_build_alias
1336
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1337
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1338
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1339
{ (exit 1); exit 1; }; }
1342
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1343
echo "${ECHO_T}$ac_cv_host" >&6
1345
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
ac_cpp='$CPP $CPPFLAGS'
1354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357
if test -n "$ac_tool_prefix"; then
1358
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1359
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1360
echo "$as_me:$LINENO: checking for $ac_word" >&5
1361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362
if test "${ac_cv_prog_CC+set}" = set; then
1363
echo $ECHO_N "(cached) $ECHO_C" >&6
1365
if test -n "$CC"; then
1366
ac_cv_prog_CC="$CC" # Let the user override the test.
1368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372
test -z "$as_dir" && as_dir=.
1373
for ac_exec_ext in '' $ac_executable_extensions; do
1374
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1376
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385
if test -n "$CC"; then
1386
echo "$as_me:$LINENO: result: $CC" >&5
1387
echo "${ECHO_T}$CC" >&6
1389
echo "$as_me:$LINENO: result: no" >&5
1390
echo "${ECHO_T}no" >&6
1394
if test -z "$ac_cv_prog_CC"; then
1396
# Extract the first word of "gcc", so it can be a program name with args.
1397
set dummy gcc; ac_word=$2
1398
echo "$as_me:$LINENO: checking for $ac_word" >&5
1399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1401
echo $ECHO_N "(cached) $ECHO_C" >&6
1403
if test -n "$ac_ct_CC"; then
1404
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410
test -z "$as_dir" && as_dir=.
1411
for ac_exec_ext in '' $ac_executable_extensions; do
1412
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413
ac_cv_prog_ac_ct_CC="gcc"
1414
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1423
if test -n "$ac_ct_CC"; then
1424
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1425
echo "${ECHO_T}$ac_ct_CC" >&6
1427
echo "$as_me:$LINENO: result: no" >&5
1428
echo "${ECHO_T}no" >&6
1436
if test -z "$CC"; then
1437
if test -n "$ac_tool_prefix"; then
1438
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1439
set dummy ${ac_tool_prefix}cc; ac_word=$2
1440
echo "$as_me:$LINENO: checking for $ac_word" >&5
1441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442
if test "${ac_cv_prog_CC+set}" = set; then
1443
echo $ECHO_N "(cached) $ECHO_C" >&6
1445
if test -n "$CC"; then
1446
ac_cv_prog_CC="$CC" # Let the user override the test.
1448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452
test -z "$as_dir" && as_dir=.
1453
for ac_exec_ext in '' $ac_executable_extensions; do
1454
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455
ac_cv_prog_CC="${ac_tool_prefix}cc"
1456
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465
if test -n "$CC"; then
1466
echo "$as_me:$LINENO: result: $CC" >&5
1467
echo "${ECHO_T}$CC" >&6
1469
echo "$as_me:$LINENO: result: no" >&5
1470
echo "${ECHO_T}no" >&6
1474
if test -z "$ac_cv_prog_CC"; then
1476
# Extract the first word of "cc", so it can be a program name with args.
1477
set dummy cc; ac_word=$2
1478
echo "$as_me:$LINENO: checking for $ac_word" >&5
1479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481
echo $ECHO_N "(cached) $ECHO_C" >&6
1483
if test -n "$ac_ct_CC"; then
1484
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490
test -z "$as_dir" && as_dir=.
1491
for ac_exec_ext in '' $ac_executable_extensions; do
1492
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493
ac_cv_prog_ac_ct_CC="cc"
1494
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503
if test -n "$ac_ct_CC"; then
1504
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505
echo "${ECHO_T}$ac_ct_CC" >&6
1507
echo "$as_me:$LINENO: result: no" >&5
1508
echo "${ECHO_T}no" >&6
1517
if test -z "$CC"; then
1518
# Extract the first word of "cc", so it can be a program name with args.
1519
set dummy cc; ac_word=$2
1520
echo "$as_me:$LINENO: checking for $ac_word" >&5
1521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522
if test "${ac_cv_prog_CC+set}" = set; then
1523
echo $ECHO_N "(cached) $ECHO_C" >&6
1525
if test -n "$CC"; then
1526
ac_cv_prog_CC="$CC" # Let the user override the test.
1529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533
test -z "$as_dir" && as_dir=.
1534
for ac_exec_ext in '' $ac_executable_extensions; do
1535
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1537
ac_prog_rejected=yes
1541
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547
if test $ac_prog_rejected = yes; then
1548
# We found a bogon in the path, so make sure we never use it.
1549
set dummy $ac_cv_prog_CC
1551
if test $@%:@ != 0; then
1552
# We chose a different compiler from the bogus one.
1553
# However, it has the same basename, so the bogon will be chosen
1554
# first if we set CC to just the basename; use the full file name.
1556
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1562
if test -n "$CC"; then
1563
echo "$as_me:$LINENO: result: $CC" >&5
1564
echo "${ECHO_T}$CC" >&6
1566
echo "$as_me:$LINENO: result: no" >&5
1567
echo "${ECHO_T}no" >&6
1571
if test -z "$CC"; then
1572
if test -n "$ac_tool_prefix"; then
1575
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1576
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1577
echo "$as_me:$LINENO: checking for $ac_word" >&5
1578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579
if test "${ac_cv_prog_CC+set}" = set; then
1580
echo $ECHO_N "(cached) $ECHO_C" >&6
1582
if test -n "$CC"; then
1583
ac_cv_prog_CC="$CC" # Let the user override the test.
1585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589
test -z "$as_dir" && as_dir=.
1590
for ac_exec_ext in '' $ac_executable_extensions; do
1591
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1593
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602
if test -n "$CC"; then
1603
echo "$as_me:$LINENO: result: $CC" >&5
1604
echo "${ECHO_T}$CC" >&6
1606
echo "$as_me:$LINENO: result: no" >&5
1607
echo "${ECHO_T}no" >&6
1610
test -n "$CC" && break
1613
if test -z "$CC"; then
1617
# Extract the first word of "$ac_prog", so it can be a program name with args.
1618
set dummy $ac_prog; ac_word=$2
1619
echo "$as_me:$LINENO: checking for $ac_word" >&5
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622
echo $ECHO_N "(cached) $ECHO_C" >&6
1624
if test -n "$ac_ct_CC"; then
1625
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631
test -z "$as_dir" && as_dir=.
1632
for ac_exec_ext in '' $ac_executable_extensions; do
1633
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634
ac_cv_prog_ac_ct_CC="$ac_prog"
1635
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1644
if test -n "$ac_ct_CC"; then
1645
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1646
echo "${ECHO_T}$ac_ct_CC" >&6
1648
echo "$as_me:$LINENO: result: no" >&5
1649
echo "${ECHO_T}no" >&6
1652
test -n "$ac_ct_CC" && break
1661
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1662
See \`config.log' for more details." >&5
1663
echo "$as_me: error: no acceptable C compiler found in \$PATH
1664
See \`config.log' for more details." >&2;}
1665
{ (exit 1); exit 1; }; }
1667
# Provide some information about the compiler.
1668
echo "$as_me:$LINENO:" \
1669
"checking for C compiler version" >&5
1670
ac_compiler=`set X $ac_compile; echo $2`
1671
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1672
(eval $ac_compiler --version </dev/null >&5) 2>&5
1674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675
(exit $ac_status); }
1676
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1677
(eval $ac_compiler -v </dev/null >&5) 2>&5
1679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680
(exit $ac_status); }
1681
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1682
(eval $ac_compiler -V </dev/null >&5) 2>&5
1684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685
(exit $ac_status); }
1687
cat >conftest.$ac_ext <<_ACEOF
1690
cat confdefs.h >>conftest.$ac_ext
1691
cat >>conftest.$ac_ext <<_ACEOF
1692
/* end confdefs.h. */
1702
ac_clean_files_save=$ac_clean_files
1703
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1704
# Try to create an executable without -o first, disregard a.out.
1705
# It will help us diagnose broken compilers, and finding out an intuition
1707
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1708
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1709
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1710
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1711
(eval $ac_link_default) 2>&5
1713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714
(exit $ac_status); }; then
1715
# Find the output, starting from the most likely. This scheme is
1716
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1719
# Be careful to initialize this variable, since it used to be cached.
1720
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1722
# b.out is created by i960 compilers.
1723
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1725
test -f "$ac_file" || continue
1727
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1730
# This is the source file.
1733
# We found the default executable, but exeext='' is most
1737
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738
# FIXME: I believe we export ac_cv_exeext for Libtool,
1739
# but it would be cool to find out if it's true. Does anybody
1740
# maintain Libtool? --akim.
1748
echo "$as_me: failed program was:" >&5
1749
sed 's/^/| /' conftest.$ac_ext >&5
1751
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1752
See \`config.log' for more details." >&5
1753
echo "$as_me: error: C compiler cannot create executables
1754
See \`config.log' for more details." >&2;}
1755
{ (exit 77); exit 77; }; }
1758
ac_exeext=$ac_cv_exeext
1759
echo "$as_me:$LINENO: result: $ac_file" >&5
1760
echo "${ECHO_T}$ac_file" >&6
1762
# Check the compiler produces executables we can run. If not, either
1763
# the compiler is broken, or we cross compile.
1764
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1765
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1766
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1767
# If not cross compiling, check that we can run a simple program.
1768
if test "$cross_compiling" != yes; then
1769
if { ac_try='./$ac_file'
1770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
(exit $ac_status); }; }; then
1777
if test "$cross_compiling" = maybe; then
1780
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1781
If you meant to cross compile, use \`--host'.
1782
See \`config.log' for more details." >&5
1783
echo "$as_me: error: cannot run C compiled programs.
1784
If you meant to cross compile, use \`--host'.
1785
See \`config.log' for more details." >&2;}
1786
{ (exit 1); exit 1; }; }
1790
echo "$as_me:$LINENO: result: yes" >&5
1791
echo "${ECHO_T}yes" >&6
1793
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1794
ac_clean_files=$ac_clean_files_save
1795
# Check the compiler produces executables we can run. If not, either
1796
# the compiler is broken, or we cross compile.
1797
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1798
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1799
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1800
echo "${ECHO_T}$cross_compiling" >&6
1802
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1803
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1805
(eval $ac_link) 2>&5
1807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808
(exit $ac_status); }; then
1809
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1810
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1811
# work properly (i.e., refer to `conftest.exe'), while it won't with
1813
for ac_file in conftest.exe conftest conftest.*; do
1814
test -f "$ac_file" || continue
1816
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1817
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1824
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1825
See \`config.log' for more details." >&5
1826
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1827
See \`config.log' for more details." >&2;}
1828
{ (exit 1); exit 1; }; }
1831
rm -f conftest$ac_cv_exeext
1832
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1833
echo "${ECHO_T}$ac_cv_exeext" >&6
1835
rm -f conftest.$ac_ext
1836
EXEEXT=$ac_cv_exeext
1838
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1839
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1840
if test "${ac_cv_objext+set}" = set; then
1841
echo $ECHO_N "(cached) $ECHO_C" >&6
1843
cat >conftest.$ac_ext <<_ACEOF
1846
cat confdefs.h >>conftest.$ac_ext
1847
cat >>conftest.$ac_ext <<_ACEOF
1848
/* end confdefs.h. */
1858
rm -f conftest.o conftest.obj
1859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1860
(eval $ac_compile) 2>&5
1862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863
(exit $ac_status); }; then
1864
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1866
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1867
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1872
echo "$as_me: failed program was:" >&5
1873
sed 's/^/| /' conftest.$ac_ext >&5
1875
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1876
See \`config.log' for more details." >&5
1877
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1878
See \`config.log' for more details." >&2;}
1879
{ (exit 1); exit 1; }; }
1882
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1884
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1885
echo "${ECHO_T}$ac_cv_objext" >&6
1886
OBJEXT=$ac_cv_objext
1888
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1889
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1890
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1891
echo $ECHO_N "(cached) $ECHO_C" >&6
1893
cat >conftest.$ac_ext <<_ACEOF
1896
cat confdefs.h >>conftest.$ac_ext
1897
cat >>conftest.$ac_ext <<_ACEOF
1898
/* end confdefs.h. */
1911
rm -f conftest.$ac_objext
1912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913
(eval $ac_compile) 2>conftest.er1
1915
grep -v '^ *+' conftest.er1 >conftest.err
1917
cat conftest.err >&5
1918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919
(exit $ac_status); } &&
1920
{ ac_try='test -z "$ac_c_werror_flag"
1921
|| test ! -s conftest.err'
1922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
(exit $ac_status); }; } &&
1927
{ ac_try='test -s conftest.$ac_objext'
1928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932
(exit $ac_status); }; }; then
1935
echo "$as_me: failed program was:" >&5
1936
sed 's/^/| /' conftest.$ac_ext >&5
1940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1941
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1944
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1945
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1946
GCC=`test $ac_compiler_gnu = yes && echo yes`
1947
ac_test_CFLAGS=${CFLAGS+set}
1948
ac_save_CFLAGS=$CFLAGS
1950
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1951
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1952
if test "${ac_cv_prog_cc_g+set}" = set; then
1953
echo $ECHO_N "(cached) $ECHO_C" >&6
1955
cat >conftest.$ac_ext <<_ACEOF
1958
cat confdefs.h >>conftest.$ac_ext
1959
cat >>conftest.$ac_ext <<_ACEOF
1960
/* end confdefs.h. */
1970
rm -f conftest.$ac_objext
1971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972
(eval $ac_compile) 2>conftest.er1
1974
grep -v '^ *+' conftest.er1 >conftest.err
1976
cat conftest.err >&5
1977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978
(exit $ac_status); } &&
1979
{ ac_try='test -z "$ac_c_werror_flag"
1980
|| test ! -s conftest.err'
1981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985
(exit $ac_status); }; } &&
1986
{ ac_try='test -s conftest.$ac_objext'
1987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991
(exit $ac_status); }; }; then
1994
echo "$as_me: failed program was:" >&5
1995
sed 's/^/| /' conftest.$ac_ext >&5
1999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2001
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2002
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2003
if test "$ac_test_CFLAGS" = set; then
2004
CFLAGS=$ac_save_CFLAGS
2005
elif test $ac_cv_prog_cc_g = yes; then
2006
if test "$GCC" = yes; then
2012
if test "$GCC" = yes; then
2018
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2019
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2020
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2021
echo $ECHO_N "(cached) $ECHO_C" >&6
2023
ac_cv_prog_cc_stdc=no
2025
cat >conftest.$ac_ext <<_ACEOF
2028
cat confdefs.h >>conftest.$ac_ext
2029
cat >>conftest.$ac_ext <<_ACEOF
2030
/* end confdefs.h. */
2033
#include <sys/types.h>
2034
#include <sys/stat.h>
2035
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2036
struct buf { int x; };
2037
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2038
static char *e (p, i)
2044
static char *f (char * (*g) (char **, int), char **p, ...)
2049
s = g (p, va_arg (v,int));
2054
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2055
function prototypes and stuff, but not '\xHH' hex character constants.
2056
These don't provoke an error unfortunately, instead are silently treated
2057
as 'x'. The following induces an error, until -std1 is added to get
2058
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2059
array size at least. It's necessary to write '\x00'==0 to get something
2060
that's true only with -std1. */
2061
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2063
int test (int i, double x);
2064
struct s1 {int (*f) (int a);};
2065
struct s2 {int (*f) (double a);};
2066
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2072
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2077
# Don't try gcc -ansi; that turns off useful extensions and
2078
# breaks some systems' header files.
2079
# AIX -qlanglvl=ansi
2080
# Ultrix and OSF/1 -std1
2081
# HP-UX 10.20 and later -Ae
2082
# HP-UX older versions -Aa -D_HPUX_SOURCE
2083
# SVR4 -Xc -D__EXTENSIONS__
2084
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2086
CC="$ac_save_CC $ac_arg"
2087
rm -f conftest.$ac_objext
2088
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089
(eval $ac_compile) 2>conftest.er1
2091
grep -v '^ *+' conftest.er1 >conftest.err
2093
cat conftest.err >&5
2094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
(exit $ac_status); } &&
2096
{ ac_try='test -z "$ac_c_werror_flag"
2097
|| test ! -s conftest.err'
2098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102
(exit $ac_status); }; } &&
2103
{ ac_try='test -s conftest.$ac_objext'
2104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108
(exit $ac_status); }; }; then
2109
ac_cv_prog_cc_stdc=$ac_arg
2112
echo "$as_me: failed program was:" >&5
2113
sed 's/^/| /' conftest.$ac_ext >&5
2116
rm -f conftest.err conftest.$ac_objext
2118
rm -f conftest.$ac_ext conftest.$ac_objext
2123
case "x$ac_cv_prog_cc_stdc" in
2125
echo "$as_me:$LINENO: result: none needed" >&5
2126
echo "${ECHO_T}none needed" >&6 ;;
2128
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2129
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2130
CC="$CC $ac_cv_prog_cc_stdc" ;;
2133
# Some people use a C++ compiler to compile C. Since we use `exit',
2134
# in C++ we need to declare it. In case someone uses the same compiler
2135
# for both compiling C and C++ we need to have the C++ compiler decide
2136
# the declaration of exit, since it's the most demanding environment.
2137
cat >conftest.$ac_ext <<_ACEOF
2138
@%:@ifndef __cplusplus
2142
rm -f conftest.$ac_objext
2143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144
(eval $ac_compile) 2>conftest.er1
2146
grep -v '^ *+' conftest.er1 >conftest.err
2148
cat conftest.err >&5
2149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150
(exit $ac_status); } &&
2151
{ ac_try='test -z "$ac_c_werror_flag"
2152
|| test ! -s conftest.err'
2153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157
(exit $ac_status); }; } &&
2158
{ ac_try='test -s conftest.$ac_objext'
2159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163
(exit $ac_status); }; }; then
2164
for ac_declaration in \
2166
'extern "C" void std::exit (int) throw (); using std::exit;' \
2167
'extern "C" void std::exit (int); using std::exit;' \
2168
'extern "C" void exit (int) throw ();' \
2169
'extern "C" void exit (int);' \
2172
cat >conftest.$ac_ext <<_ACEOF
2175
cat confdefs.h >>conftest.$ac_ext
2176
cat >>conftest.$ac_ext <<_ACEOF
2177
/* end confdefs.h. */
2179
@%:@include <stdlib.h>
2188
rm -f conftest.$ac_objext
2189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190
(eval $ac_compile) 2>conftest.er1
2192
grep -v '^ *+' conftest.er1 >conftest.err
2194
cat conftest.err >&5
2195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196
(exit $ac_status); } &&
2197
{ ac_try='test -z "$ac_c_werror_flag"
2198
|| test ! -s conftest.err'
2199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203
(exit $ac_status); }; } &&
2204
{ ac_try='test -s conftest.$ac_objext'
2205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
(exit $ac_status); }; }; then
2212
echo "$as_me: failed program was:" >&5
2213
sed 's/^/| /' conftest.$ac_ext >&5
2217
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218
cat >conftest.$ac_ext <<_ACEOF
2221
cat confdefs.h >>conftest.$ac_ext
2222
cat >>conftest.$ac_ext <<_ACEOF
2223
/* end confdefs.h. */
2233
rm -f conftest.$ac_objext
2234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235
(eval $ac_compile) 2>conftest.er1
2237
grep -v '^ *+' conftest.er1 >conftest.err
2239
cat conftest.err >&5
2240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241
(exit $ac_status); } &&
2242
{ ac_try='test -z "$ac_c_werror_flag"
2243
|| test ! -s conftest.err'
2244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248
(exit $ac_status); }; } &&
2249
{ ac_try='test -s conftest.$ac_objext'
2250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
(exit $ac_status); }; }; then
2257
echo "$as_me: failed program was:" >&5
2258
sed 's/^/| /' conftest.$ac_ext >&5
2261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264
if test -n "$ac_declaration"; then
2265
echo '#ifdef __cplusplus' >>confdefs.h
2266
echo $ac_declaration >>confdefs.h
2267
echo '#endif' >>confdefs.h
2271
echo "$as_me: failed program was:" >&5
2272
sed 's/^/| /' conftest.$ac_ext >&5
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277
ac_cpp='$CPP $CPPFLAGS'
2278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2286
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2287
if test "${ac_cv_c_const+set}" = set; then
2288
echo $ECHO_N "(cached) $ECHO_C" >&6
2290
cat >conftest.$ac_ext <<_ACEOF
2293
cat confdefs.h >>conftest.$ac_ext
2294
cat >>conftest.$ac_ext <<_ACEOF
2295
/* end confdefs.h. */
2300
/* FIXME: Include the comments suggested by Paul. */
2302
/* Ultrix mips cc rejects this. */
2303
typedef int charset[2];
2305
/* SunOS 4.1.1 cc rejects this. */
2306
char const *const *ccp;
2308
/* NEC SVR4.0.2 mips cc rejects this. */
2309
struct point {int x, y;};
2310
static struct point const zero = {0,0};
2311
/* AIX XL C 1.02.0.0 rejects this.
2312
It does not let you subtract one const X* pointer from another in
2313
an arm of an if-expression whose if-part is not a constant
2315
const char *g = "string";
2316
ccp = &g + (g ? g-g : 0);
2317
/* HPUX 7.0 cc rejects these. */
2320
ccp = (char const *const *) p;
2321
{ /* SCO 3.2v4 cc rejects this. */
2323
char const *s = 0 ? (char *) 0 : (char const *) 0;
2327
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2329
const int *foo = &x[0];
2332
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2333
typedef const int *iptr;
2337
{ /* AIX XL C 1.02.0.0 rejects this saying
2338
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2339
struct s { int j; const int *ap[3]; };
2340
struct s *b; b->j = 5;
2342
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2351
rm -f conftest.$ac_objext
2352
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353
(eval $ac_compile) 2>conftest.er1
2355
grep -v '^ *+' conftest.er1 >conftest.err
2357
cat conftest.err >&5
2358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359
(exit $ac_status); } &&
2360
{ ac_try='test -z "$ac_c_werror_flag"
2361
|| test ! -s conftest.err'
2362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
(exit $ac_status); }; } &&
2367
{ ac_try='test -s conftest.$ac_objext'
2368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372
(exit $ac_status); }; }; then
2375
echo "$as_me: failed program was:" >&5
2376
sed 's/^/| /' conftest.$ac_ext >&5
2380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2383
echo "${ECHO_T}$ac_cv_c_const" >&6
2384
if test $ac_cv_c_const = no; then
2386
cat >>confdefs.h <<\_ACEOF
2394
*-*-cygwin* | *-*-mingw32*)
2397
SYS_GL_LIBS="-lopengl32"
2407
SYS_GL_LIBS="-Wl,-framework,OpenGL"
2411
if test x$ac_cv_c_compiler_gnu = xyes; then
2419
# Extract the first word of "osmesa-config", so it can be a program name with args.
2420
set dummy osmesa-config; ac_word=$2
2421
echo "$as_me:$LINENO: checking for $ac_word" >&5
2422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423
if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
2424
echo $ECHO_N "(cached) $ECHO_C" >&6
2426
case $OSMESA_CONFIG in
2428
ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435
test -z "$as_dir" && as_dir=.
2436
for ac_exec_ext in '' $ac_executable_extensions; do
2437
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438
ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445
test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2449
OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2451
if test -n "$OSMESA_CONFIG"; then
2452
echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
2453
echo "${ECHO_T}$OSMESA_CONFIG" >&6
2455
echo "$as_me:$LINENO: result: no" >&5
2456
echo "${ECHO_T}no" >&6
2459
if test "x$OSMESA_CONFIG" = "xyes"; then
2460
OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2461
OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2462
CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2463
SYS_GL_LIBS="$OSMESA_LIBS"
2465
SYS_GL_LIBS="-lOSMesa"
2479
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2480
if test "${with_sdl_prefix+set}" = set; then
2481
withval="$with_sdl_prefix"
2482
sdl_prefix="$withval"
2487
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
2488
if test "${with_sdl_exec_prefix+set}" = set; then
2489
withval="$with_sdl_exec_prefix"
2490
sdl_exec_prefix="$withval"
2494
# Check whether --enable-sdltest or --disable-sdltest was given.
2495
if test "${enable_sdltest+set}" = set; then
2496
enableval="$enable_sdltest"
2502
if test x$sdl_exec_prefix != x ; then
2503
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2504
if test x${SDL_CONFIG+set} != xset ; then
2505
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
2508
if test x$sdl_prefix != x ; then
2509
sdl_args="$sdl_args --prefix=$sdl_prefix"
2510
if test x${SDL_CONFIG+set} != xset ; then
2511
SDL_CONFIG=$sdl_prefix/bin/sdl-config
2515
if test "x$prefix" != xNONE; then
2516
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
2518
# Extract the first word of "sdl-config", so it can be a program name with args.
2519
set dummy sdl-config; ac_word=$2
2520
echo "$as_me:$LINENO: checking for $ac_word" >&5
2521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2522
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2523
echo $ECHO_N "(cached) $ECHO_C" >&6
2527
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534
test -z "$as_dir" && as_dir=.
2535
for ac_exec_ext in '' $ac_executable_extensions; do
2536
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2538
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2548
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2550
if test -n "$SDL_CONFIG"; then
2551
echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2552
echo "${ECHO_T}$SDL_CONFIG" >&6
2554
echo "$as_me:$LINENO: result: no" >&5
2555
echo "${ECHO_T}no" >&6
2558
min_sdl_version=$SDL_VERSION
2559
echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2560
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
2562
if test "$SDL_CONFIG" = "no" ; then
2565
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
2566
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
2568
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
2569
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2570
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
2571
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2572
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
2573
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2574
if test "x$enable_sdltest" = "xyes" ; then
2575
ac_save_CFLAGS="$CFLAGS"
2576
ac_save_CXXFLAGS="$CXXFLAGS"
2577
ac_save_LIBS="$LIBS"
2578
CFLAGS="$CFLAGS $SDL_CFLAGS"
2579
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
2580
LIBS="$LIBS $SDL_LIBS"
2582
if test "$cross_compiling" = yes; then
2583
echo $ac_n "cross compiling; assumed OK... $ac_c"
2585
cat >conftest.$ac_ext <<_ACEOF
2588
cat confdefs.h >>conftest.$ac_ext
2589
cat >>conftest.$ac_ext <<_ACEOF
2590
/* end confdefs.h. */
2598
my_strdup (char *str)
2604
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
2605
strcpy (new_str, str);
2613
int main (int argc, char *argv[])
2615
int major, minor, micro;
2618
/* This hangs on some systems (?)
2619
system ("touch conf.sdltest");
2621
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
2623
/* HP/UX 9 (%@#!) writes to sscanf strings */
2624
tmp_version = my_strdup("$min_sdl_version");
2625
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
2626
printf("%s, bad version string\n", "$min_sdl_version");
2630
if (($sdl_major_version > major) ||
2631
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
2632
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
2638
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
2639
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
2640
printf("*** best to upgrade to the required version.\n");
2641
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
2642
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
2643
printf("*** config.cache before re-running configure\n");
2650
rm -f conftest$ac_exeext
2651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652
(eval $ac_link) 2>&5
2654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
(exit $ac_status); }; }; then
2663
echo "$as_me: program exited with status $ac_status" >&5
2664
echo "$as_me: failed program was:" >&5
2665
sed 's/^/| /' conftest.$ac_ext >&5
2670
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2672
CFLAGS="$ac_save_CFLAGS"
2673
CXXFLAGS="$ac_save_CXXFLAGS"
2674
LIBS="$ac_save_LIBS"
2677
if test "x$no_sdl" = x ; then
2678
echo "$as_me:$LINENO: result: yes" >&5
2679
echo "${ECHO_T}yes" >&6
2682
echo "$as_me:$LINENO: result: no" >&5
2683
echo "${ECHO_T}no" >&6
2684
if test "$SDL_CONFIG" = "no" ; then
2685
echo "*** The sdl-config script installed by SDL could not be found"
2686
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
2687
echo "*** your path, or set the SDL_CONFIG environment variable to the"
2688
echo "*** full path to sdl-config."
2690
if test -f conf.sdltest ; then
2693
echo "*** Could not run SDL test program, checking why..."
2694
CFLAGS="$CFLAGS $SDL_CFLAGS"
2695
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
2696
LIBS="$LIBS $SDL_LIBS"
2697
cat >conftest.$ac_ext <<_ACEOF
2700
cat confdefs.h >>conftest.$ac_ext
2701
cat >>conftest.$ac_ext <<_ACEOF
2702
/* end confdefs.h. */
2707
int main(int argc, char *argv[])
2710
#define main K_and_R_C_main
2720
rm -f conftest.$ac_objext conftest$ac_exeext
2721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2722
(eval $ac_link) 2>conftest.er1
2724
grep -v '^ *+' conftest.er1 >conftest.err
2726
cat conftest.err >&5
2727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728
(exit $ac_status); } &&
2729
{ ac_try='test -z "$ac_c_werror_flag"
2730
|| test ! -s conftest.err'
2731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735
(exit $ac_status); }; } &&
2736
{ ac_try='test -s conftest$ac_exeext'
2737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741
(exit $ac_status); }; }; then
2742
echo "*** The test program compiled, but did not run. This usually means"
2743
echo "*** that the run-time linker is not finding SDL or finding the wrong"
2744
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
2745
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2746
echo "*** to the installed location Also, make sure you have run ldconfig if that"
2747
echo "*** is required on your system"
2749
echo "*** If you have an old version installed, it is best to remove it, although"
2750
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2752
echo "$as_me: failed program was:" >&5
2753
sed 's/^/| /' conftest.$ac_ext >&5
2755
echo "*** The test program failed to compile or link. See the file config.log for the"
2756
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
2757
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
2758
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
2760
rm -f conftest.err conftest.$ac_objext \
2761
conftest$ac_exeext conftest.$ac_ext
2762
CFLAGS="$ac_save_CFLAGS"
2763
CXXFLAGS="$ac_save_CXXFLAGS"
2764
LIBS="$ac_save_LIBS"
2769
{ { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
2770
echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
2771
{ (exit 1); exit 1; }; }
2778
CFLAGS="$CFLAGS $SDL_CFLAGS"
2779
LIBS="$LIBS $SDL_LIBS"
2782
ac_cpp='$CPP $CPPFLAGS'
2783
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2787
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2788
# On Suns, sometimes $CPP names a directory.
2789
if test -n "$CPP" && test -d "$CPP"; then
2792
if test -z "$CPP"; then
2793
if test "${ac_cv_prog_CPP+set}" = set; then
2794
echo $ECHO_N "(cached) $ECHO_C" >&6
2796
# Double quotes because CPP needs to be expanded
2797
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2800
for ac_c_preproc_warn_flag in '' yes
2802
# Use a header file that comes with gcc, so configuring glibc
2803
# with a fresh cross-compiler works.
2804
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2805
# <limits.h> exists even on freestanding compilers.
2806
# On the NeXT, cc -E runs the code through the compiler's parser,
2807
# not just through cpp. "Syntax error" is here to catch this case.
2808
cat >conftest.$ac_ext <<_ACEOF
2811
cat confdefs.h >>conftest.$ac_ext
2812
cat >>conftest.$ac_ext <<_ACEOF
2813
/* end confdefs.h. */
2815
@%:@ include <limits.h>
2817
@%:@ include <assert.h>
2821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824
grep -v '^ *+' conftest.er1 >conftest.err
2826
cat conftest.err >&5
2827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828
(exit $ac_status); } >/dev/null; then
2829
if test -s conftest.err; then
2830
ac_cpp_err=$ac_c_preproc_warn_flag
2831
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2838
if test -z "$ac_cpp_err"; then
2841
echo "$as_me: failed program was:" >&5
2842
sed 's/^/| /' conftest.$ac_ext >&5
2844
# Broken: fails on valid input.
2847
rm -f conftest.err conftest.$ac_ext
2849
# OK, works on sane cases. Now check whether non-existent headers
2850
# can be detected and how.
2851
cat >conftest.$ac_ext <<_ACEOF
2854
cat confdefs.h >>conftest.$ac_ext
2855
cat >>conftest.$ac_ext <<_ACEOF
2856
/* end confdefs.h. */
2857
@%:@include <ac_nonexistent.h>
2859
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2860
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862
grep -v '^ *+' conftest.er1 >conftest.err
2864
cat conftest.err >&5
2865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866
(exit $ac_status); } >/dev/null; then
2867
if test -s conftest.err; then
2868
ac_cpp_err=$ac_c_preproc_warn_flag
2869
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2876
if test -z "$ac_cpp_err"; then
2877
# Broken: success on invalid input.
2880
echo "$as_me: failed program was:" >&5
2881
sed 's/^/| /' conftest.$ac_ext >&5
2883
# Passes both tests.
2887
rm -f conftest.err conftest.$ac_ext
2890
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2891
rm -f conftest.err conftest.$ac_ext
2892
if $ac_preproc_ok; then
2904
echo "$as_me:$LINENO: result: $CPP" >&5
2905
echo "${ECHO_T}$CPP" >&6
2907
for ac_c_preproc_warn_flag in '' yes
2909
# Use a header file that comes with gcc, so configuring glibc
2910
# with a fresh cross-compiler works.
2911
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912
# <limits.h> exists even on freestanding compilers.
2913
# On the NeXT, cc -E runs the code through the compiler's parser,
2914
# not just through cpp. "Syntax error" is here to catch this case.
2915
cat >conftest.$ac_ext <<_ACEOF
2918
cat confdefs.h >>conftest.$ac_ext
2919
cat >>conftest.$ac_ext <<_ACEOF
2920
/* end confdefs.h. */
2922
@%:@ include <limits.h>
2924
@%:@ include <assert.h>
2928
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931
grep -v '^ *+' conftest.er1 >conftest.err
2933
cat conftest.err >&5
2934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935
(exit $ac_status); } >/dev/null; then
2936
if test -s conftest.err; then
2937
ac_cpp_err=$ac_c_preproc_warn_flag
2938
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945
if test -z "$ac_cpp_err"; then
2948
echo "$as_me: failed program was:" >&5
2949
sed 's/^/| /' conftest.$ac_ext >&5
2951
# Broken: fails on valid input.
2954
rm -f conftest.err conftest.$ac_ext
2956
# OK, works on sane cases. Now check whether non-existent headers
2957
# can be detected and how.
2958
cat >conftest.$ac_ext <<_ACEOF
2961
cat confdefs.h >>conftest.$ac_ext
2962
cat >>conftest.$ac_ext <<_ACEOF
2963
/* end confdefs.h. */
2964
@%:@include <ac_nonexistent.h>
2966
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969
grep -v '^ *+' conftest.er1 >conftest.err
2971
cat conftest.err >&5
2972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973
(exit $ac_status); } >/dev/null; then
2974
if test -s conftest.err; then
2975
ac_cpp_err=$ac_c_preproc_warn_flag
2976
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983
if test -z "$ac_cpp_err"; then
2984
# Broken: success on invalid input.
2987
echo "$as_me: failed program was:" >&5
2988
sed 's/^/| /' conftest.$ac_ext >&5
2990
# Passes both tests.
2994
rm -f conftest.err conftest.$ac_ext
2997
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998
rm -f conftest.err conftest.$ac_ext
2999
if $ac_preproc_ok; then
3002
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3003
See \`config.log' for more details." >&5
3004
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3005
See \`config.log' for more details." >&2;}
3006
{ (exit 1); exit 1; }; }
3010
ac_cpp='$CPP $CPPFLAGS'
3011
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
echo "$as_me:$LINENO: checking for X" >&5
3017
echo $ECHO_N "checking for X... $ECHO_C" >&6
3020
# Check whether --with-x or --without-x was given.
3021
if test "${with_x+set}" = set; then
3025
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3026
if test "x$with_x" = xno; then
3027
# The user explicitly disabled X.
3030
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3031
# Both variables are already set.
3034
if test "${ac_cv_have_x+set}" = set; then
3035
echo $ECHO_N "(cached) $ECHO_C" >&6
3037
# One or both of the vars are not set, and there is no cached value.
3038
ac_x_includes=no ac_x_libraries=no
3040
if mkdir conftest.dir; then
3042
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
3043
cat >Imakefile <<'_ACEOF'
3045
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3047
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3048
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3049
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3050
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3051
for ac_extension in a so sl; do
3052
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3053
test -f $ac_im_libdir/libX11.$ac_extension; then
3054
ac_im_usrlibdir=$ac_im_libdir; break
3057
# Screen out bogus values from the imake configuration. They are
3058
# bogus both because they are the default anyway, and because
3059
# using them would break gcc on systems where it needs fixed includes.
3060
case $ac_im_incroot in
3062
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3064
case $ac_im_usrlibdir in
3066
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3073
# Standard set of common directories for X headers.
3074
# Check X11 before X11Rn because it is often a symlink to the current release.
3086
/usr/local/X11/include
3087
/usr/local/X11R6/include
3088
/usr/local/X11R5/include
3089
/usr/local/X11R4/include
3091
/usr/local/include/X11
3092
/usr/local/include/X11R6
3093
/usr/local/include/X11R5
3094
/usr/local/include/X11R4
3098
/usr/XFree86/include/X11
3102
/usr/unsupported/include
3104
/usr/local/x11r5/include
3105
/usr/lpp/Xamples/include
3107
/usr/openwin/include
3108
/usr/openwin/share/include'
3110
if test "$ac_x_includes" = no; then
3111
# Guess where to find include files, by looking for Intrinsic.h.
3112
# First, try using that file with no special directory specified.
3113
cat >conftest.$ac_ext <<_ACEOF
3116
cat confdefs.h >>conftest.$ac_ext
3117
cat >>conftest.$ac_ext <<_ACEOF
3118
/* end confdefs.h. */
3119
@%:@include <X11/Intrinsic.h>
3121
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3124
grep -v '^ *+' conftest.er1 >conftest.err
3126
cat conftest.err >&5
3127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128
(exit $ac_status); } >/dev/null; then
3129
if test -s conftest.err; then
3130
ac_cpp_err=$ac_c_preproc_warn_flag
3131
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138
if test -z "$ac_cpp_err"; then
3139
# We can compile using X headers with no special include directory.
3142
echo "$as_me: failed program was:" >&5
3143
sed 's/^/| /' conftest.$ac_ext >&5
3145
for ac_dir in $ac_x_header_dirs; do
3146
if test -r "$ac_dir/X11/Intrinsic.h"; then
3147
ac_x_includes=$ac_dir
3152
rm -f conftest.err conftest.$ac_ext
3153
fi # $ac_x_includes = no
3155
if test "$ac_x_libraries" = no; then
3156
# Check for the libraries.
3157
# See if we find them without any special options.
3158
# Don't add to $LIBS permanently.
3161
cat >conftest.$ac_ext <<_ACEOF
3164
cat confdefs.h >>conftest.$ac_ext
3165
cat >>conftest.$ac_ext <<_ACEOF
3166
/* end confdefs.h. */
3167
@%:@include <X11/Intrinsic.h>
3176
rm -f conftest.$ac_objext conftest$ac_exeext
3177
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178
(eval $ac_link) 2>conftest.er1
3180
grep -v '^ *+' conftest.er1 >conftest.err
3182
cat conftest.err >&5
3183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184
(exit $ac_status); } &&
3185
{ ac_try='test -z "$ac_c_werror_flag"
3186
|| test ! -s conftest.err'
3187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191
(exit $ac_status); }; } &&
3192
{ ac_try='test -s conftest$ac_exeext'
3193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197
(exit $ac_status); }; }; then
3199
# We can link X programs with no special library path.
3202
echo "$as_me: failed program was:" >&5
3203
sed 's/^/| /' conftest.$ac_ext >&5
3206
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3208
# Don't even attempt the hair of trying to link an X program!
3209
for ac_extension in a so sl; do
3210
if test -r $ac_dir/libXt.$ac_extension; then
3211
ac_x_libraries=$ac_dir
3217
rm -f conftest.err conftest.$ac_objext \
3218
conftest$ac_exeext conftest.$ac_ext
3219
fi # $ac_x_libraries = no
3221
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3222
# Didn't find X anywhere. Cache the known absence of X.
3223
ac_cv_have_x="have_x=no"
3225
# Record where we found X for the cache.
3226
ac_cv_have_x="have_x=yes \
3227
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3232
eval "$ac_cv_have_x"
3235
if test "$have_x" != yes; then
3236
echo "$as_me:$LINENO: result: $have_x" >&5
3237
echo "${ECHO_T}$have_x" >&6
3240
# If each of the values was on the command line, it overrides each guess.
3241
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3242
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3243
# Update the cache value to reflect the command line values.
3244
ac_cv_have_x="have_x=yes \
3245
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3246
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3247
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3250
if test x$have_x = xyes; then
3251
if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
3254
CFLAGS="$CFLAGS -I$ac_x_includes"
3256
if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
3259
XPATH="-L$ac_x_libraries"
3263
echo "$as_me:$LINENO: checking for OpenGL support" >&5
3264
echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6
3266
cat >conftest.$ac_ext <<_ACEOF
3269
cat confdefs.h >>conftest.$ac_ext
3270
cat >>conftest.$ac_ext <<_ACEOF
3271
/* end confdefs.h. */
3273
#include "SDL_opengl.h"
3284
rm -f conftest.$ac_objext
3285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286
(eval $ac_compile) 2>conftest.er1
3288
grep -v '^ *+' conftest.er1 >conftest.err
3290
cat conftest.err >&5
3291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
(exit $ac_status); } &&
3293
{ ac_try='test -z "$ac_c_werror_flag"
3294
|| test ! -s conftest.err'
3295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299
(exit $ac_status); }; } &&
3300
{ ac_try='test -s conftest.$ac_objext'
3301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305
(exit $ac_status); }; }; then
3310
echo "$as_me: failed program was:" >&5
3311
sed 's/^/| /' conftest.$ac_ext >&5
3314
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315
echo "$as_me:$LINENO: result: $have_opengl" >&5
3316
echo "${ECHO_T}$have_opengl" >&6
3317
if test x$have_opengl = xyes; then
3318
CFLAGS="$CFLAGS -DHAVE_OPENGL"
3319
GLLIB="$XPATH $SYS_GL_LIBS"
3325
ac_config_files="$ac_config_files Makefile"
3326
cat >confcache <<\_ACEOF
3327
# This file is a shell script that caches the results of configure
3328
# tests run on this system so they can be shared between configure
3329
# scripts and configure runs, see configure's option --config-cache.
3330
# It is not useful on other systems. If it contains results you don't
3331
# want to keep, you may remove or edit it.
3333
# config.status only pays attention to the cache file if you give it
3334
# the --recheck option to rerun configure.
3336
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3337
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3342
# The following way of writing the cache mishandles newlines in values,
3343
# but we know of no workaround that is simple, portable, and efficient.
3344
# So, don't put newlines in cache variables' values.
3345
# Ultrix sh set writes to stderr and can't be redirected directly,
3346
# and sets the high bit in the cache file unless we assign to the vars.
3349
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3351
# `set' does not quote correctly, so add quotes (double-quote
3352
# substitution turns \\\\ into \\, and sed turns \\ into \).
3355
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3358
# `set' quotes correctly as required by POSIX, so do not add quotes.
3360
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3367
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3369
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3371
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3372
if test -w $cache_file; then
3373
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3374
cat confcache >$cache_file
3376
echo "not updating unwritable cache $cache_file"
3381
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3382
# Let make expand exec_prefix.
3383
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3385
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3386
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3387
# trailing colons and then remove the whole line if VPATH becomes empty
3388
# (actually we leave an empty line to preserve line numbers).
3389
if test "x$srcdir" = x.; then
3390
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3391
s/:*\$(srcdir):*/:/;
3392
s/:*\${srcdir}:*/:/;
3394
s/^\([^=]*=[ ]*\):*/\1/;
3400
# Transform confdefs.h into DEFS.
3401
# Protect against shell expansion while executing Makefile rules.
3402
# Protect against Makefile macro expansion.
3404
# If the first sed substitution is executed (which looks for macros that
3405
# take arguments), then we branch to the quote section. Otherwise,
3406
# look for a macro that doesn't take arguments.
3407
cat >confdef2opt.sed <<\_ACEOF
3410
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3412
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3416
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3422
# We use echo to avoid assuming a particular line-breaking character.
3423
# The extra dot is to prevent the shell from consuming trailing
3424
# line-breaks from the sub-command output. A line-break within
3425
# single-quotes doesn't work because, if this script is created in a
3426
# platform that uses two characters for line-breaks (e.g., DOS), tr
3428
ac_LF_and_DOT=`echo; echo .`
3429
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3430
rm -f confdef2opt.sed
3435
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
3436
# 1. Remove the extension, and $U if already installed.
3437
ac_i=`echo "$ac_i" |
3438
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3440
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3441
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3443
LIB@&t@OBJS=$ac_libobjs
3445
LTLIBOBJS=$ac_ltlibobjs
3449
: ${CONFIG_STATUS=./config.status}
3450
ac_clean_files_save=$ac_clean_files
3451
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3452
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3453
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3454
cat >$CONFIG_STATUS <<_ACEOF
3456
# Generated by $as_me.
3457
# Run this file to recreate the current configuration.
3458
# Compiler output produced by configure, useful for debugging
3459
# configure, is in config.log if it exists.
3464
SHELL=\${CONFIG_SHELL-$SHELL}
3467
cat >>$CONFIG_STATUS <<\_ACEOF
3468
## --------------------- ##
3469
## M4sh Initialization. ##
3470
## --------------------- ##
3472
# Be Bourne compatible
3473
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3476
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3477
# is contrary to our usage. Disable this feature.
3478
alias -g '${1+"$@"}'='"$@"'
3479
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3482
DUALCASE=1; export DUALCASE # for MKS sh
3484
# Support unset when possible.
3485
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3492
# Work around bugs in pre-3.0 UWIN ksh.
3493
$as_unset ENV MAIL MAILPATH
3500
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3501
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3502
LC_TELEPHONE LC_TIME
3504
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3505
eval $as_var=C; export $as_var
3511
# Required to use basename.
3512
if expr a : '\(a\)' >/dev/null 2>&1; then
3518
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3519
as_basename=basename
3525
# Name of the executable.
3526
as_me=`$as_basename "$0" ||
3527
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3528
X"$0" : 'X\(//\)$' \| \
3529
X"$0" : 'X\(/\)$' \| \
3530
. : '\(.\)' 2>/dev/null ||
3532
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3533
/^X\/\(\/\/\)$/{ s//\1/; q; }
3534
/^X\/\(\/\).*/{ s//\1/; q; }
3538
# PATH needs CR, and LINENO needs CR and PATH.
3539
# Avoid depending upon Character Ranges.
3540
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3541
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3542
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3543
as_cr_digits='0123456789'
3544
as_cr_alnum=$as_cr_Letters$as_cr_digits
3546
# The user is always right.
3547
if test "${PATH_SEPARATOR+set}" != set; then
3548
echo "#! /bin/sh" >conf$$.sh
3549
echo "exit 0" >>conf$$.sh
3551
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3562
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3563
test "x$as_lineno_1" != "x$as_lineno_2" &&
3564
test "x$as_lineno_3" = "x$as_lineno_2" || {
3565
# Find who we are. Look in the path if we contain no path at all
3568
*[\\/]* ) as_myself=$0 ;;
3569
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573
test -z "$as_dir" && as_dir=.
3574
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3579
# We did not find ourselves, most probably we were run as `sh COMMAND'
3580
# in which case we are not to be found in the path.
3581
if test "x$as_myself" = x; then
3584
if test ! -f "$as_myself"; then
3585
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3586
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3587
{ (exit 1); exit 1; }; }
3589
case $CONFIG_SHELL in
3591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3595
test -z "$as_dir" && as_dir=.
3596
for as_base in sh bash ksh sh5; do
3599
if ("$as_dir/$as_base" -c '
3602
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3603
test "x$as_lineno_1" != "x$as_lineno_2" &&
3604
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3605
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3606
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3607
CONFIG_SHELL=$as_dir/$as_base
3609
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3617
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3618
# uniformly replaced by the line number. The first 'sed' inserts a
3619
# line-number line before each line; the second 'sed' does the real
3620
# work. The second script uses 'N' to pair each line-number line
3621
# with the numbered line, and appends trailing '-' during
3622
# substitution so that $LINENO is not a special case at line end.
3623
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3624
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3625
sed '=' <$as_myself |
3630
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3633
s,^['$as_cr_digits']*\n,,
3635
chmod +x $as_me.lineno ||
3636
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3637
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3638
{ (exit 1); exit 1; }; }
3640
# Don't try to exec as it changes $[0], causing all sort of problems
3641
# (the dirname of $[0] is not the place where we might find the
3642
# original and so on. Autoconf is especially sensible to this).
3644
# Exit status is that of the last command.
3649
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3650
*c*,-n*) ECHO_N= ECHO_C='
3652
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3653
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3656
if expr a : '\(a\)' >/dev/null 2>&1; then
3662
rm -f conf$$ conf$$.exe conf$$.file
3664
if ln -s conf$$.file conf$$ 2>/dev/null; then
3665
# We could just check for DJGPP; but this test a) works b) is more generic
3666
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3667
if test -f conf$$.exe; then
3668
# Don't use ln at all; we don't have any links
3673
elif ln conf$$.file conf$$ 2>/dev/null; then
3678
rm -f conf$$ conf$$.exe conf$$.file
3680
if mkdir -p . 2>/dev/null; then
3683
test -d ./-p && rmdir ./-p
3687
as_executable_p="test -f"
3689
# Sed expression to map a string onto a valid CPP name.
3690
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3692
# Sed expression to map a string onto a valid variable name.
3693
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3697
# We need space, tab and new line, in precisely that order.
3707
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3708
# report actual input values of CONFIG_FILES etc. instead of their
3709
# values after options handling. Logging --version etc. is OK.
3713
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
3714
@%:@@%:@ Running $as_me. @%:@@%:@
3719
This file was extended by $as_me, which was
3720
generated by GNU Autoconf 2.59. Invocation command line was
3722
CONFIG_FILES = $CONFIG_FILES
3723
CONFIG_HEADERS = $CONFIG_HEADERS
3724
CONFIG_LINKS = $CONFIG_LINKS
3725
CONFIG_COMMANDS = $CONFIG_COMMANDS
3729
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3733
# Files that config.status was made for.
3734
if test -n "$ac_config_files"; then
3735
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3738
if test -n "$ac_config_headers"; then
3739
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3742
if test -n "$ac_config_links"; then
3743
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3746
if test -n "$ac_config_commands"; then
3747
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3750
cat >>$CONFIG_STATUS <<\_ACEOF
3753
\`$as_me' instantiates files from templates according to the
3754
current configuration.
3756
Usage: $0 [OPTIONS] [FILE]...
3758
-h, --help print this help, then exit
3759
-V, --version print version number, then exit
3760
-q, --quiet do not print progress messages
3761
-d, --debug don't remove temporary files
3762
--recheck update $as_me by reconfiguring in the same conditions
3763
--file=FILE[:TEMPLATE]
3764
instantiate the configuration file FILE
3766
Configuration files:
3769
Report bugs to <bug-autoconf@gnu.org>."
3772
cat >>$CONFIG_STATUS <<_ACEOF
3775
configured by $0, generated by GNU Autoconf 2.59,
3776
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3778
Copyright (C) 2003 Free Software Foundation, Inc.
3779
This config.status script is free software; the Free Software Foundation
3780
gives unlimited permission to copy, distribute and modify it."
3784
cat >>$CONFIG_STATUS <<\_ACEOF
3785
# If no file are specified by the user, then we need to provide default
3786
# value. By we need to know if files were specified by the user.
3792
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3793
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3801
*) # This is not an option, so the user has probably given explicit
3804
ac_need_defaults=false;;
3808
# Handling of the options.
3810
cat >>$CONFIG_STATUS <<\_ACEOF
3811
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3813
--version | --vers* | -V )
3814
echo "$ac_cs_version"; exit 0 ;;
3816
# Conflict between --help and --header
3817
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3818
Try \`$0 --help' for more information." >&5
3819
echo "$as_me: error: ambiguous option: $1
3820
Try \`$0 --help' for more information." >&2;}
3821
{ (exit 1); exit 1; }; };;
3822
--help | --hel | -h )
3823
echo "$ac_cs_usage"; exit 0 ;;
3824
--debug | --d* | -d )
3826
--file | --fil | --fi | --f )
3828
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3829
ac_need_defaults=false;;
3830
--header | --heade | --head | --hea )
3832
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3833
ac_need_defaults=false;;
3834
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3835
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3839
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3840
Try \`$0 --help' for more information." >&5
3841
echo "$as_me: error: unrecognized option: $1
3842
Try \`$0 --help' for more information." >&2;}
3843
{ (exit 1); exit 1; }; } ;;
3845
*) ac_config_targets="$ac_config_targets $1" ;;
3851
ac_configure_extra_args=
3853
if $ac_cs_silent; then
3855
ac_configure_extra_args="$ac_configure_extra_args --silent"
3859
cat >>$CONFIG_STATUS <<_ACEOF
3860
if \$ac_cs_recheck; then
3861
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3862
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3871
cat >>$CONFIG_STATUS <<\_ACEOF
3872
for ac_config_target in $ac_config_targets
3874
case "$ac_config_target" in
3875
# Handling of arguments.
3876
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3877
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3878
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3879
{ (exit 1); exit 1; }; };;
3883
# If the user did not use the arguments to specify the items to instantiate,
3884
# then the envvar interface is used. Set only those that are not.
3885
# We use the long form for the default assignment because of an extremely
3886
# bizarre bug on SunOS 4.1.3.
3887
if $ac_need_defaults; then
3888
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3891
# Have a temporary directory for convenience. Make it in the build tree
3892
# simply because there is no reason to put it here, and in addition,
3893
# creating and moving files from /tmp can sometimes cause problems.
3894
# Create a temporary directory, and hook for its removal unless debugging.
3897
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3898
trap '{ (exit 1); exit 1; }' 1 2 13 15
3901
# Create a (secure) tmp directory for tmp files.
3904
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3905
test -n "$tmp" && test -d "$tmp"
3908
tmp=./confstat$$-$RANDOM
3909
(umask 077 && mkdir $tmp)
3912
echo "$me: cannot create a temporary directory in ." >&2
3913
{ (exit 1); exit 1; }
3918
cat >>$CONFIG_STATUS <<_ACEOF
3921
# CONFIG_FILES section.
3924
# No need to generate the scripts if there are no CONFIG_FILES.
3925
# This happens for instance when ./config.status config.h
3926
if test -n "\$CONFIG_FILES"; then
3927
# Protect against being on the right side of a sed subst in config.status.
3928
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3929
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3930
s,@SHELL@,$SHELL,;t t
3931
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3932
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3933
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3934
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3935
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3936
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3937
s,@exec_prefix@,$exec_prefix,;t t
3938
s,@prefix@,$prefix,;t t
3939
s,@program_transform_name@,$program_transform_name,;t t
3940
s,@bindir@,$bindir,;t t
3941
s,@sbindir@,$sbindir,;t t
3942
s,@libexecdir@,$libexecdir,;t t
3943
s,@datadir@,$datadir,;t t
3944
s,@sysconfdir@,$sysconfdir,;t t
3945
s,@sharedstatedir@,$sharedstatedir,;t t
3946
s,@localstatedir@,$localstatedir,;t t
3947
s,@libdir@,$libdir,;t t
3948
s,@includedir@,$includedir,;t t
3949
s,@oldincludedir@,$oldincludedir,;t t
3950
s,@infodir@,$infodir,;t t
3951
s,@mandir@,$mandir,;t t
3952
s,@build_alias@,$build_alias,;t t
3953
s,@host_alias@,$host_alias,;t t
3954
s,@target_alias@,$target_alias,;t t
3956
s,@ECHO_C@,$ECHO_C,;t t
3957
s,@ECHO_N@,$ECHO_N,;t t
3958
s,@ECHO_T@,$ECHO_T,;t t
3960
s,@build@,$build,;t t
3961
s,@build_cpu@,$build_cpu,;t t
3962
s,@build_vendor@,$build_vendor,;t t
3963
s,@build_os@,$build_os,;t t
3965
s,@host_cpu@,$host_cpu,;t t
3966
s,@host_vendor@,$host_vendor,;t t
3967
s,@host_os@,$host_os,;t t
3969
s,@CFLAGS@,$CFLAGS,;t t
3970
s,@LDFLAGS@,$LDFLAGS,;t t
3971
s,@CPPFLAGS@,$CPPFLAGS,;t t
3972
s,@ac_ct_CC@,$ac_ct_CC,;t t
3973
s,@EXEEXT@,$EXEEXT,;t t
3974
s,@OBJEXT@,$OBJEXT,;t t
3975
s,@OSMESA_CONFIG@,$OSMESA_CONFIG,;t t
3977
s,@MATHLIB@,$MATHLIB,;t t
3978
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
3979
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
3980
s,@SDL_LIBS@,$SDL_LIBS,;t t
3982
s,@GLLIB@,$GLLIB,;t t
3983
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
3984
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3989
cat >>$CONFIG_STATUS <<\_ACEOF
3990
# Split the substitutions into bite-sized pieces for seds with
3991
# small command number limits, like on Digital OSF/1 and HP-UX.
3993
ac_sed_frag=1 # Number of current file.
3994
ac_beg=1 # First line for current file.
3995
ac_end=$ac_max_sed_lines # Line after last line for current file.
3998
while $ac_more_lines; do
3999
if test $ac_beg -gt 1; then
4000
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4002
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4004
if test ! -s $tmp/subs.frag; then
4007
# The purpose of the label and of the branching condition is to
4008
# speed up the sed processing (if there are no `@' at all, there
4009
# is no need to browse any of the substitutions).
4010
# These are the two extra sed commands mentioned above.
4012
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4013
if test -z "$ac_sed_cmds"; then
4014
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4016
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4018
ac_sed_frag=`expr $ac_sed_frag + 1`
4020
ac_end=`expr $ac_end + $ac_max_sed_lines`
4023
if test -z "$ac_sed_cmds"; then
4026
fi # test -n "$CONFIG_FILES"
4029
cat >>$CONFIG_STATUS <<\_ACEOF
4030
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4031
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4033
- | *:- | *:-:* ) # input from stdin
4035
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4036
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4037
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4038
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4039
* ) ac_file_in=$ac_file.in ;;
4042
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4043
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4044
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4045
X"$ac_file" : 'X\(//\)[^/]' \| \
4046
X"$ac_file" : 'X\(//\)$' \| \
4047
X"$ac_file" : 'X\(/\)' \| \
4048
. : '\(.\)' 2>/dev/null ||
4050
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4051
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4052
/^X\(\/\/\)$/{ s//\1/; q; }
4053
/^X\(\/\).*/{ s//\1/; q; }
4055
{ if $as_mkdir_p; then
4060
while test ! -d "$as_dir"; do
4061
as_dirs="$as_dir $as_dirs"
4062
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4063
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4064
X"$as_dir" : 'X\(//\)[^/]' \| \
4065
X"$as_dir" : 'X\(//\)$' \| \
4066
X"$as_dir" : 'X\(/\)' \| \
4067
. : '\(.\)' 2>/dev/null ||
4069
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4070
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4071
/^X\(\/\/\)$/{ s//\1/; q; }
4072
/^X\(\/\).*/{ s//\1/; q; }
4075
test ! -n "$as_dirs" || mkdir $as_dirs
4076
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4077
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4078
{ (exit 1); exit 1; }; }; }
4082
if test "$ac_dir" != .; then
4083
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4084
# A "../" for each directory in $ac_dir_suffix.
4085
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4087
ac_dir_suffix= ac_top_builddir=
4091
.) # No --srcdir option. We are building in place.
4093
if test -z "$ac_top_builddir"; then
4096
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4098
[\\/]* | ?:[\\/]* ) # Absolute path.
4099
ac_srcdir=$srcdir$ac_dir_suffix;
4100
ac_top_srcdir=$srcdir ;;
4102
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4103
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4106
# Do not use `cd foo && pwd` to compute absolute paths, because
4107
# the directories may not exist.
4109
.) ac_abs_builddir="$ac_dir";;
4112
.) ac_abs_builddir=`pwd`;;
4113
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4114
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4117
case $ac_abs_builddir in
4118
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4120
case ${ac_top_builddir}. in
4121
.) ac_abs_top_builddir=$ac_abs_builddir;;
4122
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4123
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4126
case $ac_abs_builddir in
4127
.) ac_abs_srcdir=$ac_srcdir;;
4130
.) ac_abs_srcdir=$ac_abs_builddir;;
4131
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4132
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4135
case $ac_abs_builddir in
4136
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4138
case $ac_top_srcdir in
4139
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4140
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4141
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4147
if test x"$ac_file" != x-; then
4148
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4149
echo "$as_me: creating $ac_file" >&6;}
4152
# Let's still pretend it is `configure' which instantiates (i.e., don't
4153
# use $as_me), people would be surprised to read:
4154
# /* config.h. Generated by config.status. */
4155
if test x"$ac_file" = x-; then
4158
configure_input="$ac_file. "
4160
configure_input=$configure_input"Generated from `echo $ac_file_in |
4161
sed 's,.*/,,'` by configure."
4163
# First look for the input files in the build tree, otherwise in the
4165
ac_file_inputs=`IFS=:
4166
for f in $ac_file_in; do
4168
-) echo $tmp/stdin ;;
4170
# Absolute (can't be DOS-style, as IFS=:)
4171
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4172
echo "$as_me: error: cannot find input file: $f" >&2;}
4173
{ (exit 1); exit 1; }; }
4176
if test -f "$f"; then
4179
elif test -f "$srcdir/$f"; then
4184
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4185
echo "$as_me: error: cannot find input file: $f" >&2;}
4186
{ (exit 1); exit 1; }; }
4189
done` || { (exit 1); exit 1; }
4191
cat >>$CONFIG_STATUS <<_ACEOF
4195
cat >>$CONFIG_STATUS <<\_ACEOF
4197
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4198
s,@configure_input@,$configure_input,;t t
4199
s,@srcdir@,$ac_srcdir,;t t
4200
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4201
s,@top_srcdir@,$ac_top_srcdir,;t t
4202
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4203
s,@builddir@,$ac_builddir,;t t
4204
s,@abs_builddir@,$ac_abs_builddir,;t t
4205
s,@top_builddir@,$ac_top_builddir,;t t
4206
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4207
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4209
if test x"$ac_file" != x-; then
4210
mv $tmp/out $ac_file
4219
cat >>$CONFIG_STATUS <<\_ACEOF
4221
{ (exit 0); exit 0; }
4223
chmod +x $CONFIG_STATUS
4224
ac_clean_files=$ac_clean_files_save
4227
# configure is writing to config.log, and then calls config.status.
4228
# config.status does its own redirection, appending to config.log.
4229
# Unfortunately, on DOS this fails, as config.log is still kept open
4230
# by configure, so config.status won't be able to write to it; its
4231
# output is simply discarded. So we exec the FD to /dev/null,
4232
# effectively closing config.log, so it can be properly (re)opened and
4233
# appended to by config.status. When coming back to configure, we
4234
# need to make the FD available again.
4235
if test "$no_create" != yes; then
4237
ac_config_status_args=
4238
test "$silent" = yes &&
4239
ac_config_status_args="$ac_config_status_args --quiet"
4241
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4243
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4244
# would make configure fail if this is the last instruction.
4245
$ac_cs_success || { (exit 1); exit 1; }