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="src/fweelin.cc"
275
ac_unique_file="src/fweelin.cc"
276
# Factoring default headers for most tests.
277
ac_includes_default="\
280
# include <sys/types.h>
283
# include <sys/stat.h>
294
# if !STDC_HEADERS && HAVE_MEMORY_H
300
# include <strings.h>
303
# include <inttypes.h>
313
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SDL_CONFIG SDL_CFLAGS SDL_LIBS EGREP LIBOBJS LTLIBOBJS'
316
# Initialize some variables set by options.
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
328
program_transform_name=s,x,x,
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
357
# If the previous option needs an argument, assign it.
358
if test -n "$ac_prev"; then
359
eval "$ac_prev=\$ac_option"
364
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
# Accept the important Cygnus configure options, so we can diagnose typos.
370
-bindir | --bindir | --bindi | --bind | --bin | --bi)
372
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
-build | --build | --buil | --bui | --bu)
376
ac_prev=build_alias ;;
377
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
build_alias=$ac_optarg ;;
380
-cache-file | --cache-file | --cache-fil | --cache-fi \
381
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
ac_prev=cache_file ;;
383
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
cache_file=$ac_optarg ;;
388
cache_file=config.cache ;;
390
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
datadir=$ac_optarg ;;
396
-disable-* | --disable-*)
397
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
# Reject names that are not valid shell variable names.
399
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
{ (exit 1); exit 1; }; }
402
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
eval "enable_$ac_feature=no" ;;
405
-enable-* | --enable-*)
406
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
# Reject names that are not valid shell variable names.
408
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
{ (exit 1); exit 1; }; }
411
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
eval "enable_$ac_feature='$ac_optarg'" ;;
418
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
| --exec | --exe | --ex)
421
ac_prev=exec_prefix ;;
422
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
| --exec=* | --exe=* | --ex=*)
425
exec_prefix=$ac_optarg ;;
427
-gas | --gas | --ga | --g)
428
# Obsolete; use --with-gas.
431
-help | --help | --hel | --he | -h)
433
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
ac_init_help=recursive ;;
435
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
ac_init_help=short ;;
438
-host | --host | --hos | --ho)
439
ac_prev=host_alias ;;
440
-host=* | --host=* | --hos=* | --ho=*)
441
host_alias=$ac_optarg ;;
443
-includedir | --includedir | --includedi | --included | --include \
444
| --includ | --inclu | --incl | --inc)
445
ac_prev=includedir ;;
446
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
| --includ=* | --inclu=* | --incl=* | --inc=*)
448
includedir=$ac_optarg ;;
450
-infodir | --infodir | --infodi | --infod | --info | --inf)
452
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
infodir=$ac_optarg ;;
455
-libdir | --libdir | --libdi | --libd)
457
-libdir=* | --libdir=* | --libdi=* | --libd=*)
460
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
| --libexe | --libex | --libe)
462
ac_prev=libexecdir ;;
463
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
| --libexe=* | --libex=* | --libe=*)
465
libexecdir=$ac_optarg ;;
467
-localstatedir | --localstatedir | --localstatedi | --localstated \
468
| --localstate | --localstat | --localsta | --localst \
469
| --locals | --local | --loca | --loc | --lo)
470
ac_prev=localstatedir ;;
471
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
localstatedir=$ac_optarg ;;
476
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
# Obsolete; use --without-fp.
485
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
| --no-cr | --no-c | -n)
489
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
| --oldin | --oldi | --old | --ol | --o)
496
ac_prev=oldincludedir ;;
497
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
oldincludedir=$ac_optarg ;;
502
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
-program-prefix | --program-prefix | --program-prefi | --program-pref \
508
| --program-pre | --program-pr | --program-p)
509
ac_prev=program_prefix ;;
510
-program-prefix=* | --program-prefix=* | --program-prefi=* \
511
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
program_prefix=$ac_optarg ;;
514
-program-suffix | --program-suffix | --program-suffi | --program-suff \
515
| --program-suf | --program-su | --program-s)
516
ac_prev=program_suffix ;;
517
-program-suffix=* | --program-suffix=* | --program-suffi=* \
518
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
program_suffix=$ac_optarg ;;
521
-program-transform-name | --program-transform-name \
522
| --program-transform-nam | --program-transform-na \
523
| --program-transform-n | --program-transform- \
524
| --program-transform | --program-transfor \
525
| --program-transfo | --program-transf \
526
| --program-trans | --program-tran \
527
| --progr-tra | --program-tr | --program-t)
528
ac_prev=program_transform_name ;;
529
-program-transform-name=* | --program-transform-name=* \
530
| --program-transform-nam=* | --program-transform-na=* \
531
| --program-transform-n=* | --program-transform-=* \
532
| --program-transform=* | --program-transfor=* \
533
| --program-transfo=* | --program-transf=* \
534
| --program-trans=* | --program-tran=* \
535
| --progr-tra=* | --program-tr=* | --program-t=*)
536
program_transform_name=$ac_optarg ;;
538
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
| -silent | --silent | --silen | --sile | --sil)
542
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546
sbindir=$ac_optarg ;;
548
-sharedstatedir | --sharedstatedir | --sharedstatedi \
549
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
| --sharedst | --shareds | --shared | --share | --shar \
552
ac_prev=sharedstatedir ;;
553
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557
sharedstatedir=$ac_optarg ;;
559
-site | --site | --sit)
561
-site=* | --site=* | --sit=*)
564
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
| --syscon | --sysco | --sysc | --sys | --sy)
571
ac_prev=sysconfdir ;;
572
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
sysconfdir=$ac_optarg ;;
576
-target | --target | --targe | --targ | --tar | --ta | --t)
577
ac_prev=target_alias ;;
578
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
target_alias=$ac_optarg ;;
581
-v | -verbose | --verbose | --verbos | --verbo | --verb)
584
-version | --version | --versio | --versi | --vers | -V)
588
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid package name: $ac_package" >&2
592
{ (exit 1); exit 1; }; }
593
ac_package=`echo $ac_package| sed 's/-/_/g'`
595
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
eval "with_$ac_package='$ac_optarg'" ;;
600
-without-* | --without-*)
601
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
# Reject names that are not valid shell variable names.
603
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
{ echo "$as_me: error: invalid package name: $ac_package" >&2
605
{ (exit 1); exit 1; }; }
606
ac_package=`echo $ac_package | sed 's/-/_/g'`
607
eval "with_$ac_package=no" ;;
610
# Obsolete; use --with-x.
613
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
| --x-incl | --x-inc | --x-in | --x-i)
615
ac_prev=x_includes ;;
616
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
x_includes=$ac_optarg ;;
620
-x-libraries | --x-libraries | --x-librarie | --x-librari \
621
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
ac_prev=x_libraries ;;
623
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
x_libraries=$ac_optarg ;;
627
-*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
{ (exit 1); exit 1; }; }
633
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
# Reject names that are not valid shell variable names.
635
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
{ (exit 1); exit 1; }; }
638
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
eval "$ac_envvar='$ac_optarg'"
643
# FIXME: should be removed in autoconf 3.0.
644
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
if test -n "$ac_prev"; then
654
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
{ echo "$as_me: error: missing argument to $ac_option" >&2
656
{ (exit 1); exit 1; }; }
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
662
eval ac_val=$`echo $ac_var`
664
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
{ (exit 1); exit 1; }; };;
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
localstatedir libdir includedir oldincludedir infodir mandir
674
eval ac_val=$`echo $ac_var`
676
[\\/$]* | ?:[\\/]* ) ;;
677
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
{ (exit 1); exit 1; }; };;
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
if test "x$build_alias" = x; then
692
cross_compiling=maybe
693
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
If a cross compiler is detected then cross compile mode will be used." >&2
695
elif test "x$build_alias" != "x$host_alias"; then
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
test "$silent" = yes && exec 6>/dev/null
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
ac_srcdir_defaulted=yes
709
# Try the directory containing this script, then its parent.
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
/^X\(\/\/\)$/{ s//\1/; q; }
720
/^X\(\/\).*/{ s//\1/; q; }
723
if test ! -r $srcdir/$ac_unique_file; then
727
ac_srcdir_defaulted=no
729
if test ! -r $srcdir/$ac_unique_file; then
730
if test "$ac_srcdir_defaulted" = yes; then
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CXX_set=${CXX+set}
755
ac_env_CXX_value=$CXX
756
ac_cv_env_CXX_set=${CXX+set}
757
ac_cv_env_CXX_value=$CXX
758
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759
ac_env_CXXFLAGS_value=$CXXFLAGS
760
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CC_set=${CC+set}
772
ac_cv_env_CC_set=${CC+set}
773
ac_cv_env_CC_value=$CC
774
ac_env_CFLAGS_set=${CFLAGS+set}
775
ac_env_CFLAGS_value=$CFLAGS
776
ac_cv_env_CFLAGS_set=${CFLAGS+set}
777
ac_cv_env_CFLAGS_value=$CFLAGS
778
ac_env_CPP_set=${CPP+set}
779
ac_env_CPP_value=$CPP
780
ac_cv_env_CPP_set=${CPP+set}
781
ac_cv_env_CPP_value=$CPP
784
# Report the --help message.
786
if test "$ac_init_help" = "long"; then
787
# Omit some internal or obsolete options to make the list less imposing.
788
# This message is too long to be a string in the A/UX 3.1 sh.
790
\`configure' configures this package to adapt to many kinds of systems.
792
Usage: $0 [OPTION]... [VAR=VALUE]...
794
To assign environment variables (e.g., CC, CFLAGS...), specify them as
795
VAR=VALUE. See below for descriptions of some of the useful variables.
797
Defaults for the options are specified in brackets.
800
-h, --help display this help and exit
801
--help=short display options specific to this package
802
--help=recursive display the short help of all the included packages
803
-V, --version display version information and exit
804
-q, --quiet, --silent do not print \`checking...' messages
805
--cache-file=FILE cache test results in FILE [disabled]
806
-C, --config-cache alias for \`--cache-file=config.cache'
807
-n, --no-create do not create output files
808
--srcdir=DIR find the sources in DIR [configure dir or \`..']
813
Installation directories:
814
--prefix=PREFIX install architecture-independent files in PREFIX
816
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819
By default, \`make install' will install all the files in
820
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822
for instance \`--prefix=\$HOME'.
824
For better control, use the options below.
826
Fine tuning of the installation directories:
827
--bindir=DIR user executables [EPREFIX/bin]
828
--sbindir=DIR system admin executables [EPREFIX/sbin]
829
--libexecdir=DIR program executables [EPREFIX/libexec]
830
--datadir=DIR read-only architecture-independent data [PREFIX/share]
831
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
834
--libdir=DIR object code libraries [EPREFIX/lib]
835
--includedir=DIR C header files [PREFIX/include]
836
--oldincludedir=DIR C header files for non-gcc [/usr/include]
837
--infodir=DIR info documentation [PREFIX/info]
838
--mandir=DIR man documentation [PREFIX/man]
844
--program-prefix=PREFIX prepend PREFIX to installed program names
845
--program-suffix=SUFFIX append SUFFIX to installed program names
846
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
849
--x-includes=DIR X include files are in DIR
850
--x-libraries=DIR X library files are in DIR
853
--build=BUILD configure for building on BUILD [guessed]
854
--host=HOST cross-compile to build programs to run on HOST [BUILD]
855
--target=TARGET configure for building compilers for TARGET [HOST]
859
if test -n "$ac_init_help"; then
864
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
865
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
866
--enable-fluidsynth use integrated FluidSynth softsynth (libfluidsynth) (default=auto)
867
--disable-dependency-tracking Speeds up one-time builds
868
--enable-dependency-tracking Do not reject slow dependency extractors
869
--disable-sdltest Do not try to compile and run a test SDL program
872
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874
--with-x use the X Window System
875
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)
876
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
878
Some influential environment variables:
879
CXX C++ compiler command
880
CXXFLAGS C++ compiler flags
881
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882
nonstandard directory <lib dir>
883
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884
headers in a nonstandard directory <include dir>
885
CC C compiler command
886
CFLAGS C compiler flags
889
Use these variables to override the choices made by `configure' or to help
890
it to find libraries and programs with nonstandard names/locations.
895
if test "$ac_init_help" = "recursive"; then
896
# If there are subdirs, report their specific --help.
898
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899
test -d $ac_dir || continue
902
if test "$ac_dir" != .; then
903
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904
# A "../" for each directory in $ac_dir_suffix.
905
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907
ac_dir_suffix= ac_top_builddir=
911
.) # No --srcdir option. We are building in place.
913
if test -z "$ac_top_builddir"; then
916
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918
[\\/]* | ?:[\\/]* ) # Absolute path.
919
ac_srcdir=$srcdir$ac_dir_suffix;
920
ac_top_srcdir=$srcdir ;;
922
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923
ac_top_srcdir=$ac_top_builddir$srcdir ;;
926
# Do not use `cd foo && pwd` to compute absolute paths, because
927
# the directories may not exist.
929
.) ac_abs_builddir="$ac_dir";;
932
.) ac_abs_builddir=`pwd`;;
933
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934
*) ac_abs_builddir=`pwd`/"$ac_dir";;
937
case $ac_abs_builddir in
938
.) ac_abs_top_builddir=${ac_top_builddir}.;;
940
case ${ac_top_builddir}. in
941
.) ac_abs_top_builddir=$ac_abs_builddir;;
942
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946
case $ac_abs_builddir in
947
.) ac_abs_srcdir=$ac_srcdir;;
950
.) ac_abs_srcdir=$ac_abs_builddir;;
951
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955
case $ac_abs_builddir in
956
.) ac_abs_top_srcdir=$ac_top_srcdir;;
958
case $ac_top_srcdir in
959
.) ac_abs_top_srcdir=$ac_abs_builddir;;
960
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966
# Check for guested configure; otherwise get Cygnus style configure.
967
if test -f $ac_srcdir/configure.gnu; then
969
$SHELL $ac_srcdir/configure.gnu --help=recursive
970
elif test -f $ac_srcdir/configure; then
972
$SHELL $ac_srcdir/configure --help=recursive
973
elif test -f $ac_srcdir/configure.ac ||
974
test -f $ac_srcdir/configure.in; then
978
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984
test -n "$ac_init_help" && exit 0
985
if $ac_init_version; then
988
Copyright (C) 2003 Free Software Foundation, Inc.
989
This configure script is free software; the Free Software Foundation
990
gives unlimited permission to copy, distribute and modify it.
996
This file contains any messages produced by compilers while
997
running configure, to aid debugging if configure makes a mistake.
999
It was created by $as_me, which was
1000
generated by GNU Autoconf 2.59. Invocation command line was
1011
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034
test -z "$as_dir" && as_dir=.
1035
echo "PATH: $as_dir"
1050
# Keep a trace of the command line.
1051
# Strip out --no-create and --no-recursion so they do not pile up.
1052
# Strip out --silent because we don't want to record it for future runs.
1053
# Also quote any args containing shell meta-characters.
1054
# Make two passes to allow for proper duplicate-argument suppression.
1059
ac_must_keep_next=false
1065
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067
| -silent | --silent | --silen | --sile | --sil)
1069
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076
if test $ac_must_keep_next = true; then
1077
ac_must_keep_next=false # Got value, back to normal.
1080
*=* | --config-cache | -C | -disable-* | --disable-* \
1081
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083
| -with-* | --with-* | -without-* | --without-* | --x)
1084
case "$ac_configure_args0 " in
1085
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088
-* ) ac_must_keep_next=true ;;
1091
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092
# Get rid of the leading space.
1098
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101
# When interrupted or exit'd, cleanup temporary files, and complete
1102
# config.log. We remove comments because anyway the quotes in there
1103
# would cause problems or look ugly.
1104
# WARNING: Be sure not to use single quotes in there, as some shells,
1105
# such as our DU 5.0 friend, will then `close' the trap.
1106
trap 'exit_status=$?
1107
# Save into config.log some information that might help in debugging.
1112
## ---------------- ##
1113
## Cache variables. ##
1114
## ---------------- ##
1117
# The following way of writing the cache mishandles newlines in values,
1120
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135
## ----------------- ##
1136
## Output variables. ##
1137
## ----------------- ##
1140
for ac_var in $ac_subst_vars
1142
eval ac_val=$`echo $ac_var`
1143
echo "$ac_var='"'"'$ac_val'"'"'"
1147
if test -n "$ac_subst_files"; then
1154
for ac_var in $ac_subst_files
1156
eval ac_val=$`echo $ac_var`
1157
echo "$ac_var='"'"'$ac_val'"'"'"
1162
if test -s confdefs.h; then
1169
sed "/^$/d" confdefs.h | sort
1172
test "$ac_signal" != 0 &&
1173
echo "$as_me: caught signal $ac_signal"
1174
echo "$as_me: exit $exit_status"
1176
rm -f core *.core &&
1177
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180
for ac_signal in 1 2 13 15; do
1181
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1186
rm -rf conftest* confdefs.h
1187
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190
# Predefined preprocessor variables.
1192
cat >>confdefs.h <<_ACEOF
1193
#define PACKAGE_NAME "$PACKAGE_NAME"
1197
cat >>confdefs.h <<_ACEOF
1198
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202
cat >>confdefs.h <<_ACEOF
1203
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207
cat >>confdefs.h <<_ACEOF
1208
#define PACKAGE_STRING "$PACKAGE_STRING"
1212
cat >>confdefs.h <<_ACEOF
1213
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217
# Let the site file select an alternate cache file if it wants to.
1218
# Prefer explicitly selected file to automatically selected ones.
1219
if test -z "$CONFIG_SITE"; then
1220
if test "x$prefix" != xNONE; then
1221
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226
for ac_site_file in $CONFIG_SITE; do
1227
if test -r "$ac_site_file"; then
1228
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229
echo "$as_me: loading site script $ac_site_file" >&6;}
1230
sed 's/^/| /' "$ac_site_file" >&5
1235
if test -r "$cache_file"; then
1236
# Some versions of bash will fail to source /dev/null (special
1237
# files actually), so we avoid doing that.
1238
if test -f "$cache_file"; then
1239
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240
echo "$as_me: loading cache $cache_file" >&6;}
1242
[\\/]* | ?:[\\/]* ) . $cache_file;;
1243
*) . ./$cache_file;;
1247
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248
echo "$as_me: creating cache $cache_file" >&6;}
1252
# Check that the precious variables saved in the cache have kept the same
1254
ac_cache_corrupted=false
1255
for ac_var in `(set) 2>&1 |
1256
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258
eval ac_new_set=\$ac_env_${ac_var}_set
1259
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260
eval ac_new_val="\$ac_env_${ac_var}_value"
1261
case $ac_old_set,$ac_new_set in
1263
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265
ac_cache_corrupted=: ;;
1267
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269
ac_cache_corrupted=: ;;
1272
if test "x$ac_old_val" != "x$ac_new_val"; then
1273
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276
echo "$as_me: former value: $ac_old_val" >&2;}
1277
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278
echo "$as_me: current value: $ac_new_val" >&2;}
1279
ac_cache_corrupted=:
1282
# Pass precious variables to config.status.
1283
if test "$ac_new_set" = set; then
1285
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287
*) ac_arg=$ac_var=$ac_new_val ;;
1289
case " $ac_configure_args " in
1290
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295
if $ac_cache_corrupted; then
1296
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300
{ (exit 1); exit 1; }; }
1304
ac_cpp='$CPP $CPPFLAGS'
1305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
am__api_version="1.7"
1329
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330
if test -f $ac_dir/install-sh; then
1332
ac_install_sh="$ac_aux_dir/install-sh -c"
1334
elif test -f $ac_dir/install.sh; then
1336
ac_install_sh="$ac_aux_dir/install.sh -c"
1338
elif test -f $ac_dir/shtool; then
1340
ac_install_sh="$ac_aux_dir/shtool install -c"
1344
if test -z "$ac_aux_dir"; then
1345
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347
{ (exit 1); exit 1; }; }
1349
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
# Find a good install program. We prefer a C program (faster),
1354
# so one script is as good as another. But avoid the broken or
1355
# incompatible versions:
1356
# SysV /etc/install, /usr/sbin/install
1357
# SunOS /usr/etc/install
1358
# IRIX /sbin/install
1360
# AmigaOS /C/install, which installs bootblocks on floppy discs
1361
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364
# OS/2's system install, which has a completely different semantic
1365
# ./install, which can be erroneously created by make from ./install.sh.
1366
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1367
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1368
if test -z "$INSTALL"; then
1369
if test "${ac_cv_path_install+set}" = set; then
1370
echo $ECHO_N "(cached) $ECHO_C" >&6
1372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376
test -z "$as_dir" && as_dir=.
1377
# Account for people who put trailing slashes in PATH elements.
1379
./ | .// | /cC/* | \
1380
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1381
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1384
# OSF1 and SCO ODT 3.0 have their own names for install.
1385
# Don't use installbsd from OSF since it installs stuff as root
1387
for ac_prog in ginstall scoinst install; do
1388
for ac_exec_ext in '' $ac_executable_extensions; do
1389
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1390
if test $ac_prog = install &&
1391
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1392
# AIX install. It has an incompatible calling convention.
1394
elif test $ac_prog = install &&
1395
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1396
# program-specific install script used by HP pwplus--don't use.
1399
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1411
if test "${ac_cv_path_install+set}" = set; then
1412
INSTALL=$ac_cv_path_install
1414
# As a last resort, use the slow shell script. We don't cache a
1415
# path for INSTALL within a source directory, because that will
1416
# break other packages using the cache if that directory is
1417
# removed, or if the path is relative.
1418
INSTALL=$ac_install_sh
1421
echo "$as_me:$LINENO: result: $INSTALL" >&5
1422
echo "${ECHO_T}$INSTALL" >&6
1424
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1425
# It thinks the first close brace ends the variable substitution.
1426
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1428
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1430
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1432
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1433
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1436
echo timestamp > conftest.file
1437
# Do `set' in a subshell so we don't clobber the current shell's
1438
# arguments. Must try -L first in case configure is actually a
1439
# symlink; some systems play weird games with the mod time of symlinks
1440
# (eg FreeBSD returns the mod time of the symlink's containing
1443
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1444
if test "$*" = "X"; then
1446
set X `ls -t $srcdir/configure conftest.file`
1449
if test "$*" != "X $srcdir/configure conftest.file" \
1450
&& test "$*" != "X conftest.file $srcdir/configure"; then
1452
# If neither matched, then we have a broken ls. This can happen
1453
# if, for instance, CONFIG_SHELL is bash and it inherits a
1454
# broken ls alias from the environment. This has actually
1455
# happened. Such a system could not be considered "sane".
1456
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1457
alias in your environment" >&5
1458
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1459
alias in your environment" >&2;}
1460
{ (exit 1); exit 1; }; }
1463
test "$2" = conftest.file
1469
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1470
Check your system clock" >&5
1471
echo "$as_me: error: newly created file is older than distributed files!
1472
Check your system clock" >&2;}
1473
{ (exit 1); exit 1; }; }
1475
echo "$as_me:$LINENO: result: yes" >&5
1476
echo "${ECHO_T}yes" >&6
1477
test "$program_prefix" != NONE &&
1478
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1479
# Use a double $ so make ignores it.
1480
test "$program_suffix" != NONE &&
1481
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1482
# Double any \ or $. echo might interpret backslashes.
1483
# By default was `s,x,x', remove it if useless.
1484
cat <<\_ACEOF >conftest.sed
1485
s/[\\$]/&&/g;s/;s,x,x,$//
1487
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1491
# expand $ac_aux_dir to an absolute path
1492
am_aux_dir=`cd $ac_aux_dir && pwd`
1494
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1495
# Use eval to expand $SHELL
1496
if eval "$MISSING --run true"; then
1497
am_missing_run="$MISSING --run "
1500
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1501
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1504
for ac_prog in gawk mawk nawk awk
1506
# Extract the first word of "$ac_prog", so it can be a program name with args.
1507
set dummy $ac_prog; ac_word=$2
1508
echo "$as_me:$LINENO: checking for $ac_word" >&5
1509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510
if test "${ac_cv_prog_AWK+set}" = set; then
1511
echo $ECHO_N "(cached) $ECHO_C" >&6
1513
if test -n "$AWK"; then
1514
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520
test -z "$as_dir" && as_dir=.
1521
for ac_exec_ext in '' $ac_executable_extensions; do
1522
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523
ac_cv_prog_AWK="$ac_prog"
1524
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533
if test -n "$AWK"; then
1534
echo "$as_me:$LINENO: result: $AWK" >&5
1535
echo "${ECHO_T}$AWK" >&6
1537
echo "$as_me:$LINENO: result: no" >&5
1538
echo "${ECHO_T}no" >&6
1541
test -n "$AWK" && break
1544
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1545
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1546
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1547
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1548
echo $ECHO_N "(cached) $ECHO_C" >&6
1550
cat >conftest.make <<\_ACEOF
1552
@echo 'ac_maketemp="$(MAKE)"'
1554
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1555
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1556
if test -n "$ac_maketemp"; then
1557
eval ac_cv_prog_make_${ac_make}_set=yes
1559
eval ac_cv_prog_make_${ac_make}_set=no
1563
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1564
echo "$as_me:$LINENO: result: yes" >&5
1565
echo "${ECHO_T}yes" >&6
1568
echo "$as_me:$LINENO: result: no" >&5
1569
echo "${ECHO_T}no" >&6
1570
SET_MAKE="MAKE=${MAKE-make}"
1573
rm -rf .tst 2>/dev/null
1574
mkdir .tst 2>/dev/null
1575
if test -d .tst; then
1580
rmdir .tst 2>/dev/null
1582
# test to see if srcdir already configured
1583
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1584
test -f $srcdir/config.status; then
1585
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1586
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1587
{ (exit 1); exit 1; }; }
1590
# test whether we have cygpath
1591
if test -z "$CYGPATH_W"; then
1592
if (cygpath --version) >/dev/null 2>/dev/null; then
1593
CYGPATH_W='cygpath -w'
1600
# Define the identity of the package.
1605
cat >>confdefs.h <<_ACEOF
1606
#define PACKAGE "$PACKAGE"
1610
cat >>confdefs.h <<_ACEOF
1611
#define VERSION "$VERSION"
1614
# Some tools Automake needs.
1616
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1619
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1622
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1625
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1628
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1631
AMTAR=${AMTAR-"${am_missing_run}tar"}
1633
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1635
# Installed binaries are usually stripped using `strip' when the user
1636
# run `make install-strip'. However `strip' might not be the right
1637
# tool to use in cross-compilation environments, therefore Automake
1638
# will honor the `STRIP' environment variable to overrule this program.
1639
if test "$cross_compiling" != no; then
1640
if test -n "$ac_tool_prefix"; then
1641
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1642
set dummy ${ac_tool_prefix}strip; ac_word=$2
1643
echo "$as_me:$LINENO: checking for $ac_word" >&5
1644
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645
if test "${ac_cv_prog_STRIP+set}" = set; then
1646
echo $ECHO_N "(cached) $ECHO_C" >&6
1648
if test -n "$STRIP"; then
1649
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655
test -z "$as_dir" && as_dir=.
1656
for ac_exec_ext in '' $ac_executable_extensions; do
1657
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1659
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667
STRIP=$ac_cv_prog_STRIP
1668
if test -n "$STRIP"; then
1669
echo "$as_me:$LINENO: result: $STRIP" >&5
1670
echo "${ECHO_T}$STRIP" >&6
1672
echo "$as_me:$LINENO: result: no" >&5
1673
echo "${ECHO_T}no" >&6
1677
if test -z "$ac_cv_prog_STRIP"; then
1679
# Extract the first word of "strip", so it can be a program name with args.
1680
set dummy strip; ac_word=$2
1681
echo "$as_me:$LINENO: checking for $ac_word" >&5
1682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1684
echo $ECHO_N "(cached) $ECHO_C" >&6
1686
if test -n "$ac_ct_STRIP"; then
1687
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693
test -z "$as_dir" && as_dir=.
1694
for ac_exec_ext in '' $ac_executable_extensions; do
1695
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696
ac_cv_prog_ac_ct_STRIP="strip"
1697
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1706
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1707
if test -n "$ac_ct_STRIP"; then
1708
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1709
echo "${ECHO_T}$ac_ct_STRIP" >&6
1711
echo "$as_me:$LINENO: result: no" >&5
1712
echo "${ECHO_T}no" >&6
1717
STRIP="$ac_cv_prog_STRIP"
1721
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1723
# We need awk for the "check" target. The system "awk" is bad on
1729
#AM_CONFIG_HEADER(config.h)
1731
# Check whether --enable-fluidsynth or --disable-fluidsynth was given.
1732
if test "${enable_fluidsynth+set}" = set; then
1733
enableval="$enable_fluidsynth"
1737
# Checks for programs.
1739
ac_cpp='$CXXCPP $CPPFLAGS'
1740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1743
if test -n "$ac_tool_prefix"; then
1744
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1746
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
if test "${ac_cv_prog_CXX+set}" = set; then
1751
echo $ECHO_N "(cached) $ECHO_C" >&6
1753
if test -n "$CXX"; then
1754
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760
test -z "$as_dir" && as_dir=.
1761
for ac_exec_ext in '' $ac_executable_extensions; do
1762
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773
if test -n "$CXX"; then
1774
echo "$as_me:$LINENO: result: $CXX" >&5
1775
echo "${ECHO_T}$CXX" >&6
1777
echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1781
test -n "$CXX" && break
1784
if test -z "$CXX"; then
1786
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1788
# Extract the first word of "$ac_prog", so it can be a program name with args.
1789
set dummy $ac_prog; ac_word=$2
1790
echo "$as_me:$LINENO: checking for $ac_word" >&5
1791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1793
echo $ECHO_N "(cached) $ECHO_C" >&6
1795
if test -n "$ac_ct_CXX"; then
1796
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802
test -z "$as_dir" && as_dir=.
1803
for ac_exec_ext in '' $ac_executable_extensions; do
1804
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805
ac_cv_prog_ac_ct_CXX="$ac_prog"
1806
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1815
if test -n "$ac_ct_CXX"; then
1816
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1817
echo "${ECHO_T}$ac_ct_CXX" >&6
1819
echo "$as_me:$LINENO: result: no" >&5
1820
echo "${ECHO_T}no" >&6
1823
test -n "$ac_ct_CXX" && break
1825
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1831
# Provide some information about the compiler.
1832
echo "$as_me:$LINENO:" \
1833
"checking for C++ compiler version" >&5
1834
ac_compiler=`set X $ac_compile; echo $2`
1835
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1836
(eval $ac_compiler --version </dev/null >&5) 2>&5
1838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839
(exit $ac_status); }
1840
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1841
(eval $ac_compiler -v </dev/null >&5) 2>&5
1843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844
(exit $ac_status); }
1845
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1846
(eval $ac_compiler -V </dev/null >&5) 2>&5
1848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849
(exit $ac_status); }
1851
cat >conftest.$ac_ext <<_ACEOF
1854
cat confdefs.h >>conftest.$ac_ext
1855
cat >>conftest.$ac_ext <<_ACEOF
1856
/* end confdefs.h. */
1866
ac_clean_files_save=$ac_clean_files
1867
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1868
# Try to create an executable without -o first, disregard a.out.
1869
# It will help us diagnose broken compilers, and finding out an intuition
1871
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1872
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1873
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1874
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1875
(eval $ac_link_default) 2>&5
1877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878
(exit $ac_status); }; then
1879
# Find the output, starting from the most likely. This scheme is
1880
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1883
# Be careful to initialize this variable, since it used to be cached.
1884
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1886
# b.out is created by i960 compilers.
1887
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1889
test -f "$ac_file" || continue
1891
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1894
# This is the source file.
1897
# We found the default executable, but exeext='' is most
1901
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902
# FIXME: I believe we export ac_cv_exeext for Libtool,
1903
# but it would be cool to find out if it's true. Does anybody
1904
# maintain Libtool? --akim.
1912
echo "$as_me: failed program was:" >&5
1913
sed 's/^/| /' conftest.$ac_ext >&5
1915
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1916
See \`config.log' for more details." >&5
1917
echo "$as_me: error: C++ compiler cannot create executables
1918
See \`config.log' for more details." >&2;}
1919
{ (exit 77); exit 77; }; }
1922
ac_exeext=$ac_cv_exeext
1923
echo "$as_me:$LINENO: result: $ac_file" >&5
1924
echo "${ECHO_T}$ac_file" >&6
1926
# Check the compiler produces executables we can run. If not, either
1927
# the compiler is broken, or we cross compile.
1928
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1929
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1930
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1931
# If not cross compiling, check that we can run a simple program.
1932
if test "$cross_compiling" != yes; then
1933
if { ac_try='./$ac_file'
1934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938
(exit $ac_status); }; }; then
1941
if test "$cross_compiling" = maybe; then
1944
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1945
If you meant to cross compile, use \`--host'.
1946
See \`config.log' for more details." >&5
1947
echo "$as_me: error: cannot run C++ compiled programs.
1948
If you meant to cross compile, use \`--host'.
1949
See \`config.log' for more details." >&2;}
1950
{ (exit 1); exit 1; }; }
1954
echo "$as_me:$LINENO: result: yes" >&5
1955
echo "${ECHO_T}yes" >&6
1957
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1958
ac_clean_files=$ac_clean_files_save
1959
# Check the compiler produces executables we can run. If not, either
1960
# the compiler is broken, or we cross compile.
1961
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1962
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1963
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1964
echo "${ECHO_T}$cross_compiling" >&6
1966
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1967
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1969
(eval $ac_link) 2>&5
1971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972
(exit $ac_status); }; then
1973
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1974
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1975
# work properly (i.e., refer to `conftest.exe'), while it won't with
1977
for ac_file in conftest.exe conftest conftest.*; do
1978
test -f "$ac_file" || continue
1980
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1981
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1989
See \`config.log' for more details." >&5
1990
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1991
See \`config.log' for more details." >&2;}
1992
{ (exit 1); exit 1; }; }
1995
rm -f conftest$ac_cv_exeext
1996
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1997
echo "${ECHO_T}$ac_cv_exeext" >&6
1999
rm -f conftest.$ac_ext
2000
EXEEXT=$ac_cv_exeext
2002
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2003
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2004
if test "${ac_cv_objext+set}" = set; then
2005
echo $ECHO_N "(cached) $ECHO_C" >&6
2007
cat >conftest.$ac_ext <<_ACEOF
2010
cat confdefs.h >>conftest.$ac_ext
2011
cat >>conftest.$ac_ext <<_ACEOF
2012
/* end confdefs.h. */
2022
rm -f conftest.o conftest.obj
2023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024
(eval $ac_compile) 2>&5
2026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027
(exit $ac_status); }; then
2028
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2030
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2031
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036
echo "$as_me: failed program was:" >&5
2037
sed 's/^/| /' conftest.$ac_ext >&5
2039
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2040
See \`config.log' for more details." >&5
2041
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2042
See \`config.log' for more details." >&2;}
2043
{ (exit 1); exit 1; }; }
2046
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2048
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2049
echo "${ECHO_T}$ac_cv_objext" >&6
2050
OBJEXT=$ac_cv_objext
2052
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2053
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2054
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2055
echo $ECHO_N "(cached) $ECHO_C" >&6
2057
cat >conftest.$ac_ext <<_ACEOF
2060
cat confdefs.h >>conftest.$ac_ext
2061
cat >>conftest.$ac_ext <<_ACEOF
2062
/* end confdefs.h. */
2075
rm -f conftest.$ac_objext
2076
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077
(eval $ac_compile) 2>conftest.er1
2079
grep -v '^ *+' conftest.er1 >conftest.err
2081
cat conftest.err >&5
2082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083
(exit $ac_status); } &&
2084
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089
(exit $ac_status); }; } &&
2090
{ ac_try='test -s conftest.$ac_objext'
2091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
(exit $ac_status); }; }; then
2098
echo "$as_me: failed program was:" >&5
2099
sed 's/^/| /' conftest.$ac_ext >&5
2103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2107
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2108
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2109
GXX=`test $ac_compiler_gnu = yes && echo yes`
2110
ac_test_CXXFLAGS=${CXXFLAGS+set}
2111
ac_save_CXXFLAGS=$CXXFLAGS
2113
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2114
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2115
if test "${ac_cv_prog_cxx_g+set}" = set; then
2116
echo $ECHO_N "(cached) $ECHO_C" >&6
2118
cat >conftest.$ac_ext <<_ACEOF
2121
cat confdefs.h >>conftest.$ac_ext
2122
cat >>conftest.$ac_ext <<_ACEOF
2123
/* end confdefs.h. */
2133
rm -f conftest.$ac_objext
2134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135
(eval $ac_compile) 2>conftest.er1
2137
grep -v '^ *+' conftest.er1 >conftest.err
2139
cat conftest.err >&5
2140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141
(exit $ac_status); } &&
2142
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147
(exit $ac_status); }; } &&
2148
{ ac_try='test -s conftest.$ac_objext'
2149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
(exit $ac_status); }; }; then
2154
ac_cv_prog_cxx_g=yes
2156
echo "$as_me: failed program was:" >&5
2157
sed 's/^/| /' conftest.$ac_ext >&5
2161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2164
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2165
if test "$ac_test_CXXFLAGS" = set; then
2166
CXXFLAGS=$ac_save_CXXFLAGS
2167
elif test $ac_cv_prog_cxx_g = yes; then
2168
if test "$GXX" = yes; then
2174
if test "$GXX" = yes; then
2180
for ac_declaration in \
2182
'extern "C" void std::exit (int) throw (); using std::exit;' \
2183
'extern "C" void std::exit (int); using std::exit;' \
2184
'extern "C" void exit (int) throw ();' \
2185
'extern "C" void exit (int);' \
2188
cat >conftest.$ac_ext <<_ACEOF
2191
cat confdefs.h >>conftest.$ac_ext
2192
cat >>conftest.$ac_ext <<_ACEOF
2193
/* end confdefs.h. */
2204
rm -f conftest.$ac_objext
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>conftest.er1
2208
grep -v '^ *+' conftest.er1 >conftest.err
2210
cat conftest.err >&5
2211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
(exit $ac_status); } &&
2213
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218
(exit $ac_status); }; } &&
2219
{ ac_try='test -s conftest.$ac_objext'
2220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224
(exit $ac_status); }; }; then
2227
echo "$as_me: failed program was:" >&5
2228
sed 's/^/| /' conftest.$ac_ext >&5
2232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233
cat >conftest.$ac_ext <<_ACEOF
2236
cat confdefs.h >>conftest.$ac_ext
2237
cat >>conftest.$ac_ext <<_ACEOF
2238
/* end confdefs.h. */
2248
rm -f conftest.$ac_objext
2249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250
(eval $ac_compile) 2>conftest.er1
2252
grep -v '^ *+' conftest.er1 >conftest.err
2254
cat conftest.err >&5
2255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
(exit $ac_status); } &&
2257
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262
(exit $ac_status); }; } &&
2263
{ ac_try='test -s conftest.$ac_objext'
2264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
(exit $ac_status); }; }; then
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
2278
if test -n "$ac_declaration"; then
2279
echo '#ifdef __cplusplus' >>confdefs.h
2280
echo $ac_declaration >>confdefs.h
2281
echo '#endif' >>confdefs.h
2285
ac_cpp='$CPP $CPPFLAGS'
2286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
DEPDIR="${am__leading_dot}deps"
2291
ac_config_commands="$ac_config_commands depfiles"
2294
am_make=${MAKE-make}
2295
cat > confinc << 'END'
2300
# If we don't find an include directive, just comment out the code.
2301
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2302
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2306
# First try GNU make style include.
2307
echo "include confinc" > confmf
2308
# We grep out `Entering directory' and `Leaving directory'
2309
# messages which can occur if `w' ends up in MAKEFLAGS.
2310
# In particular we don't look at `^make:' because GNU make might
2311
# be invoked under some other name (usually "gmake"), in which
2312
# case it prints its new name instead of `make'.
2313
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2318
# Now try BSD make style include.
2319
if test "$am__include" = "#"; then
2320
echo '.include "confinc"' > confmf
2321
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2322
am__include=.include
2329
echo "$as_me:$LINENO: result: $_am_result" >&5
2330
echo "${ECHO_T}$_am_result" >&6
2331
rm -f confinc confmf
2333
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2334
if test "${enable_dependency_tracking+set}" = set; then
2335
enableval="$enable_dependency_tracking"
2338
if test "x$enable_dependency_tracking" != xno; then
2339
am_depcomp="$ac_aux_dir/depcomp"
2344
if test "x$enable_dependency_tracking" != xno; then
2355
depcc="$CXX" am_compiler_list=
2357
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2358
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2359
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2360
echo $ECHO_N "(cached) $ECHO_C" >&6
2362
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2363
# We make a subdir and do the tests there. Otherwise we can end up
2364
# making bogus files that we don't know about and never remove. For
2365
# instance it was reported that on HP-UX the gcc test will end up
2366
# making a dummy file named `D' -- because `-MD' means `put the output
2369
# Copy depcomp to subdir because otherwise we won't find it if we're
2370
# using a relative directory.
2371
cp "$am_depcomp" conftest.dir
2373
# We will build objects and dependencies in a subdirectory because
2374
# it helps to detect inapplicable dependency modes. For instance
2375
# both Tru64's cc and ICC support -MD to output dependencies as a
2376
# side effect of compilation, but ICC will put the dependencies in
2377
# the current directory while Tru64 will put them in the object
2381
am_cv_CXX_dependencies_compiler_type=none
2382
if test "$am_compiler_list" = ""; then
2383
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2385
for depmode in $am_compiler_list; do
2386
# Setup a source with many dependencies, because some compilers
2387
# like to wrap large dependency lists on column 80 (with \), and
2388
# we should not choose a depcomp mode which is confused by this.
2390
# We need to recreate these files for each test, as the compiler may
2391
# overwrite some of them when testing with obscure command lines.
2392
# This happens at least with the AIX C compiler.
2394
for i in 1 2 3 4 5 6; do
2395
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2398
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2402
# after this tag, mechanisms are not by side-effect, so they'll
2403
# only be used when explicitly requested
2404
if test "x$enable_dependency_tracking" = xyes; then
2412
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2413
# mode. It turns out that the SunPro C++ compiler does not properly
2414
# handle `-M -o', and we need to detect this.
2415
if depmode=$depmode \
2416
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2417
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2418
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2419
>/dev/null 2>conftest.err &&
2420
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2421
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2422
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2423
# icc doesn't choke on unknown options, it will just issue warnings
2424
# (even with -Werror). So we grep stderr for any message
2425
# that says an option was ignored.
2426
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2427
am_cv_CXX_dependencies_compiler_type=$depmode
2436
am_cv_CXX_dependencies_compiler_type=none
2440
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2441
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2442
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2447
test "x$enable_dependency_tracking" != xno \
2448
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2449
am__fastdepCXX_TRUE=
2450
am__fastdepCXX_FALSE='#'
2452
am__fastdepCXX_TRUE='#'
2453
am__fastdepCXX_FALSE=
2458
ac_cpp='$CPP $CPPFLAGS'
2459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
if test -n "$ac_tool_prefix"; then
2463
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465
echo "$as_me:$LINENO: checking for $ac_word" >&5
2466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2467
if test "${ac_cv_prog_CC+set}" = set; then
2468
echo $ECHO_N "(cached) $ECHO_C" >&6
2470
if test -n "$CC"; then
2471
ac_cv_prog_CC="$CC" # Let the user override the test.
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477
test -z "$as_dir" && as_dir=.
2478
for ac_exec_ext in '' $ac_executable_extensions; do
2479
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
if test -n "$CC"; then
2491
echo "$as_me:$LINENO: result: $CC" >&5
2492
echo "${ECHO_T}$CC" >&6
2494
echo "$as_me:$LINENO: result: no" >&5
2495
echo "${ECHO_T}no" >&6
2499
if test -z "$ac_cv_prog_CC"; then
2501
# Extract the first word of "gcc", so it can be a program name with args.
2502
set dummy gcc; ac_word=$2
2503
echo "$as_me:$LINENO: checking for $ac_word" >&5
2504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2506
echo $ECHO_N "(cached) $ECHO_C" >&6
2508
if test -n "$ac_ct_CC"; then
2509
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515
test -z "$as_dir" && as_dir=.
2516
for ac_exec_ext in '' $ac_executable_extensions; do
2517
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518
ac_cv_prog_ac_ct_CC="gcc"
2519
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528
if test -n "$ac_ct_CC"; then
2529
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530
echo "${ECHO_T}$ac_ct_CC" >&6
2532
echo "$as_me:$LINENO: result: no" >&5
2533
echo "${ECHO_T}no" >&6
2541
if test -z "$CC"; then
2542
if test -n "$ac_tool_prefix"; then
2543
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2544
set dummy ${ac_tool_prefix}cc; ac_word=$2
2545
echo "$as_me:$LINENO: checking for $ac_word" >&5
2546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547
if test "${ac_cv_prog_CC+set}" = set; then
2548
echo $ECHO_N "(cached) $ECHO_C" >&6
2550
if test -n "$CC"; then
2551
ac_cv_prog_CC="$CC" # Let the user override the test.
2553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557
test -z "$as_dir" && as_dir=.
2558
for ac_exec_ext in '' $ac_executable_extensions; do
2559
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2560
ac_cv_prog_CC="${ac_tool_prefix}cc"
2561
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570
if test -n "$CC"; then
2571
echo "$as_me:$LINENO: result: $CC" >&5
2572
echo "${ECHO_T}$CC" >&6
2574
echo "$as_me:$LINENO: result: no" >&5
2575
echo "${ECHO_T}no" >&6
2579
if test -z "$ac_cv_prog_CC"; then
2581
# Extract the first word of "cc", so it can be a program name with args.
2582
set dummy cc; ac_word=$2
2583
echo "$as_me:$LINENO: checking for $ac_word" >&5
2584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586
echo $ECHO_N "(cached) $ECHO_C" >&6
2588
if test -n "$ac_ct_CC"; then
2589
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595
test -z "$as_dir" && as_dir=.
2596
for ac_exec_ext in '' $ac_executable_extensions; do
2597
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598
ac_cv_prog_ac_ct_CC="cc"
2599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608
if test -n "$ac_ct_CC"; then
2609
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2610
echo "${ECHO_T}$ac_ct_CC" >&6
2612
echo "$as_me:$LINENO: result: no" >&5
2613
echo "${ECHO_T}no" >&6
2622
if test -z "$CC"; then
2623
# Extract the first word of "cc", so it can be a program name with args.
2624
set dummy cc; ac_word=$2
2625
echo "$as_me:$LINENO: checking for $ac_word" >&5
2626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627
if test "${ac_cv_prog_CC+set}" = set; then
2628
echo $ECHO_N "(cached) $ECHO_C" >&6
2630
if test -n "$CC"; then
2631
ac_cv_prog_CC="$CC" # Let the user override the test.
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638
test -z "$as_dir" && as_dir=.
2639
for ac_exec_ext in '' $ac_executable_extensions; do
2640
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2642
ac_prog_rejected=yes
2646
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
if test $ac_prog_rejected = yes; then
2653
# We found a bogon in the path, so make sure we never use it.
2654
set dummy $ac_cv_prog_CC
2656
if test $# != 0; then
2657
# We chose a different compiler from the bogus one.
2658
# However, it has the same basename, so the bogon will be chosen
2659
# first if we set CC to just the basename; use the full file name.
2661
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2667
if test -n "$CC"; then
2668
echo "$as_me:$LINENO: result: $CC" >&5
2669
echo "${ECHO_T}$CC" >&6
2671
echo "$as_me:$LINENO: result: no" >&5
2672
echo "${ECHO_T}no" >&6
2676
if test -z "$CC"; then
2677
if test -n "$ac_tool_prefix"; then
2680
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2681
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2682
echo "$as_me:$LINENO: checking for $ac_word" >&5
2683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684
if test "${ac_cv_prog_CC+set}" = set; then
2685
echo $ECHO_N "(cached) $ECHO_C" >&6
2687
if test -n "$CC"; then
2688
ac_cv_prog_CC="$CC" # Let the user override the test.
2690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694
test -z "$as_dir" && as_dir=.
2695
for ac_exec_ext in '' $ac_executable_extensions; do
2696
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2698
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707
if test -n "$CC"; then
2708
echo "$as_me:$LINENO: result: $CC" >&5
2709
echo "${ECHO_T}$CC" >&6
2711
echo "$as_me:$LINENO: result: no" >&5
2712
echo "${ECHO_T}no" >&6
2715
test -n "$CC" && break
2718
if test -z "$CC"; then
2722
# Extract the first word of "$ac_prog", so it can be a program name with args.
2723
set dummy $ac_prog; ac_word=$2
2724
echo "$as_me:$LINENO: checking for $ac_word" >&5
2725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2727
echo $ECHO_N "(cached) $ECHO_C" >&6
2729
if test -n "$ac_ct_CC"; then
2730
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736
test -z "$as_dir" && as_dir=.
2737
for ac_exec_ext in '' $ac_executable_extensions; do
2738
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739
ac_cv_prog_ac_ct_CC="$ac_prog"
2740
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2749
if test -n "$ac_ct_CC"; then
2750
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2751
echo "${ECHO_T}$ac_ct_CC" >&6
2753
echo "$as_me:$LINENO: result: no" >&5
2754
echo "${ECHO_T}no" >&6
2757
test -n "$ac_ct_CC" && break
2766
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2767
See \`config.log' for more details." >&5
2768
echo "$as_me: error: no acceptable C compiler found in \$PATH
2769
See \`config.log' for more details." >&2;}
2770
{ (exit 1); exit 1; }; }
2772
# Provide some information about the compiler.
2773
echo "$as_me:$LINENO:" \
2774
"checking for C compiler version" >&5
2775
ac_compiler=`set X $ac_compile; echo $2`
2776
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2777
(eval $ac_compiler --version </dev/null >&5) 2>&5
2779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780
(exit $ac_status); }
2781
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2782
(eval $ac_compiler -v </dev/null >&5) 2>&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); }
2786
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2787
(eval $ac_compiler -V </dev/null >&5) 2>&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }
2792
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2793
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2794
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2795
echo $ECHO_N "(cached) $ECHO_C" >&6
2797
cat >conftest.$ac_ext <<_ACEOF
2800
cat confdefs.h >>conftest.$ac_ext
2801
cat >>conftest.$ac_ext <<_ACEOF
2802
/* end confdefs.h. */
2815
rm -f conftest.$ac_objext
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817
(eval $ac_compile) 2>conftest.er1
2819
grep -v '^ *+' conftest.er1 >conftest.err
2821
cat conftest.err >&5
2822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
(exit $ac_status); } &&
2824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); }; } &&
2830
{ ac_try='test -s conftest.$ac_objext'
2831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
(exit $ac_status); }; }; then
2838
echo "$as_me: failed program was:" >&5
2839
sed 's/^/| /' conftest.$ac_ext >&5
2843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2847
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2848
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2849
GCC=`test $ac_compiler_gnu = yes && echo yes`
2850
ac_test_CFLAGS=${CFLAGS+set}
2851
ac_save_CFLAGS=$CFLAGS
2853
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2854
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2855
if test "${ac_cv_prog_cc_g+set}" = set; then
2856
echo $ECHO_N "(cached) $ECHO_C" >&6
2858
cat >conftest.$ac_ext <<_ACEOF
2861
cat confdefs.h >>conftest.$ac_ext
2862
cat >>conftest.$ac_ext <<_ACEOF
2863
/* end confdefs.h. */
2873
rm -f conftest.$ac_objext
2874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875
(eval $ac_compile) 2>conftest.er1
2877
grep -v '^ *+' conftest.er1 >conftest.err
2879
cat conftest.err >&5
2880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
(exit $ac_status); } &&
2882
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
(exit $ac_status); }; } &&
2888
{ ac_try='test -s conftest.$ac_objext'
2889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893
(exit $ac_status); }; }; then
2896
echo "$as_me: failed program was:" >&5
2897
sed 's/^/| /' conftest.$ac_ext >&5
2901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2904
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2905
if test "$ac_test_CFLAGS" = set; then
2906
CFLAGS=$ac_save_CFLAGS
2907
elif test $ac_cv_prog_cc_g = yes; then
2908
if test "$GCC" = yes; then
2914
if test "$GCC" = yes; then
2920
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2921
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2922
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2923
echo $ECHO_N "(cached) $ECHO_C" >&6
2925
ac_cv_prog_cc_stdc=no
2927
cat >conftest.$ac_ext <<_ACEOF
2930
cat confdefs.h >>conftest.$ac_ext
2931
cat >>conftest.$ac_ext <<_ACEOF
2932
/* end confdefs.h. */
2935
#include <sys/types.h>
2936
#include <sys/stat.h>
2937
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2938
struct buf { int x; };
2939
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2940
static char *e (p, i)
2946
static char *f (char * (*g) (char **, int), char **p, ...)
2951
s = g (p, va_arg (v,int));
2956
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2957
function prototypes and stuff, but not '\xHH' hex character constants.
2958
These don't provoke an error unfortunately, instead are silently treated
2959
as 'x'. The following induces an error, until -std1 is added to get
2960
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2961
array size at least. It's necessary to write '\x00'==0 to get something
2962
that's true only with -std1. */
2963
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2965
int test (int i, double x);
2966
struct s1 {int (*f) (int a);};
2967
struct s2 {int (*f) (double a);};
2968
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2974
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2979
# Don't try gcc -ansi; that turns off useful extensions and
2980
# breaks some systems' header files.
2981
# AIX -qlanglvl=ansi
2982
# Ultrix and OSF/1 -std1
2983
# HP-UX 10.20 and later -Ae
2984
# HP-UX older versions -Aa -D_HPUX_SOURCE
2985
# SVR4 -Xc -D__EXTENSIONS__
2986
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2988
CC="$ac_save_CC $ac_arg"
2989
rm -f conftest.$ac_objext
2990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991
(eval $ac_compile) 2>conftest.er1
2993
grep -v '^ *+' conftest.er1 >conftest.err
2995
cat conftest.err >&5
2996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
(exit $ac_status); } &&
2998
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003
(exit $ac_status); }; } &&
3004
{ ac_try='test -s conftest.$ac_objext'
3005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009
(exit $ac_status); }; }; then
3010
ac_cv_prog_cc_stdc=$ac_arg
3013
echo "$as_me: failed program was:" >&5
3014
sed 's/^/| /' conftest.$ac_ext >&5
3017
rm -f conftest.err conftest.$ac_objext
3019
rm -f conftest.$ac_ext conftest.$ac_objext
3024
case "x$ac_cv_prog_cc_stdc" in
3026
echo "$as_me:$LINENO: result: none needed" >&5
3027
echo "${ECHO_T}none needed" >&6 ;;
3029
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3030
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3031
CC="$CC $ac_cv_prog_cc_stdc" ;;
3034
# Some people use a C++ compiler to compile C. Since we use `exit',
3035
# in C++ we need to declare it. In case someone uses the same compiler
3036
# for both compiling C and C++ we need to have the C++ compiler decide
3037
# the declaration of exit, since it's the most demanding environment.
3038
cat >conftest.$ac_ext <<_ACEOF
3043
rm -f conftest.$ac_objext
3044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3045
(eval $ac_compile) 2>conftest.er1
3047
grep -v '^ *+' conftest.er1 >conftest.err
3049
cat conftest.err >&5
3050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051
(exit $ac_status); } &&
3052
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); }; } &&
3058
{ ac_try='test -s conftest.$ac_objext'
3059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063
(exit $ac_status); }; }; then
3064
for ac_declaration in \
3066
'extern "C" void std::exit (int) throw (); using std::exit;' \
3067
'extern "C" void std::exit (int); using std::exit;' \
3068
'extern "C" void exit (int) throw ();' \
3069
'extern "C" void exit (int);' \
3072
cat >conftest.$ac_ext <<_ACEOF
3075
cat confdefs.h >>conftest.$ac_ext
3076
cat >>conftest.$ac_ext <<_ACEOF
3077
/* end confdefs.h. */
3088
rm -f conftest.$ac_objext
3089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090
(eval $ac_compile) 2>conftest.er1
3092
grep -v '^ *+' conftest.er1 >conftest.err
3094
cat conftest.err >&5
3095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096
(exit $ac_status); } &&
3097
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102
(exit $ac_status); }; } &&
3103
{ ac_try='test -s conftest.$ac_objext'
3104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
(exit $ac_status); }; }; then
3111
echo "$as_me: failed program was:" >&5
3112
sed 's/^/| /' conftest.$ac_ext >&5
3116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117
cat >conftest.$ac_ext <<_ACEOF
3120
cat confdefs.h >>conftest.$ac_ext
3121
cat >>conftest.$ac_ext <<_ACEOF
3122
/* end confdefs.h. */
3132
rm -f conftest.$ac_objext
3133
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134
(eval $ac_compile) 2>conftest.er1
3136
grep -v '^ *+' conftest.er1 >conftest.err
3138
cat conftest.err >&5
3139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
(exit $ac_status); } &&
3141
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
(exit $ac_status); }; } &&
3147
{ ac_try='test -s conftest.$ac_objext'
3148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152
(exit $ac_status); }; }; then
3155
echo "$as_me: failed program was:" >&5
3156
sed 's/^/| /' conftest.$ac_ext >&5
3159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162
if test -n "$ac_declaration"; then
3163
echo '#ifdef __cplusplus' >>confdefs.h
3164
echo $ac_declaration >>confdefs.h
3165
echo '#endif' >>confdefs.h
3169
echo "$as_me: failed program was:" >&5
3170
sed 's/^/| /' conftest.$ac_ext >&5
3173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175
ac_cpp='$CPP $CPPFLAGS'
3176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
depcc="$CC" am_compiler_list=
3182
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185
echo $ECHO_N "(cached) $ECHO_C" >&6
3187
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188
# We make a subdir and do the tests there. Otherwise we can end up
3189
# making bogus files that we don't know about and never remove. For
3190
# instance it was reported that on HP-UX the gcc test will end up
3191
# making a dummy file named `D' -- because `-MD' means `put the output
3194
# Copy depcomp to subdir because otherwise we won't find it if we're
3195
# using a relative directory.
3196
cp "$am_depcomp" conftest.dir
3198
# We will build objects and dependencies in a subdirectory because
3199
# it helps to detect inapplicable dependency modes. For instance
3200
# both Tru64's cc and ICC support -MD to output dependencies as a
3201
# side effect of compilation, but ICC will put the dependencies in
3202
# the current directory while Tru64 will put them in the object
3206
am_cv_CC_dependencies_compiler_type=none
3207
if test "$am_compiler_list" = ""; then
3208
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210
for depmode in $am_compiler_list; do
3211
# Setup a source with many dependencies, because some compilers
3212
# like to wrap large dependency lists on column 80 (with \), and
3213
# we should not choose a depcomp mode which is confused by this.
3215
# We need to recreate these files for each test, as the compiler may
3216
# overwrite some of them when testing with obscure command lines.
3217
# This happens at least with the AIX C compiler.
3219
for i in 1 2 3 4 5 6; do
3220
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3227
# after this tag, mechanisms are not by side-effect, so they'll
3228
# only be used when explicitly requested
3229
if test "x$enable_dependency_tracking" = xyes; then
3237
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3238
# mode. It turns out that the SunPro C++ compiler does not properly
3239
# handle `-M -o', and we need to detect this.
3240
if depmode=$depmode \
3241
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3242
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3243
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3244
>/dev/null 2>conftest.err &&
3245
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3246
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3247
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3248
# icc doesn't choke on unknown options, it will just issue warnings
3249
# (even with -Werror). So we grep stderr for any message
3250
# that says an option was ignored.
3251
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3252
am_cv_CC_dependencies_compiler_type=$depmode
3261
am_cv_CC_dependencies_compiler_type=none
3265
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3266
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3267
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3272
test "x$enable_dependency_tracking" != xno \
3273
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3275
am__fastdepCC_FALSE='#'
3277
am__fastdepCC_TRUE='#'
3278
am__fastdepCC_FALSE=
3283
# Add Xtra Paths for Checking
3286
ac_cpp='$CPP $CPPFLAGS'
3287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3291
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3292
# On Suns, sometimes $CPP names a directory.
3293
if test -n "$CPP" && test -d "$CPP"; then
3296
if test -z "$CPP"; then
3297
if test "${ac_cv_prog_CPP+set}" = set; then
3298
echo $ECHO_N "(cached) $ECHO_C" >&6
3300
# Double quotes because CPP needs to be expanded
3301
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3304
for ac_c_preproc_warn_flag in '' yes
3306
# Use a header file that comes with gcc, so configuring glibc
3307
# with a fresh cross-compiler works.
3308
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3309
# <limits.h> exists even on freestanding compilers.
3310
# On the NeXT, cc -E runs the code through the compiler's parser,
3311
# not just through cpp. "Syntax error" is here to catch this case.
3312
cat >conftest.$ac_ext <<_ACEOF
3315
cat confdefs.h >>conftest.$ac_ext
3316
cat >>conftest.$ac_ext <<_ACEOF
3317
/* end confdefs.h. */
3319
# include <limits.h>
3321
# include <assert.h>
3325
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328
grep -v '^ *+' conftest.er1 >conftest.err
3330
cat conftest.err >&5
3331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
(exit $ac_status); } >/dev/null; then
3333
if test -s conftest.err; then
3334
ac_cpp_err=$ac_c_preproc_warn_flag
3335
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342
if test -z "$ac_cpp_err"; then
3345
echo "$as_me: failed program was:" >&5
3346
sed 's/^/| /' conftest.$ac_ext >&5
3348
# Broken: fails on valid input.
3351
rm -f conftest.err conftest.$ac_ext
3353
# OK, works on sane cases. Now check whether non-existent headers
3354
# can be detected and how.
3355
cat >conftest.$ac_ext <<_ACEOF
3358
cat confdefs.h >>conftest.$ac_ext
3359
cat >>conftest.$ac_ext <<_ACEOF
3360
/* end confdefs.h. */
3361
#include <ac_nonexistent.h>
3363
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3364
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3366
grep -v '^ *+' conftest.er1 >conftest.err
3368
cat conftest.err >&5
3369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
(exit $ac_status); } >/dev/null; then
3371
if test -s conftest.err; then
3372
ac_cpp_err=$ac_c_preproc_warn_flag
3373
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380
if test -z "$ac_cpp_err"; then
3381
# Broken: success on invalid input.
3384
echo "$as_me: failed program was:" >&5
3385
sed 's/^/| /' conftest.$ac_ext >&5
3387
# Passes both tests.
3391
rm -f conftest.err conftest.$ac_ext
3394
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3395
rm -f conftest.err conftest.$ac_ext
3396
if $ac_preproc_ok; then
3408
echo "$as_me:$LINENO: result: $CPP" >&5
3409
echo "${ECHO_T}$CPP" >&6
3411
for ac_c_preproc_warn_flag in '' yes
3413
# Use a header file that comes with gcc, so configuring glibc
3414
# with a fresh cross-compiler works.
3415
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416
# <limits.h> exists even on freestanding compilers.
3417
# On the NeXT, cc -E runs the code through the compiler's parser,
3418
# not just through cpp. "Syntax error" is here to catch this case.
3419
cat >conftest.$ac_ext <<_ACEOF
3422
cat confdefs.h >>conftest.$ac_ext
3423
cat >>conftest.$ac_ext <<_ACEOF
3424
/* end confdefs.h. */
3426
# include <limits.h>
3428
# include <assert.h>
3432
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3433
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435
grep -v '^ *+' conftest.er1 >conftest.err
3437
cat conftest.err >&5
3438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439
(exit $ac_status); } >/dev/null; then
3440
if test -s conftest.err; then
3441
ac_cpp_err=$ac_c_preproc_warn_flag
3442
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449
if test -z "$ac_cpp_err"; then
3452
echo "$as_me: failed program was:" >&5
3453
sed 's/^/| /' conftest.$ac_ext >&5
3455
# Broken: fails on valid input.
3458
rm -f conftest.err conftest.$ac_ext
3460
# OK, works on sane cases. Now check whether non-existent headers
3461
# can be detected and how.
3462
cat >conftest.$ac_ext <<_ACEOF
3465
cat confdefs.h >>conftest.$ac_ext
3466
cat >>conftest.$ac_ext <<_ACEOF
3467
/* end confdefs.h. */
3468
#include <ac_nonexistent.h>
3470
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3471
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3473
grep -v '^ *+' conftest.er1 >conftest.err
3475
cat conftest.err >&5
3476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477
(exit $ac_status); } >/dev/null; then
3478
if test -s conftest.err; then
3479
ac_cpp_err=$ac_c_preproc_warn_flag
3480
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487
if test -z "$ac_cpp_err"; then
3488
# Broken: success on invalid input.
3491
echo "$as_me: failed program was:" >&5
3492
sed 's/^/| /' conftest.$ac_ext >&5
3494
# Passes both tests.
3498
rm -f conftest.err conftest.$ac_ext
3501
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502
rm -f conftest.err conftest.$ac_ext
3503
if $ac_preproc_ok; then
3506
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3507
See \`config.log' for more details." >&5
3508
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3509
See \`config.log' for more details." >&2;}
3510
{ (exit 1); exit 1; }; }
3514
ac_cpp='$CPP $CPPFLAGS'
3515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
if test "x$ac_path_x_has_been_run" != xyes; then
3522
echo "$as_me:$LINENO: checking for X" >&5
3523
echo $ECHO_N "checking for X... $ECHO_C" >&6
3525
ac_path_x_has_been_run=yes
3527
# Check whether --with-x or --without-x was given.
3528
if test "${with_x+set}" = set; then
3532
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3533
if test "x$with_x" = xno; then
3534
# The user explicitly disabled X.
3537
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3538
# Both variables are already set.
3541
if test "${ac_cv_have_x+set}" = set; then
3542
echo $ECHO_N "(cached) $ECHO_C" >&6
3544
# One or both of the vars are not set, and there is no cached value.
3545
ac_x_includes=no ac_x_libraries=no
3547
if mkdir conftest.dir; then
3549
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
3550
cat >Imakefile <<'_ACEOF'
3552
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3554
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3555
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3556
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3557
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3558
for ac_extension in a so sl; do
3559
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3560
test -f $ac_im_libdir/libX11.$ac_extension; then
3561
ac_im_usrlibdir=$ac_im_libdir; break
3564
# Screen out bogus values from the imake configuration. They are
3565
# bogus both because they are the default anyway, and because
3566
# using them would break gcc on systems where it needs fixed includes.
3567
case $ac_im_incroot in
3569
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3571
case $ac_im_usrlibdir in
3573
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3580
# Standard set of common directories for X headers.
3581
# Check X11 before X11Rn because it is often a symlink to the current release.
3593
/usr/local/X11/include
3594
/usr/local/X11R6/include
3595
/usr/local/X11R5/include
3596
/usr/local/X11R4/include
3598
/usr/local/include/X11
3599
/usr/local/include/X11R6
3600
/usr/local/include/X11R5
3601
/usr/local/include/X11R4
3605
/usr/XFree86/include/X11
3609
/usr/unsupported/include
3611
/usr/local/x11r5/include
3612
/usr/lpp/Xamples/include
3614
/usr/openwin/include
3615
/usr/openwin/share/include'
3617
if test "$ac_x_includes" = no; then
3618
# Guess where to find include files, by looking for a specified header file.
3619
# First, try using that file with no special directory specified.
3620
cat >conftest.$ac_ext <<_ACEOF
3623
cat confdefs.h >>conftest.$ac_ext
3624
cat >>conftest.$ac_ext <<_ACEOF
3625
/* end confdefs.h. */
3626
#include <X11/Intrinsic.h>
3628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3631
grep -v '^ *+' conftest.er1 >conftest.err
3633
cat conftest.err >&5
3634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635
(exit $ac_status); } >/dev/null; then
3636
if test -s conftest.err; then
3637
ac_cpp_err=$ac_c_preproc_warn_flag
3638
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645
if test -z "$ac_cpp_err"; then
3646
# We can compile using X headers with no special include directory.
3649
echo "$as_me: failed program was:" >&5
3650
sed 's/^/| /' conftest.$ac_ext >&5
3652
for ac_dir in $ac_x_header_dirs; do
3653
if test -r "$ac_dir/X11/Intrinsic.h"; then
3654
ac_x_includes=$ac_dir
3659
rm -f conftest.err conftest.$ac_ext
3660
fi # $ac_x_includes = no
3662
if test "$ac_x_libraries" = no; then
3663
# Check for the libraries.
3664
# See if we find them without any special options.
3665
# Don't add to $LIBS permanently.
3668
cat >conftest.$ac_ext <<_ACEOF
3671
cat confdefs.h >>conftest.$ac_ext
3672
cat >>conftest.$ac_ext <<_ACEOF
3673
/* end confdefs.h. */
3674
#include <X11/Intrinsic.h>
3683
rm -f conftest.$ac_objext conftest$ac_exeext
3684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3685
(eval $ac_link) 2>conftest.er1
3687
grep -v '^ *+' conftest.er1 >conftest.err
3689
cat conftest.err >&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); } &&
3692
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697
(exit $ac_status); }; } &&
3698
{ ac_try='test -s conftest$ac_exeext'
3699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
(exit $ac_status); }; }; then
3705
# We can link X programs with no special library path.
3708
echo "$as_me: failed program was:" >&5
3709
sed 's/^/| /' conftest.$ac_ext >&5
3712
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3714
# Don't even attempt the hair of trying to link an X program!
3715
for ac_extension in a so sl; do
3716
if test -r $ac_dir/libXt.$ac_extension; then
3717
ac_x_libraries=$ac_dir
3723
rm -f conftest.err conftest.$ac_objext \
3724
conftest$ac_exeext conftest.$ac_ext
3725
fi # $ac_x_libraries = no
3727
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3728
# Didn't find X anywhere. Cache the known absence of X.
3729
ac_cv_have_x="have_x=no"
3731
# Record where we found X for the cache.
3732
ac_cv_have_x="have_x=yes \
3733
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3738
eval "$ac_cv_have_x"
3741
if test "$have_x" != yes; then
3742
echo "$as_me:$LINENO: result: $have_x" >&5
3743
echo "${ECHO_T}$have_x" >&6
3746
# If each of the values was on the command line, it overrides each guess.
3747
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3748
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3749
# Update the cache value to reflect the command line values.
3750
ac_cv_have_x="have_x=yes \
3751
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3752
# It might be that x_includes is empty (headers are found in the
3753
# standard search path. Then output the corresponding message
3754
ac_out_x_includes=$x_includes
3755
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3756
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3757
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3761
if test "$no_x" = yes; then
3762
# Not all programs may use this symbol, but it does not hurt to define it.
3764
cat >>confdefs.h <<\_ACEOF
3765
#define X_DISPLAY_MISSING 1
3768
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3770
if test -n "$x_includes"; then
3771
X_CFLAGS="$X_CFLAGS -I$x_includes"
3774
# It would also be nice to do this for all -L options, not just this one.
3775
if test -n "$x_libraries"; then
3776
X_LIBS="$X_LIBS -L$x_libraries"
3777
# For Solaris; some versions of Sun CC require a space after -R and
3778
# others require no space. Words are not sufficient . . . .
3779
case `(uname -sr) 2>/dev/null` in
3781
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3782
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3783
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3799
rm -f conftest.$ac_objext conftest$ac_exeext
3800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801
(eval $ac_link) 2>conftest.er1
3803
grep -v '^ *+' conftest.er1 >conftest.err
3805
cat conftest.err >&5
3806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
(exit $ac_status); } &&
3808
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
(exit $ac_status); }; } &&
3814
{ ac_try='test -s conftest$ac_exeext'
3815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819
(exit $ac_status); }; }; then
3822
echo "$as_me: failed program was:" >&5
3823
sed 's/^/| /' conftest.$ac_ext >&5
3827
rm -f conftest.err conftest.$ac_objext \
3828
conftest$ac_exeext conftest.$ac_ext
3829
if test $ac_R_nospace = yes; then
3830
echo "$as_me:$LINENO: result: no" >&5
3831
echo "${ECHO_T}no" >&6
3832
X_LIBS="$X_LIBS -R$x_libraries"
3834
LIBS="$ac_xsave_LIBS -R $x_libraries"
3835
cat >conftest.$ac_ext <<_ACEOF
3838
cat confdefs.h >>conftest.$ac_ext
3839
cat >>conftest.$ac_ext <<_ACEOF
3840
/* end confdefs.h. */
3850
rm -f conftest.$ac_objext conftest$ac_exeext
3851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852
(eval $ac_link) 2>conftest.er1
3854
grep -v '^ *+' conftest.er1 >conftest.err
3856
cat conftest.err >&5
3857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
(exit $ac_status); } &&
3859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
(exit $ac_status); }; } &&
3865
{ ac_try='test -s conftest$ac_exeext'
3866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
(exit $ac_status); }; }; then
3873
echo "$as_me: failed program was:" >&5
3874
sed 's/^/| /' conftest.$ac_ext >&5
3878
rm -f conftest.err conftest.$ac_objext \
3879
conftest$ac_exeext conftest.$ac_ext
3880
if test $ac_R_space = yes; then
3881
echo "$as_me:$LINENO: result: yes" >&5
3882
echo "${ECHO_T}yes" >&6
3883
X_LIBS="$X_LIBS -R $x_libraries"
3885
echo "$as_me:$LINENO: result: neither works" >&5
3886
echo "${ECHO_T}neither works" >&6
3893
# Check for system-dependent libraries X programs must link with.
3894
# Do this before checking for the system-independent R6 libraries
3895
# (-lICE), since we may need -lsocket or whatever for X linking.
3897
if test "$ISC" = yes; then
3898
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3900
# Martyn Johnson says this is needed for Ultrix, if the X
3901
# libraries were built with DECnet support. And Karl Berry says
3902
# the Alpha needs dnet_stub (dnet does not exist).
3903
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3904
cat >conftest.$ac_ext <<_ACEOF
3907
cat confdefs.h >>conftest.$ac_ext
3908
cat >>conftest.$ac_ext <<_ACEOF
3909
/* end confdefs.h. */
3911
/* Override any gcc2 internal prototype to avoid an error. */
3915
/* We use char because int might match the return type of a gcc2
3916
builtin and then its argument prototype would still apply. */
3917
char XOpenDisplay ();
3926
rm -f conftest.$ac_objext conftest$ac_exeext
3927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928
(eval $ac_link) 2>conftest.er1
3930
grep -v '^ *+' conftest.er1 >conftest.err
3932
cat conftest.err >&5
3933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
(exit $ac_status); } &&
3935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
(exit $ac_status); }; } &&
3941
{ ac_try='test -s conftest$ac_exeext'
3942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
(exit $ac_status); }; }; then
3949
echo "$as_me: failed program was:" >&5
3950
sed 's/^/| /' conftest.$ac_ext >&5
3952
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3953
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3954
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3955
echo $ECHO_N "(cached) $ECHO_C" >&6
3957
ac_check_lib_save_LIBS=$LIBS
3959
cat >conftest.$ac_ext <<_ACEOF
3962
cat confdefs.h >>conftest.$ac_ext
3963
cat >>conftest.$ac_ext <<_ACEOF
3964
/* end confdefs.h. */
3966
/* Override any gcc2 internal prototype to avoid an error. */
3970
/* We use char because int might match the return type of a gcc2
3971
builtin and then its argument prototype would still apply. */
3981
rm -f conftest.$ac_objext conftest$ac_exeext
3982
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983
(eval $ac_link) 2>conftest.er1
3985
grep -v '^ *+' conftest.er1 >conftest.err
3987
cat conftest.err >&5
3988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989
(exit $ac_status); } &&
3990
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995
(exit $ac_status); }; } &&
3996
{ ac_try='test -s conftest$ac_exeext'
3997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001
(exit $ac_status); }; }; then
4002
ac_cv_lib_dnet_dnet_ntoa=yes
4004
echo "$as_me: failed program was:" >&5
4005
sed 's/^/| /' conftest.$ac_ext >&5
4007
ac_cv_lib_dnet_dnet_ntoa=no
4009
rm -f conftest.err conftest.$ac_objext \
4010
conftest$ac_exeext conftest.$ac_ext
4011
LIBS=$ac_check_lib_save_LIBS
4013
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4014
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4015
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4016
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4019
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4020
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4021
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4022
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4023
echo $ECHO_N "(cached) $ECHO_C" >&6
4025
ac_check_lib_save_LIBS=$LIBS
4026
LIBS="-ldnet_stub $LIBS"
4027
cat >conftest.$ac_ext <<_ACEOF
4030
cat confdefs.h >>conftest.$ac_ext
4031
cat >>conftest.$ac_ext <<_ACEOF
4032
/* end confdefs.h. */
4034
/* Override any gcc2 internal prototype to avoid an error. */
4038
/* We use char because int might match the return type of a gcc2
4039
builtin and then its argument prototype would still apply. */
4049
rm -f conftest.$ac_objext conftest$ac_exeext
4050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051
(eval $ac_link) 2>conftest.er1
4053
grep -v '^ *+' conftest.er1 >conftest.err
4055
cat conftest.err >&5
4056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057
(exit $ac_status); } &&
4058
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063
(exit $ac_status); }; } &&
4064
{ ac_try='test -s conftest$ac_exeext'
4065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069
(exit $ac_status); }; }; then
4070
ac_cv_lib_dnet_stub_dnet_ntoa=yes
4072
echo "$as_me: failed program was:" >&5
4073
sed 's/^/| /' conftest.$ac_ext >&5
4075
ac_cv_lib_dnet_stub_dnet_ntoa=no
4077
rm -f conftest.err conftest.$ac_objext \
4078
conftest$ac_exeext conftest.$ac_ext
4079
LIBS=$ac_check_lib_save_LIBS
4081
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4082
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4083
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4084
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4089
rm -f conftest.err conftest.$ac_objext \
4090
conftest$ac_exeext conftest.$ac_ext
4091
LIBS="$ac_xsave_LIBS"
4093
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4094
# to get the SysV transport functions.
4095
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4097
# The nsl library prevents programs from opening the X display
4098
# on Irix 5.2, according to T.E. Dickey.
4099
# The functions gethostbyname, getservbyname, and inet_addr are
4100
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4101
echo "$as_me:$LINENO: checking for gethostbyname" >&5
4102
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4103
if test "${ac_cv_func_gethostbyname+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
cat >conftest.$ac_ext <<_ACEOF
4109
cat confdefs.h >>conftest.$ac_ext
4110
cat >>conftest.$ac_ext <<_ACEOF
4111
/* end confdefs.h. */
4112
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4113
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114
#define gethostbyname innocuous_gethostbyname
4116
/* System header to define __stub macros and hopefully few prototypes,
4117
which can conflict with char gethostbyname (); below.
4118
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119
<limits.h> exists even on freestanding compilers. */
4122
# include <limits.h>
4124
# include <assert.h>
4127
#undef gethostbyname
4129
/* Override any gcc2 internal prototype to avoid an error. */
4134
/* We use char because int might match the return type of a gcc2
4135
builtin and then its argument prototype would still apply. */
4136
char gethostbyname ();
4137
/* The GNU C library defines this for functions which it implements
4138
to always fail with ENOSYS. Some functions are actually named
4139
something starting with __ and the normal name is an alias. */
4140
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4143
char (*f) () = gethostbyname;
4152
return f != gethostbyname;
4157
rm -f conftest.$ac_objext conftest$ac_exeext
4158
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159
(eval $ac_link) 2>conftest.er1
4161
grep -v '^ *+' conftest.er1 >conftest.err
4163
cat conftest.err >&5
4164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165
(exit $ac_status); } &&
4166
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171
(exit $ac_status); }; } &&
4172
{ ac_try='test -s conftest$ac_exeext'
4173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
(exit $ac_status); }; }; then
4178
ac_cv_func_gethostbyname=yes
4180
echo "$as_me: failed program was:" >&5
4181
sed 's/^/| /' conftest.$ac_ext >&5
4183
ac_cv_func_gethostbyname=no
4185
rm -f conftest.err conftest.$ac_objext \
4186
conftest$ac_exeext conftest.$ac_ext
4188
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4189
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4191
if test $ac_cv_func_gethostbyname = no; then
4192
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4193
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4194
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4195
echo $ECHO_N "(cached) $ECHO_C" >&6
4197
ac_check_lib_save_LIBS=$LIBS
4199
cat >conftest.$ac_ext <<_ACEOF
4202
cat confdefs.h >>conftest.$ac_ext
4203
cat >>conftest.$ac_ext <<_ACEOF
4204
/* end confdefs.h. */
4206
/* Override any gcc2 internal prototype to avoid an error. */
4210
/* We use char because int might match the return type of a gcc2
4211
builtin and then its argument prototype would still apply. */
4212
char gethostbyname ();
4221
rm -f conftest.$ac_objext conftest$ac_exeext
4222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223
(eval $ac_link) 2>conftest.er1
4225
grep -v '^ *+' conftest.er1 >conftest.err
4227
cat conftest.err >&5
4228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229
(exit $ac_status); } &&
4230
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235
(exit $ac_status); }; } &&
4236
{ ac_try='test -s conftest$ac_exeext'
4237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241
(exit $ac_status); }; }; then
4242
ac_cv_lib_nsl_gethostbyname=yes
4244
echo "$as_me: failed program was:" >&5
4245
sed 's/^/| /' conftest.$ac_ext >&5
4247
ac_cv_lib_nsl_gethostbyname=no
4249
rm -f conftest.err conftest.$ac_objext \
4250
conftest$ac_exeext conftest.$ac_ext
4251
LIBS=$ac_check_lib_save_LIBS
4253
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4254
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4255
if test $ac_cv_lib_nsl_gethostbyname = yes; then
4256
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4259
if test $ac_cv_lib_nsl_gethostbyname = no; then
4260
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4261
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4262
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4263
echo $ECHO_N "(cached) $ECHO_C" >&6
4265
ac_check_lib_save_LIBS=$LIBS
4267
cat >conftest.$ac_ext <<_ACEOF
4270
cat confdefs.h >>conftest.$ac_ext
4271
cat >>conftest.$ac_ext <<_ACEOF
4272
/* end confdefs.h. */
4274
/* Override any gcc2 internal prototype to avoid an error. */
4278
/* We use char because int might match the return type of a gcc2
4279
builtin and then its argument prototype would still apply. */
4280
char gethostbyname ();
4289
rm -f conftest.$ac_objext conftest$ac_exeext
4290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291
(eval $ac_link) 2>conftest.er1
4293
grep -v '^ *+' conftest.er1 >conftest.err
4295
cat conftest.err >&5
4296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
(exit $ac_status); } &&
4298
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303
(exit $ac_status); }; } &&
4304
{ ac_try='test -s conftest$ac_exeext'
4305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); }; }; then
4310
ac_cv_lib_bsd_gethostbyname=yes
4312
echo "$as_me: failed program was:" >&5
4313
sed 's/^/| /' conftest.$ac_ext >&5
4315
ac_cv_lib_bsd_gethostbyname=no
4317
rm -f conftest.err conftest.$ac_objext \
4318
conftest$ac_exeext conftest.$ac_ext
4319
LIBS=$ac_check_lib_save_LIBS
4321
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4322
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4323
if test $ac_cv_lib_bsd_gethostbyname = yes; then
4324
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4330
# lieder@skyler.mavd.honeywell.com says without -lsocket,
4331
# socket/setsockopt and other routines are undefined under SCO ODT
4332
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4333
# on later versions), says Simon Leinen: it contains gethostby*
4334
# variants that don't use the name server (or something). -lsocket
4335
# must be given before -lnsl if both are needed. We assume that
4336
# if connect needs -lnsl, so does gethostbyname.
4337
echo "$as_me:$LINENO: checking for connect" >&5
4338
echo $ECHO_N "checking for connect... $ECHO_C" >&6
4339
if test "${ac_cv_func_connect+set}" = set; then
4340
echo $ECHO_N "(cached) $ECHO_C" >&6
4342
cat >conftest.$ac_ext <<_ACEOF
4345
cat confdefs.h >>conftest.$ac_ext
4346
cat >>conftest.$ac_ext <<_ACEOF
4347
/* end confdefs.h. */
4348
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4349
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4350
#define connect innocuous_connect
4352
/* System header to define __stub macros and hopefully few prototypes,
4353
which can conflict with char connect (); below.
4354
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355
<limits.h> exists even on freestanding compilers. */
4358
# include <limits.h>
4360
# include <assert.h>
4365
/* Override any gcc2 internal prototype to avoid an error. */
4370
/* We use char because int might match the return type of a gcc2
4371
builtin and then its argument prototype would still apply. */
4373
/* The GNU C library defines this for functions which it implements
4374
to always fail with ENOSYS. Some functions are actually named
4375
something starting with __ and the normal name is an alias. */
4376
#if defined (__stub_connect) || defined (__stub___connect)
4379
char (*f) () = connect;
4388
return f != connect;
4393
rm -f conftest.$ac_objext conftest$ac_exeext
4394
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395
(eval $ac_link) 2>conftest.er1
4397
grep -v '^ *+' conftest.er1 >conftest.err
4399
cat conftest.err >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); } &&
4402
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); }; } &&
4408
{ ac_try='test -s conftest$ac_exeext'
4409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
(exit $ac_status); }; }; then
4414
ac_cv_func_connect=yes
4416
echo "$as_me: failed program was:" >&5
4417
sed 's/^/| /' conftest.$ac_ext >&5
4419
ac_cv_func_connect=no
4421
rm -f conftest.err conftest.$ac_objext \
4422
conftest$ac_exeext conftest.$ac_ext
4424
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4425
echo "${ECHO_T}$ac_cv_func_connect" >&6
4427
if test $ac_cv_func_connect = no; then
4428
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4429
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4430
if test "${ac_cv_lib_socket_connect+set}" = set; then
4431
echo $ECHO_N "(cached) $ECHO_C" >&6
4433
ac_check_lib_save_LIBS=$LIBS
4434
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4435
cat >conftest.$ac_ext <<_ACEOF
4438
cat confdefs.h >>conftest.$ac_ext
4439
cat >>conftest.$ac_ext <<_ACEOF
4440
/* end confdefs.h. */
4442
/* Override any gcc2 internal prototype to avoid an error. */
4446
/* We use char because int might match the return type of a gcc2
4447
builtin and then its argument prototype would still apply. */
4457
rm -f conftest.$ac_objext conftest$ac_exeext
4458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459
(eval $ac_link) 2>conftest.er1
4461
grep -v '^ *+' conftest.er1 >conftest.err
4463
cat conftest.err >&5
4464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465
(exit $ac_status); } &&
4466
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
(exit $ac_status); }; } &&
4472
{ ac_try='test -s conftest$ac_exeext'
4473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
(exit $ac_status); }; }; then
4478
ac_cv_lib_socket_connect=yes
4480
echo "$as_me: failed program was:" >&5
4481
sed 's/^/| /' conftest.$ac_ext >&5
4483
ac_cv_lib_socket_connect=no
4485
rm -f conftest.err conftest.$ac_objext \
4486
conftest$ac_exeext conftest.$ac_ext
4487
LIBS=$ac_check_lib_save_LIBS
4489
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4490
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4491
if test $ac_cv_lib_socket_connect = yes; then
4492
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4497
# Guillermo Gomez says -lposix is necessary on A/UX.
4498
echo "$as_me:$LINENO: checking for remove" >&5
4499
echo $ECHO_N "checking for remove... $ECHO_C" >&6
4500
if test "${ac_cv_func_remove+set}" = set; then
4501
echo $ECHO_N "(cached) $ECHO_C" >&6
4503
cat >conftest.$ac_ext <<_ACEOF
4506
cat confdefs.h >>conftest.$ac_ext
4507
cat >>conftest.$ac_ext <<_ACEOF
4508
/* end confdefs.h. */
4509
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4510
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4511
#define remove innocuous_remove
4513
/* System header to define __stub macros and hopefully few prototypes,
4514
which can conflict with char remove (); below.
4515
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516
<limits.h> exists even on freestanding compilers. */
4519
# include <limits.h>
4521
# include <assert.h>
4526
/* Override any gcc2 internal prototype to avoid an error. */
4531
/* We use char because int might match the return type of a gcc2
4532
builtin and then its argument prototype would still apply. */
4534
/* The GNU C library defines this for functions which it implements
4535
to always fail with ENOSYS. Some functions are actually named
4536
something starting with __ and the normal name is an alias. */
4537
#if defined (__stub_remove) || defined (__stub___remove)
4540
char (*f) () = remove;
4554
rm -f conftest.$ac_objext conftest$ac_exeext
4555
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556
(eval $ac_link) 2>conftest.er1
4558
grep -v '^ *+' conftest.er1 >conftest.err
4560
cat conftest.err >&5
4561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562
(exit $ac_status); } &&
4563
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568
(exit $ac_status); }; } &&
4569
{ ac_try='test -s conftest$ac_exeext'
4570
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574
(exit $ac_status); }; }; then
4575
ac_cv_func_remove=yes
4577
echo "$as_me: failed program was:" >&5
4578
sed 's/^/| /' conftest.$ac_ext >&5
4580
ac_cv_func_remove=no
4582
rm -f conftest.err conftest.$ac_objext \
4583
conftest$ac_exeext conftest.$ac_ext
4585
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4586
echo "${ECHO_T}$ac_cv_func_remove" >&6
4588
if test $ac_cv_func_remove = no; then
4589
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4590
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4591
if test "${ac_cv_lib_posix_remove+set}" = set; then
4592
echo $ECHO_N "(cached) $ECHO_C" >&6
4594
ac_check_lib_save_LIBS=$LIBS
4595
LIBS="-lposix $LIBS"
4596
cat >conftest.$ac_ext <<_ACEOF
4599
cat confdefs.h >>conftest.$ac_ext
4600
cat >>conftest.$ac_ext <<_ACEOF
4601
/* end confdefs.h. */
4603
/* Override any gcc2 internal prototype to avoid an error. */
4607
/* We use char because int might match the return type of a gcc2
4608
builtin and then its argument prototype would still apply. */
4618
rm -f conftest.$ac_objext conftest$ac_exeext
4619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620
(eval $ac_link) 2>conftest.er1
4622
grep -v '^ *+' conftest.er1 >conftest.err
4624
cat conftest.err >&5
4625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626
(exit $ac_status); } &&
4627
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
(exit $ac_status); }; } &&
4633
{ ac_try='test -s conftest$ac_exeext'
4634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638
(exit $ac_status); }; }; then
4639
ac_cv_lib_posix_remove=yes
4641
echo "$as_me: failed program was:" >&5
4642
sed 's/^/| /' conftest.$ac_ext >&5
4644
ac_cv_lib_posix_remove=no
4646
rm -f conftest.err conftest.$ac_objext \
4647
conftest$ac_exeext conftest.$ac_ext
4648
LIBS=$ac_check_lib_save_LIBS
4650
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4651
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4652
if test $ac_cv_lib_posix_remove = yes; then
4653
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4658
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4659
echo "$as_me:$LINENO: checking for shmat" >&5
4660
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4661
if test "${ac_cv_func_shmat+set}" = set; then
4662
echo $ECHO_N "(cached) $ECHO_C" >&6
4664
cat >conftest.$ac_ext <<_ACEOF
4667
cat confdefs.h >>conftest.$ac_ext
4668
cat >>conftest.$ac_ext <<_ACEOF
4669
/* end confdefs.h. */
4670
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4672
#define shmat innocuous_shmat
4674
/* System header to define __stub macros and hopefully few prototypes,
4675
which can conflict with char shmat (); below.
4676
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677
<limits.h> exists even on freestanding compilers. */
4680
# include <limits.h>
4682
# include <assert.h>
4687
/* Override any gcc2 internal prototype to avoid an error. */
4692
/* We use char because int might match the return type of a gcc2
4693
builtin and then its argument prototype would still apply. */
4695
/* The GNU C library defines this for functions which it implements
4696
to always fail with ENOSYS. Some functions are actually named
4697
something starting with __ and the normal name is an alias. */
4698
#if defined (__stub_shmat) || defined (__stub___shmat)
4701
char (*f) () = shmat;
4715
rm -f conftest.$ac_objext conftest$ac_exeext
4716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717
(eval $ac_link) 2>conftest.er1
4719
grep -v '^ *+' conftest.er1 >conftest.err
4721
cat conftest.err >&5
4722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723
(exit $ac_status); } &&
4724
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
(exit $ac_status); }; } &&
4730
{ ac_try='test -s conftest$ac_exeext'
4731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735
(exit $ac_status); }; }; then
4736
ac_cv_func_shmat=yes
4738
echo "$as_me: failed program was:" >&5
4739
sed 's/^/| /' conftest.$ac_ext >&5
4743
rm -f conftest.err conftest.$ac_objext \
4744
conftest$ac_exeext conftest.$ac_ext
4746
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4747
echo "${ECHO_T}$ac_cv_func_shmat" >&6
4749
if test $ac_cv_func_shmat = no; then
4750
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4751
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4752
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4753
echo $ECHO_N "(cached) $ECHO_C" >&6
4755
ac_check_lib_save_LIBS=$LIBS
4757
cat >conftest.$ac_ext <<_ACEOF
4760
cat confdefs.h >>conftest.$ac_ext
4761
cat >>conftest.$ac_ext <<_ACEOF
4762
/* end confdefs.h. */
4764
/* Override any gcc2 internal prototype to avoid an error. */
4768
/* We use char because int might match the return type of a gcc2
4769
builtin and then its argument prototype would still apply. */
4779
rm -f conftest.$ac_objext conftest$ac_exeext
4780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781
(eval $ac_link) 2>conftest.er1
4783
grep -v '^ *+' conftest.er1 >conftest.err
4785
cat conftest.err >&5
4786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787
(exit $ac_status); } &&
4788
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
(exit $ac_status); }; } &&
4794
{ ac_try='test -s conftest$ac_exeext'
4795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799
(exit $ac_status); }; }; then
4800
ac_cv_lib_ipc_shmat=yes
4802
echo "$as_me: failed program was:" >&5
4803
sed 's/^/| /' conftest.$ac_ext >&5
4805
ac_cv_lib_ipc_shmat=no
4807
rm -f conftest.err conftest.$ac_objext \
4808
conftest$ac_exeext conftest.$ac_ext
4809
LIBS=$ac_check_lib_save_LIBS
4811
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4812
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4813
if test $ac_cv_lib_ipc_shmat = yes; then
4814
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4820
# Check for libraries that X11R6 Xt/Xaw programs need.
4821
ac_save_LDFLAGS=$LDFLAGS
4822
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4823
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4824
# check for ICE first), but we must link in the order -lSM -lICE or
4825
# we get undefined symbols. So assume we have SM if we have ICE.
4826
# These have to be linked with before -lX11, unlike the other
4827
# libraries we check for below, so use a different variable.
4828
# John Interrante, Karl Berry
4829
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4830
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4831
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4832
echo $ECHO_N "(cached) $ECHO_C" >&6
4834
ac_check_lib_save_LIBS=$LIBS
4835
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4836
cat >conftest.$ac_ext <<_ACEOF
4839
cat confdefs.h >>conftest.$ac_ext
4840
cat >>conftest.$ac_ext <<_ACEOF
4841
/* end confdefs.h. */
4843
/* Override any gcc2 internal prototype to avoid an error. */
4847
/* We use char because int might match the return type of a gcc2
4848
builtin and then its argument prototype would still apply. */
4849
char IceConnectionNumber ();
4853
IceConnectionNumber ();
4858
rm -f conftest.$ac_objext conftest$ac_exeext
4859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860
(eval $ac_link) 2>conftest.er1
4862
grep -v '^ *+' conftest.er1 >conftest.err
4864
cat conftest.err >&5
4865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866
(exit $ac_status); } &&
4867
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872
(exit $ac_status); }; } &&
4873
{ ac_try='test -s conftest$ac_exeext'
4874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878
(exit $ac_status); }; }; then
4879
ac_cv_lib_ICE_IceConnectionNumber=yes
4881
echo "$as_me: failed program was:" >&5
4882
sed 's/^/| /' conftest.$ac_ext >&5
4884
ac_cv_lib_ICE_IceConnectionNumber=no
4886
rm -f conftest.err conftest.$ac_objext \
4887
conftest$ac_exeext conftest.$ac_ext
4888
LIBS=$ac_check_lib_save_LIBS
4890
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4891
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4892
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4893
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4896
LDFLAGS=$ac_save_LDFLAGS
4900
if test x"$no_x" = xyes; then
4901
{ { echo "$as_me:$LINENO: error: Can not find X11 development headers or libraries." >&5
4902
echo "$as_me: error: Can not find X11 development headers or libraries." >&2;}
4903
{ (exit 1); exit 1; }; }
4906
# Checks for libraries.
4908
#AC_CHECK_LIB([X11], [XOpenDisplay], , [AC_MSG_ERROR(VIDEO: You need libx11-dev installed)])
4910
echo "$as_me:$LINENO: checking for main in -lssl" >&5
4911
echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
4912
if test "${ac_cv_lib_ssl_main+set}" = set; then
4913
echo $ECHO_N "(cached) $ECHO_C" >&6
4915
ac_check_lib_save_LIBS=$LIBS
4917
cat >conftest.$ac_ext <<_ACEOF
4920
cat confdefs.h >>conftest.$ac_ext
4921
cat >>conftest.$ac_ext <<_ACEOF
4922
/* end confdefs.h. */
4933
rm -f conftest.$ac_objext conftest$ac_exeext
4934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935
(eval $ac_link) 2>conftest.er1
4937
grep -v '^ *+' conftest.er1 >conftest.err
4939
cat conftest.err >&5
4940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
(exit $ac_status); } &&
4942
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
(exit $ac_status); }; } &&
4948
{ ac_try='test -s conftest$ac_exeext'
4949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953
(exit $ac_status); }; }; then
4954
ac_cv_lib_ssl_main=yes
4956
echo "$as_me: failed program was:" >&5
4957
sed 's/^/| /' conftest.$ac_ext >&5
4959
ac_cv_lib_ssl_main=no
4961
rm -f conftest.err conftest.$ac_objext \
4962
conftest$ac_exeext conftest.$ac_ext
4963
LIBS=$ac_check_lib_save_LIBS
4965
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
4966
echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
4967
if test $ac_cv_lib_ssl_main = yes; then
4968
cat >>confdefs.h <<_ACEOF
4969
#define HAVE_LIBSSL 1
4975
{ { echo "$as_me:$LINENO: error: You need libssl-dev installed" >&5
4976
echo "$as_me: error: You need libssl-dev installed" >&2;}
4977
{ (exit 1); exit 1; }; }
4981
echo "$as_me:$LINENO: checking for main in -ldl" >&5
4982
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4983
if test "${ac_cv_lib_dl_main+set}" = set; then
4984
echo $ECHO_N "(cached) $ECHO_C" >&6
4986
ac_check_lib_save_LIBS=$LIBS
4988
cat >conftest.$ac_ext <<_ACEOF
4991
cat confdefs.h >>conftest.$ac_ext
4992
cat >>conftest.$ac_ext <<_ACEOF
4993
/* end confdefs.h. */
5004
rm -f conftest.$ac_objext conftest$ac_exeext
5005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006
(eval $ac_link) 2>conftest.er1
5008
grep -v '^ *+' conftest.er1 >conftest.err
5010
cat conftest.err >&5
5011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012
(exit $ac_status); } &&
5013
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018
(exit $ac_status); }; } &&
5019
{ ac_try='test -s conftest$ac_exeext'
5020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024
(exit $ac_status); }; }; then
5025
ac_cv_lib_dl_main=yes
5027
echo "$as_me: failed program was:" >&5
5028
sed 's/^/| /' conftest.$ac_ext >&5
5030
ac_cv_lib_dl_main=no
5032
rm -f conftest.err conftest.$ac_objext \
5033
conftest$ac_exeext conftest.$ac_ext
5034
LIBS=$ac_check_lib_save_LIBS
5036
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5037
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5038
if test $ac_cv_lib_dl_main = yes; then
5039
cat >>confdefs.h <<_ACEOF
5040
#define HAVE_LIBDL 1
5046
{ { echo "$as_me:$LINENO: error: You need libc6-dev installed" >&5
5047
echo "$as_me: error: You need libc6-dev installed" >&2;}
5048
{ (exit 1); exit 1; }; }
5052
echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
5053
echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
5054
if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
5055
echo $ECHO_N "(cached) $ECHO_C" >&6
5057
ac_check_lib_save_LIBS=$LIBS
5058
LIBS="-lfreetype $LIBS"
5059
cat >conftest.$ac_ext <<_ACEOF
5062
cat confdefs.h >>conftest.$ac_ext
5063
cat >>conftest.$ac_ext <<_ACEOF
5064
/* end confdefs.h. */
5066
/* Override any gcc2 internal prototype to avoid an error. */
5070
/* We use char because int might match the return type of a gcc2
5071
builtin and then its argument prototype would still apply. */
5072
char FT_Init_FreeType ();
5076
FT_Init_FreeType ();
5081
rm -f conftest.$ac_objext conftest$ac_exeext
5082
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083
(eval $ac_link) 2>conftest.er1
5085
grep -v '^ *+' conftest.er1 >conftest.err
5087
cat conftest.err >&5
5088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
(exit $ac_status); } &&
5090
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095
(exit $ac_status); }; } &&
5096
{ ac_try='test -s conftest$ac_exeext'
5097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101
(exit $ac_status); }; }; then
5102
ac_cv_lib_freetype_FT_Init_FreeType=yes
5104
echo "$as_me: failed program was:" >&5
5105
sed 's/^/| /' conftest.$ac_ext >&5
5107
ac_cv_lib_freetype_FT_Init_FreeType=no
5109
rm -f conftest.err conftest.$ac_objext \
5110
conftest$ac_exeext conftest.$ac_ext
5111
LIBS=$ac_check_lib_save_LIBS
5113
echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
5114
echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
5115
if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
5116
cat >>confdefs.h <<_ACEOF
5117
#define HAVE_LIBFREETYPE 1
5120
LIBS="-lfreetype $LIBS"
5123
{ { echo "$as_me:$LINENO: error: VIDEO: You need libfreetype6-dev installed.
5124
http://freetype.sourceforge.net/index2.html" >&5
5125
echo "$as_me: error: VIDEO: You need libfreetype6-dev installed.
5126
http://freetype.sourceforge.net/index2.html" >&2;}
5127
{ (exit 1); exit 1; }; }
5131
# Check for SDL_gfx with different function names..
5133
echo "$as_me:$LINENO: checking for main in -lSDL_gfx" >&5
5134
echo $ECHO_N "checking for main in -lSDL_gfx... $ECHO_C" >&6
5135
if test "${ac_cv_lib_SDL_gfx_main+set}" = set; then
5136
echo $ECHO_N "(cached) $ECHO_C" >&6
5138
ac_check_lib_save_LIBS=$LIBS
5139
LIBS="-lSDL_gfx $LIBS"
5140
cat >conftest.$ac_ext <<_ACEOF
5143
cat confdefs.h >>conftest.$ac_ext
5144
cat >>conftest.$ac_ext <<_ACEOF
5145
/* end confdefs.h. */
5156
rm -f conftest.$ac_objext conftest$ac_exeext
5157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158
(eval $ac_link) 2>conftest.er1
5160
grep -v '^ *+' conftest.er1 >conftest.err
5162
cat conftest.err >&5
5163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164
(exit $ac_status); } &&
5165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170
(exit $ac_status); }; } &&
5171
{ ac_try='test -s conftest$ac_exeext'
5172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176
(exit $ac_status); }; }; then
5177
ac_cv_lib_SDL_gfx_main=yes
5179
echo "$as_me: failed program was:" >&5
5180
sed 's/^/| /' conftest.$ac_ext >&5
5182
ac_cv_lib_SDL_gfx_main=no
5184
rm -f conftest.err conftest.$ac_objext \
5185
conftest$ac_exeext conftest.$ac_ext
5186
LIBS=$ac_check_lib_save_LIBS
5188
echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_main" >&5
5189
echo "${ECHO_T}$ac_cv_lib_SDL_gfx_main" >&6
5190
if test $ac_cv_lib_SDL_gfx_main = yes; then
5191
cat >>confdefs.h <<_ACEOF
5192
#define HAVE_LIBSDL_GFX 1
5195
LIBS="-lSDL_gfx $LIBS"
5198
{ { echo "$as_me:$LINENO: error: VIDEO: You need libsdl-gfx1.2-dev installed.
5199
http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/" >&5
5200
echo "$as_me: error: VIDEO: You need libsdl-gfx1.2-dev installed.
5201
http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/" >&2;}
5202
{ (exit 1); exit 1; }; }
5205
echo "$as_me:$LINENO: checking for filledPieRGBA" >&5
5206
echo $ECHO_N "checking for filledPieRGBA... $ECHO_C" >&6
5207
if test "${ac_cv_func_filledPieRGBA+set}" = set; then
5208
echo $ECHO_N "(cached) $ECHO_C" >&6
5210
cat >conftest.$ac_ext <<_ACEOF
5213
cat confdefs.h >>conftest.$ac_ext
5214
cat >>conftest.$ac_ext <<_ACEOF
5215
/* end confdefs.h. */
5216
/* Define filledPieRGBA to an innocuous variant, in case <limits.h> declares filledPieRGBA.
5217
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5218
#define filledPieRGBA innocuous_filledPieRGBA
5220
/* System header to define __stub macros and hopefully few prototypes,
5221
which can conflict with char filledPieRGBA (); below.
5222
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223
<limits.h> exists even on freestanding compilers. */
5226
# include <limits.h>
5228
# include <assert.h>
5231
#undef filledPieRGBA
5233
/* Override any gcc2 internal prototype to avoid an error. */
5238
/* We use char because int might match the return type of a gcc2
5239
builtin and then its argument prototype would still apply. */
5240
char filledPieRGBA ();
5241
/* The GNU C library defines this for functions which it implements
5242
to always fail with ENOSYS. Some functions are actually named
5243
something starting with __ and the normal name is an alias. */
5244
#if defined (__stub_filledPieRGBA) || defined (__stub___filledPieRGBA)
5247
char (*f) () = filledPieRGBA;
5256
return f != filledPieRGBA;
5261
rm -f conftest.$ac_objext conftest$ac_exeext
5262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263
(eval $ac_link) 2>conftest.er1
5265
grep -v '^ *+' conftest.er1 >conftest.err
5267
cat conftest.err >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); } &&
5270
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
(exit $ac_status); }; } &&
5276
{ ac_try='test -s conftest$ac_exeext'
5277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281
(exit $ac_status); }; }; then
5282
ac_cv_func_filledPieRGBA=yes
5284
echo "$as_me: failed program was:" >&5
5285
sed 's/^/| /' conftest.$ac_ext >&5
5287
ac_cv_func_filledPieRGBA=no
5289
rm -f conftest.err conftest.$ac_objext \
5290
conftest$ac_exeext conftest.$ac_ext
5292
echo "$as_me:$LINENO: result: $ac_cv_func_filledPieRGBA" >&5
5293
echo "${ECHO_T}$ac_cv_func_filledPieRGBA" >&6
5294
if test $ac_cv_func_filledPieRGBA = yes; then
5295
cat >>confdefs.h <<\_ACEOF
5296
#define CAPITAL_FILLED_PIE 1
5303
echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
5304
echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6
5305
if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
5306
echo $ECHO_N "(cached) $ECHO_C" >&6
5308
ac_check_lib_save_LIBS=$LIBS
5309
LIBS="-lSDL_ttf $LIBS"
5310
cat >conftest.$ac_ext <<_ACEOF
5313
cat confdefs.h >>conftest.$ac_ext
5314
cat >>conftest.$ac_ext <<_ACEOF
5315
/* end confdefs.h. */
5326
rm -f conftest.$ac_objext conftest$ac_exeext
5327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328
(eval $ac_link) 2>conftest.er1
5330
grep -v '^ *+' conftest.er1 >conftest.err
5332
cat conftest.err >&5
5333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334
(exit $ac_status); } &&
5335
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340
(exit $ac_status); }; } &&
5341
{ ac_try='test -s conftest$ac_exeext'
5342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346
(exit $ac_status); }; }; then
5347
ac_cv_lib_SDL_ttf_main=yes
5349
echo "$as_me: failed program was:" >&5
5350
sed 's/^/| /' conftest.$ac_ext >&5
5352
ac_cv_lib_SDL_ttf_main=no
5354
rm -f conftest.err conftest.$ac_objext \
5355
conftest$ac_exeext conftest.$ac_ext
5356
LIBS=$ac_check_lib_save_LIBS
5358
echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
5359
echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6
5360
if test $ac_cv_lib_SDL_ttf_main = yes; then
5361
cat >>confdefs.h <<_ACEOF
5362
#define HAVE_LIBSDL_TTF 1
5365
LIBS="-lSDL_ttf $LIBS"
5368
{ { echo "$as_me:$LINENO: error: VIDEO: You need libsdl-ttf2.0-dev installed.
5369
http://www.libsdl.org/projects/SDL_ttf/" >&5
5370
echo "$as_me: error: VIDEO: You need libsdl-ttf2.0-dev installed.
5371
http://www.libsdl.org/projects/SDL_ttf/" >&2;}
5372
{ (exit 1); exit 1; }; }
5377
echo "$as_me:$LINENO: checking for main in -lxml2" >&5
5378
echo $ECHO_N "checking for main in -lxml2... $ECHO_C" >&6
5379
if test "${ac_cv_lib_xml2_main+set}" = set; then
5380
echo $ECHO_N "(cached) $ECHO_C" >&6
5382
ac_check_lib_save_LIBS=$LIBS
5384
cat >conftest.$ac_ext <<_ACEOF
5387
cat confdefs.h >>conftest.$ac_ext
5388
cat >>conftest.$ac_ext <<_ACEOF
5389
/* end confdefs.h. */
5400
rm -f conftest.$ac_objext conftest$ac_exeext
5401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402
(eval $ac_link) 2>conftest.er1
5404
grep -v '^ *+' conftest.er1 >conftest.err
5406
cat conftest.err >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); } &&
5409
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414
(exit $ac_status); }; } &&
5415
{ ac_try='test -s conftest$ac_exeext'
5416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420
(exit $ac_status); }; }; then
5421
ac_cv_lib_xml2_main=yes
5423
echo "$as_me: failed program was:" >&5
5424
sed 's/^/| /' conftest.$ac_ext >&5
5426
ac_cv_lib_xml2_main=no
5428
rm -f conftest.err conftest.$ac_objext \
5429
conftest$ac_exeext conftest.$ac_ext
5430
LIBS=$ac_check_lib_save_LIBS
5432
echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_main" >&5
5433
echo "${ECHO_T}$ac_cv_lib_xml2_main" >&6
5434
if test $ac_cv_lib_xml2_main = yes; then
5435
cat >>confdefs.h <<_ACEOF
5436
#define HAVE_LIBXML2 1
5442
{ { echo "$as_me:$LINENO: error: CONFIG: You need libxml2-dev installed.
5443
http://www.xmlsoft.org/" >&5
5444
echo "$as_me: error: CONFIG: You need libxml2-dev installed.
5445
http://www.xmlsoft.org/" >&2;}
5446
{ (exit 1); exit 1; }; }
5451
echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5452
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5453
if test "${ac_cv_lib_m_sqrt+set}" = set; then
5454
echo $ECHO_N "(cached) $ECHO_C" >&6
5456
ac_check_lib_save_LIBS=$LIBS
5458
cat >conftest.$ac_ext <<_ACEOF
5461
cat confdefs.h >>conftest.$ac_ext
5462
cat >>conftest.$ac_ext <<_ACEOF
5463
/* end confdefs.h. */
5465
/* Override any gcc2 internal prototype to avoid an error. */
5469
/* We use char because int might match the return type of a gcc2
5470
builtin and then its argument prototype would still apply. */
5480
rm -f conftest.$ac_objext conftest$ac_exeext
5481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482
(eval $ac_link) 2>conftest.er1
5484
grep -v '^ *+' conftest.er1 >conftest.err
5486
cat conftest.err >&5
5487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488
(exit $ac_status); } &&
5489
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
(exit $ac_status); }; } &&
5495
{ ac_try='test -s conftest$ac_exeext'
5496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
(exit $ac_status); }; }; then
5501
ac_cv_lib_m_sqrt=yes
5503
echo "$as_me: failed program was:" >&5
5504
sed 's/^/| /' conftest.$ac_ext >&5
5508
rm -f conftest.err conftest.$ac_objext \
5509
conftest$ac_exeext conftest.$ac_ext
5510
LIBS=$ac_check_lib_save_LIBS
5512
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5513
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5514
if test $ac_cv_lib_m_sqrt = yes; then
5515
cat >>confdefs.h <<_ACEOF
5522
{ { echo "$as_me:$LINENO: error: CORE: You need libm installed" >&5
5523
echo "$as_me: error: CORE: You need libm installed" >&2;}
5524
{ (exit 1); exit 1; }; }
5528
echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
5529
echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
5530
if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
5531
echo $ECHO_N "(cached) $ECHO_C" >&6
5533
ac_check_lib_save_LIBS=$LIBS
5534
LIBS="-lpthread $LIBS"
5535
cat >conftest.$ac_ext <<_ACEOF
5538
cat confdefs.h >>conftest.$ac_ext
5539
cat >>conftest.$ac_ext <<_ACEOF
5540
/* end confdefs.h. */
5542
/* Override any gcc2 internal prototype to avoid an error. */
5546
/* We use char because int might match the return type of a gcc2
5547
builtin and then its argument prototype would still apply. */
5548
char pthread_self ();
5557
rm -f conftest.$ac_objext conftest$ac_exeext
5558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559
(eval $ac_link) 2>conftest.er1
5561
grep -v '^ *+' conftest.er1 >conftest.err
5563
cat conftest.err >&5
5564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565
(exit $ac_status); } &&
5566
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571
(exit $ac_status); }; } &&
5572
{ ac_try='test -s conftest$ac_exeext'
5573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); }; }; then
5578
ac_cv_lib_pthread_pthread_self=yes
5580
echo "$as_me: failed program was:" >&5
5581
sed 's/^/| /' conftest.$ac_ext >&5
5583
ac_cv_lib_pthread_pthread_self=no
5585
rm -f conftest.err conftest.$ac_objext \
5586
conftest$ac_exeext conftest.$ac_ext
5587
LIBS=$ac_check_lib_save_LIBS
5589
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
5590
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
5591
if test $ac_cv_lib_pthread_pthread_self = yes; then
5592
cat >>confdefs.h <<_ACEOF
5593
#define HAVE_LIBPTHREAD 1
5596
LIBS="-lpthread $LIBS"
5599
{ { echo "$as_me:$LINENO: error: CORE: You need libpthread installed" >&5
5600
echo "$as_me: error: CORE: You need libpthread installed" >&2;}
5601
{ (exit 1); exit 1; }; }
5606
echo "$as_me:$LINENO: checking for main in -lasound" >&5
5607
echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
5608
if test "${ac_cv_lib_asound_main+set}" = set; then
5609
echo $ECHO_N "(cached) $ECHO_C" >&6
5611
ac_check_lib_save_LIBS=$LIBS
5612
LIBS="-lasound $LIBS"
5613
cat >conftest.$ac_ext <<_ACEOF
5616
cat confdefs.h >>conftest.$ac_ext
5617
cat >>conftest.$ac_ext <<_ACEOF
5618
/* end confdefs.h. */
5629
rm -f conftest.$ac_objext conftest$ac_exeext
5630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631
(eval $ac_link) 2>conftest.er1
5633
grep -v '^ *+' conftest.er1 >conftest.err
5635
cat conftest.err >&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); } &&
5638
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; } &&
5644
{ ac_try='test -s conftest$ac_exeext'
5645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649
(exit $ac_status); }; }; then
5650
ac_cv_lib_asound_main=yes
5652
echo "$as_me: failed program was:" >&5
5653
sed 's/^/| /' conftest.$ac_ext >&5
5655
ac_cv_lib_asound_main=no
5657
rm -f conftest.err conftest.$ac_objext \
5658
conftest$ac_exeext conftest.$ac_ext
5659
LIBS=$ac_check_lib_save_LIBS
5661
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
5662
echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
5663
if test $ac_cv_lib_asound_main = yes; then
5664
cat >>confdefs.h <<_ACEOF
5665
#define HAVE_LIBASOUND 1
5668
LIBS="-lasound $LIBS"
5671
{ { echo "$as_me:$LINENO: error: AUDIO: You need ALSA installed (libasound2-dev).
5672
http://www.alsa-project.org/" >&5
5673
echo "$as_me: error: AUDIO: You need ALSA installed (libasound2-dev).
5674
http://www.alsa-project.org/" >&2;}
5675
{ (exit 1); exit 1; }; }
5680
echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
5681
echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
5682
if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
5683
echo $ECHO_N "(cached) $ECHO_C" >&6
5685
ac_check_lib_save_LIBS=$LIBS
5687
cat >conftest.$ac_ext <<_ACEOF
5690
cat confdefs.h >>conftest.$ac_ext
5691
cat >>conftest.$ac_ext <<_ACEOF
5692
/* end confdefs.h. */
5694
/* Override any gcc2 internal prototype to avoid an error. */
5698
/* We use char because int might match the return type of a gcc2
5699
builtin and then its argument prototype would still apply. */
5700
char jack_client_new ();
5709
rm -f conftest.$ac_objext conftest$ac_exeext
5710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711
(eval $ac_link) 2>conftest.er1
5713
grep -v '^ *+' conftest.er1 >conftest.err
5715
cat conftest.err >&5
5716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
(exit $ac_status); } &&
5718
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); }; } &&
5724
{ ac_try='test -s conftest$ac_exeext'
5725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729
(exit $ac_status); }; }; then
5730
ac_cv_lib_jack_jack_client_new=yes
5732
echo "$as_me: failed program was:" >&5
5733
sed 's/^/| /' conftest.$ac_ext >&5
5735
ac_cv_lib_jack_jack_client_new=no
5737
rm -f conftest.err conftest.$ac_objext \
5738
conftest$ac_exeext conftest.$ac_ext
5739
LIBS=$ac_check_lib_save_LIBS
5741
echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
5742
echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
5743
if test $ac_cv_lib_jack_jack_client_new = yes; then
5744
cat >>confdefs.h <<_ACEOF
5745
#define HAVE_LIBJACK 1
5751
{ { echo "$as_me:$LINENO: error: AUDIO: You need JACK audio library (libjack-dev) installed.
5752
http://jackit.sourceforge.net/" >&5
5753
echo "$as_me: error: AUDIO: You need JACK audio library (libjack-dev) installed.
5754
http://jackit.sourceforge.net/" >&2;}
5755
{ (exit 1); exit 1; }; }
5759
if test "$enable_fluidsynth" != "no"; then
5760
echo "$as_me:$LINENO: checking for main in -lfluidsynth" >&5
5761
echo $ECHO_N "checking for main in -lfluidsynth... $ECHO_C" >&6
5762
if test "${ac_cv_lib_fluidsynth_main+set}" = set; then
5763
echo $ECHO_N "(cached) $ECHO_C" >&6
5765
ac_check_lib_save_LIBS=$LIBS
5766
LIBS="-lfluidsynth $LIBS"
5767
cat >conftest.$ac_ext <<_ACEOF
5770
cat confdefs.h >>conftest.$ac_ext
5771
cat >>conftest.$ac_ext <<_ACEOF
5772
/* end confdefs.h. */
5783
rm -f conftest.$ac_objext conftest$ac_exeext
5784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785
(eval $ac_link) 2>conftest.er1
5787
grep -v '^ *+' conftest.er1 >conftest.err
5789
cat conftest.err >&5
5790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
(exit $ac_status); } &&
5792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
(exit $ac_status); }; } &&
5798
{ ac_try='test -s conftest$ac_exeext'
5799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803
(exit $ac_status); }; }; then
5804
ac_cv_lib_fluidsynth_main=yes
5806
echo "$as_me: failed program was:" >&5
5807
sed 's/^/| /' conftest.$ac_ext >&5
5809
ac_cv_lib_fluidsynth_main=no
5811
rm -f conftest.err conftest.$ac_objext \
5812
conftest$ac_exeext conftest.$ac_ext
5813
LIBS=$ac_check_lib_save_LIBS
5815
echo "$as_me:$LINENO: result: $ac_cv_lib_fluidsynth_main" >&5
5816
echo "${ECHO_T}$ac_cv_lib_fluidsynth_main" >&6
5817
if test $ac_cv_lib_fluidsynth_main = yes; then
5823
if test "$fluidsynth" = "yes"; then
5824
LIBS="$LIBS -lfluidsynth"
5826
cat >>confdefs.h <<\_ACEOF
5827
#define USE_FLUIDSYNTH 1
5830
echo "--- Enabling integrated FluidSynth synth ---";
5832
echo "--- No libfluidsynth -- FluidSynth support will not be built! ---";
5835
echo "--- Disabling integrated FluidSynth synth ---";
5839
# Make sure we can run config.sub.
5840
$ac_config_sub sun4 >/dev/null 2>&1 ||
5841
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5842
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5843
{ (exit 1); exit 1; }; }
5845
echo "$as_me:$LINENO: checking build system type" >&5
5846
echo $ECHO_N "checking build system type... $ECHO_C" >&6
5847
if test "${ac_cv_build+set}" = set; then
5848
echo $ECHO_N "(cached) $ECHO_C" >&6
5850
ac_cv_build_alias=$build_alias
5851
test -z "$ac_cv_build_alias" &&
5852
ac_cv_build_alias=`$ac_config_guess`
5853
test -z "$ac_cv_build_alias" &&
5854
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5855
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5856
{ (exit 1); exit 1; }; }
5857
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5858
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5859
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5860
{ (exit 1); exit 1; }; }
5863
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5864
echo "${ECHO_T}$ac_cv_build" >&6
5866
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5867
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5868
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5871
echo "$as_me:$LINENO: checking host system type" >&5
5872
echo $ECHO_N "checking host system type... $ECHO_C" >&6
5873
if test "${ac_cv_host+set}" = set; then
5874
echo $ECHO_N "(cached) $ECHO_C" >&6
5876
ac_cv_host_alias=$host_alias
5877
test -z "$ac_cv_host_alias" &&
5878
ac_cv_host_alias=$ac_cv_build_alias
5879
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5880
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5881
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5882
{ (exit 1); exit 1; }; }
5885
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5886
echo "${ECHO_T}$ac_cv_host" >&6
5888
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5889
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5890
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5893
echo "$as_me:$LINENO: checking target system type" >&5
5894
echo $ECHO_N "checking target system type... $ECHO_C" >&6
5895
if test "${ac_cv_target+set}" = set; then
5896
echo $ECHO_N "(cached) $ECHO_C" >&6
5898
ac_cv_target_alias=$target_alias
5899
test "x$ac_cv_target_alias" = "x" &&
5900
ac_cv_target_alias=$ac_cv_host_alias
5901
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
5902
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
5903
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
5904
{ (exit 1); exit 1; }; }
5907
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5908
echo "${ECHO_T}$ac_cv_target" >&6
5909
target=$ac_cv_target
5910
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5911
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5912
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5915
# The aliases save the names the user supplied, while $host etc.
5916
# will get canonicalized.
5917
test -n "$target_alias" &&
5918
test "$program_prefix$program_suffix$program_transform_name" = \
5920
program_prefix=${target_alias}-
5922
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
5923
if test "${with_sdl_prefix+set}" = set; then
5924
withval="$with_sdl_prefix"
5925
sdl_prefix="$withval"
5930
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
5931
if test "${with_sdl_exec_prefix+set}" = set; then
5932
withval="$with_sdl_exec_prefix"
5933
sdl_exec_prefix="$withval"
5937
# Check whether --enable-sdltest or --disable-sdltest was given.
5938
if test "${enable_sdltest+set}" = set; then
5939
enableval="$enable_sdltest"
5945
if test x$sdl_exec_prefix != x ; then
5946
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
5947
if test x${SDL_CONFIG+set} != xset ; then
5948
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
5951
if test x$sdl_prefix != x ; then
5952
sdl_args="$sdl_args --prefix=$sdl_prefix"
5953
if test x${SDL_CONFIG+set} != xset ; then
5954
SDL_CONFIG=$sdl_prefix/bin/sdl-config
5959
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
5960
# Extract the first word of "sdl-config", so it can be a program name with args.
5961
set dummy sdl-config; ac_word=$2
5962
echo "$as_me:$LINENO: checking for $ac_word" >&5
5963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5969
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976
test -z "$as_dir" && as_dir=.
5977
for ac_exec_ext in '' $ac_executable_extensions; do
5978
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5980
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5990
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
5992
if test -n "$SDL_CONFIG"; then
5993
echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
5994
echo "${ECHO_T}$SDL_CONFIG" >&6
5996
echo "$as_me:$LINENO: result: no" >&5
5997
echo "${ECHO_T}no" >&6
6000
min_sdl_version=$SDL_VERSION
6001
echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
6002
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
6004
if test "$SDL_CONFIG" = "no" ; then
6007
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
6008
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
6010
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
6011
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6012
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
6013
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6014
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
6015
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6016
if test "x$enable_sdltest" = "xyes" ; then
6017
ac_save_CFLAGS="$CFLAGS"
6018
ac_save_LIBS="$LIBS"
6019
CFLAGS="$CFLAGS $SDL_CFLAGS"
6020
LIBS="$LIBS $SDL_LIBS"
6022
if test "$cross_compiling" = yes; then
6023
echo $ac_n "cross compiling; assumed OK... $ac_c"
6025
cat >conftest.$ac_ext <<_ACEOF
6028
cat confdefs.h >>conftest.$ac_ext
6029
cat >>conftest.$ac_ext <<_ACEOF
6030
/* end confdefs.h. */
6038
my_strdup (char *str)
6044
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
6045
strcpy (new_str, str);
6053
int main (int argc, char *argv[])
6055
int major, minor, micro;
6058
/* This hangs on some systems (?)
6059
system ("touch conf.sdltest");
6061
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
6063
/* HP/UX 9 (%@#!) writes to sscanf strings */
6064
tmp_version = my_strdup("$min_sdl_version");
6065
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6066
printf("%s, bad version string\n", "$min_sdl_version");
6070
if (($sdl_major_version > major) ||
6071
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
6072
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
6078
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
6079
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
6080
printf("*** best to upgrade to the required version.\n");
6081
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
6082
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
6083
printf("*** config.cache before re-running configure\n");
6090
rm -f conftest$ac_exeext
6091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092
(eval $ac_link) 2>&5
6094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100
(exit $ac_status); }; }; then
6103
echo "$as_me: program exited with status $ac_status" >&5
6104
echo "$as_me: failed program was:" >&5
6105
sed 's/^/| /' conftest.$ac_ext >&5
6110
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6112
CFLAGS="$ac_save_CFLAGS"
6113
LIBS="$ac_save_LIBS"
6116
if test "x$no_sdl" = x ; then
6117
echo "$as_me:$LINENO: result: yes" >&5
6118
echo "${ECHO_T}yes" >&6
6121
echo "$as_me:$LINENO: result: no" >&5
6122
echo "${ECHO_T}no" >&6
6123
if test "$SDL_CONFIG" = "no" ; then
6124
echo "*** The sdl-config script installed by SDL could not be found"
6125
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
6126
echo "*** your path, or set the SDL_CONFIG environment variable to the"
6127
echo "*** full path to sdl-config."
6129
if test -f conf.sdltest ; then
6132
echo "*** Could not run SDL test program, checking why..."
6133
CFLAGS="$CFLAGS $SDL_CFLAGS"
6134
LIBS="$LIBS $SDL_LIBS"
6135
cat >conftest.$ac_ext <<_ACEOF
6138
cat confdefs.h >>conftest.$ac_ext
6139
cat >>conftest.$ac_ext <<_ACEOF
6140
/* end confdefs.h. */
6145
int main(int argc, char *argv[])
6148
#define main K_and_R_C_main
6158
rm -f conftest.$ac_objext conftest$ac_exeext
6159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160
(eval $ac_link) 2>conftest.er1
6162
grep -v '^ *+' conftest.er1 >conftest.err
6164
cat conftest.err >&5
6165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166
(exit $ac_status); } &&
6167
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172
(exit $ac_status); }; } &&
6173
{ ac_try='test -s conftest$ac_exeext'
6174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178
(exit $ac_status); }; }; then
6179
echo "*** The test program compiled, but did not run. This usually means"
6180
echo "*** that the run-time linker is not finding SDL or finding the wrong"
6181
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
6182
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6183
echo "*** to the installed location Also, make sure you have run ldconfig if that"
6184
echo "*** is required on your system"
6186
echo "*** If you have an old version installed, it is best to remove it, although"
6187
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6189
echo "$as_me: failed program was:" >&5
6190
sed 's/^/| /' conftest.$ac_ext >&5
6192
echo "*** The test program failed to compile or link. See the file config.log for the"
6193
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
6194
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
6195
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
6197
rm -f conftest.err conftest.$ac_objext \
6198
conftest$ac_exeext conftest.$ac_ext
6199
CFLAGS="$ac_save_CFLAGS"
6200
LIBS="$ac_save_LIBS"
6205
{ { echo "$as_me:$LINENO: error: VIDEO: *** SDL version $SDL_VERSION not found!
6206
http://www.libsdl.org/" >&5
6207
echo "$as_me: error: VIDEO: *** SDL version $SDL_VERSION not found!
6208
http://www.libsdl.org/" >&2;}
6209
{ (exit 1); exit 1; }; }
6218
echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
6219
echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
6220
if test "${ac_cv_lib_vorbis_main+set}" = set; then
6221
echo $ECHO_N "(cached) $ECHO_C" >&6
6223
ac_check_lib_save_LIBS=$LIBS
6224
LIBS="-lvorbis $LIBS"
6225
cat >conftest.$ac_ext <<_ACEOF
6228
cat confdefs.h >>conftest.$ac_ext
6229
cat >>conftest.$ac_ext <<_ACEOF
6230
/* end confdefs.h. */
6241
rm -f conftest.$ac_objext conftest$ac_exeext
6242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243
(eval $ac_link) 2>conftest.er1
6245
grep -v '^ *+' conftest.er1 >conftest.err
6247
cat conftest.err >&5
6248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249
(exit $ac_status); } &&
6250
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255
(exit $ac_status); }; } &&
6256
{ ac_try='test -s conftest$ac_exeext'
6257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261
(exit $ac_status); }; }; then
6262
ac_cv_lib_vorbis_main=yes
6264
echo "$as_me: failed program was:" >&5
6265
sed 's/^/| /' conftest.$ac_ext >&5
6267
ac_cv_lib_vorbis_main=no
6269
rm -f conftest.err conftest.$ac_objext \
6270
conftest$ac_exeext conftest.$ac_ext
6271
LIBS=$ac_check_lib_save_LIBS
6273
echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
6274
echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
6275
if test $ac_cv_lib_vorbis_main = yes; then
6276
cat >>confdefs.h <<_ACEOF
6277
#define HAVE_LIBVORBIS 1
6280
LIBS="-lvorbis $LIBS"
6283
{ { echo "$as_me:$LINENO: error: AUDIO: You need libvorbis-dev installed.
6284
http://www.xiph.org/ogg/vorbis/" >&5
6285
echo "$as_me: error: AUDIO: You need libvorbis-dev installed.
6286
http://www.xiph.org/ogg/vorbis/" >&2;}
6287
{ (exit 1); exit 1; }; }
6291
echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
6292
echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
6293
if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
6294
echo $ECHO_N "(cached) $ECHO_C" >&6
6296
ac_check_lib_save_LIBS=$LIBS
6297
LIBS="-lvorbisfile $LIBS"
6298
cat >conftest.$ac_ext <<_ACEOF
6301
cat confdefs.h >>conftest.$ac_ext
6302
cat >>conftest.$ac_ext <<_ACEOF
6303
/* end confdefs.h. */
6314
rm -f conftest.$ac_objext conftest$ac_exeext
6315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316
(eval $ac_link) 2>conftest.er1
6318
grep -v '^ *+' conftest.er1 >conftest.err
6320
cat conftest.err >&5
6321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322
(exit $ac_status); } &&
6323
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328
(exit $ac_status); }; } &&
6329
{ ac_try='test -s conftest$ac_exeext'
6330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334
(exit $ac_status); }; }; then
6335
ac_cv_lib_vorbisfile_main=yes
6337
echo "$as_me: failed program was:" >&5
6338
sed 's/^/| /' conftest.$ac_ext >&5
6340
ac_cv_lib_vorbisfile_main=no
6342
rm -f conftest.err conftest.$ac_objext \
6343
conftest$ac_exeext conftest.$ac_ext
6344
LIBS=$ac_check_lib_save_LIBS
6346
echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
6347
echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
6348
if test $ac_cv_lib_vorbisfile_main = yes; then
6349
cat >>confdefs.h <<_ACEOF
6350
#define HAVE_LIBVORBISFILE 1
6353
LIBS="-lvorbisfile $LIBS"
6356
{ { echo "$as_me:$LINENO: error: AUDIO: You need libvorbisfile installed.
6357
http://www.xiph.org/ogg/vorbis/" >&5
6358
echo "$as_me: error: AUDIO: You need libvorbisfile installed.
6359
http://www.xiph.org/ogg/vorbis/" >&2;}
6360
{ (exit 1); exit 1; }; }
6364
echo "$as_me:$LINENO: checking for main in -lvorbisenc" >&5
6365
echo $ECHO_N "checking for main in -lvorbisenc... $ECHO_C" >&6
6366
if test "${ac_cv_lib_vorbisenc_main+set}" = set; then
6367
echo $ECHO_N "(cached) $ECHO_C" >&6
6369
ac_check_lib_save_LIBS=$LIBS
6370
LIBS="-lvorbisenc $LIBS"
6371
cat >conftest.$ac_ext <<_ACEOF
6374
cat confdefs.h >>conftest.$ac_ext
6375
cat >>conftest.$ac_ext <<_ACEOF
6376
/* end confdefs.h. */
6387
rm -f conftest.$ac_objext conftest$ac_exeext
6388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389
(eval $ac_link) 2>conftest.er1
6391
grep -v '^ *+' conftest.er1 >conftest.err
6393
cat conftest.err >&5
6394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395
(exit $ac_status); } &&
6396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401
(exit $ac_status); }; } &&
6402
{ ac_try='test -s conftest$ac_exeext'
6403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407
(exit $ac_status); }; }; then
6408
ac_cv_lib_vorbisenc_main=yes
6410
echo "$as_me: failed program was:" >&5
6411
sed 's/^/| /' conftest.$ac_ext >&5
6413
ac_cv_lib_vorbisenc_main=no
6415
rm -f conftest.err conftest.$ac_objext \
6416
conftest$ac_exeext conftest.$ac_ext
6417
LIBS=$ac_check_lib_save_LIBS
6419
echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisenc_main" >&5
6420
echo "${ECHO_T}$ac_cv_lib_vorbisenc_main" >&6
6421
if test $ac_cv_lib_vorbisenc_main = yes; then
6422
cat >>confdefs.h <<_ACEOF
6423
#define HAVE_LIBVORBISENC 1
6426
LIBS="-lvorbisenc $LIBS"
6429
{ { echo "$as_me:$LINENO: error: AUDIO: You need libvorbis-dev installed.
6430
http://www.xiph.org/ogg/vorbis/" >&5
6431
echo "$as_me: error: AUDIO: You need libvorbis-dev installed.
6432
http://www.xiph.org/ogg/vorbis/" >&2;}
6433
{ (exit 1); exit 1; }; }
6437
CFLAGS="$CFLAGS $SDL_CFLAGS"
6438
LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
6439
LIBS="$LIBS $SDL_LIBS"
6441
# Checks for header files.
6442
echo "$as_me:$LINENO: checking for X" >&5
6443
echo $ECHO_N "checking for X... $ECHO_C" >&6
6445
ac_path_x_has_been_run=yes
6447
# Check whether --with-x or --without-x was given.
6448
if test "${with_x+set}" = set; then
6452
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6453
if test "x$with_x" = xno; then
6454
# The user explicitly disabled X.
6457
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6458
# Both variables are already set.
6461
if test "${ac_cv_have_x+set}" = set; then
6462
echo $ECHO_N "(cached) $ECHO_C" >&6
6464
# One or both of the vars are not set, and there is no cached value.
6465
ac_x_includes=no ac_x_libraries=no
6467
if mkdir conftest.dir; then
6469
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
6470
cat >Imakefile <<'_ACEOF'
6472
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6474
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6475
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6476
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6477
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6478
for ac_extension in a so sl; do
6479
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6480
test -f $ac_im_libdir/libX11.$ac_extension; then
6481
ac_im_usrlibdir=$ac_im_libdir; break
6484
# Screen out bogus values from the imake configuration. They are
6485
# bogus both because they are the default anyway, and because
6486
# using them would break gcc on systems where it needs fixed includes.
6487
case $ac_im_incroot in
6489
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6491
case $ac_im_usrlibdir in
6493
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6500
# Standard set of common directories for X headers.
6501
# Check X11 before X11Rn because it is often a symlink to the current release.
6513
/usr/local/X11/include
6514
/usr/local/X11R6/include
6515
/usr/local/X11R5/include
6516
/usr/local/X11R4/include
6518
/usr/local/include/X11
6519
/usr/local/include/X11R6
6520
/usr/local/include/X11R5
6521
/usr/local/include/X11R4
6525
/usr/XFree86/include/X11
6529
/usr/unsupported/include
6531
/usr/local/x11r5/include
6532
/usr/lpp/Xamples/include
6534
/usr/openwin/include
6535
/usr/openwin/share/include'
6537
if test "$ac_x_includes" = no; then
6538
# Guess where to find include files, by looking for a specified header file.
6539
# First, try using that file with no special directory specified.
6540
cat >conftest.$ac_ext <<_ACEOF
6543
cat confdefs.h >>conftest.$ac_ext
6544
cat >>conftest.$ac_ext <<_ACEOF
6545
/* end confdefs.h. */
6546
#include <X11/Intrinsic.h>
6548
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6549
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6551
grep -v '^ *+' conftest.er1 >conftest.err
6553
cat conftest.err >&5
6554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
(exit $ac_status); } >/dev/null; then
6556
if test -s conftest.err; then
6557
ac_cpp_err=$ac_c_preproc_warn_flag
6558
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6565
if test -z "$ac_cpp_err"; then
6566
# We can compile using X headers with no special include directory.
6569
echo "$as_me: failed program was:" >&5
6570
sed 's/^/| /' conftest.$ac_ext >&5
6572
for ac_dir in $ac_x_header_dirs; do
6573
if test -r "$ac_dir/X11/Intrinsic.h"; then
6574
ac_x_includes=$ac_dir
6579
rm -f conftest.err conftest.$ac_ext
6580
fi # $ac_x_includes = no
6582
if test "$ac_x_libraries" = no; then
6583
# Check for the libraries.
6584
# See if we find them without any special options.
6585
# Don't add to $LIBS permanently.
6588
cat >conftest.$ac_ext <<_ACEOF
6591
cat confdefs.h >>conftest.$ac_ext
6592
cat >>conftest.$ac_ext <<_ACEOF
6593
/* end confdefs.h. */
6594
#include <X11/Intrinsic.h>
6603
rm -f conftest.$ac_objext conftest$ac_exeext
6604
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605
(eval $ac_link) 2>conftest.er1
6607
grep -v '^ *+' conftest.er1 >conftest.err
6609
cat conftest.err >&5
6610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611
(exit $ac_status); } &&
6612
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617
(exit $ac_status); }; } &&
6618
{ ac_try='test -s conftest$ac_exeext'
6619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623
(exit $ac_status); }; }; then
6625
# We can link X programs with no special library path.
6628
echo "$as_me: failed program was:" >&5
6629
sed 's/^/| /' conftest.$ac_ext >&5
6632
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6634
# Don't even attempt the hair of trying to link an X program!
6635
for ac_extension in a so sl; do
6636
if test -r $ac_dir/libXt.$ac_extension; then
6637
ac_x_libraries=$ac_dir
6643
rm -f conftest.err conftest.$ac_objext \
6644
conftest$ac_exeext conftest.$ac_ext
6645
fi # $ac_x_libraries = no
6647
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6648
# Didn't find X anywhere. Cache the known absence of X.
6649
ac_cv_have_x="have_x=no"
6651
# Record where we found X for the cache.
6652
ac_cv_have_x="have_x=yes \
6653
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6658
eval "$ac_cv_have_x"
6661
if test "$have_x" != yes; then
6662
echo "$as_me:$LINENO: result: $have_x" >&5
6663
echo "${ECHO_T}$have_x" >&6
6666
# If each of the values was on the command line, it overrides each guess.
6667
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6668
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6669
# Update the cache value to reflect the command line values.
6670
ac_cv_have_x="have_x=yes \
6671
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6672
# It might be that x_includes is empty (headers are found in the
6673
# standard search path. Then output the corresponding message
6674
ac_out_x_includes=$x_includes
6675
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6676
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6677
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6680
echo "$as_me:$LINENO: checking for egrep" >&5
6681
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6682
if test "${ac_cv_prog_egrep+set}" = set; then
6683
echo $ECHO_N "(cached) $ECHO_C" >&6
6685
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6686
then ac_cv_prog_egrep='grep -E'
6687
else ac_cv_prog_egrep='egrep'
6690
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6691
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6692
EGREP=$ac_cv_prog_egrep
6695
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6696
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6697
if test "${ac_cv_header_stdc+set}" = set; then
6698
echo $ECHO_N "(cached) $ECHO_C" >&6
6700
cat >conftest.$ac_ext <<_ACEOF
6703
cat confdefs.h >>conftest.$ac_ext
6704
cat >>conftest.$ac_ext <<_ACEOF
6705
/* end confdefs.h. */
6719
rm -f conftest.$ac_objext
6720
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721
(eval $ac_compile) 2>conftest.er1
6723
grep -v '^ *+' conftest.er1 >conftest.err
6725
cat conftest.err >&5
6726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727
(exit $ac_status); } &&
6728
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733
(exit $ac_status); }; } &&
6734
{ ac_try='test -s conftest.$ac_objext'
6735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739
(exit $ac_status); }; }; then
6740
ac_cv_header_stdc=yes
6742
echo "$as_me: failed program was:" >&5
6743
sed 's/^/| /' conftest.$ac_ext >&5
6745
ac_cv_header_stdc=no
6747
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749
if test $ac_cv_header_stdc = yes; then
6750
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6751
cat >conftest.$ac_ext <<_ACEOF
6754
cat confdefs.h >>conftest.$ac_ext
6755
cat >>conftest.$ac_ext <<_ACEOF
6756
/* end confdefs.h. */
6760
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761
$EGREP "memchr" >/dev/null 2>&1; then
6764
ac_cv_header_stdc=no
6770
if test $ac_cv_header_stdc = yes; then
6771
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6772
cat >conftest.$ac_ext <<_ACEOF
6775
cat confdefs.h >>conftest.$ac_ext
6776
cat >>conftest.$ac_ext <<_ACEOF
6777
/* end confdefs.h. */
6781
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6782
$EGREP "free" >/dev/null 2>&1; then
6785
ac_cv_header_stdc=no
6791
if test $ac_cv_header_stdc = yes; then
6792
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6793
if test "$cross_compiling" = yes; then
6796
cat >conftest.$ac_ext <<_ACEOF
6799
cat confdefs.h >>conftest.$ac_ext
6800
cat >>conftest.$ac_ext <<_ACEOF
6801
/* end confdefs.h. */
6803
#if ((' ' & 0x0FF) == 0x020)
6804
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6805
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6807
# define ISLOWER(c) \
6808
(('a' <= (c) && (c) <= 'i') \
6809
|| ('j' <= (c) && (c) <= 'r') \
6810
|| ('s' <= (c) && (c) <= 'z'))
6811
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6814
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6819
for (i = 0; i < 256; i++)
6820
if (XOR (islower (i), ISLOWER (i))
6821
|| toupper (i) != TOUPPER (i))
6826
rm -f conftest$ac_exeext
6827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828
(eval $ac_link) 2>&5
6830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836
(exit $ac_status); }; }; then
6839
echo "$as_me: program exited with status $ac_status" >&5
6840
echo "$as_me: failed program was:" >&5
6841
sed 's/^/| /' conftest.$ac_ext >&5
6844
ac_cv_header_stdc=no
6846
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6850
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6851
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6852
if test $ac_cv_header_stdc = yes; then
6854
cat >>confdefs.h <<\_ACEOF
6855
#define STDC_HEADERS 1
6860
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6870
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6871
inttypes.h stdint.h unistd.h
6873
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6874
echo "$as_me:$LINENO: checking for $ac_header" >&5
6875
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6876
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6877
echo $ECHO_N "(cached) $ECHO_C" >&6
6879
cat >conftest.$ac_ext <<_ACEOF
6882
cat confdefs.h >>conftest.$ac_ext
6883
cat >>conftest.$ac_ext <<_ACEOF
6884
/* end confdefs.h. */
6885
$ac_includes_default
6887
#include <$ac_header>
6889
rm -f conftest.$ac_objext
6890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891
(eval $ac_compile) 2>conftest.er1
6893
grep -v '^ *+' conftest.er1 >conftest.err
6895
cat conftest.err >&5
6896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897
(exit $ac_status); } &&
6898
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903
(exit $ac_status); }; } &&
6904
{ ac_try='test -s conftest.$ac_objext'
6905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909
(exit $ac_status); }; }; then
6910
eval "$as_ac_Header=yes"
6912
echo "$as_me: failed program was:" >&5
6913
sed 's/^/| /' conftest.$ac_ext >&5
6915
eval "$as_ac_Header=no"
6917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6921
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6922
cat >>confdefs.h <<_ACEOF
6923
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936
for ac_header in errno.h stdlib.h string.h sys/time.h unistd.h
6938
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6939
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6940
echo "$as_me:$LINENO: checking for $ac_header" >&5
6941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6943
echo $ECHO_N "(cached) $ECHO_C" >&6
6945
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6948
# Is the header compilable?
6949
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6950
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6951
cat >conftest.$ac_ext <<_ACEOF
6954
cat confdefs.h >>conftest.$ac_ext
6955
cat >>conftest.$ac_ext <<_ACEOF
6956
/* end confdefs.h. */
6957
$ac_includes_default
6958
#include <$ac_header>
6960
rm -f conftest.$ac_objext
6961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962
(eval $ac_compile) 2>conftest.er1
6964
grep -v '^ *+' conftest.er1 >conftest.err
6966
cat conftest.err >&5
6967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968
(exit $ac_status); } &&
6969
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974
(exit $ac_status); }; } &&
6975
{ ac_try='test -s conftest.$ac_objext'
6976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980
(exit $ac_status); }; }; then
6981
ac_header_compiler=yes
6983
echo "$as_me: failed program was:" >&5
6984
sed 's/^/| /' conftest.$ac_ext >&5
6986
ac_header_compiler=no
6988
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6989
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6990
echo "${ECHO_T}$ac_header_compiler" >&6
6992
# Is the header present?
6993
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6994
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6995
cat >conftest.$ac_ext <<_ACEOF
6998
cat confdefs.h >>conftest.$ac_ext
6999
cat >>conftest.$ac_ext <<_ACEOF
7000
/* end confdefs.h. */
7001
#include <$ac_header>
7003
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7006
grep -v '^ *+' conftest.er1 >conftest.err
7008
cat conftest.err >&5
7009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010
(exit $ac_status); } >/dev/null; then
7011
if test -s conftest.err; then
7012
ac_cpp_err=$ac_c_preproc_warn_flag
7013
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7020
if test -z "$ac_cpp_err"; then
7021
ac_header_preproc=yes
7023
echo "$as_me: failed program was:" >&5
7024
sed 's/^/| /' conftest.$ac_ext >&5
7026
ac_header_preproc=no
7028
rm -f conftest.err conftest.$ac_ext
7029
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7030
echo "${ECHO_T}$ac_header_preproc" >&6
7032
# So? What about this header?
7033
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7035
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7036
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7037
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7038
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7039
ac_header_preproc=yes
7042
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7043
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7044
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7045
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7046
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7047
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7048
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7049
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7050
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7051
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7052
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7053
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7056
## ------------------------------------------ ##
7057
## Report this to the AC_PACKAGE_NAME lists. ##
7058
## ------------------------------------------ ##
7061
sed "s/^/$as_me: WARNING: /" >&2
7064
echo "$as_me:$LINENO: checking for $ac_header" >&5
7065
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067
echo $ECHO_N "(cached) $ECHO_C" >&6
7069
eval "$as_ac_Header=\$ac_header_preproc"
7071
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7075
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7076
cat >>confdefs.h <<_ACEOF
7077
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7085
# Checks for typedefs, structures, and compiler characteristics.
7086
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7087
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7088
if test "${ac_cv_c_const+set}" = set; then
7089
echo $ECHO_N "(cached) $ECHO_C" >&6
7091
cat >conftest.$ac_ext <<_ACEOF
7094
cat confdefs.h >>conftest.$ac_ext
7095
cat >>conftest.$ac_ext <<_ACEOF
7096
/* end confdefs.h. */
7101
/* FIXME: Include the comments suggested by Paul. */
7103
/* Ultrix mips cc rejects this. */
7104
typedef int charset[2];
7106
/* SunOS 4.1.1 cc rejects this. */
7107
char const *const *ccp;
7109
/* NEC SVR4.0.2 mips cc rejects this. */
7110
struct point {int x, y;};
7111
static struct point const zero = {0,0};
7112
/* AIX XL C 1.02.0.0 rejects this.
7113
It does not let you subtract one const X* pointer from another in
7114
an arm of an if-expression whose if-part is not a constant
7116
const char *g = "string";
7117
ccp = &g + (g ? g-g : 0);
7118
/* HPUX 7.0 cc rejects these. */
7121
ccp = (char const *const *) p;
7122
{ /* SCO 3.2v4 cc rejects this. */
7124
char const *s = 0 ? (char *) 0 : (char const *) 0;
7128
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7130
const int *foo = &x[0];
7133
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7134
typedef const int *iptr;
7138
{ /* AIX XL C 1.02.0.0 rejects this saying
7139
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7140
struct s { int j; const int *ap[3]; };
7141
struct s *b; b->j = 5;
7143
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7152
rm -f conftest.$ac_objext
7153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154
(eval $ac_compile) 2>conftest.er1
7156
grep -v '^ *+' conftest.er1 >conftest.err
7158
cat conftest.err >&5
7159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160
(exit $ac_status); } &&
7161
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166
(exit $ac_status); }; } &&
7167
{ ac_try='test -s conftest.$ac_objext'
7168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172
(exit $ac_status); }; }; then
7175
echo "$as_me: failed program was:" >&5
7176
sed 's/^/| /' conftest.$ac_ext >&5
7180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7183
echo "${ECHO_T}$ac_cv_c_const" >&6
7184
if test $ac_cv_c_const = no; then
7186
cat >>confdefs.h <<\_ACEOF
7192
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7193
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7194
if test "${ac_cv_header_time+set}" = set; then
7195
echo $ECHO_N "(cached) $ECHO_C" >&6
7197
cat >conftest.$ac_ext <<_ACEOF
7200
cat confdefs.h >>conftest.$ac_ext
7201
cat >>conftest.$ac_ext <<_ACEOF
7202
/* end confdefs.h. */
7203
#include <sys/types.h>
7204
#include <sys/time.h>
7210
if ((struct tm *) 0)
7216
rm -f conftest.$ac_objext
7217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218
(eval $ac_compile) 2>conftest.er1
7220
grep -v '^ *+' conftest.er1 >conftest.err
7222
cat conftest.err >&5
7223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224
(exit $ac_status); } &&
7225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230
(exit $ac_status); }; } &&
7231
{ ac_try='test -s conftest.$ac_objext'
7232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
(exit $ac_status); }; }; then
7237
ac_cv_header_time=yes
7239
echo "$as_me: failed program was:" >&5
7240
sed 's/^/| /' conftest.$ac_ext >&5
7242
ac_cv_header_time=no
7244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7247
echo "${ECHO_T}$ac_cv_header_time" >&6
7248
if test $ac_cv_header_time = yes; then
7250
cat >>confdefs.h <<\_ACEOF
7251
#define TIME_WITH_SYS_TIME 1
7257
# Checks for library functions.
7263
for ac_func in floor gettimeofday memset pow sqrt
7265
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7266
echo "$as_me:$LINENO: checking for $ac_func" >&5
7267
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7268
if eval "test \"\${$as_ac_var+set}\" = set"; then
7269
echo $ECHO_N "(cached) $ECHO_C" >&6
7271
cat >conftest.$ac_ext <<_ACEOF
7274
cat confdefs.h >>conftest.$ac_ext
7275
cat >>conftest.$ac_ext <<_ACEOF
7276
/* end confdefs.h. */
7277
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7278
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7279
#define $ac_func innocuous_$ac_func
7281
/* System header to define __stub macros and hopefully few prototypes,
7282
which can conflict with char $ac_func (); below.
7283
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7284
<limits.h> exists even on freestanding compilers. */
7287
# include <limits.h>
7289
# include <assert.h>
7294
/* Override any gcc2 internal prototype to avoid an error. */
7299
/* We use char because int might match the return type of a gcc2
7300
builtin and then its argument prototype would still apply. */
7302
/* The GNU C library defines this for functions which it implements
7303
to always fail with ENOSYS. Some functions are actually named
7304
something starting with __ and the normal name is an alias. */
7305
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7308
char (*f) () = $ac_func;
7317
return f != $ac_func;
7322
rm -f conftest.$ac_objext conftest$ac_exeext
7323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7324
(eval $ac_link) 2>conftest.er1
7326
grep -v '^ *+' conftest.er1 >conftest.err
7328
cat conftest.err >&5
7329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330
(exit $ac_status); } &&
7331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336
(exit $ac_status); }; } &&
7337
{ ac_try='test -s conftest$ac_exeext'
7338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342
(exit $ac_status); }; }; then
7343
eval "$as_ac_var=yes"
7345
echo "$as_me: failed program was:" >&5
7346
sed 's/^/| /' conftest.$ac_ext >&5
7348
eval "$as_ac_var=no"
7350
rm -f conftest.err conftest.$ac_objext \
7351
conftest$ac_exeext conftest.$ac_ext
7353
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7354
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7355
if test `eval echo '${'$as_ac_var'}'` = yes; then
7356
cat >>confdefs.h <<_ACEOF
7357
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7364
ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile"
7365
cat >confcache <<\_ACEOF
7366
# This file is a shell script that caches the results of configure
7367
# tests run on this system so they can be shared between configure
7368
# scripts and configure runs, see configure's option --config-cache.
7369
# It is not useful on other systems. If it contains results you don't
7370
# want to keep, you may remove or edit it.
7372
# config.status only pays attention to the cache file if you give it
7373
# the --recheck option to rerun configure.
7375
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7376
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7381
# The following way of writing the cache mishandles newlines in values,
7382
# but we know of no workaround that is simple, portable, and efficient.
7383
# So, don't put newlines in cache variables' values.
7384
# Ultrix sh set writes to stderr and can't be redirected directly,
7385
# and sets the high bit in the cache file unless we assign to the vars.
7388
case `(ac_space=' '; set | grep ac_space) 2>&1` in
7390
# `set' does not quote correctly, so add quotes (double-quote
7391
# substitution turns \\\\ into \\, and sed turns \\ into \).
7394
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7397
# `set' quotes correctly as required by POSIX, so do not add quotes.
7399
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7406
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7408
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7410
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7411
if test -w $cache_file; then
7412
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7413
cat confcache >$cache_file
7415
echo "not updating unwritable cache $cache_file"
7420
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7421
# Let make expand exec_prefix.
7422
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7424
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7425
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7426
# trailing colons and then remove the whole line if VPATH becomes empty
7427
# (actually we leave an empty line to preserve line numbers).
7428
if test "x$srcdir" = x.; then
7429
ac_vpsub='/^[ ]*VPATH[ ]*=/{
7430
s/:*\$(srcdir):*/:/;
7431
s/:*\${srcdir}:*/:/;
7433
s/^\([^=]*=[ ]*\):*/\1/;
7439
# Transform confdefs.h into DEFS.
7440
# Protect against shell expansion while executing Makefile rules.
7441
# Protect against Makefile macro expansion.
7443
# If the first sed substitution is executed (which looks for macros that
7444
# take arguments), then we branch to the quote section. Otherwise,
7445
# look for a macro that doesn't take arguments.
7446
cat >confdef2opt.sed <<\_ACEOF
7449
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7451
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7455
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7461
# We use echo to avoid assuming a particular line-breaking character.
7462
# The extra dot is to prevent the shell from consuming trailing
7463
# line-breaks from the sub-command output. A line-break within
7464
# single-quotes doesn't work because, if this script is created in a
7465
# platform that uses two characters for line-breaks (e.g., DOS), tr
7467
ac_LF_and_DOT=`echo; echo .`
7468
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7469
rm -f confdef2opt.sed
7474
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7475
# 1. Remove the extension, and $U if already installed.
7476
ac_i=`echo "$ac_i" |
7477
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7479
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7480
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7484
LTLIBOBJS=$ac_ltlibobjs
7487
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7488
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7489
Usually this means the macro was only invoked conditionally." >&5
7490
echo "$as_me: error: conditional \"AMDEP\" was never defined.
7491
Usually this means the macro was only invoked conditionally." >&2;}
7492
{ (exit 1); exit 1; }; }
7494
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7495
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7496
Usually this means the macro was only invoked conditionally." >&5
7497
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7498
Usually this means the macro was only invoked conditionally." >&2;}
7499
{ (exit 1); exit 1; }; }
7501
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7502
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7503
Usually this means the macro was only invoked conditionally." >&5
7504
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7505
Usually this means the macro was only invoked conditionally." >&2;}
7506
{ (exit 1); exit 1; }; }
7509
: ${CONFIG_STATUS=./config.status}
7510
ac_clean_files_save=$ac_clean_files
7511
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7512
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7513
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7514
cat >$CONFIG_STATUS <<_ACEOF
7516
# Generated by $as_me.
7517
# Run this file to recreate the current configuration.
7518
# Compiler output produced by configure, useful for debugging
7519
# configure, is in config.log if it exists.
7524
SHELL=\${CONFIG_SHELL-$SHELL}
7527
cat >>$CONFIG_STATUS <<\_ACEOF
7528
## --------------------- ##
7529
## M4sh Initialization. ##
7530
## --------------------- ##
7532
# Be Bourne compatible
7533
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7536
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7537
# is contrary to our usage. Disable this feature.
7538
alias -g '${1+"$@"}'='"$@"'
7539
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7542
DUALCASE=1; export DUALCASE # for MKS sh
7544
# Support unset when possible.
7545
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7552
# Work around bugs in pre-3.0 UWIN ksh.
7553
$as_unset ENV MAIL MAILPATH
7560
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7561
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7562
LC_TELEPHONE LC_TIME
7564
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7565
eval $as_var=C; export $as_var
7571
# Required to use basename.
7572
if expr a : '\(a\)' >/dev/null 2>&1; then
7578
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7579
as_basename=basename
7585
# Name of the executable.
7586
as_me=`$as_basename "$0" ||
7587
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7588
X"$0" : 'X\(//\)$' \| \
7589
X"$0" : 'X\(/\)$' \| \
7590
. : '\(.\)' 2>/dev/null ||
7592
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7593
/^X\/\(\/\/\)$/{ s//\1/; q; }
7594
/^X\/\(\/\).*/{ s//\1/; q; }
7598
# PATH needs CR, and LINENO needs CR and PATH.
7599
# Avoid depending upon Character Ranges.
7600
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7601
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7602
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7603
as_cr_digits='0123456789'
7604
as_cr_alnum=$as_cr_Letters$as_cr_digits
7606
# The user is always right.
7607
if test "${PATH_SEPARATOR+set}" != set; then
7608
echo "#! /bin/sh" >conf$$.sh
7609
echo "exit 0" >>conf$$.sh
7611
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7622
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7623
test "x$as_lineno_1" != "x$as_lineno_2" &&
7624
test "x$as_lineno_3" = "x$as_lineno_2" || {
7625
# Find who we are. Look in the path if we contain no path at all
7628
*[\\/]* ) as_myself=$0 ;;
7629
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633
test -z "$as_dir" && as_dir=.
7634
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7639
# We did not find ourselves, most probably we were run as `sh COMMAND'
7640
# in which case we are not to be found in the path.
7641
if test "x$as_myself" = x; then
7644
if test ! -f "$as_myself"; then
7645
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7646
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7647
{ (exit 1); exit 1; }; }
7649
case $CONFIG_SHELL in
7651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7655
test -z "$as_dir" && as_dir=.
7656
for as_base in sh bash ksh sh5; do
7659
if ("$as_dir/$as_base" -c '
7662
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7663
test "x$as_lineno_1" != "x$as_lineno_2" &&
7664
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7665
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7666
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7667
CONFIG_SHELL=$as_dir/$as_base
7669
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7677
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7678
# uniformly replaced by the line number. The first 'sed' inserts a
7679
# line-number line before each line; the second 'sed' does the real
7680
# work. The second script uses 'N' to pair each line-number line
7681
# with the numbered line, and appends trailing '-' during
7682
# substitution so that $LINENO is not a special case at line end.
7683
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7684
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7685
sed '=' <$as_myself |
7690
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7693
s,^['$as_cr_digits']*\n,,
7695
chmod +x $as_me.lineno ||
7696
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7697
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7698
{ (exit 1); exit 1; }; }
7700
# Don't try to exec as it changes $[0], causing all sort of problems
7701
# (the dirname of $[0] is not the place where we might find the
7702
# original and so on. Autoconf is especially sensible to this).
7704
# Exit status is that of the last command.
7709
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7710
*c*,-n*) ECHO_N= ECHO_C='
7712
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7713
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7716
if expr a : '\(a\)' >/dev/null 2>&1; then
7722
rm -f conf$$ conf$$.exe conf$$.file
7724
if ln -s conf$$.file conf$$ 2>/dev/null; then
7725
# We could just check for DJGPP; but this test a) works b) is more generic
7726
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7727
if test -f conf$$.exe; then
7728
# Don't use ln at all; we don't have any links
7733
elif ln conf$$.file conf$$ 2>/dev/null; then
7738
rm -f conf$$ conf$$.exe conf$$.file
7740
if mkdir -p . 2>/dev/null; then
7743
test -d ./-p && rmdir ./-p
7747
as_executable_p="test -f"
7749
# Sed expression to map a string onto a valid CPP name.
7750
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7752
# Sed expression to map a string onto a valid variable name.
7753
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7757
# We need space, tab and new line, in precisely that order.
7767
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7768
# report actual input values of CONFIG_FILES etc. instead of their
7769
# values after options handling. Logging --version etc. is OK.
7773
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7774
## Running $as_me. ##
7779
This file was extended by $as_me, which was
7780
generated by GNU Autoconf 2.59. Invocation command line was
7782
CONFIG_FILES = $CONFIG_FILES
7783
CONFIG_HEADERS = $CONFIG_HEADERS
7784
CONFIG_LINKS = $CONFIG_LINKS
7785
CONFIG_COMMANDS = $CONFIG_COMMANDS
7789
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7793
# Files that config.status was made for.
7794
if test -n "$ac_config_files"; then
7795
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7798
if test -n "$ac_config_headers"; then
7799
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7802
if test -n "$ac_config_links"; then
7803
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7806
if test -n "$ac_config_commands"; then
7807
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7810
cat >>$CONFIG_STATUS <<\_ACEOF
7813
\`$as_me' instantiates files from templates according to the
7814
current configuration.
7816
Usage: $0 [OPTIONS] [FILE]...
7818
-h, --help print this help, then exit
7819
-V, --version print version number, then exit
7820
-q, --quiet do not print progress messages
7821
-d, --debug don't remove temporary files
7822
--recheck update $as_me by reconfiguring in the same conditions
7823
--file=FILE[:TEMPLATE]
7824
instantiate the configuration file FILE
7826
Configuration files:
7829
Configuration commands:
7832
Report bugs to <bug-autoconf@gnu.org>."
7835
cat >>$CONFIG_STATUS <<_ACEOF
7838
configured by $0, generated by GNU Autoconf 2.59,
7839
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7841
Copyright (C) 2003 Free Software Foundation, Inc.
7842
This config.status script is free software; the Free Software Foundation
7843
gives unlimited permission to copy, distribute and modify it."
7848
cat >>$CONFIG_STATUS <<\_ACEOF
7849
# If no file are specified by the user, then we need to provide default
7850
# value. By we need to know if files were specified by the user.
7856
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7857
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7865
*) # This is not an option, so the user has probably given explicit
7868
ac_need_defaults=false;;
7872
# Handling of the options.
7874
cat >>$CONFIG_STATUS <<\_ACEOF
7875
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7877
--version | --vers* | -V )
7878
echo "$ac_cs_version"; exit 0 ;;
7880
# Conflict between --help and --header
7881
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7882
Try \`$0 --help' for more information." >&5
7883
echo "$as_me: error: ambiguous option: $1
7884
Try \`$0 --help' for more information." >&2;}
7885
{ (exit 1); exit 1; }; };;
7886
--help | --hel | -h )
7887
echo "$ac_cs_usage"; exit 0 ;;
7888
--debug | --d* | -d )
7890
--file | --fil | --fi | --f )
7892
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7893
ac_need_defaults=false;;
7894
--header | --heade | --head | --hea )
7896
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7897
ac_need_defaults=false;;
7898
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7899
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7903
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7904
Try \`$0 --help' for more information." >&5
7905
echo "$as_me: error: unrecognized option: $1
7906
Try \`$0 --help' for more information." >&2;}
7907
{ (exit 1); exit 1; }; } ;;
7909
*) ac_config_targets="$ac_config_targets $1" ;;
7915
ac_configure_extra_args=
7917
if $ac_cs_silent; then
7919
ac_configure_extra_args="$ac_configure_extra_args --silent"
7923
cat >>$CONFIG_STATUS <<_ACEOF
7924
if \$ac_cs_recheck; then
7925
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7926
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7931
cat >>$CONFIG_STATUS <<_ACEOF
7933
# INIT-COMMANDS section.
7936
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7942
cat >>$CONFIG_STATUS <<\_ACEOF
7943
for ac_config_target in $ac_config_targets
7945
case "$ac_config_target" in
7946
# Handling of arguments.
7947
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7948
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7949
"data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
7950
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7951
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7952
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7953
{ (exit 1); exit 1; }; };;
7957
# If the user did not use the arguments to specify the items to instantiate,
7958
# then the envvar interface is used. Set only those that are not.
7959
# We use the long form for the default assignment because of an extremely
7960
# bizarre bug on SunOS 4.1.3.
7961
if $ac_need_defaults; then
7962
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7963
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7966
# Have a temporary directory for convenience. Make it in the build tree
7967
# simply because there is no reason to put it here, and in addition,
7968
# creating and moving files from /tmp can sometimes cause problems.
7969
# Create a temporary directory, and hook for its removal unless debugging.
7972
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7973
trap '{ (exit 1); exit 1; }' 1 2 13 15
7976
# Create a (secure) tmp directory for tmp files.
7979
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7980
test -n "$tmp" && test -d "$tmp"
7983
tmp=./confstat$$-$RANDOM
7984
(umask 077 && mkdir $tmp)
7987
echo "$me: cannot create a temporary directory in ." >&2
7988
{ (exit 1); exit 1; }
7993
cat >>$CONFIG_STATUS <<_ACEOF
7996
# CONFIG_FILES section.
7999
# No need to generate the scripts if there are no CONFIG_FILES.
8000
# This happens for instance when ./config.status config.h
8001
if test -n "\$CONFIG_FILES"; then
8002
# Protect against being on the right side of a sed subst in config.status.
8003
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8004
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8005
s,@SHELL@,$SHELL,;t t
8006
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8007
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8008
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8009
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8010
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8011
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8012
s,@exec_prefix@,$exec_prefix,;t t
8013
s,@prefix@,$prefix,;t t
8014
s,@program_transform_name@,$program_transform_name,;t t
8015
s,@bindir@,$bindir,;t t
8016
s,@sbindir@,$sbindir,;t t
8017
s,@libexecdir@,$libexecdir,;t t
8018
s,@datadir@,$datadir,;t t
8019
s,@sysconfdir@,$sysconfdir,;t t
8020
s,@sharedstatedir@,$sharedstatedir,;t t
8021
s,@localstatedir@,$localstatedir,;t t
8022
s,@libdir@,$libdir,;t t
8023
s,@includedir@,$includedir,;t t
8024
s,@oldincludedir@,$oldincludedir,;t t
8025
s,@infodir@,$infodir,;t t
8026
s,@mandir@,$mandir,;t t
8027
s,@build_alias@,$build_alias,;t t
8028
s,@host_alias@,$host_alias,;t t
8029
s,@target_alias@,$target_alias,;t t
8031
s,@ECHO_C@,$ECHO_C,;t t
8032
s,@ECHO_N@,$ECHO_N,;t t
8033
s,@ECHO_T@,$ECHO_T,;t t
8035
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8036
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8037
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8038
s,@CYGPATH_W@,$CYGPATH_W,;t t
8039
s,@PACKAGE@,$PACKAGE,;t t
8040
s,@VERSION@,$VERSION,;t t
8041
s,@ACLOCAL@,$ACLOCAL,;t t
8042
s,@AUTOCONF@,$AUTOCONF,;t t
8043
s,@AUTOMAKE@,$AUTOMAKE,;t t
8044
s,@AUTOHEADER@,$AUTOHEADER,;t t
8045
s,@MAKEINFO@,$MAKEINFO,;t t
8046
s,@AMTAR@,$AMTAR,;t t
8047
s,@install_sh@,$install_sh,;t t
8048
s,@STRIP@,$STRIP,;t t
8049
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8050
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8052
s,@SET_MAKE@,$SET_MAKE,;t t
8053
s,@am__leading_dot@,$am__leading_dot,;t t
8055
s,@CXXFLAGS@,$CXXFLAGS,;t t
8056
s,@LDFLAGS@,$LDFLAGS,;t t
8057
s,@CPPFLAGS@,$CPPFLAGS,;t t
8058
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8059
s,@EXEEXT@,$EXEEXT,;t t
8060
s,@OBJEXT@,$OBJEXT,;t t
8061
s,@DEPDIR@,$DEPDIR,;t t
8062
s,@am__include@,$am__include,;t t
8063
s,@am__quote@,$am__quote,;t t
8064
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8065
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8066
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8067
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8068
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8069
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8071
s,@CFLAGS@,$CFLAGS,;t t
8072
s,@ac_ct_CC@,$ac_ct_CC,;t t
8073
s,@CCDEPMODE@,$CCDEPMODE,;t t
8074
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8075
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8077
s,@X_CFLAGS@,$X_CFLAGS,;t t
8078
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8079
s,@X_LIBS@,$X_LIBS,;t t
8080
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8081
s,@build@,$build,;t t
8082
s,@build_cpu@,$build_cpu,;t t
8083
s,@build_vendor@,$build_vendor,;t t
8084
s,@build_os@,$build_os,;t t
8086
s,@host_cpu@,$host_cpu,;t t
8087
s,@host_vendor@,$host_vendor,;t t
8088
s,@host_os@,$host_os,;t t
8089
s,@target@,$target,;t t
8090
s,@target_cpu@,$target_cpu,;t t
8091
s,@target_vendor@,$target_vendor,;t t
8092
s,@target_os@,$target_os,;t t
8093
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
8094
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
8095
s,@SDL_LIBS@,$SDL_LIBS,;t t
8096
s,@EGREP@,$EGREP,;t t
8097
s,@LIBOBJS@,$LIBOBJS,;t t
8098
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8103
cat >>$CONFIG_STATUS <<\_ACEOF
8104
# Split the substitutions into bite-sized pieces for seds with
8105
# small command number limits, like on Digital OSF/1 and HP-UX.
8107
ac_sed_frag=1 # Number of current file.
8108
ac_beg=1 # First line for current file.
8109
ac_end=$ac_max_sed_lines # Line after last line for current file.
8112
while $ac_more_lines; do
8113
if test $ac_beg -gt 1; then
8114
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8116
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8118
if test ! -s $tmp/subs.frag; then
8121
# The purpose of the label and of the branching condition is to
8122
# speed up the sed processing (if there are no `@' at all, there
8123
# is no need to browse any of the substitutions).
8124
# These are the two extra sed commands mentioned above.
8126
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8127
if test -z "$ac_sed_cmds"; then
8128
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8130
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8132
ac_sed_frag=`expr $ac_sed_frag + 1`
8134
ac_end=`expr $ac_end + $ac_max_sed_lines`
8137
if test -z "$ac_sed_cmds"; then
8140
fi # test -n "$CONFIG_FILES"
8143
cat >>$CONFIG_STATUS <<\_ACEOF
8144
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8145
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8147
- | *:- | *:-:* ) # input from stdin
8149
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8150
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8151
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8152
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8153
* ) ac_file_in=$ac_file.in ;;
8156
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8157
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8158
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8159
X"$ac_file" : 'X\(//\)[^/]' \| \
8160
X"$ac_file" : 'X\(//\)$' \| \
8161
X"$ac_file" : 'X\(/\)' \| \
8162
. : '\(.\)' 2>/dev/null ||
8164
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8165
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8166
/^X\(\/\/\)$/{ s//\1/; q; }
8167
/^X\(\/\).*/{ s//\1/; q; }
8169
{ if $as_mkdir_p; then
8174
while test ! -d "$as_dir"; do
8175
as_dirs="$as_dir $as_dirs"
8176
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8177
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8178
X"$as_dir" : 'X\(//\)[^/]' \| \
8179
X"$as_dir" : 'X\(//\)$' \| \
8180
X"$as_dir" : 'X\(/\)' \| \
8181
. : '\(.\)' 2>/dev/null ||
8183
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8184
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8185
/^X\(\/\/\)$/{ s//\1/; q; }
8186
/^X\(\/\).*/{ s//\1/; q; }
8189
test ! -n "$as_dirs" || mkdir $as_dirs
8190
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8191
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8192
{ (exit 1); exit 1; }; }; }
8196
if test "$ac_dir" != .; then
8197
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8198
# A "../" for each directory in $ac_dir_suffix.
8199
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8201
ac_dir_suffix= ac_top_builddir=
8205
.) # No --srcdir option. We are building in place.
8207
if test -z "$ac_top_builddir"; then
8210
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8212
[\\/]* | ?:[\\/]* ) # Absolute path.
8213
ac_srcdir=$srcdir$ac_dir_suffix;
8214
ac_top_srcdir=$srcdir ;;
8216
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8217
ac_top_srcdir=$ac_top_builddir$srcdir ;;
8220
# Do not use `cd foo && pwd` to compute absolute paths, because
8221
# the directories may not exist.
8223
.) ac_abs_builddir="$ac_dir";;
8226
.) ac_abs_builddir=`pwd`;;
8227
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8228
*) ac_abs_builddir=`pwd`/"$ac_dir";;
8231
case $ac_abs_builddir in
8232
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8234
case ${ac_top_builddir}. in
8235
.) ac_abs_top_builddir=$ac_abs_builddir;;
8236
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8237
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8240
case $ac_abs_builddir in
8241
.) ac_abs_srcdir=$ac_srcdir;;
8244
.) ac_abs_srcdir=$ac_abs_builddir;;
8245
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8246
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8249
case $ac_abs_builddir in
8250
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8252
case $ac_top_srcdir in
8253
.) ac_abs_top_srcdir=$ac_abs_builddir;;
8254
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8255
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8261
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8262
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8265
# Let's still pretend it is `configure' which instantiates (i.e., don't
8266
# use $as_me), people would be surprised to read:
8267
# /* config.h. Generated by config.status. */
8268
if test x"$ac_file" = x-; then
8271
configure_input="$ac_file. "
8273
configure_input=$configure_input"Generated from `echo $ac_file_in |
8274
sed 's,.*/,,'` by configure."
8276
# First look for the input files in the build tree, otherwise in the
8278
ac_file_inputs=`IFS=:
8279
for f in $ac_file_in; do
8281
-) echo $tmp/stdin ;;
8283
# Absolute (can't be DOS-style, as IFS=:)
8284
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8285
echo "$as_me: error: cannot find input file: $f" >&2;}
8286
{ (exit 1); exit 1; }; }
8289
if test -f "$f"; then
8292
elif test -f "$srcdir/$f"; then
8297
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8298
echo "$as_me: error: cannot find input file: $f" >&2;}
8299
{ (exit 1); exit 1; }; }
8302
done` || { (exit 1); exit 1; }
8304
if test x"$ac_file" != x-; then
8305
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8306
echo "$as_me: creating $ac_file" >&6;}
8310
cat >>$CONFIG_STATUS <<_ACEOF
8314
cat >>$CONFIG_STATUS <<\_ACEOF
8316
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8317
s,@configure_input@,$configure_input,;t t
8318
s,@srcdir@,$ac_srcdir,;t t
8319
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8320
s,@top_srcdir@,$ac_top_srcdir,;t t
8321
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8322
s,@builddir@,$ac_builddir,;t t
8323
s,@abs_builddir@,$ac_abs_builddir,;t t
8324
s,@top_builddir@,$ac_top_builddir,;t t
8325
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8326
s,@INSTALL@,$ac_INSTALL,;t t
8327
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8329
if test x"$ac_file" != x-; then
8330
mv $tmp/out $ac_file
8338
cat >>$CONFIG_STATUS <<\_ACEOF
8341
# CONFIG_COMMANDS section.
8343
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8344
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8345
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8346
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8347
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8348
X"$ac_dest" : 'X\(//\)[^/]' \| \
8349
X"$ac_dest" : 'X\(//\)$' \| \
8350
X"$ac_dest" : 'X\(/\)' \| \
8351
. : '\(.\)' 2>/dev/null ||
8353
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8354
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8355
/^X\(\/\/\)$/{ s//\1/; q; }
8356
/^X\(\/\).*/{ s//\1/; q; }
8358
{ if $as_mkdir_p; then
8363
while test ! -d "$as_dir"; do
8364
as_dirs="$as_dir $as_dirs"
8365
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8366
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8367
X"$as_dir" : 'X\(//\)[^/]' \| \
8368
X"$as_dir" : 'X\(//\)$' \| \
8369
X"$as_dir" : 'X\(/\)' \| \
8370
. : '\(.\)' 2>/dev/null ||
8372
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8373
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8374
/^X\(\/\/\)$/{ s//\1/; q; }
8375
/^X\(\/\).*/{ s//\1/; q; }
8378
test ! -n "$as_dirs" || mkdir $as_dirs
8379
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8380
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8381
{ (exit 1); exit 1; }; }; }
8385
if test "$ac_dir" != .; then
8386
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8387
# A "../" for each directory in $ac_dir_suffix.
8388
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8390
ac_dir_suffix= ac_top_builddir=
8394
.) # No --srcdir option. We are building in place.
8396
if test -z "$ac_top_builddir"; then
8399
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8401
[\\/]* | ?:[\\/]* ) # Absolute path.
8402
ac_srcdir=$srcdir$ac_dir_suffix;
8403
ac_top_srcdir=$srcdir ;;
8405
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8406
ac_top_srcdir=$ac_top_builddir$srcdir ;;
8409
# Do not use `cd foo && pwd` to compute absolute paths, because
8410
# the directories may not exist.
8412
.) ac_abs_builddir="$ac_dir";;
8415
.) ac_abs_builddir=`pwd`;;
8416
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8417
*) ac_abs_builddir=`pwd`/"$ac_dir";;
8420
case $ac_abs_builddir in
8421
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8423
case ${ac_top_builddir}. in
8424
.) ac_abs_top_builddir=$ac_abs_builddir;;
8425
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8426
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8429
case $ac_abs_builddir in
8430
.) ac_abs_srcdir=$ac_srcdir;;
8433
.) ac_abs_srcdir=$ac_abs_builddir;;
8434
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8435
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8438
case $ac_abs_builddir in
8439
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8441
case $ac_top_srcdir in
8442
.) ac_abs_top_srcdir=$ac_abs_builddir;;
8443
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8444
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8449
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8450
echo "$as_me: executing $ac_dest commands" >&6;}
8452
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8453
# Strip MF so we end up with the name of the file.
8454
mf=`echo "$mf" | sed -e 's/:.*$//'`
8455
# Check whether this is an Automake generated Makefile or not.
8456
# We used to match only the files named `Makefile.in', but
8457
# some people rename them; so instead we look at the file content.
8458
# Grep'ing the first line is not enough: some people post-process
8459
# each Makefile.in and add a new line on top of each file to say so.
8460
# So let's grep whole file.
8461
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8462
dirpart=`(dirname "$mf") 2>/dev/null ||
8463
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8464
X"$mf" : 'X\(//\)[^/]' \| \
8465
X"$mf" : 'X\(//\)$' \| \
8466
X"$mf" : 'X\(/\)' \| \
8467
. : '\(.\)' 2>/dev/null ||
8469
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8470
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8471
/^X\(\/\/\)$/{ s//\1/; q; }
8472
/^X\(\/\).*/{ s//\1/; q; }
8477
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8478
# Extract the definition of DEP_FILES from the Makefile without
8480
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8481
test -z "$DEPDIR" && continue
8482
# When using ansi2knr, U may be empty or an underscore; expand it
8483
U=`sed -n -e '/^U = / s///p' < "$mf"`
8484
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8485
# We invoke sed twice because it is the simplest approach to
8486
# changing $(DEPDIR) to its actual value in the expansion.
8487
for file in `sed -n -e '
8488
/^DEP_FILES = .*\\\\$/ {
8497
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8498
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8499
# Make sure the directory exists.
8500
test -f "$dirpart/$file" && continue
8501
fdir=`(dirname "$file") 2>/dev/null ||
8502
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8503
X"$file" : 'X\(//\)[^/]' \| \
8504
X"$file" : 'X\(//\)$' \| \
8505
X"$file" : 'X\(/\)' \| \
8506
. : '\(.\)' 2>/dev/null ||
8508
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8509
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8510
/^X\(\/\/\)$/{ s//\1/; q; }
8511
/^X\(\/\).*/{ s//\1/; q; }
8513
{ if $as_mkdir_p; then
8514
mkdir -p $dirpart/$fdir
8516
as_dir=$dirpart/$fdir
8518
while test ! -d "$as_dir"; do
8519
as_dirs="$as_dir $as_dirs"
8520
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8521
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8522
X"$as_dir" : 'X\(//\)[^/]' \| \
8523
X"$as_dir" : 'X\(//\)$' \| \
8524
X"$as_dir" : 'X\(/\)' \| \
8525
. : '\(.\)' 2>/dev/null ||
8527
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8528
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8529
/^X\(\/\/\)$/{ s//\1/; q; }
8530
/^X\(\/\).*/{ s//\1/; q; }
8533
test ! -n "$as_dirs" || mkdir $as_dirs
8534
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8535
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8536
{ (exit 1); exit 1; }; }; }
8538
# echo "creating $dirpart/$file"
8539
echo '# dummy' > "$dirpart/$file"
8547
cat >>$CONFIG_STATUS <<\_ACEOF
8549
{ (exit 0); exit 0; }
8551
chmod +x $CONFIG_STATUS
8552
ac_clean_files=$ac_clean_files_save
8555
# configure is writing to config.log, and then calls config.status.
8556
# config.status does its own redirection, appending to config.log.
8557
# Unfortunately, on DOS this fails, as config.log is still kept open
8558
# by configure, so config.status won't be able to write to it; its
8559
# output is simply discarded. So we exec the FD to /dev/null,
8560
# effectively closing config.log, so it can be properly (re)opened and
8561
# appended to by config.status. When coming back to configure, we
8562
# need to make the FD available again.
8563
if test "$no_create" != yes; then
8565
ac_config_status_args=
8566
test "$silent" = yes &&
8567
ac_config_status_args="$ac_config_status_args --quiet"
8569
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8571
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8572
# would make configure fail if this is the last instruction.
8573
$ac_cs_success || { (exit 1); exit 1; }